/* Новый вид страницы «Планировки». Отключить: удалить строки с "plans-page" в header.php */
/* Пока скрипт не закончил — блок скрыт, затем плавно появляется (страховка: показ через 2 с) */
.plans.apartments-catalog .plans-list,.plans.apartments-catalog .catalog-container-heading{opacity:0;animation:lp-show .3s ease 2s forwards}
.plans.apartments-catalog[data-lp] .plans-list,.plans.apartments-catalog[data-lp] .catalog-container-heading{opacity:1;animation:none;transition:opacity .25s ease}
@keyframes lp-show{to{opacity:1}}
.plans .lp-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;flex-wrap:wrap;margin:8px 0 26px}
.plans .lp-intro p{margin:0;max-width:600px;font-size:17px;line-height:1.5;color:#4a4a4a}
.plans .lp-btn-dark{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 22px;border-radius:26px;background:#1a1a1a;color:#fff!important;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
.plans .lp-btn-dark:hover{background:#3a3a3a}
.plans .lp-chips{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
.plans .lp-chips a{display:inline-flex;align-items:center;height:40px;padding:0 18px;border:1px solid #d9dccf;border-radius:22px;background:#fff;color:#1a1a1a;font-size:14px;font-weight:500;text-decoration:none}
.plans .lp-chips a:hover{border-color:#ACC42A}
.plans .lp-chips a.on{background:#1a1a1a;border-color:#1a1a1a;color:#fff}
.plans .plans-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important}
.plans .plans-item{position:relative!important;display:flex!important;flex-direction:column!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:1px solid #e6e9df;border-radius:20px;overflow:hidden;background:#fff;scroll-margin-top:110px}
.plans .plans-item > *{width:auto!important;max-width:none!important;margin:0!important}
.plans .plans-item__image{display:flex!important;align-items:center;justify-content:center;height:300px!important;margin:0!important;padding:24px!important;box-sizing:border-box;background:#f3f5ee}
.plans .plans-item > div:first-child{padding:0!important;gap:0!important;height:auto!important;min-height:0!important}
.plans .plans-item__image a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.plans .plans-item__image svg,.plans .plans-item__image img{width:auto!important;height:100%!important;max-width:100%!important;max-height:252px!important}
.plans .plans-item__title{margin:0!important;padding:22px 22px 0!important;font-size:21px!important;line-height:1.25!important;font-weight:500!important}
.plans .plans-item__title a{color:#1a1a1a!important;text-decoration:none!important}
.plans .plans-item__size{position:absolute!important;left:16px;top:16px;margin:0!important;padding:6px 12px!important;border-radius:20px;background:#fff;font-size:13px!important;font-weight:600!important;line-height:1.2!important;color:#1a1a1a!important;z-index:2}
.plans .plans-item__text{padding:10px 22px 0!important;font-size:15px!important;line-height:1.5!important;color:#4a4a4a}
.plans .plans-item__text p{margin:0 0 8px!important;font-size:15px!important;line-height:1.5!important}
.plans .plans-item__text.lp-short{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.plans .lp-more{align-self:flex-start;margin:2px 22px 0!important;padding:0;border:0;background:none;color:#55680d;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.plans .lp-go{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;height:44px;margin:16px 22px 24px!important;padding:0 20px;border-radius:24px;background:#ACC42A;color:#1a1a1a!important;font-size:14px;font-weight:600;text-decoration:none}
.plans .lp-go:hover{background:#9bb320}
.plans .lp-spacer{flex:1}
.plans .lp-table{margin:56px 0 0;padding:40px 40px 34px;border-radius:22px;background:#f7f8f4}
.plans .lp-table h2{margin:0 0 20px;font-size:28px;font-weight:400;text-transform:none}
.plans .lp-table table{width:100%;border-collapse:collapse;font-size:15px}
.plans .lp-table th{padding:0 16px 12px;text-align:left;font-size:13px;font-weight:500;color:#7a7a7a}
.plans .lp-table td{padding:14px 16px;border-top:1px solid #e3e7d6}
.plans .lp-table td a{color:#55680d;font-weight:600;text-decoration:none}
.plans .lp-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin:40px 0 80px;padding:28px 32px;border:1px solid #e3e7d6;border-radius:18px;background:#fff}
.plans .lp-cta b{display:block;font-size:20px;font-weight:500}
.plans .lp-cta span{display:block;margin-top:6px;font-size:15px;color:#4a4a4a}
.plans .lp-cta button{display:inline-flex;align-items:center;gap:10px;height:46px;padding:0 22px;border:1px solid #1a1a1a;border-radius:24px;background:transparent;color:#1a1a1a;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.plans .lp-cta button:hover{background:#1a1a1a;color:#fff}
.plans .plans-item{transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}
.plans .plans-item:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(40,50,20,.12);border-color:#ACC42A}
.plans .plans-item__image svg,.plans .plans-item__image img{transition:transform .45s ease}
.plans .plans-item:hover .plans-item__image svg,.plans .plans-item:hover .plans-item__image img{transform:scale(1.045)}
.plans .plans-item__title a{background:linear-gradient(#ACC42A,#ACC42A) 0 100%/0 2px no-repeat;transition:background-size .3s ease;padding-bottom:2px}
.plans .plans-item:hover .plans-item__title a{background-size:100% 2px}
.plans .lp-go{transition:background .25s ease,color .25s ease}
.plans .lp-go svg,.plans .lp-btn-dark svg,.plans .lp-table td a span{transition:transform .25s ease}
.plans .plans-item:hover .lp-go svg,.plans .lp-btn-dark:hover svg{transform:translateX(4px)}
.plans .lp-go:hover{background:#1a1a1a!important;color:#fff!important}
.plans .lp-btn-dark{transition:background .25s ease}
.plans .lp-chips a{transition:border-color .2s ease,transform .2s ease,background .2s ease,color .2s ease}
.plans .lp-chips a:hover{transform:translateY(-2px)}
.plans .lp-more{background:linear-gradient(#55680d,#55680d) 0 100%/0 1px no-repeat;transition:background-size .25s ease}
.plans .lp-more:hover{background-size:100% 1px}
.plans .lp-table tbody tr{transition:background .2s ease}
.plans .lp-table tbody tr:hover{background:#eef2e0}
.plans .lp-table td a span{display:inline-block}
.plans .lp-table tbody tr:hover td a span{transform:translateX(4px)}
.plans .lp-cta button{transition:background .25s ease,color .25s ease}
@media (prefers-reduced-motion:reduce){.plans .plans-item,.plans .plans-item *{transition:none!important;transform:none!important}}
@media (max-width:1100px){.plans .plans-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:700px){.plans .plans-list{grid-template-columns:1fr!important}.plans .lp-table{padding:24px 16px}.plans .lp-table th:nth-child(3),.plans .lp-table td:nth-child(3){display:none}}
/* Мобильная таблица: строки-карточки */
@media (max-width:700px){
.plans .lp-table{margin:40px 0 0!important;padding:22px 16px 10px!important;border-radius:18px;box-sizing:border-box;width:100%}
.plans .lp-table h2{font-size:22px!important;line-height:1.25;margin:0 0 8px!important}
.plans .lp-table thead{display:none}
.plans .lp-table table,.plans .lp-table tbody{display:block;width:100%}
.plans .lp-table tbody tr{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;padding:12px 2px;border-top:1px solid #e3e7d6}
.plans .lp-table td{display:block;padding:0!important;border:0!important;text-align:left!important}
.plans .lp-table td:nth-child(1){grid-column:1;font-weight:500;font-size:15px}
.plans .lp-table td:nth-child(2){grid-column:1;margin-top:2px;font-size:13px;color:#7a7a7a}
.plans .lp-table td:nth-child(3){display:none}
.plans .lp-table td:nth-child(4){grid-column:2;grid-row:1 / span 2}
.plans .lp-table td a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#ACC42A;color:#1a1a1a!important;font-size:0}
.plans .lp-table td a span{font-size:18px;line-height:1}
.plans .lp-cta{margin:24px 0 56px!important;padding:22px 18px!important}
.plans .lp-intro p{font-size:15px}
}
