/* ---------- БАЗА ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg: #1c1a18;
    --bg-alt: #252220;
    --bg-warm: #2e2a27;

    --text: #f2ede8;
    --text-soft: #b0a59d;

    --accent: #d4a373;
    --accent-hover: #e8b98a;
    --accent-2: #c9955a;
    --accent-soft: rgba(212, 163, 115, 0.12);

    --border: #3a3532;
    --border-strong: #4a4440;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);

    --radius: 16px;
    --container: 1100px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- КОНТЕЙНЕР ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section { padding: 72px 0; }

.section__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin: 0 0 40px;
    color: var(--text);
    text-wrap: balance;
}
.section__title--left { text-align: left; }

/* ---------- АНИМАЦИЯ ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- КНОПКИ ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
    text-align: center;
    line-height: 1.2;
}
.btn:active { transform: scale(.98); }

.btn--primary {
    background: var(--accent);
    color: #1c1a18;
    box-shadow: 0 6px 16px rgba(212, 163, 115, 0.25);
}
.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 22px rgba(212, 163, 115, 0.4);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-strong);
}
.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* ---------- ХЕДЕР ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(28, 26, 24, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.logo span { color: var(--accent); }

.header__nav { display: none; }
.header__link {
    font-weight: 500;
    font-size: .95rem;
    color: var(--text-soft);
    transition: color .2s;
    white-space: nowrap;
}
.header__link:hover { color: var(--accent); }
.header__link--accent {
    color: var(--accent);
    font-weight: 600;
}

.header__link--mobile {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: .9rem;
    transition: border-color .2s, color .2s;
}
.header__link--mobile:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (min-width: 768px) {
    .header__nav {
        display: flex;
        gap: 32px;
        align-items: center;
        margin-left: auto;
    }
    .header__link--mobile {
        display: none;
    }
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 72px 0 96px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 80% at 90% 10%, rgba(212, 163, 115, 0.18) 0%, rgba(212, 163, 115, 0) 60%),
        radial-gradient(50% 70% at 10% 90%, rgba(201, 149, 90, 0.1) 0%, rgba(201, 149, 90, 0) 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
    z-index: -1;
}

.hero__inner {
    display: block;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.hero__text { width: 100%; }

.hero__subtitle {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 20px;
}
.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin: 0 0 24px;
    text-wrap: balance;
    hyphens: auto;
    overflow-wrap: break-word;
}
.hero__desc {
    color: var(--text-soft);
    font-size: 1.15rem;
    margin: 0 auto 36px;
    max-width: 52ch;
}
.hero__desc strong { color: var(--accent); font-weight: 600; }
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- ПРОБЛЕМА ---------- */
.problem {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.problem__grid {
    display: grid;
    gap: 24px;
    align-items: stretch;
}
.problem__card {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
}
.problem__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.problem__icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 14px;
    flex: 0 0 auto;
}
.problem__card p {
    margin: 0;
    font-weight: 500;
    font-size: 1.05rem;
}

/* ---------- РЕШЕНИЕ ---------- */
.solution {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}
.solution__inner {
    display: block;
    max-width: 760px;
    margin: 0 auto;
}
.solution__content { width: 100%; }
.solution__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.solution__list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 18px;
    color: var(--text-soft);
    font-size: 1.05rem;
}
.solution__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-2);
    color: #1c1a18;
    border-radius: 50%;
    font-weight: 700;
    font-size: .85rem;
}
.solution__list strong { color: var(--text); }

/* ---------- ОБО МНЕ ---------- */
.about {
    background: var(--bg);
}
.about__inner {
    display: block;
    max-width: 760px;
    margin: 0 auto;
}
.about__text {
    color: var(--text-soft);
    font-size: 1.1rem;
    margin: 0 0 16px;
    max-width: 60ch;
}
.about__text strong { color: var(--text); }
.about__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.about__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(212, 163, 115, 0.3);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
}

/* ---------- ПОРТФОЛИО ---------- */
.portfolio__card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    position: relative;
}
.portfolio__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
}
.portfolio__content {
    padding: 36px 32px 36px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.portfolio__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 12px;
}
.portfolio__desc {
    color: var(--text-soft);
    margin: 0 0 24px;
    font-size: 1.05rem;
}

/* ---------- ОТЗЫВЫ ---------- */
.reviews {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.reviews__grid {
    display: grid;
    gap: 24px;
}
.reviews__card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.reviews__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.reviews__card::before {
    content: "“";
    position: absolute;
    top: 8px;
    right: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.2;
}
.reviews__text {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}
.reviews__author {
    margin: 0;
    color: var(--text-soft);
    font-size: .95rem;
    font-weight: 500;
}

/* ---------- ПРОЦЕСС ---------- */
.process {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.process__grid {
    display: grid;
    gap: 24px;
    align-items: stretch;
}
.process__step {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.process__step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.process__number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #1c1a18;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 20px;
    box-shadow: 0 6px 14px rgba(212, 163, 115, 0.3);
    flex: 0 0 auto;
}
.process__step h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}
.process__step p {
    margin: 0;
    color: var(--text-soft);
}

/* ---------- ЦЕНА ---------- */
.price {
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.price__card {
    background: var(--bg-alt);
    border: 1.5px solid var(--accent-2);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.price__card::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: var(--accent-soft);
    border-radius: 50%;
    z-index: 0;
}
.price__amount {
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 16px;
}
.price__desc {
    position: relative;
    z-index: 1;
    color: var(--text-soft);
    margin: 0 0 16px;
    font-size: 1.1rem;
}
.price__note {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 6px 14px;
    margin: 0 0 20px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(212, 163, 115, 0.35);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
}
.price__anchor {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    color: var(--text);
    margin: 0 auto 20px;
    padding: 12px 16px;
    background: var(--bg-warm);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    text-align: left;
    max-width: 460px;
    line-height: 1.5;
}
.price__included {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    color: var(--text);
    margin: 0 auto 28px;
    padding: 12px 16px;
    background: var(--accent-soft);
    border-radius: 10px;
    border: 1px solid rgba(212, 163, 115, 0.3);
    max-width: 460px;
}
.price__included strong { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq__inner { max-width: 800px; margin: 0 auto; }
.faq__item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item:hover { border-color: var(--border-strong); }
.faq__item[open] {
    border-color: var(--accent-2);
    box-shadow: var(--shadow-sm);
}
.faq__question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 56px;
    transition: color .2s;
}
.faq__question:hover { color: var(--accent); }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform .25s ease;
}
.faq__item[open] .faq__question::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq__answer {
    padding: 0 24px 24px;
    color: var(--text-soft);
    margin: 0;
}

/* ---------- КОНТАКТЫ ---------- */
.contacts {
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(212, 163, 115, 0.25) 0%, rgba(212, 163, 115, 0) 60%),
        linear-gradient(135deg, #2e2a27 0%, #1c1a18 100%);
    color: #fff;
    border-top: 1px solid var(--border);
}
.contacts .section__title { color: #fff; margin-bottom: 16px; }
.contacts__desc {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 32px;
}
.contacts__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.contacts .btn--primary {
    background: var(--accent);
    color: #1c1a18;
    box-shadow: 0 6px 20px rgba(212, 163, 115, 0.3);
}
.contacts .btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}
.contacts .btn--ghost {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.contacts .btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* ---------- ФУТЕР ---------- */
.footer {
    padding: 32px 0;
    background: #151311;
    color: #7a7068;
    text-align: center;
    font-size: .9rem;
    border-top: 1px solid var(--border);
}

/* ---------- ДЕСКТОП ---------- */
@media (min-width: 768px) {
    .section { padding: 100px 0; }

    .hero { padding: 100px 0 120px; }
    .hero__inner { max-width: 820px; }
    .hero__title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

    .problem__grid { grid-template-columns: repeat(3, 1fr); }
    .process__grid { grid-template-columns: repeat(3, 1fr); }
    .reviews__grid { grid-template-columns: repeat(3, 1fr); }

    .portfolio__content {
        padding: 48px 48px 48px 56px;
    }
    .portfolio__title {
        font-size: 1.8rem;
    }
}