/* ===========================
   ПУЛЬТ ПАЛИТРЫ — ИГРАТЬ ЗДЕСЬ
   =========================== */
:root {
    --bg: #D2B48C;          /* фон-пергамент */
    --ink: #2b2016;         /* основной тёмный текст */
    --muted: #5f4b32;       /* приглушённый текст */
    --gold: #7a5a1e;        /* тёмное золото (акцент) */
    --gold-light: #a37b2c;  /* светлое золото (градиенты) */
    --paper: #f7ecd7;       /* светлый текст на тёмных кнопках */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; } /* скроллом управляет волна из JS */

::selection { background: var(--gold); color: var(--paper); }

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

/* ===========================
   ФОН: СОЛНЕЧНОЕ СИЯНИЕ, ШУМ, ЧАСТИЦЫ
   =========================== */
#background { position: fixed; inset: 0; overflow: hidden; z-index: 0; }

.gradient {
    position: absolute;
    width: 140vw; height: 140vw;
    left: 50%; top: 40%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(255, 252, 240, .5) 0%,
        rgba(255, 248, 225, .28) 35%,
        rgba(255, 245, 215, .12) 55%,
        rgba(255, 255, 255, 0) 75%);
    animation: breath 12s ease-in-out infinite;
}

.noise {
    position: absolute; inset: 0; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

#particles { position: absolute; inset: 0; pointer-events: none; }

.particle {
    position: absolute; bottom: -10px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 6px color-mix(in srgb, var(--gold) 60%, transparent);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: .7; }
    90%  { opacity: .7; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

@keyframes breath {
    0%   { transform: translate(-50%, -50%) scale(1);    opacity: .5; }
    50%  { transform: translate(-50%, -50%) scale(1.08); opacity: .8; }
    100% { transform: translate(-50%, -50%) scale(1);    opacity: .5; }
}

/* ===========================
   ПРЕЛОАДЕР
   =========================== */
#preloader {
    position: fixed; inset: 0; background: var(--bg);
    display: flex; justify-content: center; align-items: center;
    flex-direction: column; z-index: 999;
}

.loader-circle {
    width: 90px; height: 90px; border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
    border-top: 1px solid var(--gold);
    animation: rotate 2s linear infinite;
}

.loader-text { margin-top: 35px; letter-spacing: 8px; font-size: 14px; color: var(--gold); }

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===========================
   ШАПКА
   =========================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 40px;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 20%, transparent);
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem; font-weight: 600;
    letter-spacing: 4px; color: var(--gold);
    text-decoration: none;
}

.nav-links { display: flex; gap: 32px; }

.nav-links a {
    color: var(--muted); text-decoration: none;
    font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
    transition: color .3s;
}

.nav-links a:hover { color: var(--gold); }

.header-btn {
    padding: 10px 22px;
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    border-radius: 10px;
    color: var(--gold); text-decoration: none;
    font-size: .75rem; letter-spacing: 2px; text-transform: uppercase;
    transition: all .4s;
}

.header-btn:hover { background: var(--gold); color: var(--paper); }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .site-header { padding: 16px 20px; }
}

/* ===========================
   ОБЩИЕ СЕКЦИИ
   =========================== */
section { position: relative; z-index: 1; padding: 110px 20px 40px; }

.wrap { max-width: 1000px; margin: 0 auto; }

.overline {
    display: inline-block;
    color: var(--gold); font-size: .75rem;
    letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 18px;
}

h1, h2 {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, var(--gold) 0%, var(--ink) 50%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: 2px; margin-bottom: 24px; }
h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); letter-spacing: 2px; margin-bottom: 20px; }

.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.8; max-width: 640px; }

/* ===========================
   ВОЛНА-ПОЯВЛЕНИЕ БЛОКОВ
   =========================== */
.reveal { opacity: 0; }

.reveal.visible {
    animation: waveIn 1.3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.reveal.settled { animation: none; opacity: 1; }

@keyframes waveIn {
    from { opacity: 0; transform: translateY(46px) scale(0.985); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0)    scale(1);     filter: blur(0); }
}

/* ===========================
   ГЕРОЙ (ВСЁ ПО ЦЕНТРУ)
   =========================== */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; }

.hero .wrap { text-align: center; }

.hero .lead { margin-left: auto; margin-right: auto; }

.hero-buttons { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }

.btn-gold {
    display: inline-block; padding: 16px 38px;
    background: color-mix(in srgb, var(--gold) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
    border-radius: 12px;
    color: var(--gold); text-decoration: none;
    font-size: .85rem; letter-spacing: 3px; text-transform: uppercase;
    transition: all .4s;
}

.btn-gold:hover {
    background: var(--gold); color: var(--paper);
    box-shadow: 0 0 30px color-mix(in srgb, var(--gold) 40%, transparent);
    transform: translateY(-3px);
}

.btn-ghost {
    display: inline-block; padding: 16px 38px;
    border: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
    border-radius: 12px;
    color: var(--muted); text-decoration: none;
    font-size: .85rem; letter-spacing: 3px; text-transform: uppercase;
    transition: all .4s;
}

.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }

/* ===========================
   КАРТОЧКИ ВОЗМОЖНОСТЕЙ
   =========================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }

.card {
    padding: 32px 26px;
    background: rgba(255, 255, 255, .28);
    border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
    border-radius: 16px;
    transition: border-color .4s, transform .4s, box-shadow .4s;
}

.card:hover {
    border-color: color-mix(in srgb, var(--gold) 60%, transparent);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(43, 32, 22, .12);
}

.card h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold); font-size: 1.05rem;
    letter-spacing: 1px; margin-bottom: 14px;
}

.card p { color: var(--muted); font-size: .9rem; line-height: 1.7; }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ===========================
   ШАГИ
   =========================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }

.step {
    padding: 32px 26px;
    border: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent);
    border-radius: 16px;
    background: rgba(255, 255, 255, .18);
}

.step-num {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem; color: color-mix(in srgb, var(--gold) 60%, transparent);
    margin-bottom: 12px;
}

.step h3 { font-family: 'Cinzel', serif; color: var(--ink); font-size: 1.05rem; margin-bottom: 12px; letter-spacing: 1px; }
.step p { color: var(--muted); font-size: .9rem; line-height: 1.7; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ===========================
   ДЛЯ КОГО
   =========================== */
.who-list { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }

.who-item {
    padding: 20px 26px;
    background: rgba(255, 255, 255, .28);
    border-left: 2px solid var(--gold);
    border-radius: 0 12px 12px 0;
    color: var(--muted); font-size: .95rem; line-height: 1.7;
}

.who-item em { color: var(--ink); font-style: normal; font-weight: 500; }

/* ===========================
   КОНТАКТЫ
   =========================== */
.contacts-box {
    margin-top: 40px; padding: 50px 40px;
    background: rgba(255, 255, 255, .32);
    border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
    border-radius: 20px;
    text-align: center;
}

.contacts-box .lead { margin: 0 auto 34px; }

.contacts-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-soon {
    display: inline-block; padding: 16px 38px;
    border: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent);
    border-radius: 12px;
    color: color-mix(in srgb, var(--gold) 65%, transparent);
    font-size: .85rem; letter-spacing: 3px; text-transform: uppercase;
    cursor: not-allowed; pointer-events: none;
}

/* ===========================
   ФОРМА СВЯЗИ
   =========================== */
.form-divider {
    margin: 38px auto 30px;
    display: flex; align-items: center; gap: 16px;
    max-width: 520px;
    color: color-mix(in srgb, var(--muted) 75%, transparent);
    font-size: .75rem; letter-spacing: 3px; text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
    content: ""; flex: 1; height: 1px;
    background: color-mix(in srgb, var(--gold) 30%, transparent);
}

.contact-form { max-width: 560px; margin: 0 auto; text-align: left; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, .45);
    border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
    border-radius: 12px;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 300;
    outline: none;
    transition: border-color .3s, box-shadow .3s, background .3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent);
}

.contact-form textarea { resize: vertical; min-height: 110px; }

/* ловушка для ботов: человек её не видит */
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; }

.form-btn {
    width: 100%;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.form-btn:disabled { opacity: .6; cursor: wait; transform: none; }

.form-note {
    margin-top: 16px;
    text-align: center;
    color: color-mix(in srgb, var(--muted) 80%, transparent);
    font-size: .82rem;
}

.form-note a {
    color: var(--gold); text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}

.form-error {
    margin-top: 14px;
    text-align: center;
    color: #8a3b2c;
    font-size: .88rem;
}

.form-done {
    max-width: 560px;
    margin: 30px auto 0;
    padding: 34px 30px;
    background: rgba(255, 255, 255, .4);
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    border-radius: 16px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.7;
    animation: waveIn 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.form-done .done-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.15rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* ===========================
   ПОДВАЛ: ПЛАШКИ-ЯРЛЫЧКИ
   =========================== */
.footer {
    position: relative; z-index: 1;
    padding: 50px 20px 40px;
    border-top: 1px solid color-mix(in srgb, var(--gold) 20%, transparent);
    text-align: center;
}

.footer-content { max-width: 1000px; margin: 0 auto; }

.footer-links {
    display: flex; justify-content: center; align-items: stretch;
    gap: 18px; flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-link {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px;
    min-width: 132px;
    padding: 22px 26px;
    background: rgba(255, 255, 255, .28);
    border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
    border-radius: 14px;
    color: var(--muted); text-decoration: none;
    font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
    transition: border-color .4s, transform .4s, box-shadow .4s, color .3s;
}

.footer-link img {
    width: 24px; height: 24px; display: block;
    opacity: .85;
    transition: opacity .3s, transform .3s;
}

.footer-link:hover {
    color: var(--gold);
    border-color: color-mix(in srgb, var(--gold) 60%, transparent);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(43, 32, 22, .12);
}

.footer-link:hover img { opacity: 1; transform: translateY(-1px); }

.footer-copy p {
    color: color-mix(in srgb, var(--muted) 80%, transparent);
    font-size: .78rem; letter-spacing: 1px;
    margin: 6px 0;
}

.footer-copy a {
    color: var(--gold); text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
    transition: color .3s, border-color .3s;
}

.footer-copy a:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 640px) {
    .footer-links { gap: 12px; }
    .footer-link { min-width: 42%; padding: 18px 12px; }
}

/* ===========================
   СТРАНИЦА /privacy
   =========================== */
.privacy-page {
    position: relative; z-index: 1;
    padding: 120px 20px 80px;
}

.privacy-wrap {
    max-width: 820px; margin: 0 auto;
    background: rgba(255, 255, 255, .35);
    border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
    border-radius: 20px;
    padding: 50px 48px;
    box-shadow: 0 12px 40px rgba(43, 32, 22, .08);
}

@media (max-width: 640px) {
    .privacy-wrap { padding: 34px 24px; }
}

.privacy-header { margin-bottom: 40px; }

.privacy-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    background: linear-gradient(135deg, var(--gold) 0%, var(--ink) 50%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    line-height: 1.3;
    margin-bottom: 14px;
}

.privacy-meta {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
}

.privacy-section { margin-bottom: 34px; }

.privacy-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    background: none;
    -webkit-text-fill-color: var(--gold);
}

.privacy-section p {
    color: var(--ink);
    font-size: .95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.privacy-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.privacy-section li {
    color: var(--ink);
    font-size: .93rem;
    line-height: 1.7;
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 15%, transparent);
}

.privacy-section li::before {
    content: "§";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 500;
}

.privacy-section li:last-child { border-bottom: none; }

.privacy-section strong {
    color: var(--ink);
    font-weight: 500;
}

.privacy-note {
    margin-top: 36px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, .5);
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.7;
}

.privacy-note a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}

.privacy-back {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 28px;
    background: color-mix(in srgb, var(--gold) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
    border-radius: 10px;
    color: var(--gold);
    text-decoration: none;
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all .4s;
}

.privacy-back:hover {
    background: var(--gold);
    color: var(--paper);
    transform: translateY(-2px);
}

/* ===========================
   СТРАНИЦА 404 («УЕХАЛА НА ЭКСКУРСИЮ»)
   =========================== */
.error-page {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 20px 60px;
    text-align: center;
}

.error-box { max-width: 640px; }

.error-avatar {
    width: 210px; height: 210px;
    margin: 0 auto 36px;
    border-radius: 50%;
    /* тёмная подложка с глубиной */
    background: radial-gradient(circle at 50% 32%, #3d2e1c 0%, #261c11 55%, #191209 100%);
    border: 2px solid color-mix(in srgb, var(--gold) 60%, transparent);
    /* базовая тёмная аура — видна всегда, даже без анимации */
    box-shadow: 0 0 30px rgba(43, 32, 22, .35),
                0 0 70px rgba(43, 32, 22, .20);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    animation: haloPulse 4s ease-in-out infinite;
}

.error-avatar img {
    width: 91%; height: 91%;
    object-fit: contain;
    display: block;
}

@keyframes haloPulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(43, 32, 22, .30),
                    0 0 60px rgba(43, 32, 22, .16);
    }
    50% {
        box-shadow: 0 0 42px rgba(43, 32, 22, .42),
                    0 0 95px rgba(43, 32, 22, .24);
    }
}

.error-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    background: linear-gradient(135deg, var(--gold) 0%, var(--ink) 50%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    line-height: 1.3;
    margin-bottom: 22px;
}

.error-lead {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.error-buttons {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

.error-note {
    margin-top: 38px;
    color: color-mix(in srgb, var(--muted) 85%, transparent);
    font-size: .85rem;
    line-height: 1.7;
}

.error-note a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}

.error-footer {
    position: relative; z-index: 1;
    text-align: center;
    padding: 30px 20px 40px;
    color: color-mix(in srgb, var(--muted) 70%, transparent);
    font-size: .78rem;
    letter-spacing: 2px;
}

.fade {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.fade-1 { animation-delay: .10s; }
.fade-2 { animation-delay: .25s; }
.fade-3 { animation-delay: .40s; }
.fade-4 { animation-delay: .55s; }
.fade-5 { animation-delay: .70s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   МЕЛОЧИ С ЛЕНДИНГА (были инлайн)
   =========================== */
.demo-below { margin-top: 34px; text-align: center; }

.lead-gap { margin-top: 18px; }

/* круг и появляется волной, и дышит аурой: две анимации вместе */
.error-avatar.fade {
    animation: fadeUp 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
               haloPulse 4s ease-in-out infinite;
}

