/* Страница «Пенал для откатных ворот» — /penal-dlya-otkatnyh-vorot */
.penal-page { --penal-green: #07b257; --penal-dark: #252328; --penal-gray: #f4f6ff; --penal-line: #e2e4e6; --penal-yellow: #feb33d; }
.penal-page svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.penal-section { padding: 56px 0; }
.penal-section--white { background: #fff; }
.penal-text { font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.5rem; }
.penal-btn { width: auto; min-width: 260px; padding-left: 28px; padding-right: 28px; white-space: normal; }

/* 1. Первый экран */
.penal-hero { padding: 24px 0 56px; background: var(--penal-gray); }
.penal-hero h1 { font-size: 2.6rem; font-weight: 700; line-height: 1.15; margin: 0 0 1rem; }
.penal-badge { display: inline-block; margin-bottom: 14px; padding: 4px 14px; border-radius: 4px; background: var(--penal-yellow); color: var(--penal-dark); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.penal-hero__lead { font-size: 1.15rem; line-height: 1.55; margin-bottom: 1.5rem; }
.penal-hero__list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.penal-hero__list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; line-height: 1.35; }
.penal-hero__list svg { flex: 0 0 26px; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--penal-green); color: #fff; stroke-width: 2.6; }
.penal-hero__img { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(37, 35, 40, .18); }
.penal-hero__img img { display: block; width: 100%; height: auto; }

/* 2. Проблемы */
.penal-problems { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 28px; }
.penal-problem { flex: 0 1 calc(25% - 12px); display: flex; align-items: center; gap: 14px; padding: 20px 18px; background: #fff; border-radius: 10px; border: 1px solid var(--penal-line); font-weight: 600; line-height: 1.35; }
.penal-problem svg { flex: 0 0 36px; width: 36px; height: 36px; color: #e5533d; }
.penal-bridge-arrow { display: flex; justify-content: center; margin: -6px 0 18px; }
.penal-bridge-arrow svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #fff; color: var(--penal-green); stroke-width: 2.4; box-shadow: 0 6px 16px rgba(37, 35, 40, .1); }
.penal-bridge { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #07b257 0%, #05914a 100%); color: #fff; box-shadow: 0 18px 40px rgba(7, 178, 87, .28); }
.penal-bridge__body { padding: 36px 40px; }
.penal-bridge__label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 14px 6px 10px; border-radius: 30px; background: rgba(255, 255, 255, .18); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.penal-bridge__label svg { width: 20px; height: 20px; stroke-width: 2.2; }
.penal-bridge__text { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.5; opacity: .92; }
.penal-bridge__title { margin-bottom: 20px; font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.penal-bridge__list { list-style: none; padding: 0; margin: 0 0 26px; }
.penal-bridge__list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-weight: 600; line-height: 1.35; }
.penal-bridge__list svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #fff; color: var(--penal-green); stroke-width: 3; }
.penal-bridge__btn { padding: 12px 28px; border-radius: 6px; background: #fff; color: var(--penal-dark); font-weight: 700; white-space: normal; }
.penal-bridge__btn:hover, .penal-bridge__btn:focus { background: var(--penal-dark); color: #fff; }
.penal-bridge__img { display: block; position: relative; min-height: 100%; }
.penal-bridge__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 3/7. Видео (вертикальные ролики 9:16) */
.penal-video { max-width: 380px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 12px 32px rgba(37, 35, 40, .2); }
.penal-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
.penal-video--small { max-width: 340px; }

/* 4. Характеристики */
.penal-specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.penal-specs th { padding: 14px 18px; background: var(--penal-dark); color: #fff; font-weight: 600; text-align: left; }
.penal-specs td { padding: 13px 18px; border-bottom: 1px solid var(--penal-line); vertical-align: top; line-height: 1.4; }
.penal-specs td:first-child { width: 38%; color: #5b5e66; }
.penal-specs td:last-child { font-weight: 600; }
.penal-specs tr:last-child td { border-bottom: 0; }
.penal-specs__aside { height: 100%; padding: 0 0 0 12px; }
.penal-specs__aside p { line-height: 1.55; }
.penal-specs__img { display: block; margin-bottom: 18px; border-radius: 10px; overflow: hidden; }
.penal-specs__img img { display: block; width: 100%; height: auto; }

/* 5. Галерея */
.penal-gallery { margin: 0 -10px 1.5rem; }
.penal-gallery .slick-slide { margin: 0 10px; }
.penal-gallery a { display: block; border-radius: 10px; overflow: hidden; }
.penal-gallery img { display: block; width: 100%; height: 280px; object-fit: cover; transition: transform .3s; }
.penal-gallery a:hover img { transform: scale(1.04); }
.penal-gallery .slick-prev, .penal-gallery .slick-next { z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--penal-green); }
.penal-gallery .slick-prev { left: 18px; }
.penal-gallery .slick-next { right: 18px; }
.penal-gallery .slick-prev:hover, .penal-gallery .slick-next:hover, .penal-gallery .slick-prev:focus, .penal-gallery .slick-next:focus { background: var(--penal-dark); }
.penal-gallery .slick-prev:before, .penal-gallery .slick-next:before { color: #fff; opacity: 1; font-size: 22px; line-height: 1; }

/* 6. Преимущества */
.penal-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.penal-benefit { padding: 26px 22px; background: #fff; border-radius: 10px; border: 1px solid var(--penal-line); }
.penal-benefit__icon { width: 56px; height: 56px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(7, 178, 87, .1); color: var(--penal-green); }
.penal-benefit__icon svg { width: 30px; height: 30px; }
.penal-benefit__title { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.penal-benefit__text { margin: 0; line-height: 1.5; }

/* 7. FAQ */
.penal-faq__item { border: 1px solid var(--penal-line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.penal-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: none; border: 0; text-align: left; font-weight: 700; font-size: 1.02rem; color: inherit; cursor: pointer; }
.penal-faq__q:focus { outline: none; }
.penal-faq__q:focus-visible { outline: 2px solid var(--penal-green); outline-offset: -2px; border-radius: 10px; }
.penal-faq__q i { position: relative; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--penal-green); }
.penal-faq__q i:before, .penal-faq__q i:after { content: ""; position: absolute; left: 8px; top: 13px; width: 12px; height: 2px; background: #fff; transition: transform .2s; }
.penal-faq__q i:after { transform: rotate(90deg); }
.penal-faq__item.is-open .penal-faq__q i:after { transform: rotate(0); }
.penal-faq__a { padding: 0 20px 6px; line-height: 1.6; }
.penal-faq__a ul { padding-left: 1.2rem; }

/* 8. Форма */
.penal-cta { background: var(--penal-gray); }
/* блок растёт по высоте контента вместо фиксированных 375px сайта */
.widget-data.cta-measurer.penal-cta .cta-measurer--inner { height: auto; min-height: 375px; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.widget-data.cta-measurer.penal-cta .cta-measurer--bg_white { height: 100%; }
.penal-cta .form-wrapper .col-lg-9 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 1200px) {
    /* справа фото мастера (458px + отступ 3rem) — контент держим левее */
    .widget-data.cta-measurer.penal-cta .cta-measurer--inner > * { max-width: calc(100% - 440px); }
}
@media (min-width: 913px) and (max-width: 1199px) {
    /* на узких экранах фото мастера не помещается рядом с текстом — убираем */
    .widget-data.cta-measurer.penal-cta .cta-measurer--bg, .widget-data.cta-measurer.penal-cta .cta-measurer--bg_white:before { display: none; }
}

@media (max-width: 1199px) {
    .penal-problem { flex-basis: calc(33.333% - 11px); }
}
@media (max-width: 991px) {
    .penal-section { padding: 40px 0; }
    .penal-hero h1 { font-size: 2rem; }
    .penal-hero__text { margin-bottom: 28px; }
    .penal-problem { flex-basis: calc(50% - 8px); }
    .penal-bridge { grid-template-columns: 1fr; }
    .penal-bridge__img { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
    .penal-benefits { grid-template-columns: repeat(2, 1fr); }
    .penal-specs { margin-bottom: 24px; }
    .penal-specs__aside { padding: 0; }
}
@media (max-width: 575px) {
    .penal-hero h1 { font-size: 1.65rem; }
    .penal-hero__list { grid-template-columns: 1fr; }
    .penal-btn { width: 100%; min-width: 0; }
    .penal-problem { flex-basis: 100%; padding: 14px 16px; }
    .penal-bridge__body { padding: 24px 20px; }
    .penal-bridge__title { font-size: 1.35rem; }
    .penal-bridge__btn { width: 100%; }
    /* преимущества на телефоне — горизонтальная карусель со свайпом */
    .penal-benefits { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -15px; padding: 0 15px 12px; }
    .penal-benefit { flex: 0 0 82%; scroll-snap-align: start; }
    .penal-specs th, .penal-specs td { padding: 11px 12px; font-size: .92rem; }
    .penal-gallery img { height: 240px; }
}
