/*
Theme Name: Любовь — пансионат для пожилых
Theme URI: https://oldness.ru/
Author: OpenAI
Author URI: https://openai.com/
Description: Готовая классическая WordPress-тема пансионата «Любовь» в Симферополе: заполненные страницы, Contact Form 7, выпадающее меню, реальные фотографии, SEO-разметка и мобильные действия.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: teply-dom
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-logo, custom-menu, featured-images, accessibility-ready
*/

:root {
    --td-bg: #f7f4ee;
    --td-surface: #ffffff;
    --td-surface-soft: #eef5ef;
    --td-text: #243129;
    --td-muted: #657269;
    --td-primary: #2f6f4e;
    --td-primary-dark: #24593e;
    --td-accent: #d9a85d;
    --td-border: #dfe6df;
    --td-shadow: 0 18px 50px rgba(32, 62, 44, .10);
    --td-radius: 24px;
    --td-radius-sm: 14px;
    --td-container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--td-bg);
    color: var(--td-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

body.admin-bar .site-header {
    top: 32px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--td-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover,
a:focus {
    color: var(--td-primary-dark);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
.button,
.wp-block-button__link {
    cursor: pointer;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    z-index: 99999;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 18px;
    clip: auto;
    background: #fff;
    color: #000;
    border-radius: 8px;
    box-shadow: var(--td-shadow);
}

.container {
    width: min(calc(100% - 40px), var(--td-container));
    margin-inline: auto;
}

.section {
    padding: 92px 0;
    scroll-margin-top: 96px;
}

.section--soft {
    background: var(--td-surface-soft);
}

.section--white {
    background: var(--td-surface);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--td-primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.section-title {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.section-text {
    margin: 0;
    color: var(--td-muted);
    font-size: 19px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--td-primary);
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.button:focus {
    background: var(--td-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(47, 111, 78, .24);
}

.button--light {
    background: #fff;
    color: var(--td-primary);
    border-color: rgba(255, 255, 255, .8);
}

.button--light:hover,
.button--light:focus {
    background: #f5fbf7;
    color: var(--td-primary-dark);
}

.button--outline {
    background: transparent;
    border-color: var(--td-primary);
    color: var(--td-primary);
}

.button--outline:hover,
.button--outline:focus {
    background: var(--td-primary);
    color: #fff;
}

/* Header */
.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid rgba(223, 230, 223, .9);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 26px;
    min-height: 82px;
}

.site-branding {
    display: flex;
    align-items: center;
    min-width: 0;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    width: auto;
    max-height: 58px;
}

.site-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
}

.site-title a {
    color: var(--td-text);
    text-decoration: none;
}

.site-description {
    margin: 4px 0 0;
    color: var(--td-muted);
    font-size: 13px;
    line-height: 1.3;
}

.primary-navigation ul {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation a {
    color: var(--td-text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
    color: var(--td-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-phone {
    color: var(--td-text);
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--td-border);
    border-radius: 12px;
    background: #fff;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
    display: block;
    width: 22px;
    height: 2px;
    margin: auto;
    background: var(--td-text);
    content: "";
    transition: transform .2s ease;
}

.menu-toggle-lines::before {
    transform: translateY(-7px);
}

.menu-toggle-lines::after {
    transform: translateY(5px);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 72px;
    background:
        radial-gradient(circle at 86% 20%, rgba(217, 168, 93, .26), transparent 28%),
        radial-gradient(circle at 72% 70%, rgba(47, 111, 78, .18), transparent 28%),
        linear-gradient(135deg, #eef5ef 0%, #f8f3e9 100%);
}

.hero::before,
.hero::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hero::before {
    right: -90px;
    top: -130px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(47, 111, 78, .13);
}

.hero::after {
    right: 150px;
    bottom: -180px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(217, 168, 93, .24);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    align-items: center;
    gap: 72px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 8px 14px;
    border: 1px solid rgba(47, 111, 78, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--td-primary);
    font-size: 14px;
    font-weight: 800;
}

.hero-badge::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--td-accent);
    content: "";
}

.hero-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.hero-title strong {
    color: var(--td-primary);
}

.hero-text {
    max-width: 690px;
    margin: 24px 0 0;
    color: var(--td-muted);
    font-size: clamp(18px, 2.2vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-note {
    margin: 18px 0 0;
    color: var(--td-muted);
    font-size: 14px;
}

.hero-card {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    padding: 34px;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(21, 62, 42, .08), rgba(21, 62, 42, .74)),
        linear-gradient(135deg, #b9d0c0, #e7d3af);
    box-shadow: var(--td-shadow);
}

.hero-card::before {
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 26px;
    content: "";
}

.hero-illustration {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-illustration .sun {
    position: absolute;
    top: 76px;
    right: 78px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(255, 241, 204, .8);
    box-shadow: 0 0 0 24px rgba(255, 241, 204, .16);
}

.hero-illustration .hill {
    position: absolute;
    right: -50px;
    bottom: 50px;
    width: 430px;
    height: 200px;
    border-radius: 55% 45% 0 0;
    background: rgba(35, 92, 61, .34);
    transform: rotate(-7deg);
}

.hero-illustration .house {
    position: absolute;
    right: 95px;
    bottom: 95px;
    width: 210px;
    height: 150px;
    border-radius: 10px 10px 18px 18px;
    background: #f8f0de;
    box-shadow: 0 15px 40px rgba(19, 53, 37, .2);
}

.hero-illustration .house::before {
    position: absolute;
    top: -70px;
    left: -18px;
    width: 245px;
    height: 110px;
    background: #8e5f45;
    clip-path: polygon(50% 0, 100% 70%, 92% 100%, 8% 100%, 0 70%);
    content: "";
}

.hero-illustration .door {
    position: absolute;
    right: 35px;
    bottom: 0;
    width: 48px;
    height: 85px;
    border-radius: 8px 8px 0 0;
    background: #a77553;
}

.hero-illustration .window {
    position: absolute;
    top: 50px;
    left: 35px;
    width: 70px;
    height: 55px;
    border: 7px solid #d7c4a2;
    background: #bfd4d5;
}

.hero-card-content {
    position: absolute;
    z-index: 3;
    right: 34px;
    bottom: 34px;
    left: 34px;
    color: #fff;
}

.hero-price-label {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    opacity: .86;
}

.hero-price {
    margin: 0;
    font-size: 36px;
    line-height: 1.15;
}

.hero-price-note {
    margin: 7px 0 0;
    font-size: 14px;
    opacity: .84;
}

/* Trust strip */
.trust-strip {
    position: relative;
    z-index: 3;
    margin-top: 54px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(47, 111, 78, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 14px 42px rgba(40, 71, 52, .08);
}

.trust-item {
    padding: 22px 26px;
    text-align: center;
}

.trust-item + .trust-item {
    border-left: 1px solid var(--td-border);
}

.trust-item strong {
    display: block;
    font-size: 18px;
}

.trust-item span {
    color: var(--td-muted);
    font-size: 14px;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    background: var(--td-surface);
    box-shadow: 0 10px 35px rgba(35, 60, 44, .05);
}

.card-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 16px;
    background: var(--td-surface-soft);
    color: var(--td-primary);
    font-size: 26px;
    font-weight: 900;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 23px;
    line-height: 1.22;
}

.card p {
    margin: 0;
    color: var(--td-muted);
}

.card-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.card-list li {
    position: relative;
    margin-top: 10px;
    padding-left: 24px;
    color: var(--td-muted);
}

.card-list li::before {
    position: absolute;
    top: .73em;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--td-accent);
    content: "";
    transform: translateY(-50%);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 70px;
}

.about-panel {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    border-radius: 32px;
    background:
        radial-gradient(circle at 25% 30%, rgba(255,255,255,.7), transparent 20%),
        linear-gradient(145deg, #d9e7dc, #ead7b7);
    box-shadow: var(--td-shadow);
}

.about-panel::before {
    position: absolute;
    top: 70px;
    left: 60px;
    width: 240px;
    height: 260px;
    border-radius: 120px 120px 36px 36px;
    background: rgba(47, 111, 78, .22);
    content: "";
    transform: rotate(-8deg);
}

.about-panel::after {
    position: absolute;
    right: 46px;
    bottom: 42px;
    width: 170px;
    height: 170px;
    border: 18px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    content: "";
}

.about-quote {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 28px;
    left: 28px;
    margin: 0;
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 32px rgba(32, 62, 44, .12);
    font-size: 19px;
    font-weight: 700;
}

.about-content h2 {
    margin: 0 0 22px;
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.about-content p {
    color: var(--td-muted);
    font-size: 18px;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 33px;
    font-weight: 700;
}

.check-list li::before {
    position: absolute;
    top: 1px;
    left: 0;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--td-primary);
    color: #fff;
    content: "✓";
    font-size: 14px;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: td-step;
}

.step {
    position: relative;
    padding: 28px;
    border-radius: var(--td-radius);
    background: #fff;
    counter-increment: td-step;
}

.step::before {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--td-primary);
    color: #fff;
    content: counter(td-step);
    font-weight: 900;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.step p {
    margin: 0;
    color: var(--td-muted);
    font-size: 15px;
}

/* Price */
.price-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 50px;
    border-radius: 32px;
    background: var(--td-primary);
    color: #fff;
    box-shadow: var(--td-shadow);
}

.price-box h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.1;
}

.price-box p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.82);
}

.price-value {
    text-align: right;
    white-space: nowrap;
}

.price-value span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255,255,255,.74);
    font-size: 14px;
}

.price-value strong {
    display: block;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
}

.price-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* FAQ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--td-border);
}

.faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 0;
    border: 0;
    background: transparent;
    color: var(--td-text);
    font-size: 19px;
    font-weight: 800;
    text-align: left;
}

.faq-question::after {
    display: grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--td-surface-soft);
    color: var(--td-primary);
    content: "+";
    font-size: 24px;
    line-height: 1;
    transition: transform .2s ease;
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 52px 24px 0;
    color: var(--td-muted);
}

.faq-answer p {
    margin: 0;
}

/* Contact CTA */
.contact-cta {
    position: relative;
    overflow: hidden;
    padding: 58px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 90% 15%, rgba(217,168,93,.26), transparent 32%),
        #233b2d;
    color: #fff;
}

.contact-cta::after {
    position: absolute;
    right: -90px;
    bottom: -160px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    content: "";
}

.contact-cta-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.contact-cta h2 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}

.contact-cta p {
    margin: 0;
    color: rgba(255,255,255,.8);
    font-size: 19px;
}

.contact-data {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    margin-top: 26px;
}

.contact-data a,
.contact-data span {
    color: #fff;
    font-weight: 800;
}

/* Content templates */
.content-area {
    padding: 80px 0;
}

.entry-card {
    padding: 44px;
    border-radius: var(--td-radius);
    background: #fff;
    box-shadow: var(--td-shadow);
}

.entry-title {
    margin-top: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content h2,
.entry-content h3 {
    line-height: 1.2;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
}

.entry-content th,
.entry-content td {
    padding: 12px;
    border: 1px solid var(--td-border);
    text-align: left;
}

.post-list {
    display: grid;
    gap: 24px;
}

.post-card {
    padding: 30px;
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    background: #fff;
}

.post-card h2 {
    margin: 0 0 10px;
}

.post-card h2 a {
    color: var(--td-text);
    text-decoration: none;
}

/* Footer */
.site-footer {
    padding: 55px 0 28px;
    background: #17271d;
    color: rgba(255,255,255,.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr .9fr;
    gap: 54px;
}

.footer-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 22px;
}

.footer-text {
    margin: 0;
    max-width: 420px;
}

.footer-menu,
.footer-contacts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li,
.footer-contacts li {
    margin: 8px 0;
}

.footer-menu a,
.footer-contacts a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
}

.footer-menu a:hover,
.footer-contacts a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1080px) {
    .header-inner {
        grid-template-columns: auto auto 1fr;
    }

    .menu-toggle {
        display: block;
        order: 3;
        justify-self: end;
    }

    .primary-navigation {
        position: absolute;
        top: 100%;
        right: 20px;
        left: 20px;
        display: none;
        padding: 20px;
        border: 1px solid var(--td-border);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--td-shadow);
    }

    .primary-navigation.is-open {
        display: block;
    }

    .primary-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-navigation a {
        display: block;
        padding: 11px 8px;
    }

    .header-actions {
        justify-self: end;
    }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 720px;
        width: 100%;
        min-height: 430px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .container {
        width: min(calc(100% - 28px), var(--td-container));
    }

    .section {
        padding: 68px 0;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 12px;
        min-height: 72px;
    }

    .header-actions {
        display: none;
    }

    .menu-toggle {
        order: initial;
    }

    .site-description {
        display: none;
    }

    .hero {
        padding: 64px 0 48px;
    }

    .hero-grid {
        gap: 42px;
    }

    .hero-title {
        font-size: clamp(40px, 13vw, 58px);
    }

    .hero-card {
        min-height: 390px;
        padding: 24px;
    }

    .hero-card-content {
        right: 24px;
        bottom: 24px;
        left: 24px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-item + .trust-item {
        border-top: 1px solid var(--td-border);
        border-left: 0;
    }

    .cards-grid,
    .steps,
    .check-list {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 42px;
    }

    .about-panel {
        min-height: 360px;
    }

    .price-box {
        grid-template-columns: 1fr;
        padding: 34px 26px;
    }

    .price-value {
        text-align: left;
    }

    .contact-cta {
        padding: 38px 26px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .entry-card {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .hero-actions,
    .price-actions {
        flex-direction: column;
    }

    .hero-actions .button,
    .price-actions .button {
        width: 100%;
    }

    .hero-card {
        min-height: 340px;
    }

    .hero-illustration .house {
        right: 45px;
        transform: scale(.84);
        transform-origin: bottom right;
    }

    .hero-illustration .sun {
        right: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Version 1.1: commercial landing sections */
.button--outline-light{background:transparent;border-color:rgba(255,255,255,.75);color:#fff}.button--outline-light:hover,.button--outline-light:focus{background:#fff;color:var(--td-primary)}.hero-card.has-image{background:#d9e7dc}.hero-card-image,.about-panel-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-card.has-image:after{position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,34,23,.04) 30%,rgba(12,34,23,.82) 100%);content:""}.hero-card.has-image .hero-illustration{display:none}.hero-card.has-image .hero-card-content{z-index:4}.hero-card-badge{position:absolute;z-index:4;top:32px;left:32px;display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;background:rgba(255,255,255,.9);color:var(--td-primary);font-size:13px;font-weight:900;box-shadow:0 10px 28px rgba(19,53,37,.12)}.hero-card-badge:before{width:8px;height:8px;border-radius:50%;background:var(--td-accent);content:""}.about-panel.has-image:before,.about-panel.has-image:after{display:none}.about-panel.has-image:after{display:block;position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(20,48,31,.3));content:""}.about-panel.has-image .about-quote{z-index:3}.trust-grid--four{grid-template-columns:repeat(4,1fr)}.trust-item-value{display:block;color:var(--td-primary);font-size:24px!important;line-height:1.1}.audience-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.audience-card{display:grid;grid-template-columns:52px 1fr;gap:18px;padding:25px;border:1px solid var(--td-border);border-radius:22px;background:#fff}.audience-icon{display:grid;width:52px;height:52px;place-items:center;border-radius:16px;background:var(--td-surface-soft);color:var(--td-primary);font-size:24px;font-weight:900}.audience-card h3{margin:0 0 7px;font-size:20px;line-height:1.25}.audience-card p{margin:0;color:var(--td-muted);font-size:15px}.care-grid{display:grid;grid-template-columns:repeat(3,1fr);align-items:stretch;gap:22px}.care-card{display:flex;min-height:100%;flex-direction:column;padding:32px;border:1px solid var(--td-border);border-radius:26px;background:#fff;box-shadow:0 12px 38px rgba(35,60,44,.05)}.care-card--featured{border-color:rgba(47,111,78,.45);box-shadow:0 18px 48px rgba(47,111,78,.14);transform:translateY(-8px)}.care-label{align-self:flex-start;margin-bottom:18px;padding:6px 11px;border-radius:999px;background:var(--td-surface-soft);color:var(--td-primary);font-size:12px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.care-card h3{margin:0 0 10px;font-size:25px}.care-card>p{margin:0;color:var(--td-muted)}.care-price{margin:22px 0 4px;color:var(--td-primary);font-size:25px;font-weight:900}.care-card .card-list{flex:1}.care-card .button{width:100%;margin-top:24px}.included-layout{display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:62px}.included-visual{position:relative;min-height:450px;overflow:hidden;border-radius:30px;background:radial-gradient(circle at 68% 25%,rgba(255,255,255,.8),transparent 18%),linear-gradient(145deg,#d9e7dc,#ead7b7);box-shadow:var(--td-shadow)}.included-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.included-visual:after{position:absolute;right:28px;bottom:28px;width:112px;height:112px;border:16px solid rgba(255,255,255,.42);border-radius:50%;content:""}.included-content h2{margin:0 0 18px;font-size:clamp(34px,4.5vw,54px);line-height:1.08;letter-spacing:-.04em}.included-content>p{color:var(--td-muted);font-size:18px}.included-list{display:grid;grid-template-columns:repeat(2,1fr);gap:13px 20px;margin:28px 0 0;padding:0;list-style:none}.included-list li{position:relative;padding-left:30px;font-weight:700}.included-list li:before{position:absolute;top:2px;left:0;display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:var(--td-primary);color:#fff;content:"✓";font-size:13px}.gallery-grid{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:220px;gap:16px}.gallery-item{position:relative;overflow:hidden;padding:0;border:0;border-radius:22px;background:#dfe6df}.gallery-item:nth-child(6n+1),.gallery-item:nth-child(6n+4){grid-column:span 7}.gallery-item:nth-child(6n+2),.gallery-item:nth-child(6n+3){grid-column:span 5}.gallery-item:nth-child(6n+5),.gallery-item:nth-child(6n+6){grid-column:span 6}.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.gallery-item:after{position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(16,39,25,.55));content:"";opacity:.7}.gallery-item:hover img,.gallery-item:focus img{transform:scale(1.045)}.gallery-caption{position:absolute;z-index:2;right:18px;bottom:15px;left:18px;color:#fff;font-size:14px;font-weight:800;text-align:left}.td-lightbox{position:fixed;z-index:100000;inset:0;display:none;align-items:center;justify-content:center;padding:28px;background:rgba(6,16,10,.88)}.td-lightbox.is-open{display:flex}.td-lightbox img{max-width:min(1200px,92vw);max-height:88vh;border-radius:16px;box-shadow:0 30px 90px rgba(0,0,0,.45)}.td-lightbox-close{position:fixed;top:22px;right:22px;display:grid;width:48px;height:48px;padding:0;place-items:center;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(0,0,0,.25);color:#fff;font-size:28px}.staff-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.staff-card{overflow:hidden;border:1px solid var(--td-border);border-radius:24px;background:#fff}.staff-photo{aspect-ratio:4/4.5;overflow:hidden;background:radial-gradient(circle at 50% 28%,#f2d3bc 0 15%,transparent 16%),radial-gradient(circle at 50% 40%,#6f876f 0 23%,transparent 24%),linear-gradient(145deg,#d9e7dc,#ead7b7)}.staff-photo img{width:100%;height:100%;object-fit:cover}.staff-body{padding:22px}.staff-body h3{margin:0 0 5px;font-size:21px}.staff-role{margin:0;color:var(--td-primary);font-weight:800}.staff-experience{margin:8px 0 0;color:var(--td-muted);font-size:14px}.schedule-list{max-width:900px;margin:0 auto;overflow:hidden;border:1px solid var(--td-border);border-radius:24px;background:#fff}.schedule-row{display:grid;grid-template-columns:110px 230px 1fr;gap:24px;align-items:start;padding:20px 26px}.schedule-row+.schedule-row{border-top:1px solid var(--td-border)}.schedule-time{color:var(--td-primary);font-size:19px;font-weight:900}.schedule-title{font-weight:900}.schedule-text{color:var(--td-muted)}.pricing-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:28px}.pricing-main,.pricing-details{padding:38px;border-radius:28px}.pricing-main{background:var(--td-primary);color:#fff}.pricing-main h2{margin:0 0 16px;font-size:clamp(34px,4.5vw,52px);line-height:1.08}.pricing-main p{color:rgba(255,255,255,.82)}.pricing-big{display:block;margin:30px 0 4px;font-size:clamp(40px,6vw,66px);font-weight:900;line-height:1}.pricing-caption{color:rgba(255,255,255,.7);font-size:14px}.pricing-details{border:1px solid var(--td-border);background:#fff}.pricing-columns{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}.pricing-details h3{margin:0 0 15px;font-size:21px}.pricing-list{margin:0;padding:0;list-style:none}.pricing-list li{position:relative;margin-top:10px;padding-left:24px;color:var(--td-muted)}.pricing-list--included li:before,.pricing-list--extra li:before{position:absolute;left:0;color:var(--td-primary);font-weight:900}.pricing-list--included li:before{content:"✓"}.pricing-list--extra li:before{content:"+"}.reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.review-card{display:flex;min-height:100%;flex-direction:column;padding:30px;border:1px solid var(--td-border);border-radius:25px;background:#fff}.review-stars{margin-bottom:20px;color:var(--td-accent);font-size:20px;letter-spacing:3px}.review-text{flex:1;margin:0;color:var(--td-text);font-size:17px}.review-author{margin-top:26px;padding-top:20px;border-top:1px solid var(--td-border)}.review-author strong,.review-author span{display:block}.review-author span{color:var(--td-muted);font-size:14px}.review-source{margin-top:5px;color:var(--td-primary)!important;font-weight:700}.contact-layout{display:grid;grid-template-columns:.85fr 1.15fr;overflow:hidden;border-radius:32px;background:#233b2d;color:#fff;box-shadow:var(--td-shadow)}.contact-info{padding:50px}.contact-info h2{margin:0 0 16px;font-size:clamp(34px,4.7vw,54px);line-height:1.08}.contact-info>p{color:rgba(255,255,255,.78)}.contact-list{margin:30px 0 0;padding:0;list-style:none}.contact-list li{margin-top:14px}.contact-list strong,.contact-list span,.contact-list a{display:block}.contact-list strong{color:rgba(255,255,255,.55);font-size:12px;letter-spacing:.08em;text-transform:uppercase}.contact-list a,.contact-list span{color:#fff;font-size:18px;font-weight:800;text-decoration:none}.contact-form-wrap{padding:44px;background:#fff;color:var(--td-text)}.contact-form-wrap h3{margin:0 0 10px;font-size:27px}.contact-form-wrap>p{margin-top:0;color:var(--td-muted)}.contact-form-wrap input:not([type=checkbox]):not([type=radio]),.contact-form-wrap textarea,.contact-form-wrap select{width:100%;min-height:50px;padding:12px 14px;border:1px solid var(--td-border);border-radius:12px;background:#fff}.contact-form-wrap textarea{min-height:110px}.contact-form-wrap input[type=submit],.contact-form-wrap button[type=submit]{min-height:52px;padding:13px 24px;border:0;border-radius:999px;background:var(--td-primary);color:#fff;font-weight:900}.contact-fallback{display:grid;gap:12px;margin-top:24px}.contact-fallback .button{width:100%}.privacy-note{margin:16px 0 0;color:var(--td-muted);font-size:12px}.map-wrap{margin-top:24px;overflow:hidden;border-radius:24px;background:#dfe6df}.map-wrap iframe{display:block;width:100%;min-height:390px;border:0}.mobile-action-bar{position:fixed;z-index:9990;right:0;bottom:0;left:0;display:none;grid-template-columns:repeat(3,1fr);gap:1px;padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:rgba(255,255,255,.97);border-top:1px solid var(--td-border);box-shadow:0 -12px 30px rgba(25,48,33,.12);backdrop-filter:blur(14px)}.mobile-action-bar a{display:flex;min-height:48px;align-items:center;justify-content:center;padding:8px 6px;border-radius:12px;color:var(--td-text);font-size:13px;font-weight:900;text-align:center;text-decoration:none}.mobile-action-bar a:last-child{background:var(--td-primary);color:#fff}@media(max-width:1080px){.trust-grid--four{grid-template-columns:repeat(2,1fr)}.trust-grid--four .trust-item:nth-child(3){border-top:1px solid var(--td-border);border-left:0}.trust-grid--four .trust-item:nth-child(4){border-top:1px solid var(--td-border)}.audience-grid,.care-grid{grid-template-columns:repeat(2,1fr)}.care-card--featured{transform:none}.staff-grid{grid-template-columns:repeat(2,1fr)}.reviews-grid{grid-template-columns:repeat(2,1fr)}.included-layout,.pricing-layout,.contact-layout{grid-template-columns:1fr}}@media(max-width:760px){body{padding-bottom:70px}.mobile-action-bar{display:grid}.trust-grid--four,.audience-grid,.care-grid,.staff-grid,.reviews-grid,.pricing-columns,.included-list{grid-template-columns:1fr}.trust-grid--four .trust-item+.trust-item{border-top:1px solid var(--td-border);border-left:0}.included-visual{min-height:340px}.gallery-grid{grid-template-columns:1fr;grid-auto-rows:250px}.gallery-item,.gallery-item:nth-child(n){grid-column:auto}.schedule-row{grid-template-columns:76px 1fr;gap:8px 16px;padding:18px}.schedule-text{grid-column:2}.contact-info,.contact-form-wrap{padding:34px 24px}.map-wrap iframe{min-height:320px}}

/* =========================================================
   Version 1.2 — content pages for Pansionat Lyubov
   ========================================================= */
.entry-content p,
.entry-content li { color: var(--td-muted); }
.entry-content h2 {
    margin: 54px 0 18px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -.025em;
}
.entry-content h3 { margin: 30px 0 12px; font-size: 23px; }
.entry-content a.button { color: #fff; }
.entry-content a.button--outline { color: var(--td-primary); }
.entry-content a.button--outline:hover { color: #fff; }
.content-lead {
    max-width: 900px;
    margin: 0 0 38px;
    color: var(--td-muted);
    font-size: 21px;
    line-height: 1.65;
}
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 28px 0 40px;
}
.content-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card {
    padding: 26px;
    border: 1px solid var(--td-border);
    border-radius: 20px;
    background: var(--td-surface);
}
.info-card h3 { margin-top: 0; }
.info-card p:last-child,
.info-card ul:last-child { margin-bottom: 0; }
.info-card--soft { background: var(--td-surface-soft); }
.info-card--accent { border-color: rgba(165,79,105,.28); background: #fbf2f5; }
.content-checks,
.content-list { margin: 18px 0; padding: 0; list-style: none; }
.content-checks li,
.content-list li { position: relative; margin: 11px 0; padding-left: 30px; }
.content-checks li::before {
    position: absolute;
    top: 1px;
    left: 0;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--td-primary);
    color: #fff;
    content: "✓";
    font-size: 13px;
    font-weight: 900;
}
.content-list li::before {
    position: absolute;
    top: .75em;
    left: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--td-accent);
    content: "";
    transform: translateY(-50%);
}
.content-table-wrap {
    overflow-x: auto;
    margin: 28px 0 38px;
    border: 1px solid var(--td-border);
    border-radius: 18px;
    background: #fff;
}
.entry-content .content-table { min-width: 720px; margin: 0; }
.entry-content .content-table th { background: var(--td-surface-soft); color: var(--td-text); }
.entry-content .content-table th,
.entry-content .content-table td { padding: 15px 17px; vertical-align: top; }
.content-note {
    margin: 28px 0;
    padding: 22px 24px;
    border-left: 5px solid var(--td-accent);
    border-radius: 0 16px 16px 0;
    background: #fff8ec;
}
.content-note strong { color: var(--td-text); }
.content-photo {
    overflow: hidden;
    margin: 34px 0;
    border-radius: 24px;
    background: var(--td-surface-soft);
}
.content-photo img { display: block; width: 100%; max-height: 580px; object-fit: cover; }
.content-photo figcaption { padding: 12px 18px; color: var(--td-muted); font-size: 14px; }
.cta-band {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
    margin: 48px 0 0;
    padding: 32px;
    border-radius: 24px;
    background: #283e31;
    color: #fff;
}
.cta-band h2,
.cta-band h3,
.cta-band p { margin-top: 0; color: #fff; }
.cta-band p { margin-bottom: 0; opacity: .82; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.content-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 30px 0 42px;
    counter-reset: content-step;
}
.content-step {
    padding: 24px;
    border: 1px solid var(--td-border);
    border-radius: 20px;
    background: #fff;
    counter-increment: content-step;
}
.content-step::before {
    display: grid;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    background: var(--td-primary);
    color: #fff;
    content: counter(content-step);
    font-weight: 900;
}
.content-step h3 { margin: 0 0 8px; font-size: 19px; }
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 28px 0;
}
.contact-card { padding: 28px; border-radius: 22px; background: var(--td-surface-soft); }
.contact-card strong,
.contact-card a,
.contact-card span { display: block; }
.contact-card strong {
    margin-bottom: 7px;
    color: var(--td-muted);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.contact-card a,
.contact-card span {
    color: var(--td-text);
    font-size: 20px;
    font-weight: 850;
    text-decoration: none;
}
.role-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 250px;
    place-items: center;
    background: linear-gradient(145deg, #efe0e5, #e3eadf);
    color: var(--td-primary);
    font-size: 58px;
    font-weight: 900;
}
@media (max-width: 900px) {
    .content-grid--three,
    .content-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-band { grid-template-columns: 1fr; }
    .cta-band-actions { justify-content: flex-start; }
}
@media (max-width: 650px) {
    .content-grid,
    .content-grid--three,
    .content-steps,
    .contact-cards { grid-template-columns: 1fr; }
    .entry-content h2 { margin-top: 42px; }
    .cta-band { padding: 26px 22px; }
    .cta-band-actions { flex-direction: column; }
    .cta-band-actions .button { width: 100%; }
}


/* =========================================================
   Version 2.1 — clean production polish
   ========================================================= */

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(165, 79, 105, .32);
    outline-offset: 3px;
}

.audience-card {
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.audience-card:hover,
.audience-card:focus-visible {
    border-color: rgba(165, 79, 105, .34);
    box-shadow: 0 16px 38px rgba(72, 41, 51, .09);
    transform: translateY(-3px);
}

.audience-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.audience-link {
    display: inline-block;
    margin-top: 13px;
    color: var(--td-primary);
    font-size: 13px;
    font-weight: 900;
}

.sidebar-form {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--td-border);
}

.sidebar-form h2 {
    margin-bottom: 7px;
}

.sidebar-form > p {
    margin: 0 0 15px;
    color: var(--td-muted);
    font-size: 13px;
    line-height: 1.5;
}


.page-form-section {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 36px;
    align-items: start;
    margin-top: 50px;
    padding: clamp(26px, 5vw, 42px);
    border-radius: 26px;
    background: var(--td-surface-soft);
}

.page-form-section h2 {
    margin: 8px 0 12px;
}

.page-form-section p {
    margin: 0;
}

.map-wrap--content {
    margin: 22px 0 32px;
}

.hero-actions--center {
    justify-content: center;
}

.contact-form-wrap .lead-form-shell {
    margin-top: 22px;
}

.related-service {
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.related-service:hover,
.related-service:focus-visible {
    border-color: rgba(165, 79, 105, .35);
    background: #fff;
    transform: translateY(-2px);
}

.page-sidebar {
    max-height: calc(100vh - 135px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.page-sidebar::-webkit-scrollbar {
    width: 6px;
}

.page-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(165, 79, 105, .28);
}

@media (max-width: 1120px) {
    .page-sidebar {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 760px) {
    .page-form-section {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .audience-card:hover,
    .audience-card:focus-visible {
        transform: none;
    }
}


/* =========================================================
   Version 2.2 — Contact Form 7 and dropdown navigation
   ========================================================= */

.primary-navigation > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.primary-navigation li {
    position: relative;
}

.primary-navigation > ul > li > a {
    display: block;
    padding: 23px 0;
}

.primary-navigation > ul > li.menu-item-has-children > a {
    padding-right: 22px;
}

.submenu-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: -2px;
    display: inline-grid;
    width: 24px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--td-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.submenu-toggle span {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
}

.menu-item-has-children.submenu-open > .submenu-toggle span {
    transform: translateY(2px) rotate(225deg);
}

.primary-navigation .sub-menu {
    position: absolute;
    z-index: 120;
    top: calc(100% - 4px);
    left: -22px;
    display: block;
    min-width: 292px;
    max-width: 340px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--td-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(55, 32, 41, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(9px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.primary-navigation .sub-menu::before {
    position: absolute;
    top: -7px;
    left: 37px;
    width: 13px;
    height: 13px;
    border-top: 1px solid var(--td-border);
    border-left: 1px solid var(--td-border);
    background: #fff;
    content: "";
    transform: rotate(45deg);
}

.primary-navigation .sub-menu li + li {
    margin-top: 3px;
}

.primary-navigation .sub-menu a {
    display: block;
    padding: 11px 13px;
    border-radius: 11px;
    color: var(--td-text);
    font-size: 14px;
    line-height: 1.35;
}

.primary-navigation .sub-menu a:hover,
.primary-navigation .sub-menu a:focus-visible {
    background: var(--td-surface-soft);
    color: var(--td-primary);
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu,
.primary-navigation li.submenu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Contact Form 7 */
.lead-form-shell .wpcf7 {
    margin: 0;
}

.td-cf7-form,
.td-cf7-fields {
    display: grid;
    gap: 15px;
}

.td-cf7-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.td-cf7-field,
.td-cf7-form-control-wrap {
    display: block;
}

.td-cf7-label {
    display: block;
    margin-bottom: 7px;
    color: var(--td-text);
    font-size: 13px;
    font-weight: 800;
}

.td-cf7-form input:not([type="checkbox"]):not([type="submit"]),
.td-cf7-form select,
.td-cf7-form textarea {
    width: 100%;
    min-height: 51px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #ccd5ce;
    border-radius: 12px;
    background: #fff;
    color: var(--td-text);
    font: inherit;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.td-cf7-form textarea {
    min-height: 108px;
    resize: vertical;
}

.td-cf7-form input:focus,
.td-cf7-form select:focus,
.td-cf7-form textarea:focus {
    border-color: var(--td-primary);
    box-shadow: 0 0 0 3px rgba(165, 79, 105, .12);
}

.td-cf7-form .wpcf7-not-valid {
    border-color: #b94141 !important;
}

.td-cf7-form .wpcf7-not-valid-tip {
    margin-top: 5px;
    color: #a33838;
    font-size: 12px;
    font-weight: 700;
}

.td-cf7-consent {
    color: var(--td-muted);
    font-size: 12px;
    line-height: 1.5;
}

.td-cf7-consent .wpcf7-list-item {
    margin: 0;
}

.td-cf7-consent label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.td-cf7-consent input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.td-cf7-consent a {
    color: inherit;
}

.td-cf7-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.td-cf7-submit {
    min-width: 210px;
    border: 0;
    cursor: pointer;
}

.td-cf7-form .wpcf7-spinner {
    margin: 0;
}

.lead-form-shell .wpcf7 form .wpcf7-response-output {
    margin: 15px 0 0;
    padding: 13px 15px;
    border: 0;
    border-radius: 12px;
    background: #eef2ef;
    color: var(--td-text);
    font-size: 13px;
    font-weight: 700;
}

.lead-form-shell .wpcf7 form.sent .wpcf7-response-output {
    background: #e8f5ed;
    color: #287a4b;
}

.lead-form-shell .wpcf7 form.invalid .wpcf7-response-output,
.lead-form-shell .wpcf7 form.failed .wpcf7-response-output,
.lead-form-shell .wpcf7 form.unaccepted .wpcf7-response-output {
    background: #faeaea;
    color: #9b3434;
}

.lead-form-shell--compact .td-cf7-grid,
.td-cf7-grid--compact {
    grid-template-columns: 1fr;
    gap: 11px;
}

.lead-form-shell--compact .td-cf7-fields {
    gap: 11px;
}

.lead-form-shell--compact .td-cf7-label {
    font-size: 12px;
}

.lead-form-shell--compact .td-cf7-form input:not([type="checkbox"]):not([type="submit"]) {
    min-height: 46px;
}

.lead-form-shell--compact .td-cf7-consent {
    font-size: 11px;
}

.lead-form-shell--compact .td-cf7-submit {
    width: 100%;
    min-width: 0;
}

.cf7-required-box {
    padding: 22px;
    border: 1px solid rgba(165, 79, 105, .22);
    border-radius: 18px;
    background: var(--td-surface-soft);
}

.cf7-required-box strong {
    display: block;
    font-size: 18px;
}

.cf7-required-box p {
    margin: 8px 0 16px;
    color: var(--td-muted);
}

@media (max-width: 1080px) {
    .primary-navigation > ul {
        display: flex;
        align-items: stretch;
        gap: 0;
    }

    .primary-navigation > ul > li > a,
    .primary-navigation > ul > li.menu-item-has-children > a {
        padding: 12px 44px 12px 10px;
    }

    .submenu-toggle {
        top: 5px;
        right: 4px;
        width: 40px;
        height: 40px;
        transform: none;
    }

    .primary-navigation .sub-menu {
        position: static;
        display: none;
        min-width: 0;
        max-width: none;
        padding: 4px 0 8px 15px;
        border: 0;
        border-left: 2px solid rgba(165, 79, 105, .16);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .primary-navigation .sub-menu::before {
        display: none;
    }

    .primary-navigation li:hover > .sub-menu,
    .primary-navigation li:focus-within > .sub-menu {
        display: none;
    }

    .primary-navigation li.submenu-open > .sub-menu {
        display: block;
    }

    .primary-navigation .sub-menu a {
        padding: 9px 12px;
        color: var(--td-muted);
    }
}

@media (max-width: 760px) {
    .td-cf7-grid {
        grid-template-columns: 1fr;
    }

    .td-cf7-submit {
        width: 100%;
    }
}
