/* ===== ЖУРНАЛЬНЫЙ СТИЛЬ / ТЕМА ===== */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

:root {
    --bg: #0a0a0a;
    --bg-soft: #111111;
    --bg-card: #141414;
    --text-main: #e8e8e8;
    --text-muted: #888888;
    --accent: #d4af37;
    --accent-soft: rgba(212, 175, 55, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --radius-lg: 4px;
    --radius-md: 2px;
    --shadow-soft: 0 30px 50px rgba(0, 0, 0, 0.3);
    --transition: 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    --font-serif: "Playfair Display", "Times New Roman", Georgia, serif;
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

html[data-theme="light"] {
    --bg: #ffffff;
    --bg-soft: #fafaf9;
    --bg-card: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #6b6b6b;
    --accent: #c6a43b;
    --accent-soft: rgba(198, 164, 59, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 30px 50px rgba(0, 0, 0, 0.08);
}

/* ===== БАЗА ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== ОБНОВЛЕННАЯ ШАПКА ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 4px 0;
    background: color-mix(in srgb, var(--bg) 98%, transparent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

html[data-theme="light"] .site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.site-header.scrolled .site-header-inner {
    height: 64px;
}

/* Логотип */
.logo {
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-mark {
    font-size: 28px;
    font-weight: 400;
    font-family: var(--font-serif);
    color: var(--accent);
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.logo-text-main {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1.2;
}



@media (max-width: 768px) {
    .logo-text-main,
    .logo-text-sub {
        display: none;
    }
}


.logo-text-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Навигация */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 999px;
    
    background: rgba(0,0,0,0.4);
    padding: 0;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

html[data-theme="light"] .theme-toggle {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.15);
    color: #222;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

#themeToggleIcon {
    pointer-events: none;
 
}

.theme-toggle span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.theme-toggle:hover span:first-child {
    transform: rotate(15deg);
}

.theme-toggle-label {
    font-size: 11px;
}

/* Профиль в шапке */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

 

.header-profile {
    position: relative;
    display: flex;
    align-items: center;
}

.header-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    color: var(--text-main);
    font: inherit;
}

.header-profile-btn:hover {
    border-color: var(--border-subtle);
    background: rgba(255,255,255,0.02);
}

.header-profile-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #111827;
    flex-shrink: 0;
}

.header-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-profile-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.header-profile-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-profile-name {
    font-size: 13px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-profile-link {
    font-size: 11px;
    color: var(--text-muted);
}

/* Выпадающее меню профиля */
.header-profile-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: var(--shadow-soft);
    padding: 6px 0;
    display: none;
    z-index: 1200;
}

.header-profile-menu.open {
    display: block;
}

.header-profile-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
}

.header-profile-menu a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

/* ===== БУРГЕР МЕНЮ ===== */
/* Базовый вид иконки бургера – чтобы было видно и в тёмной, и в светлой теме */
.burger {
    display: none; /* на десктопе скрыт, на мобилке включим ниже */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);      /* тёмный фон, виден в обеих темах */
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    width: 18px;
    height: 2px;
    background: #ffffff;              /* белые полоски – контраст в любой теме */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-line + .burger-line {
    margin-top: 4px;
}

/* Ховер – чуть подсветим */
.burger:hover .burger-line {
    background: var(--accent);
}

/* При открытом меню – анимация крестика остаётся как была */
body.nav-open .burger .burger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
body.nav-open .burger .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
body.nav-open .burger .burger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Включаем иконку на мобильных */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .burger {
        display: flex;                      /* показываем на мобиле */
        background: rgba(0,0,0,0.4);        /* фон иконки */
        border: 1px solid var(--accent);    /* рамка иконки */
        border-radius: 999px;               /* скругление */
        padding: 4px 6px;
    }

    .burger-line {
        background: var(--accent);          /* цвет полосок иконки */
    }
}




/* Анимация при открытии */
body.nav-open .burger .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

body.nav-open .burger .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.nav-open .burger .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Блокировка скролла при открытом меню */
body.nav-open {
    overflow: hidden !important;
}

/* ===== HERO ЖУРНАЛЬНЫЙ ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transform: scale(1.05);
    animation: slowZoom 20s ease-out;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

html[data-theme="light"] .hero-bg-overlay {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.hero-left {
    max-width: 600px;
}

.hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    display: inline-block;
}

.hero-title {
    font-size: 64px;
    font-weight: 400;
    font-family: var(--font-serif);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
}

.btn-primary:hover {
    background: var(--text-main);
    color: var(--bg);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 13px 32px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.hero-meta {
    display: flex;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.hero-meta span {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-right {
    position: relative;
}

.hero-photo {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2);
    transition: var(--transition);
}

.hero-photo:hover img {
    filter: grayscale(0);
    transform: scale(1.02);
}

.hero-card-overlay {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--bg-card);
    padding: 24px 32px;
    border-left: 3px solid var(--accent);
    box-shadow: var(--shadow-soft);
    max-width: 280px;
}

.hero-name {
    font-size: 20px;
    font-weight: 500;
    font-family: var(--font-serif);
    margin-bottom: 4px;
}

.hero-role {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-tags span {
    font-size: 11px;
    padding: 4px 8px;
    background: var(--accent-soft);
    color: var(--accent);
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: inline-block;
}

.section-title {
    font-size: 48px;
    font-weight: 400;
    font-family: var(--font-serif);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-caption {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== БЛОК "О СПЕЦИАЛИСТЕ" - ИСПРАВЛЕННАЯ ВЕРСИЯ ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    padding-right: 40px;
}

.about-eyebrow {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-quote {
    font-size: 24px;
    font-family: var(--font-serif);
    line-height: 1.3;
    padding: 24px 0 24px 32px;
    border-left: 3px solid var(--accent);
    margin: 32px 0;
    font-style: italic;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.stat-number {
    font-size: 36px;
    font-weight: 500;
    font-family: var(--font-serif);
    color: var(--accent);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.about-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(0.2);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.about-image:hover img {
    filter: grayscale(0);
    transform: scale(1.02);
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--accent);
    z-index: -1;
    transition: all 0.3s ease;
}

/* Планшеты */
@media (max-width: 1024px) {
    .about-grid {
        gap: 40px;
    }
    
    .about-text p {
        font-size: 16px;
    }
    
    .about-quote {
        font-size: 20px;
        padding: 20px 0 20px 24px;
    }
    
    .image-accent {
        width: 90px;
        height: 90px;
        bottom: -15px;
        right: -15px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-text p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .about-quote {
        font-size: 18px;
        padding: 16px 0 16px 20px;
        margin: 24px 0;
    }
    
    .about-stats {
        gap: 20px;
        justify-content: center;
    }
    
    .stat {
        min-width: 70px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .about-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .image-accent {
        width: 70px;
        height: 70px;
        bottom: -10px;
        right: -10px;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 480px) {
    .about-quote {
        font-size: 16px;
        padding: 12px 0 12px 16px;
    }
    
    .about-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .image-accent {
        width: 50px;
        height: 50px;
        bottom: -8px;
        right: -8px;
    }
}






/* ===== СТАТИСТИКА В БЛОКЕ "О СПЕЦИАЛИСТЕ" ===== */
/* Статистика - по умолчанию горизонтально */
.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

/* Мобилка: статы в колонку, чтобы точно не выезжали */
@media (max-width: 768px) {
    .about-stats {
        flex-direction: column;
        align-items: flex-start; /* или center */
        gap: 24px;
    }

    .stat {
        text-align: left; /* или center, если больше нравится */
    }
}


/* ===== С ЧЕМ РАБОТАЮ ===== */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.help-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.help-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.help-item-thumb {
    width: 100%;
}

.help-item-thumb img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.help-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.help-item h3 {
    font-size: 20px;
    font-weight: 500;
    font-family: var(--font-serif);
    margin: 8px 0 4px;
}

.help-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 4px 0;
}

.help-item-actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ===== ЦЕНЫ ===== */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.price-card.featured {
    border: 2px solid var(--accent);
    transform: scale(1.02);
    box-shadow: var(--shadow-soft);
}

.price-card.featured:hover {
    transform: translateY(-8px) scale(1.02);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #0a0a0a;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.price-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.price-card h3 {
    font-size: 22px;
    font-family: var(--font-serif);
    margin-bottom: 16px;
}

.price-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.price-duration {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.price-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.price-btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.price-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.price-btn.primary {
    background: var(--accent);
    color: #0a0a0a;
    border-color: var(--accent);
    border-radius: 999px;
}

.price-btn.primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.price-note {
    text-align: center;
    padding: 24px;
    background: var(--accent-soft);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== МЕРОПРИЯТИЯ ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.event-card {
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.event-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: #0a0a0a;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.event-content {
    padding: 24px;
}

.event-date {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: inline-block;
}

.event-title {
    font-size: 20px;
    font-weight: 500;
    font-family: var(--font-serif);
    margin-bottom: 12px;
}

.event-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 16px;
}

.event-register {
    padding: 8px 20px;
    background: var(--accent);
    color: #0a0a0a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

.event-register:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.event-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
}

.event-link:hover {
    letter-spacing: 0.1em;
}

/* ===== ОТЗЫВЫ ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.review-card {
    background: var(--bg-card);
    padding: 32px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    position: relative;
}

.review-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.review-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-style: italic;
}

.review-author {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
}

.review-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    border-radius: 20px;
}

/* ===== КОНТАКТЫ ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 28px;
    font-family: var(--font-serif);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== ФУТЕР ===== */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-left,
.hero-right,
.section {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .help-grid,
    .events-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-card-overlay {
        left: 0;
        bottom: -20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    /* Бургер меню */
    .burger {
        display: flex !important;
    }
    
    .nav-wrapper {
        position: static;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        border-left: 1px solid var(--border-subtle);
        margin: 0;
        padding: 100px 24px 40px;
        overflow-y: auto;
    }
    
    body.nav-open .nav-links {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        font-size: 16px;
        padding: 14px 0;
        border-bottom: 1px solid var(--border-subtle);
        white-space: normal;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    body.nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Скрываем элементы на мобилке */
   
   
    
    
    
    
    .logo-mark {
        font-size: 24px;
    }
    
    .logo-text-main {
        font-size: 14px;
    }
    
    .site-header-inner {
        height: 64px;
    }
    
    .header-profile-name {
        display: none;
    }
    
    /* Заголовки */
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    /* Сетки в 1 колонку */
    .help-grid,
    .events-grid,
    .reviews-grid,
    .prices-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Hero */
    .hero-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    /* About */
    .about-text {
        padding-right: 0;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .image-accent {
        right: 0;
        bottom: 0;
        width: 70px;
        height: 70px;
    }
    
    /* Карточки */
    .price-card {
        padding: 32px 24px;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .price-card.featured {
        transform: scale(1);
    }
    
    .price-card.featured:hover {
        transform: translateY(-8px);
    }
    
    /* Контакты */
    .contact-grid {
        gap: 40px;
    }
    
    /* Футер */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-links {
        width: 85%;
        max-width: 280px;
        padding: 80px 20px 40px;
    }
    
    .nav-links a {
        font-size: 15px;
        padding: 12px 0;
    }
    
    .logo-mark {
        font-size: 20px;
    }
    
    .logo-text-main {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-ghost {
        width: 100%;
        text-align: center;
    }
    
    .price-card {
        padding: 24px 20px;
    }
    
    
    
    /* Дополнительные стили для форм и уведомлений */
.alert {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    color: var(--text-main);
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    color: var(--text-main);
}

/* Исправление для ссылки MAX */
.contact-item .price-btn.primary {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    margin-left: 10px;
}

/* Улучшение для мобильных устройств */
@media (max-width: 768px) {
    .contact-item {
        flex-wrap: wrap;
    }
    
    .contact-item .price-btn.primary {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}





/* Фикс для about секции на всех устройствах */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--accent);
    z-index: -1;
    pointer-events: none;
}

/* Мобильный фикс */
@media (max-width: 768px) {
    .image-accent {
        bottom: 0;
        right: 0;
        width: 60px;
        height: 60px;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-stats {
        justify-content: center;
    }
}





/* Бургер по умолчанию скрыт */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger-line {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* Десктопное меню */
.nav-links {
  display: flex;
  gap: 32px;
}

/* Мобильное поведение */
@media (max-width: 768px) {

  .nav-wrapper {
    gap: 16px;
  }



/* По умолчанию мобильная кнопка скрыта (на десктопе не нужна) */
.m-link {
    display: none;
}

/* Мобильный вид */
@media (max-width: 468px) {
    .m-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 999px;
        border: 1px solid var(--accent);
        background: var(--accent);
        color: #000;
        /* чтобы не раздувать шапку */
        max-height: 32px;
        white-space: nowrap;
    }

    /* Ужимаем обычную "Войти", чтобы она не занимала всё место */
    .header-login-link {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 999px;
    }

    .header-actions {
        gap: 8px;
    }
}






/* по умолчанию скрыта (десктоп) */
.m-link {
    display: none;
}

/* мобильный вид */
@media (max-width: 768px) {
    .m-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 999px;
        border: 1px solid var(--accent);
        background: var(--accent);
        color: #000;
        cursor: pointer;
        white-space: nowrap;
    }
}








/* Кнопка "Меню" по умолчанию видна везде */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #000;
    cursor: pointer;
}

/* Прячем классическую горизонтальную навигацию: всегда off-canvas */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    max-width: 80%;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 100px 24px 40px;
    margin: 0;
    list-style: none;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    border-left: 1px solid var(--border-subtle);
    overflow-y: auto;
}

/* Когда body.nav-open – меню видно */
body.nav-open .nav-links {
    right: 0;
}

.nav-links a {
    width: 100%;
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-links a:last-child {
    border-bottom: none;
}

/* Оверлей на весь экран при открытом меню */
body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}



.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        border-radius: 999px;
        border: 1px solid var(--accent);
        background: var(--accent);
        color: #000;
        cursor: pointer;
        white-space: nowrap;
    }
}

 

  /* Делаем "Войти" компактной кнопкой, а не огромной */
  .header-login-link {
      padding: 6px 10px;
      font-size: 9px;
      line-height: 1.2;
      border-radius: 999px;
      border-width: 1px; /* если .btn-ghost задаёт жирный бордер */
  }
}






.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  color: #6b7280; /* Серый текст */
  line-height: 1.4;
}

/* Стандартные ссылки a */
.consent-text a,
.consent-text a:link,
.consent-text a:visited {
  color: #0066cc; /* Классический синий */
  text-decoration: none;
  font-weight: 500;
}

.consent-text a:hover,
.consent-text a:focus {
  text-decoration: underline;
  color: #004499; /* Темнее при hover */
}

.consent-text a:active {
  color: #003366; /* Ещё темнее при клике */
}

/* Тёмная тема */
@media (prefers-color-scheme: dark) {
  .consent-label {
    color: #9ca3af;
  }
  
  .consent-text a,
  .consent-text a:link,
  .consent-text a:visited {
    color: #4dabf7; /* Светло-синий для dark */
  }
  
  .consent-text a:hover,
  .consent-text a:focus {
    color: #82c2ff;
  }
}