/* ============================================================
   STORYTAPE — премиум-стиль
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============ RESET ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0A0C10;
    --paper: #141821;
    --paper-elevated: #1A1F2B;
    --text: #F5F7FA;
    --text-secondary: #8B94A7;
    --text-muted: #5A6273;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --gold: #D4B98C;
    --gold-soft: #B89A6B;
    --gold-dim: rgba(212, 185, 140, 0.15);
    --border: #1F2937;
    --border-soft: #232A38;

    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

code {
    background: rgba(37, 99, 235, 0.12);
    color: #93C5FD;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: "SF Mono", Consolas, monospace;
    font-size: 0.88em;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ TYPOGRAPHY ============ */

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ============ HEADER ============ */
.header {
    position: sticky;
    top: 0;
    background: rgba(10, 12, 16, 0.82);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF;
    border-radius: 50%;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    box-shadow:
        0 0 0 1px rgba(212, 185, 140, 0.4),
        0 0 20px rgba(212, 185, 140, 0.25),
        0 4px 16px rgba(37, 99, 235, 0.35);
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.02em;
    color: var(--text);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 1px;
    width: 0;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--text);
}

.nav a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav { display: none; }
}

/* ============ HERO ============ */
.hero {
    padding: 110px 0 130px;
    position: relative;
    background:
        radial-gradient(ellipse 70% 60% at 80% 0%, rgba(212, 185, 140, 0.08), transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 100%, rgba(37, 99, 235, 0.10), transparent 60%);
    overflow: hidden;
}

/* Тонкие вертикальные линии-орнаменты по бокам */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--gold-dim) 30%,
        var(--gold-dim) 70%,
        transparent 100%
    );
    opacity: 0.6;
}

.hero::before { left: 8%; }
.hero::after  { right: 8%; }

@media (max-width: 900px) {
    .hero::before, .hero::after { display: none; }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 76px;
    line-height: 1.0;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    color: var(--text);
}

.hero h1::first-line {
    color: var(--text);
}

@media (max-width: 900px) {
    .hero h1 { font-size: 56px; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 42px; }
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 28px;
}

.hero-quote {
    color: var(--gold);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 19px;
    line-height: 1.55;
    padding-left: 22px;
    border-left: 2px solid var(--gold-soft);
    margin-bottom: 42px;
    max-width: 540px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(212, 185, 140, 0.06);
    border: 1px solid rgba(212, 185, 140, 0.2);
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 500;
}

.hero-image img {
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 185, 140, 0.12),
        0 0 60px rgba(212, 185, 140, 0.08);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 15px 32px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(212, 185, 140, 0.35);
}

.btn-secondary:hover {
    border-color: var(--gold);
    background: rgba(212, 185, 140, 0.06);
    color: var(--gold);
}

.btn-small {
    padding: 11px 22px;
    font-size: 13px;
    background: var(--primary);
    color: white;
    border: 1px solid transparent;
    display: inline-block;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.btn-small:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* ============ SECTIONS ============ */
.section {
    padding: 110px 0;
    position: relative;
}

.section-dark {
    background: var(--paper);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.section h2 {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.015em;
    color: var(--text);
    position: relative;
    display: inline-block;
}

/* Тонкая золотая черта под заголовком */
.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin-top: 20px;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .section h2 { font-size: 38px; }
}

.section-lead {
    color: var(--text-secondary);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
    max-width: 720px;
    margin-bottom: 56px;
}

/* ============ FEATURE GRID ============ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature {
    background: var(--paper-elevated);
    padding: 32px 28px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section-dark .feature {
    background: var(--bg);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature:hover {
    border-color: rgba(212, 185, 140, 0.25);
    transform: translateY(-3px);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(212, 185, 140, 0.06);
    border: 1px solid rgba(212, 185, 140, 0.15);
    border-radius: 50%;
}

.feature h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.feature p {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.65;
}

/* ============ SPLIT ============ */
.split {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
    align-items: center;
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.split-image img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 185, 140, 0.08);
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
}

.feature-list li {
    color: var(--text-secondary);
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 500;
    opacity: 0.85;
}

.feature-list strong {
    color: var(--text);
    font-weight: 600;
}

/* ============ SCREENS ============ */
.screens {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.screen {
    text-align: center;
}

.screen img {
    width: 100%;
    max-width: 260px;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    display: block;
    margin: 0 auto 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s ease;
}

.screen:hover img {
    transform: translateY(-6px);
}

.screen-caption {
    color: var(--text-secondary);
    font-size: 13.5px;
    letter-spacing: 0.01em;
}

/* ============ STORIES ============ */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.story-card {
    background: var(--bg);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, var(--gold-dim) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 185, 140, 0.25);
}

.story-card:hover::before {
    opacity: 1;
}

.story-cover-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.story-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.25;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    letter-spacing: -0.005em;
}

.story-meta {
    color: var(--text-muted);
    font-size: 12.5px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 500;
}

/* ============ DOWNLOAD ============ */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 720px;
}

.download-card {
    background: var(--paper-elevated);
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}

.download-card:hover {
    border-color: rgba(212, 185, 140, 0.25);
    transform: translateY(-3px);
}

.download-icon {
    font-size: 42px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    background: rgba(212, 185, 140, 0.06);
    border: 1px solid rgba(212, 185, 140, 0.15);
    border-radius: 50%;
}

.download-card h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.download-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

.download-note {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 0 !important;
    letter-spacing: 0.02em;
}

/* ============ OTHER APPS ============ */
.other-apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.other-app {
    background: var(--bg);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.other-app:hover {
    border-color: rgba(212, 185, 140, 0.3);
    transform: translateY(-2px);
}

.other-app-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    flex-shrink: 0;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.other-app h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.other-app p {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.5;
}

/* ============ FOOTER ============ */
.footer {
    padding: 72px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-soft);
    font-size: 14px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

.footer p {
    line-height: 1.9;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--gold);
}

.footer-author {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============ SELECTION ============ */
::selection {
    background: var(--gold);
    color: var(--bg);
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-soft);
}

/* ============================================================
   ПРЕМИУМ-ОБОГАЩЕНИЕ — секции, орнаменты, анимации, иконки
   ============================================================ */

/* ============ SVG-иконки вместо эмодзи ============ */
.feature-icon svg,
.download-icon svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
    stroke-width: 1.6;
    display: block;
}

.download-icon svg {
    width: 28px;
    height: 28px;
}

/* В hero-кружке — плейсхолдер, если понадобится */
.feature-icon {
    color: var(--gold);
}

/* ============ Орнамент-разделитель между секциями ============ */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
    opacity: 0.6;
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-soft), transparent);
}

.section-divider span {
    color: var(--gold-soft);
    font-size: 14px;
    letter-spacing: 0.3em;
}

/* ============ Секция «Философия» ============ */
.philosophy {
    padding: 140px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(212, 185, 140, 0.05), transparent 70%);
}

.philosophy::before,
.philosophy::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gold-soft), transparent);
    opacity: 0.5;
}

.philosophy::before { top: 40px; }
.philosophy::after  { bottom: 40px; }

.philosophy-inner {
    max-width: 780px;
    margin: 0 auto;
}

.philosophy-mark {
    color: var(--gold);
    font-size: 28px;
    margin-bottom: 36px;
    letter-spacing: 0.5em;
}

.philosophy-text {
    font-family: var(--font-serif);
    font-size: 30px;
    line-height: 1.45;
    color: var(--text);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 28px;
}

.philosophy-text + .philosophy-text {
    font-size: 22px;
    color: var(--text-secondary);
    font-style: normal;
    line-height: 1.7;
    margin-bottom: 40px;
}

.philosophy-signature {
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 16px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .philosophy { padding: 100px 0; }
    .philosophy-text { font-size: 22px; }
    .philosophy-text + .philosophy-text { font-size: 17px; }
}

/* ============ Кнопка Google Play ============ */
.btn-play {
    background: #000000;
    color: #FFFFFF;
    border: 1px solid rgba(212, 185, 140, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-play:hover {
    border-color: var(--gold);
    background: #0A0C10;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 185, 140, 0.2);
}

.btn-play svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.download-icon-play {
    background: rgba(212, 185, 140, 0.08) !important;
}

.download-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(212, 185, 140, 0.12);
    border: 1px solid rgba(212, 185, 140, 0.3);
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 20px;
}

/* ============ Анимация появления при скролле ============ */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal][data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.4s; }

/* Параллакс-hero */
.hero-image {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; }
    .hero-image { transform: none !important; }
}

/* ============================================================
   МОБИЛЬНАЯ ПРАВКА ОТСТУПОВ — убираем лишнюю пустоту
   ============================================================ */

@media (max-width: 768px) {
    /* Секции в целом — компактнее */
    .section {
        padding: 64px 0;
    }

    /* Философия — ещё компактнее */
    .philosophy {
        padding: 64px 0;
    }

    /* Декоративные линии по краям философии — убираем совсем,
       они на мобильном теряются, но занимают место */
    .philosophy::before,
    .philosophy::after {
        display: none;
    }

    /* Заголовки секций — не такие огромные на телефоне */
    .section h2 {
        font-size: 34px;
        margin-bottom: 14px;
    }

    .section h2::after {
        margin-top: 14px;
    }

    .section-lead {
        font-size: 15.5px;
        margin-bottom: 36px;
    }

    /* Hero — тоже сжимаем */
    .hero {
        padding: 60px 0 72px;
    }

    /* Цитаты в философии — меньше */
    .philosophy-text {
        font-size: 20px;
    }

    .philosophy-text + .philosophy-text {
        font-size: 15.5px;
        margin-bottom: 28px;
    }

    .philosophy-mark {
        margin-bottom: 24px;
        font-size: 22px;
    }

    /* Кнопки на мобильном — на всю ширину, так удобнее тапать */
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        flex: 1;
        text-align: center;
    }
}

/* Очень узкие экраны — ещё плотнее */
@media (max-width: 420px) {
    .section,
    .philosophy {
        padding: 56px 0;
    }

    .section h2 {
        font-size: 30px;
    }

    .hero {
        padding: 48px 0 60px;
    }

    .hero h1 {
        font-size: 38px;
    }
}

/* ============ Переключатель языка ============ */
.lang-switch {
    color: var(--gold) !important;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 13px !important;
    padding: 4px 10px;
    border: 1px solid rgba(212, 185, 140, 0.35);
    border-radius: 100px;
    transition: all 0.25s ease;
}

.lang-switch:hover {
    background: rgba(212, 185, 140, 0.08);
    border-color: var(--gold);
}

.lang-switch::after {
    display: none;
}

@media (max-width: 768px) {
    .nav .lang-switch {
        display: inline-block;
    }
    .nav {
        display: flex !important;
        gap: 12px;
    }
    .nav a:not(.lang-switch) {
        display: none;
    }
}