:root {
  /* Основные цвета */
    --bg-color: #0a0a0a;
    --text-color: #FFFCF2;
    --input-bg: #2c2c2e;
    --button-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient1: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --button-text: #FFFCF2;
    --accent-color: #8b5cf6;
    --accent-light: #a78bfa;
    --radius: 12px;
    --radius-lg: 20px;
    --gap-md: 12px;
    --gap-xxl: 24px;
    --blur: 12px;
    --card-bg: rgba(44, 44, 46, 0.4);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@font-face {
  font-family: 'Benzin';
  src: url('static/fonts/Benzin-Bold.woff2') format('woff2');
  font-weight: normal;
  font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
  src: url('static/fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: normal;
  font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
  src: url('static/fonts/Montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
  src: url('static/fonts/Montserrat-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

html, body {
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100%;
    position: relative;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0;
    color: var(--text-color);
    scroll-behavior: smooth;
}

html {
    background: var(--bg-color);
}

body {
    min-height: 100%;
    background-color: #0a0a0a;
    background-image: radial-gradient(
    ellipse 100% 30% at 50% -5%,
    rgba(139, 92, 246, 0.22) 0%,
    rgba(139, 92, 246, 0.08) 30%,
    rgba(139, 92, 246, 0.02) 55%,
    transparent 70%);
    position: relative;
    z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.005;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 100px 100px;
}

h2 {
    font-family: 'Benzin', sans-serif;
}

/* ============================================
   HERO — секция и двухколоночная структура
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px clamp(20px, 5vw, 140px) 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 60px);
    max-width: 1800px;
    width: 100%;
}

/* Левая колонка — контент */
.hero-content {
    flex: 2;
    min-width: 0;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Правая колонка — изображение */
.hero-media {
    flex: 1.4 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-media__img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


/* Общий шаблон ряда — для плееров и кнопок */
.hero-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
}

.hero-h1 {
    font-family: 'Benzin', sans-serif;
    font-size: clamp(16px, 1.7vw, 24px);
    color: rgba(255, 255, 255, 0.6);
}

.hero-title {
    font-family: 'Benzin', sans-serif;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 1rem;
   /* ← добавить */
}

.hero-title__line1 {
    display: block;
    font-size: clamp(56px, 11vw, 60px);
    color: #fff;
    margin-bottom: clamp(-8px, -3.5vw, -20px);
    width: fit-content;
    position: relative;
}

.hero-title__line2 {
    font-size: clamp(40px, 6.4vw, 94px);
    background: linear-gradient(90deg, #ec4899 0%, #6366f1 50%, #ec4899 100%);
    background-size: 200% auto;
    padding-top: 10px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-family: 'Benzin', sans-serif;
    animation: gradientFlow 6s linear infinite;
}

@keyframes gradientFlow {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-posttitle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(12px, 0.95vw, 14px);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.5rem;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
    animation: sdFadeUp 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-posttitle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.25), transparent);
    animation: badgeShimmer 3s infinite;
    animation-delay: 2s;
}

@keyframes badgeShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.hero-posttitle__role {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
}

.hero-posttitle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.25), transparent);
    animation: badgeShimmer 4s infinite 2s backwards;
}

.hero-description {
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 2rem;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description strong {
    color: #ec4899;
    font-weight: 700;
    white-space: nowrap;
}

/* Hero-статистика */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    color: var(--text-color);
    justify-content: center;
}

.stat {
    text-align: center;
    flex-shrink: 0;
}

.stat-number {
    font-family: 'Benzin', sans-serif;
    font-size: 2.6rem;
    background: var(--gradient1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
}

/* Hero actions (кнопки) */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
    justify-content: center;
}

.btn.large {
    font-size: 1.1rem;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 14px;
}

.btn.equal {
    flex: 1;
    text-align: center;
    min-width: 220px;
    max-width: 300px;
}

/* Универсальная база для специальных вариантов кнопок (используется и в hero, и в калькуляторе) */
.btn.calculate,
.btn.order {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 14px;
    text-decoration: none;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    background: transparent;
}

/* Кнопка "Рассчитать стоимость" — синий неон */
.btn.calculate {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid #6366f1;
    color: #c7d2fe;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.btn.calculate:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: #818cf8;
    color: #fff;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5),
              0 0 40px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.btn.calculate:active {
    transform: translateY(0) scale(0.98);
}

/* Кнопка "Заказать" — розовый неон */
.btn.order {
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid #ec4899;
    color: #ffc9e0;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

.btn.order:hover {
    background: rgba(236, 72, 153, 0.15);
    border-color: #f472b6;
    color: #fff;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.5),
              0 0 40px rgba(236, 72, 153, 0.3);
    transform: translateY(-2px);
}

.btn.order:active {
    transform: translateY(0) scale(0.98);
}

/* ============================================
   HERO — анимированный фон (волны)
   ============================================ */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.animated-bg svg {
    width: 100%;
    height: 100%;
    filter:blur(1px);
}

.wave path {
    stroke: #667eea;
    stroke-width: 1.5;
    fill: none;
    filter: drop-shadow(0 0 6px #764ba2);
    animation: waveGlow 3s ease-in-out infinite alternate;
}

@keyframes waveGlow {
    0% {
        opacity: 0.3;
        filter: drop-shadow(0 0 6px #764ba2);
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 6px #764ba2);
    }
}

.wave1 path {
    animation: waveMove1 6s ease-in-out infinite alternate, waveGlow 5s ease-in-out infinite alternate;
}

.wave2 path {
    animation: waveMove2 8s ease-in-out infinite alternate, waveGlow 3s ease-in-out infinite alternate;
}

.wave3 path {
    animation: waveMove3 7s ease-in-out infinite alternate, waveGlow 2s ease-in-out infinite alternate;
}

.wave4 path {
    animation: waveMove4 9s ease-in-out infinite alternate, waveGlow 6s ease-in-out infinite alternate;
}

.wave5 path {
    animation: waveMove5 10s ease-in-out infinite alternate, waveGlow 1s ease-in-out infinite alternate;
}

@keyframes waveMove1 {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-8px);
    }
}

@keyframes waveMove2 {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(12px);
    }
}

@keyframes waveMove3 {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

@keyframes waveMove4 {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(6px);
    }
}

@keyframes waveMove5 {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-14px);
    }
}




/* ============================================
   HERO-ПЛЕЕР С ПЕРЕКЛЮЧАТЕЛЕМ ЯЗЫКА
   ============================================ */
.hero-player{
    position:relative;
    display:flex;align-items:center;gap:20px;
    padding:18px 22px;border-radius:20px;border:2px solid var(--card-border);
    background:linear-gradient(135deg,rgba(139,92,246,0.10),rgba(236,72,153,0.06)),rgba(30,30,35,0.6);
    backdrop-filter:blur(var(--blur));-webkit-backdrop-filter:blur(var(--blur));
    box-shadow:0 8px 24px rgba(0,0,0,0.4),inset 0 1px 0 rgba(255,255,255,0.06);
    overflow:hidden;transition:border-color .3s ease,box-shadow .3s ease;
}
.hero-player:hover{border-color:#9333ea;box-shadow:0 6px 28px rgba(147,51,234,0.35),inset 0 1px 0 rgba(255,255,255,0.08);}

/* кнопка плей */
.hp-play{
    position:relative;flex:0 0 auto;width:60px;height:60px;border:none;border-radius:50%;cursor:pointer;
    background:var(--gradient1);color:#fff;display:flex;align-items:center;justify-content:center;
    box-shadow:0 8px 22px rgba(139,92,246,0.45);transition:transform .18s,box-shadow .25s;
}
.hp-play:hover{transform:scale(1.06);box-shadow:0 10px 28px rgba(236,72,153,0.55);}
.hp-play:active{transform:scale(0.96);}
.hp-play svg{width:24px;height:24px;}
.hp-ico-pause{display:none;}
.hero-player.is-playing .hp-ico-play{display:none;}
.hero-player.is-playing .hp-ico-pause{display:block;}
.hp-play::after{content:'';position:absolute;inset:-4px;border-radius:50%;border:2px solid var(--accent-light);opacity:1;}
.hero-player.is-playing .hp-play::after{animation:hpRipple 1.8s ease-out infinite;}
@keyframes hpRipple{0%{opacity:.6;transform:scale(1);}100%{opacity:0;transform:scale(1.5);}}

.hp-body{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;gap:9px;}
.hp-top{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.hp-label{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase;color:var(--accent-light);}
.hp-dot{width:6px;height:6px;border-radius:50%;background:var(--pink,#ec4899);box-shadow:0 0 9px #ec4899;animation:hpBlink 2s ease-in-out infinite;}
@keyframes hpBlink{0%,100%{opacity:1;}50%{opacity:.3;}}

/* переключатель RU/EN */
.hp-lang{position:relative;display:flex;padding:3px;border-radius:10px;background:rgba(255,255,255,0.06);border:1px solid var(--card-border);}
.hp-pill{position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:7px;background:var(--gradient1);box-shadow:0 3px 10px rgba(139,92,246,0.4);transition:transform .28s cubic-bezier(.34,1.4,.64,1);}
.hp-lang[data-lang="en"] .hp-pill{transform:translateX(100%);}
.hp-lang button{position:relative;z-index:1;border:none;background:none;cursor:pointer;color:var(--muted,rgba(255,252,242,0.5));font-family:inherit;font-weight:700;font-size:12px;padding:5px 14px;transition:color .2s;}
.hp-lang button.on{color:#fff;}

/* волна */
.hp-wave{display:flex;align-items:center;gap:1px;height:20px;cursor:pointer;}
.hp-wave .bar{flex:1;border-radius:3px;min-width:2px;background:rgba(255,255,255,0.14);transition:transform .25s cubic-bezier(.34,1.56,.64,1);transform-origin:center;}
.hp-wave .bar.played{background:linear-gradient(90deg,#8b5cf6,#ec4899);box-shadow:0 0 7px rgba(139,92,246,0.5);}
.hero-player.is-playing .hp-wave .bar.played{animation:hpDance .9s ease-in-out infinite;}
@keyframes hpDance{0%,100%{transform:scaleY(1);}50%{transform:scaleY(.55);}}
.hero-player.is-playing .hp-wave .bar.played:nth-child(3n){animation-delay:-.3s;}
.hero-player.is-playing .hp-wave .bar.played:nth-child(3n+1){animation-delay:-.6s;}

.hp-bottom{display:flex;align-items:center;justify-content:space-between;font-variant-numeric:tabular-nums;font-size:12.5px;font-weight:600;}
.hp-cur{color:var(--text-color);}
.hp-dur{color:var(--muted,rgba(255,252,242,0.5));font-weight:500;}

@media(max-width:600px){
    .hero-player{
        max-width:100%;        /* во всю ширину — как пара кнопок «Стоимость»/«Заказать» */
        gap:14px;
        padding:10px 14px;     /* меньше вертикальных отступов = ниже плеер */
        border-radius:16px;
        align-self:stretch;
    }
    .hp-play{ width:44px; height:44px; }
    .hp-play svg{ width:18px; height:18px; }
    .hp-wave{ height:20px; }     /* основной регулятор высоты плеера */
    .hp-label{ font-size:10px; letter-spacing:1.2px; }
    .hp-lang button{ padding:4px 11px; font-size:11px; }
    .hp-bottom{ font-size:11px; }
}



/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    pointer-events: none;
}

.navbar-container {
    max-width: 1900px;
    min-height: 48px;
    margin: var(--gap-md) auto;
    padding: var(--gap-md) var(--gap-xxl);
    background-color: rgba(44, 44, 46, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.navbar-container:hover {
    border-color: #9333ea;
    box-shadow: 0 6px 28px rgba(147, 51, 234, 0.4);
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-color);
    white-space: nowrap;
    line-height: 1.1;
    user-select: none;
    cursor: pointer;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
    line-height: 1.1;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo:visited,
.logo:link,
.logo:hover,
.logo:active {
    color: var(--text-color);
    text-decoration: none;
    outline: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: var(--gap-md);
    position: relative;
    flex-shrink: 1;
}

.nav-lens {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 0;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.nav-lens::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 70%);
    opacity: 0.4;
    border-radius: inherit;
}

.nav-links a {
    position: relative;
    display: inline-block;
    padding: 8px 14px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 550;
    border-radius: 12px;
    transition: color 0.3s ease;
    z-index: 1;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    overflow: hidden;
    background: transparent;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links .highlight {
    font-weight: 800;
    background: transparent;
}

.nav-links .highlight::before {
    background: var(--button-bg);
    opacity: 1;
    transition: opacity 0.4s ease, filter 0.3s ease;
}

.nav-links .highlight:hover::before {
    filter: brightness(1.15);
}

.nav-hrono {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-hrono img {
    vertical-align: middle;
    position: relative;
    top: -1px;
 /* тонкая подгонка если останется смещение */
}

/* Бургер */
.burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 1000;
    position: relative;
}

.burger:hover {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.burger svg {
    overflow: visible;
}

.bar {
    stroke: var(--text-color);
    stroke-width: 8;
    stroke-linecap: round;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: 50% 50%;
}

.bar1 {
    transform: translateY(-20px);
}

.bar2 {
    transform: translateY(0);
}

.bar3 {
    transform: translateY(20px);
}

.burger.active .bar1 {
    transform: rotate(45deg);
}

.burger.active .bar2 {
    opacity: 0;
}

.burger.active .bar3 {
    transform: rotate(-45deg);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: calc(70px + 24px);
    right: 20px;
    max-width: 180px;
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    margin: 6px -6px;
    background-color: rgba(44, 44, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 20;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu a {
    position: relative;
    margin: 8px 0;
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 16px;
    border-radius: 12px;
    transition: color 0.3s ease;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.mobile-menu a:hover::before,
.mobile-menu a:active::before {
    opacity: 1;
}

/* ============================================
   КНОПКИ
   ============================================ */
.btn {
    display: inline-block;
    padding: var(--gap-md) var(--gap-xxl);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    background: var(--button-bg);
    color: var(--button-text);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    transform: translateY(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.25), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.btn.calculate::before {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.45), transparent);
}

.btn.order::before,
.btn-ordr::before {
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.45), transparent);
}

.btn-telegram::before {
    background: linear-gradient(90deg, transparent, rgba(0, 136, 204, 0.45), transparent);
}

.btn-whatsapp::before {
    background: linear-gradient(90deg, transparent, rgba(37, 211, 102, 0.45), transparent);
}

.btn-vk::before {
    background: linear-gradient(90deg, transparent, rgba(0, 119, 255, 0.45), transparent);
}

.btn-kwork::before {
    background: linear-gradient(90deg, transparent, rgba(255, 168, 0, 0.45), transparent);
}

.btn-email::before {
    background: linear-gradient(90deg, transparent, rgba(234, 67, 53, 0.45), transparent);
}

.btn-bot::before {
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.45), transparent);
}

.btn:hover::before {
    left: 100%;
}

/* hero/navbar кнопки: убираем блик и резкую подсветку — плавный glow как у .cta в калькуляторе */
.btn.calculate::before,
.btn.order::before,
.btn-ordr::before {
    display: none;
}

.btn.calculate:hover,
.btn.order:hover,
.btn-ordr:hover {
    filter: none;
}

.btn:hover {
    background: var(--button-bg);
    filter: brightness(1.1);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: scale(0.98);
}

.btn,
.btn:link,
.btn:visited,
.btn:hover,
.btn:active {
    text-decoration: none;
}

/* Кнопка "Заказать озвучку" в шапке */
.btn-ordr {
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 8px 14px;
    margin-left: auto;
    display: block;
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
    transition: all 0.3s ease;
    color: #ffc9e0;
}

.btn-ordr:hover {
    background: rgba(236, 72, 153, 0.15);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.6),
              0 0 40px rgba(236, 72, 153, 0.3);
    border-color: #f472b6;
    color: #fff;
    transform: translateY(-1px);
}

.btn-ordr:active {
    transform: translateY(0) scale(0.98);
}

.btn-text-full  { display: inline; }
.btn-text-short { display: none; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 46px;
    margin: 12px auto;
    max-width: 1200px;
    background-color: rgba(44, 44, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1;
    color: var(--text-color);
    text-align: center;
    z-index: 2;
}

.footer p {
    font-size: 16px;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
}

/* ============================================
   ABOUT — обо мне
   ============================================ */
.about {
    padding: 80px 20px;
}

.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    flex-basis: 100%;
}

.about h2 {
    font-size: 2rem;
}

.about-photo img {
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    max-width: 500px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.about-text {
    flex: 1;
    min-width: 260px;
}

.about-text p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 16px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left;
}

.about-photo,
.about-text {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-photo {
    transform: translateX(-60px);
}

.about-text {
    transform: translateX(60px);
}

.about-photo.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-text.visible {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio {
    padding: 80px 20px;
}

.portfolio-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.portfolio h2 {
    font-size: 2rem;
}

.portfolio-wrapper .section-subtext {
    opacity: 0.8;
    margin-bottom: 32px;
}

.portfolio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.portfolio-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.7s ease-out,
    transform 0.4s ease, 
    filter 0.7s ease-out,
    border-color 0.6s ease,
    box-shadow 0.6s ease;
    z-index: 1;
}

/* Начальное состояние */
.portfolio-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(4px);
}

.portfolio-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@media (max-width: 768px) {
    .portfolio-card {
        opacity: 0.7;
        transform: translateY(0px) scale(0.95);
    }
}

.portfolio-card iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    flex-shrink: 0;
    min-height: 0;
 /* важно для flex */
}

/* Неоновое свечение карточки при hover */
.portfolio-card:hover {
    border-color: #9333ea;
    box-shadow: 0 0px 48px rgba(147, 51, 234, 0.9);
    z-index: 10;
    transform:scale(1.1);
}


/* Подпись в углу карточки */
.video-label {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    text-align: left;
}

.video-label h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.video-label p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}




/* ============================================
   КАСТОМНЫЙ ВИДЕОПЛЕЕР ПОРТФОЛИО
   ============================================ */
.vplayer{
    position:absolute; inset:0; width:100%; height:100%;
    background:#0a0a0a; overflow:hidden; user-select:none; z-index:2;
}
.vplayer video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;background:#0a0a0a;}

/* затемнение под контролами */
.vplayer::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;
    background:linear-gradient(to top,rgba(0,0,0,0.72) 0%,rgba(0,0,0,0.12) 24%,transparent 42%);
    opacity:0;transition:opacity .3s;}
.vplayer.show-ui::after,.vplayer.paused::after{opacity:1;}

/* центральная кнопка плей */
.v-big{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(1);z-index:4;
    width:64px;height:64px;border:none;border-radius:50%;cursor:pointer;background:var(--gradient1);color:#fff;
    display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px rgba(139,92,246,0.5);
    transition:transform .25s cubic-bezier(.34,1.56,.64,1),opacity .25s;}
.v-big svg{width:26px;height:26px;margin-left:3px;}
.v-big:hover{transform:translate(-50%,-50%) scale(1.08);box-shadow:0 12px 38px rgba(236,72,153,0.6);}
.vplayer.playing .v-big{opacity:0;transform:translate(-50%,-50%) scale(.6);pointer-events:none;}
.v-big::after{content:'';position:absolute;inset:-6px;border-radius:50%;border:2px solid var(--accent-light);opacity:0;animation:vrip 2s ease-out infinite;}
@keyframes vrip{0%{opacity:.5;transform:scale(1);}100%{opacity:0;transform:scale(1.4);}}

/* спиннер буферизации */
.v-spin{position:absolute;top:50%;left:50%;width:42px;height:42px;margin:-21px;z-index:4;
    border:3px solid rgba(255,255,255,0.2);border-top-color:var(--accent-light);border-radius:50%;
    opacity:0;pointer-events:none;animation:vspin .8s linear infinite;transition:opacity .2s;}
.vplayer.buffering .v-spin{opacity:1;}
@keyframes vspin{to{transform:rotate(360deg);}}

/* панель контролов */
.v-ctrl{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:0 12px 10px;
    display:flex;flex-direction:column;gap:6px;transform:translateY(12px);opacity:0;transition:.3s;pointer-events:none;}
.vplayer.show-ui .v-ctrl,.vplayer.paused .v-ctrl{transform:translateY(0);opacity:1;pointer-events:auto;}

/* полоса перемотки */
.v-scrub{position:relative;height:14px;display:flex;align-items:center;cursor:pointer;}
.v-track{position:relative;width:100%;height:4px;border-radius:3px;background:rgba(255,255,255,0.22);transition:height .15s;}
.v-scrub:hover .v-track{height:6px;}
.v-buf{position:absolute;left:0;top:0;height:100%;border-radius:3px;background:rgba(255,255,255,0.25);width:0;}
.v-played{position:absolute;left:0;top:0;height:100%;border-radius:3px;background:linear-gradient(90deg,#8b5cf6,#ec4899);width:0;}
.v-thumb{position:absolute;top:50%;left:0;width:13px;height:13px;border-radius:50%;background:#fff;
    transform:translate(-50%,-50%) scale(0);transition:transform .15s;box-shadow:0 0 0 4px rgba(139,92,246,0.4);}
.v-scrub:hover .v-thumb,.v-scrub.drag .v-thumb{transform:translate(-50%,-50%) scale(1);}
.v-tip{position:absolute;bottom:16px;transform:translateX(-50%);padding:3px 7px;border-radius:6px;
    background:rgba(0,0,0,0.8);font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;opacity:0;transition:opacity .15s;pointer-events:none;}
.v-scrub:hover .v-tip,.v-scrub.drag .v-tip{opacity:1;}

/* нижний ряд */
.v-row{display:flex;align-items:center;gap:10px;}
.v-btn{width:32px;height:32px;border:none;border-radius:8px;cursor:pointer;background:transparent;color:#fff;
    display:flex;align-items:center;justify-content:center;transition:background .2s,transform .15s;flex:0 0 auto;}
.v-btn:hover{background:rgba(255,255,255,0.14);}
.v-btn svg{width:19px;height:19px;}
.v-btn .pause,.v-btn .vol-mute{display:none;}
.vplayer.playing .v-row .play{display:none;}
.vplayer.playing .v-row .pause{display:block;}
.vplayer.muted .vol-on{display:none;}
.vplayer.muted .vol-mute{display:block;}

.v-volume{display:flex;align-items:center;gap:4px;}
.v-vol-slider{width:0;opacity:0;height:4px;border-radius:3px;cursor:pointer;transition:width .25s,opacity .25s;
    -webkit-appearance:none;appearance:none;background:rgba(255,255,255,0.25);}
.v-volume:hover .v-vol-slider{width:56px;opacity:1;}
.v-vol-slider::-webkit-slider-thumb{-webkit-appearance:none;width:11px;height:11px;border-radius:50%;background:#fff;cursor:pointer;}
.v-vol-slider::-moz-range-thumb{width:11px;height:11px;border:none;border-radius:50%;background:#fff;cursor:pointer;}

.v-time{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:#fff;}
.v-time .sep,.v-time .dur{color:rgba(255,255,255,0.6);font-weight:500;}
.v-spacer{flex:1;}

/* на узких карточках прячем громкость, чтобы не теснить */
@media(max-width:600px){
    .v-volume{display:none;}
    .v-big{width:54px;height:54px;}
}



/* ============================================
   PRICING (контейнер, тарифы calc-* — в voiceprice.css)
   ============================================ */
.pricing {
    padding: 80px 20px;
}

.pricing-wrapper {
    min-height: 50vh;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pricing h2 {
    font-size: 2rem;
}

.section-subtext {
    text-align: center;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 8px auto 40px;
    opacity: 0.7;
    line-height: 1.4;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews {
    padding: 80px 20px;
}

.reviews-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.reviews h2 {
    font-size: 2rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    align-items: stretch;
}

.review-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.06)),
    rgba(30, 30, 35, 0.6);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: opacity 0.5s ease-out,
    transform 0.5s ease-out,
    filter 0.5s ease-out,
    border-color 0.3s ease-out,
    box-shadow 0.3s ease-out;
}

/* Начальное состояние для анимации появления */
.review-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(4px);
}

.review-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@media (max-width: 768px) {
    .review-card {
        opacity: 0.7;
        transform: translateY(0px) scale(0.95);
    }
}

.review-card:hover {
    transform: translateY(0) scale(1.05);
  /* ← было scale: 1.05 */
    border-color: #9333ea;
    box-shadow: 0 6px 28px rgba(147, 51, 234, 0.4);
}

.review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.8;
}

.stars {
    color: gold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.date {
    letter-spacing: 1px;
    font-size: 0.95rem;
    opacity: 0.75;
}

.review-card p {
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: 80px 20px;
}

.faq-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    flex-basis: 100%;
}

.faq-content {
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
}

.faq h2 {
    font-size: 2rem;
}

.faq-item {
    border-radius: var(--radius);
    background: var(--input-bg);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  /* Анимация появления */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-question {
    background: none;
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
    width: 100%;
    padding: 16px 20px;
    text-align: left;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-question:hover {
    background: rgba(255,255,255,0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    padding: 0 20px;
}

.faq-answer p {
    margin: 12px 0 16px;
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    max-height: 700px;
    opacity: 1;
}

/* ============================================
   CONTACTS
   ============================================ */

.contacts {
    padding: 80px 20px;
}

.contacts-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contacts-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.contacts h2 {
    font-size: 2rem;
}

.contacts .section-subtext {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 8px auto 40px;
    opacity: 0.7;
    line-height: 1.4;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
    gap: 20px;
}

.contact-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.contact-card p {
    font-size: 0.95rem;
    opacity: 0.75;
    max-width: 500px;
    line-height: 1.5;
}

.contact-card a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contacts-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

.contacts-content .btn {
    padding: 16px 8px;
    background: rgba(44, 44, 46, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #FFFCF2;
    font-weight: 600;
    font-size: 0.82rem;
    text-align: center;
}

.contacts-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.contacts-content .btn:active {
    transform: translateY(0) scale(0.98);
}

/* Аватар с индикатором онлайн */
.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-wrapper img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.online-indicator {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background-color: #4ade80;
    border: 1px solid #1e1e1e;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.online-indicator::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(74, 222, 128, 0.4);
    animation: avatar-pulse 1.5s ease-out infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

@keyframes avatar-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

/* Иконки в кнопках */
.btn-icon {
    font-size: 1.5rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  /* Для <img> добавляем: */
    object-fit: contain;
    color: #FAFAFA;
}

.btn-vk {
    border-color: #0077FF;
    background: rgba(0, 119, 255, 0.08);
}

.btn-vk:hover {
    background: rgba(0, 119, 255, 0.15);
    border-color: #0077FF;
    box-shadow: 0 0 25px rgba(0, 119, 255, 0.6),
              0 0 40px rgba(0, 119, 255, 0.3),
              inset 0 0 15px rgba(0, 119, 255, 0.1);
    transform: translateY(-2px);
}

.btn-telegram {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.08);
}

.btn-telegram:hover {
    background: rgba(0, 136, 204, 0.15);
    border-color: #0088cc;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.4),
              0 0 35px rgba(0, 136, 204, 0.2);
    transform: translateY(-2px);
}

.btn-whatsapp {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.08);
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4),
              0 0 35px rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}

.btn-kwork {
    border-color: #FFA800;
    background: rgba(255, 168, 0, 0.08);
}

.btn-kwork:hover {
    background: rgba(255, 168, 0, 0.15);
    border-color: #FFA800;
    box-shadow: 0 0 20px rgba(255, 168, 0, 0.4),
              0 0 35px rgba(255, 168, 0, 0.2);
    transform: translateY(-2px);
}

.btn-email {
    border-color: #EA4335;
    background: rgba(234, 67, 53, 0.08);
}

.btn-email:hover {
    background: rgba(234, 67, 53, 0.15);
    border-color: #EA4335;
    box-shadow: 0 0 20px rgba(234, 67, 53, 0.4),
              0 0 35px rgba(234, 67, 53, 0.2);
    transform: translateY(-2px);
}

.btn-bot {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}

.btn-bot:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4),
              0 0 35px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}







/* ============================================
   КАРУСЕЛЬНЫЕ ТОЧКИ-ИНДИКАТОРЫ
   ============================================ */
.carousel-dots {
    display: none;
}

/* ============================================
   МЕДИА-ЗАПРОСЫ
   ============================================ */

/* — 1900px: только отступ навбара */
@media (max-width: 1900px) {
    .navbar-container {
        margin: 12px;
    }
}

/* — 1280px и выше: показываем основное меню, скрываем мобильное */
@media (min-width: 1450px) {
    .mobile-menu {
        display: none !important;
    }
}

/* — 1279px: переход на мобильное меню */
@media (max-width: 1449px) {
    .burger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .btn-text-full {
        display: none;
    }

    .btn-text-short {
        display: inline;
    }

    .btn-ordr {
        padding: 8px 12px;
    }
}

/* — 1024px: портфолио в 2 колонки */
@media (max-width: 1024px) {
    .portfolio-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* — 900px: HERO переходит в одну колонку */
@media (max-width: 900px) {
    .hero-section {
        height: auto;
        min-height: 50vh;
        min-height: 50dvh;
        padding: 100px 20px 40px;
        align-items: flex-start;
        overflow: visible;
    }

    .hero-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto;
        text-align: center;
    }

  /* Картинка визуально первой */
    .hero-media {
        order: -1;
        width: 100%;
        flex: 0 0 auto;
        align-items: center;
        align-self: auto;
    }

    .hero-media__img {
        width: 100%;
        max-width: 320px;
        height: auto;
        margin-bottom: -40px;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        align-items: center;
        justify-content: flex-start;
    }

    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.2;
    }

    .hero-description strong {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-posttitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 12px;
        margin-top: 24px;
    }

    .btn.equal {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }
}

/* — 768px: мобильные правила (футер, контакты, портфолио-карусель, отзывы-карусель) */
@media (max-width: 768px) {
    .footer {
        margin: 12px;
    }

    .about-wrapper {
        text-align: center;
        align-items: center;
    }

    .about-text {
        text-align: center;
    }

    .contacts-content .btn {
        padding: 14px 6px;
        font-size: 0.76rem;
    }

    .btn-icon {
        width: 24px;
        height: 24px;
    }

  /* Hero-кнопки — компактнее, в строку */
    .hero-actions {
        gap: 6px;
        padding: 0;
    }

    .btn.equal {
        width: auto;
        box-sizing: border-box;
    }

    .hero-actions .btn {
        padding: 14px 12px;
        font-size: 1rem;
        white-space: nowrap;
        box-sizing: border-box;
    }

  /* === Карусель: portfolio + reviews === */
    .portfolio-cards,
  .reviews-grid {
        display: flex;
        grid-template-columns: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 14px;
        padding: 8px 20px 24px;
        margin: 0 -20px;
        scrollbar-width: none;
        scroll-padding-inline: 20px;
    }

    .portfolio-cards::-webkit-scrollbar,
  .reviews-grid::-webkit-scrollbar {
        display: none;
    }

    .portfolio-card,
  .review-card {
        flex: 0 0 calc(100% - 56px);
        min-width: 0;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

  /* Отключаем hover-эффекты на тач-устройствах */
    .portfolio-card:hover,
  .review-card:hover {
        transform: none;
        scale: 1;
        box-shadow: var(--card-shadow);
        border-color: var(--card-border);
    }

    .portfolio-wrapper,
  .reviews-wrapper {
        position: relative;
    }

  /* Хвостик — последняя карточка не упирается в край */
    .portfolio-cards::after,
  .reviews-grid::after {
        content: '';
        flex: 0 0 6px;
    }

  /* === Точки-индикаторы карусели === */
    .carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 16px;
        padding: 0 20px;
        flex-wrap: wrap;
    }

    .carousel-dot {
        --progress: 0;
        position: relative;
        width: calc(8px + 16px * var(--progress));
        height: 8px;
        padding: 0;
        border: none;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.25);
        cursor: default;
        overflow: hidden;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        transition: width 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.18s ease;
    }

    .carousel-dot::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: var(--gradient1);
        opacity: var(--progress);
        transition: opacity 0.18s ease;
    }
}

/* — 600px: компактный HERO + аудиоплееры */
@media (max-width: 768px) {
    .hero-section {
        padding: 90px 16px 30px;
    }

    .hero-media__img {
        max-width: 260px;
    }

    .hero-posttitle {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-posttitle__role {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .hero-posttitle__role::before {
        display: none;
    }
}

/* — 480px: ещё компактнее изображение */
@media (max-width: 480px) {
    .hero-media__img {
        max-width: 220px;
    }
}

/* — 420px и 360px: «peek» соседних карточек в карусели уменьшаем */
@media (max-width: 420px) {
    .portfolio-card,
  .review-card {
        flex: 0 0 calc(100% - 48px);
    }
}

@media (max-width: 360px) {
    .portfolio-card,
  .review-card {
        flex: 0 0 calc(100% - 32px);
    }
}




/* ============================================ */
/* МОДАЛЬНОЕ ОКНО */
/* ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.modal-active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    transition: backdrop-filter 0.35s ease, background 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
}

/* Активное состояние с блюром */
.modal-overlay.active {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    z-index: 1;
    background-color: rgba(44, 44, 46, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content.modal-small {
    max-width: 440px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalPopOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    30% {
        opacity: 1;
        transform: scale(1.04);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.modal.modal-closing .modal-content {
    animation: modalPopOut 0.32s ease forwards;
}

.modal.modal-closing .modal-overlay {
    animation: modalFadeOut 0.3s ease-out forwards;
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: rgba(255, 252, 242, 0.7);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal-close:hover {
    background: rgba(236, 72, 153, 0.18);
    border-color: rgba(236, 72, 153, 0.5);
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 22px;
    flex: 1;
    overflow-y: auto;
}

/* Уведомление «скопировано» */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    padding: 16px 28px;
    border-radius: 14px;
    background: #16a34a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 22px rgba(34, 197, 94, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast.toast-hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Mobile */
@media (max-width: 768px) {
    .modal {
        padding: 0;
    }

    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }

    .toast {
        bottom: 20px;
        max-width: calc(100% - 40px);
        font-size: 0.9rem;
        padding: 14px 22px;
    }
}

/* ============================================
   БРЕНДОВАЯ КНОПКА ПЛЕЙ (постер + плеер) — единый вид
   ============================================ */
.portfolio-video__btn, .v-big{
    position:absolute; top:50%; left:50%;
    transform:translate(-50%,-50%) scale(1);
    width:64px; height:64px; padding:0; z-index:4;
    border:none; border-radius:50%; cursor:pointer; outline:none;
    background:var(--gradient1); color:#fff;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 10px 30px rgba(139,92,246,0.5);
    transition:transform .25s cubic-bezier(.34,1.56,.64,1), opacity .25s, box-shadow .25s;
}
.portfolio-video__btn svg, .v-big svg{ width:26px; height:26px; margin-left:3px; }
.portfolio-video__btn:hover, .v-big:hover{
    transform:translate(-50%,-50%) scale(1.08);
    box-shadow:0 12px 38px rgba(236,72,153,0.6);
}

@keyframes vrip{0%{opacity:.5;transform:scale(1);}100%{opacity:0;transform:scale(1.4);}}
/* в плеере кнопка прячется во время воспроизведения */
.vplayer.playing .v-big{ opacity:0; transform:translate(-50%,-50%) scale(.6); pointer-events:none; }

/* затемнение постера при наведении (оставляем как было) */
.portfolio-video img{ transition:filter .3s ease; }
.portfolio-video:hover img{ filter:brightness(0.7); }