/* ---------- Базовое ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --accent: #9a8eff;
    --accent-dark: #7a6ef0;
    --text: #2b2b2b;
    --text-muted: #767676;
    --bg: #ffffff;
    --bg-soft: #faf9ff;
    --border: #ececec;
    --radius: 14px;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    --maxw: 1160px;
    --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Playfair Display", Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--accent-dark);
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.25;
    color: #111;
    margin: 0 0 .6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 72px 0;
}

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

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .8em 1.6em;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.btn:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn--ghost:hover {
    background: var(--accent);
    color: #fff;
}

.btn svg {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
}

/* ---------- Шапка ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
}

.site-logo {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
}

.site-logo span {
    color: var(--accent);
}

.main-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #111;
    font-weight: 600;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--accent);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: #111;
    transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero__title {
    margin-bottom: .3em;
}

.hero__subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
}

/* ---------- Цитата ---------- */
.quote {
    margin: 2em 0;
    padding: 1.2em 1.6em;
    border-left: 4px solid var(--accent);
    background: var(--bg-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: #333;
}

.quote p:last-child {
    margin-bottom: 0;
}

/* ---------- Галерея / сетки ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 2em 0;
}

.gallery img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s ease;
}

.gallery img:hover {
    transform: scale(1.02);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.card img {
    border-radius: var(--radius);
    margin-bottom: 18px;
}

/* ---------- Список преимуществ ---------- */
.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: .7em;
}

.feature-list li::before {
    content: "🌟";
    position: absolute;
    left: 0;
}

/* ---------- Форма ---------- */
.form {
    display: grid;
    gap: 14px;
    max-width: 420px;
}

.form label {
    display: block;
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 6px;
}

.form input[type="text"],
.form input[type="tel"] {
    width: 100%;
    padding: .8em 1em;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

.form input:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

/* ---------- Подвал ---------- */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: #f6f6f6;
    color: var(--text-muted);
    font-size: .9rem;
    text-align: center;
}

/* ---------- Мобильная версия ---------- */
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .main-nav.is-open {
        max-height: 320px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 20px;
    }

    .main-nav li {
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .burger {
        display: block;
    }

    .section {
        padding: 48px 0;
    }
}
/* =========================================================
   HERO с фоновой картинкой
   ========================================================= */

.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    background-color: #f6f4ff; /* подстраховка, если картинка не загрузится */
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    opacity: 0.28;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        padding: 90px 0 60px;
    }

    .hero__bg {
        object-position: center bottom;
        opacity: 0.22;
    }
}

/* =========================================================
   Сетка отзывов
   ========================================================= */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 2.2em;
    align-items: start;
}

.reviews-grid a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.reviews-grid a:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.reviews-grid img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

/* На узких экранах — по одному отзыву в ряд */
@media (max-width: 520px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}