/* ============================================================
   Посадкові сторінки (SEO-лендінги) — публічна частина.

   Палітра і типографіка ті самі, що на решті сайту:
   #321416 текст, #8a5a60 приглушений, #cf65a5 акцент,
   #faf3f1 тло, #fcffff картки, rgba(217,186,192,…) межі.

   Класи прайсу (.price-list, .price-category), робіт «До / Після»
   (.ba-*) та карток блогу (.post-card) сюди не дублюються —
   вони вже є в mainmin.css, beforeafter.css і blogmin.css.
   ============================================================ */

/* Шапка сторінки. Фонову картинку може задати адмін — тоді вона
   приходить інлайном і перекриває ту, що стоїть у .subpage-hero.

   Великий нижній відступ .subpage-hero розрахований на те, що вміст
   наїжджає на шапку знизу. У блогу й каталогу це працює, бо там на
   шапку лягає суцільна біла картка. Лендінг зібраний з різних секцій,
   тож наїжджати нема чому — і зайвий відступ прибираємо. */
.seo-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 4.5rem;
}

.seo-page {
    background: #faf3f1;
    padding: 2.5rem 3rem 5rem;
}

.seo-page__inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ─── Хлібні крихти ─────────────────────────────────────── */
/* Ті самі, що на сторінці товару та статті: просто рядок тексту */
.seo-breadcrumbs {
    font-family: "DM Sans", sans-serif;
    font-size: .9rem;
    color: #8a5a60;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.seo-breadcrumbs a {
    color: #321416;
    text-decoration: none;
    transition: color .3s ease;
}

.seo-breadcrumbs a:hover {
    color: #cf65a5;
}

.seo-breadcrumbs .separator {
    margin: 0 .5rem;
    color: rgba(217, 186, 192, .8);
}

/* ─── Секція ────────────────────────────────────────────── */
.seo-section {
    padding-top: 4rem;
}

/* Перша секція йде одразу під крихтами, тож повний відступ зайвий */
.seo-page__inner>.seo-section:first-of-type {
    padding-top: 1.8rem;
}

.seo-container {
    max-width: 1100px;
    margin: 0 auto;
}

.seo-container--narrow {
    max-width: 820px;
}

.seo-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.seo-eyebrow {
    font-family: "Tenor Sans", sans-serif;
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #cf65a5;
    margin: 0 0 .7rem;
}

.seo-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.25;
    color: #321416;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.seo-subtitle {
    font-family: "DM Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #8a5a60;
    margin: .9rem auto 0;
    max-width: 700px;
}

/* ─── Текстові блоки ────────────────────────────────────── */
.seo-prose {
    font-family: "DM Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #321416;
    background: #fcffff;
    border: 1px solid rgba(217, 186, 192, .4);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    box-shadow: 0 15px 35px rgba(50, 20, 22, .04);
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Як у статтях блогу: рівний правий край, перенос за складами,
       щоб вирівнювання не рвало рядок великими пропусками */
    text-align: justify;
    -ms-hyphens: auto;
    hyphens: auto;
}

.seo-prose--lead {
    font-size: 1.12rem;
}

/* Заголовки й списки лишаються по лівому краю — вирівнювання за шириною
   потрібне суцільному тексту, а не коротким рядкам */
.seo-prose h2,
.seo-prose h3,
.seo-prose h4,
.seo-prose ul,
.seo-prose ol,
.seo-prose blockquote {
    text-align: left;
}

.seo-prose h2,
.seo-prose h3,
.seo-prose h4 {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    color: #321416;
    line-height: 1.3;
    margin: 2rem 0 1rem;
}

.seo-prose h2:first-child,
.seo-prose h3:first-child {
    margin-top: 0;
}

.seo-prose p {
    margin: 0 0 1.2rem;
}

.seo-prose p:last-child {
    margin-bottom: 0;
}

.seo-prose a {
    color: #cf65a5;
    text-decoration: underline;
    text-decoration-color: rgba(207, 101, 165, .4);
    transition: text-decoration-color .3s ease;
}

.seo-prose a:hover {
    text-decoration-color: #cf65a5;
}

.seo-prose ul,
.seo-prose ol {
    margin: 0 0 1.2rem;
    padding-left: 1.4rem;
}

.seo-prose li {
    margin-bottom: .5rem;
}

/* Фото всередині тексту — усі однакові, незалежно від того, що завантажили */
.seo-prose img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* ─── Кнопки ────────────────────────────────────────────── */
.seo-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.seo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.6rem;
    font-family: "Tenor Sans", sans-serif;
    font-size: .85rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    text-decoration: none;
    background: #cf65a5;
    color: #fcffff;
    border: 1px solid #cf65a5;
    border-radius: 6px;
    cursor: pointer;
    transition: all .3s ease;
}

.seo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(207, 101, 165, .22);
}

.seo-btn--ghost {
    background: transparent;
    color: #321416;
    border-color: rgba(217, 186, 192, .8);
}

.seo-btn--ghost:hover {
    color: #cf65a5;
    border-color: #cf65a5;
    box-shadow: 0 10px 20px rgba(207, 101, 165, .12);
}

/* ─── Майстри ───────────────────────────────────────────── */
/* Сітка й пропорції ті самі, що в роботах «До / Після» та галереї:
   на сторінці всі фото мають бути одного розміру */
.seo-masters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.seo-master {
    background: #fcffff;
    border: 1px solid rgba(217, 186, 192, .35);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(50, 20, 22, .04);
    display: flex;
    flex-direction: column;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s ease;
}

.seo-master:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(50, 20, 22, .1);
}

.seo-master__photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f3e7e6;
}

.seo-master__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s ease;
}

.seo-master:hover .seo-master__photo img {
    transform: scale(1.05);
}

.seo-master__body {
    padding: 1.6rem 1.6rem 1.8rem;
}

.seo-master__name {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: #321416;
    margin: 0 0 .35rem;
}

.seo-master__role {
    font-family: "Tenor Sans", sans-serif;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #cf65a5;
    margin: 0;
}

.seo-master__note {
    font-family: "DM Sans", sans-serif;
    font-size: .95rem;
    line-height: 1.6;
    color: #8a5a60;
    margin: 1rem 0 0;
}

/* ─── Прайс ─────────────────────────────────────────────── */
.seo-pricing {
    background: #fcffff;
    border: 1px solid rgba(217, 186, 192, .4);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    box-shadow: 0 15px 35px rgba(50, 20, 22, .04);
}

.seo-pricing .price-category+.price-category {
    margin-top: 2.5rem;
}

/* ─── Галерея ───────────────────────────────────────────── */
.seo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.seo-gallery__item {
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(50, 20, 34, .1);
}

.seo-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s ease;
}

.seo-gallery__item:hover img {
    transform: scale(1.05);
}

/* ─── Переваги ──────────────────────────────────────────── */
.seo-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.seo-benefit {
    position: relative;
    background: #fcffff;
    border: 1px solid rgba(217, 186, 192, .35);
    border-radius: 16px;
    padding: 2.2rem 1.8rem 1.8rem;
    box-shadow: 0 15px 35px rgba(50, 20, 22, .04);
}

.seo-benefit__num {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 2.2rem;
    color: rgba(207, 101, 165, .25);
    line-height: 1;
    display: block;
    margin-bottom: .8rem;
}

.seo-benefit__title {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    color: #321416;
    margin: 0 0 .6rem;
}

.seo-benefit__text {
    font-family: "DM Sans", sans-serif;
    font-size: .97rem;
    line-height: 1.65;
    color: #8a5a60;
    margin: 0;
}

/* ─── Питання-відповіді ─────────────────────────────────── */
.seo-faq {
    background: #fcffff;
    border: 1px solid rgba(217, 186, 192, .4);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(50, 20, 22, .04);
    overflow: hidden;
}

.seo-faq__item+.seo-faq__item {
    border-top: 1px solid rgba(217, 186, 192, .35);
}

.seo-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.4rem 1.8rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: #321416;
    cursor: pointer;
    list-style: none;
    transition: color .3s ease;
}

.seo-faq__q::-webkit-details-marker {
    display: none;
}

.seo-faq__q:hover {
    color: #cf65a5;
}

.seo-faq__q svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #cf65a5;
    transition: transform .3s ease;
}

.seo-faq__item[open] .seo-faq__q svg {
    transform: rotate(180deg);
}

.seo-faq__a {
    padding: 0 1.8rem 1.6rem;
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #8a5a60;
}

/* ─── Статті ────────────────────────────────────────────── */
.seo-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ─── Заклик до запису ──────────────────────────────────── */
.seo-cta {
    text-align: center;
    padding: 3.5rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(217, 186, 192, .6);
    background: radial-gradient(circle at 100% 100%, rgba(207, 101, 165, .1) 0%, #fcffff 62%);
}

.seo-cta__title {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: #321416;
    margin: 0 0 1rem;
}

.seo-cta__text {
    font-family: "DM Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #8a5a60;
    margin: 0 auto 2rem;
    max-width: 560px;
}

.seo-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Планшет / малий ноут — 2 в ряд, як у .ba-grid */
@media (max-width: 1000px) {

    .seo-masters,
    .seo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4rem;
    }
}

/* ─── Телефон і планшет ─────────────────────────────────── */
@media (max-width: 768px) {
    .seo-hero {
        padding-bottom: 3rem;
    }

    .seo-page {
        padding: 1.6rem 1.4rem 3.5rem;
    }

    .seo-breadcrumbs {
        font-size: .85rem;
    }

    .seo-section {
        padding-top: 2.8rem;
    }

    .seo-page__inner>.seo-section:first-of-type {
        padding-top: 1.4rem;
    }

    .seo-head {
        margin-bottom: 1.8rem;
    }

    .seo-prose {
        padding: 1.8rem 1.4rem;
        font-size: 1rem;
    }

    .seo-pricing {
        padding: 1.8rem 1.4rem;
    }

    .seo-benefits,
    .seo-posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .seo-master:hover {
        transform: none;
    }

    .seo-faq__q {
        padding: 1.2rem 1.2rem;
        font-size: 1rem;
    }

    .seo-faq__a {
        padding: 0 1.2rem 1.3rem;
    }

    .seo-cta {
        padding: 2.4rem 1.4rem;
    }

    .seo-btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }
}

/* Телефон — 1 в ряд */
@media (max-width: 640px) {

    .seo-masters,
    .seo-gallery {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
}

/* ─── Акуратна типографіка ──────────────────────────────── */
/* Заголовок шапки бере розмір із blogmin.css: там мінімум 2.5rem і
   перенос за складами. Для статті це терпимо, а довга назва послуги
   на телефоні рветься на «фар-бування». Тут переносимо лише цілими
   словами і вирівнюємо довжину рядків. */
.seo-hero .page-title {
    line-height: 1.2;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
    -webkit-hyphens: manual;
    -ms-hyphens: manual;
    hyphens: manual;
    text-wrap: balance;
}

/* Опис під заголовком шапки. Базове правило з beforeafter.css не обмежує
   ширину, і довгий опис послуги розтягувався в один рядок на весь екран */
.seo-hero .ba-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
    line-height: 1.6;
    text-wrap: balance;
}

.seo-title,
.seo-cta__title {
    -webkit-hyphens: manual;
    -ms-hyphens: manual;
    hyphens: manual;
    text-wrap: balance;
}

.seo-cta__title {
    line-height: 1.3;
}

@media (max-width: 768px) {
    .seo-hero .page-title {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
        line-height: 1.22;
        margin-top: 2rem;
    }

    .seo-hero .ba-subtitle {
        font-size: .95rem;
        line-height: 1.55;
        padding: 0 1.5rem;
    }

    /* У вузькій колонці вирівнювання за шириною змушує браузер різати
       слова («чоло-вічі»), тож на телефоні текст іде по лівому краю */
    .seo-prose {
        text-align: left;
        -webkit-hyphens: manual;
        -ms-hyphens: manual;
        hyphens: manual;
    }

    .seo-title {
        font-size: 1.45rem;
        line-height: 1.3;
    }

    .seo-cta__title {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .seo-cta__text {
        font-size: .98rem;
    }

    .seo-btn {
        font-size: .8rem;
        letter-spacing: .08em;
        line-height: 1.4;
        text-align: center;
    }
}

/* ─── Відгуки ───────────────────────────────────────────── */
/* Картки й сітка беруться з mainmin.css, із секції відгуків на головній.
   Там під сіткою великий відступ під кнопку Google, тут його не треба. */
.seo-reviews {
    margin-bottom: 0;
}

.seo-review__source {
    font-family: "DM Sans", sans-serif;
    font-size: .8rem;
    color: #8a5a60;
    opacity: .8;
    margin-top: .25rem;
}

@media (max-width: 768px) {
    .seo-reviews .review-text {
        text-align: left;
        -webkit-hyphens: manual;
        -ms-hyphens: manual;
        hyphens: manual;
    }
}


/* =========================================================
   ПІДРОЗДІЛИ СТОРІНКИ (список дочірніх сторінок)
   Малюється сам, коли до сторінки прив'язані підсторінки.
   ========================================================= */
.seo-children {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.seo-child {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(207, 101, 165, .16);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.seo-child:hover {
    transform: translateY(-4px);
    border-color: rgba(207, 101, 165, .38);
    box-shadow: 0 14px 30px rgba(50, 20, 22, .10);
}

.seo-child__photo {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5eef1;
}

.seo-child__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.seo-child:hover .seo-child__photo img {
    transform: scale(1.04);
}

.seo-child__body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.15rem 1.25rem 1.3rem;
}

.seo-child__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    line-height: 1.35;
    color: #321416;
}

.seo-child__text {
    font-size: .92rem;
    line-height: 1.6;
    color: #7a6669;
}

.seo-child__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: .35rem;
    font-size: .88rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #cf65a5;
}

.seo-child__more svg {
    width: 16px;
    height: 16px;
    transition: transform .3s ease;
}

.seo-child:hover .seo-child__more svg {
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .seo-children {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .seo-child__body {
        padding: 1rem 1.1rem 1.15rem;
    }
}
