/* ================= ПЕРЕМЕННЫЕ ================= */
:root {
    --bg-page: #f6f6f6;
    --bg-dark: #1B1B1C;
    --text-dark: #1B1B1C;
    --color-accent: #B15CE9;
    
    --width-content: 1080px;
    --width-block: 1240px;
    
    --font-main: 'Inter', sans-serif;
    
    /* Переменные для заголовков */
    --h1-size: 54px;
    --h2-size: 48px;
    --h3-size: 28px;
    
    /* Отступ между всеми блоками */
    --section-gap: 100px;
    
    --radius-large: 40px;
    --radius-small: 16px;
    --transition: 0.3s ease-in-out;
}

/* ================= БАЗОВЫЕ НАСТРОЙКИ ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-page);
    color: var(--text-dark);
    font-family: var(--font-main);
    line-height: 1.4;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ================= СЕТКА И БЛОКИ ================= */
.container {
    max-width: var(--width-content);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 10px;
}

/* Темный блок */
.section-dark {
    width: 100%;
    max-width: var(--width-block);
    background-color: var(--bg-dark);
    color: #ffffff;
    border-radius: var(--radius-large);
}

/* Темный блок */
.section-dark-small {
    width: 100%;
    max-width: var(--width-content);
    background-color: var(--bg-dark);
    color: #ffffff;
    border-radius: var(--radius-large);
}

/* Блок без фона*/
.section-transparent {
    width: 100%;
    max-width: var(--width-block);
    color: inherit;
}

/* Класс для одинакового отступа 100px между блоками */
.section-gap {
    margin-bottom: var(--section-gap);
}

/* ================= ТИПОГРАФИКА ================= */
h1 { font-size: var(--h1-size); font-weight: 700; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: var(--h2-size); font-weight: 700; margin-bottom: 40px; }
h3 { font-size: var(--h3-size); font-weight: 700; margin-bottom: 15px; }

.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }

/* Адаптив типографики */
@media (max-width: 1024px) {
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    h3 { font-size: 24px; }
}
@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
}

/* ================= КНОПКИ ================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-accent);
    color: #fff;
    padding: 6px 6px 6px 24px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(177, 92, 233, 0.3);
}
.btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 16px;
    transition: var(--transition);
}
.btn-primary:hover .btn-arrow { background-color: #fff; color: var(--bg-dark); }

.btn-small {
    background-color: var(--color-accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
}
@media (max-width: 480px) {

}

/* уни ховер */
.btn-hover-fx {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.4s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn-hover-fx:hover { opacity: 0.85; }


/* ================= HEADER ================= */

.header {
    position: relative; 
    top: 0;
    z-index: 100;
    padding: 20px;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
  display: inherit;
}

.logo svg{
  max-width: 138px;
}

@media (max-width: 480px) { 
	.logo svg{
	  max-width: 118px;
	}
}

.nav-list { display: flex; gap: 30px; }
.nav-link { font-size: 16px; transition: var(--transition); }
.nav-link:hover { color: var(--color-accent); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.nav-link.active {
    color: var(--color-accent);
    font-weight: bold; 
}

.header-clone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    padding: 10px;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    pointer-events: none; 
}

.header-clone.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.header-clone .header-container {
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 10px 25px;
    max-width: var(--width-content); 
    margin: 0 auto;
}

.header-clone .logo {
    font-size: 18px;
}

/* ================= МОБИЛЬНОЕ МЕНЮ ================= */
html { scrollbar-gutter: stable; }

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    z-index: 105;
}

.burger-menu span {
    width: 100%; 
    height: 2px;
    background-color: var(--text-dark);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
    .burger-menu { display: flex; }
    
    .nav-menu {
        position: fixed; 
        top: 70px;
        left: 0; 
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-page);
        display: flex;
        align-items: center;      
        justify-content: center;  
        clip-path: circle(0% at 100% 0); 
        transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
		border-radius: 20px;
    }
    
    .nav-menu.active { 
        clip-path: circle(150% at 100% 0); 
    }
    
    .nav-list { 
        flex-direction: column; 
        align-items: center; 
        gap: 40px; 
        padding: 0;
    }

    .nav-link {
        font-size: 28px;
        font-weight: 500;
        color: var(--text-dark);
        display: inline-block;
        position: relative;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: var(--color-accent);
        transition: width 0.3s ease;
        border-radius: 2px;
    }

    .nav-link:hover {
        color: var(--color-accent);
        transform: scale(1.05) !important;
    }

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

    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-menu.active li:nth-child(1) .nav-link { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) .nav-link { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) .nav-link { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) .nav-link { transition-delay: 0.4s; }
}

/* ================= HERO ================= */
.hero-section { overflow: hidden; }
.hero-container {
    display: grid;
    grid-template-columns: 5.5fr 6.5fr; 
    align-items: center;
    padding: 80px 40px 0 80px; 
    gap: 40px;
    position: relative;
    border-radius: var(--radius-large);
}
.hero-glow-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius-large); pointer-events: none; z-index: 1; }
.hero-glow-overlay { position: absolute; top: 30%; right: 5%; width: 380px; height: 380px; background-color: var(--color-accent); filter: blur(120px); border-radius: 50%; opacity: 0.35; }
.hero-content { padding-bottom: 80px; position: relative; z-index: 5; }
.hero-eyebrow { display: block; color: #6B7280; font-size: 14px; margin-bottom: 20px; font-weight: 500; }
.hero-title { line-height: 1.1; margin-bottom: 30px; }
.hero-title .title-accent { font-style: italic; color: var(--color-accent); font-weight:500;}

/* Строка с текстом и статистикой */
.hero-info-row { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    margin-bottom: 40px; 
}
.hero-desc { 
    color: #9CA3AF; 
    font-size: 15px; 
    line-height: 1.6; 
    max-width: 340px; 
    margin: 0; 
}

/* виджет статистики */
.hero-stats { 
    position: relative;              
    overflow: hidden;                
    isolation: isolate;           
    display: flex; 
    flex-direction: column; 
    align-items: center;
    flex-shrink: 0; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 15px 25px;
    border-radius: 16px;
    backdrop-filter: blur(4px);      
}

/* Размытый */
.hero-stats::before {
    content: "";
    position: absolute;
    z-index: -1;                   
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        var(--color-accent) 0%,
        rgba(177, 92, 233, 0.5) 40%,
        transparent 70%
    );
    filter: blur(20px);             
    opacity: 0.9;
    animation: blobMove 8s ease-in-out infinite;
}

@keyframes blobMove {
    0% {
        top: -20px;
        left: -20px;
        transform: scale(1);
    }
    20% {
        top: -20px;
        left: calc(100% - 60px);
        transform: scale(1.2);
    }
    40% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
    }
    60% {
        top: calc(100% - 60px);
        left: -20px;
        transform: scale(1.15);
    }
    80% {
        top: calc(100% - 60px);
        left: calc(100% - 60px);
        transform: scale(1);
    }
    100% {
        top: -20px;
        left: -20px;
        transform: scale(1);
    }
}

.hero-stats .stat-num { 
    position: relative;
    z-index: 1;
    font-size: 32px; 
    font-weight: 700; 
    color: #fff;                  
    line-height: 1; 
    margin-bottom: 5px; 
}
.hero-stats .stat-text { 
    position: relative;
    z-index: 1;
    font-size: 12px; 
    color: #E5E7EB; 
    line-height: 1.3; 
    text-align: center; 
    letter-spacing: 0.5px; 
}

/* Кнопка  */
.hero-composite-btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: gap var(--transition); }
.hero-composite-btn .btn-pill { position: relative; overflow: hidden; background-color: var(--color-accent); color: #ffffff; font-weight: 500; font-size: 16px; padding: 16px 32px; border-radius: 100px; transition: color var(--transition); z-index: 1; }
.hero-composite-btn .btn-pill::before { content: ""; position: absolute; inset: 0; background-color: #f2f2f2; transform: translateX(-101%); transition: transform var(--transition); z-index: -1; }
.hero-composite-btn .btn-pill span, .hero-composite-btn .btn-pill { position: relative; }
.hero-composite-btn .btn-circle { display: flex; justify-content: center; align-items: center; background-color: #2a2a2b; width: 52px; height: 52px; border-radius: 50%; transition: background-color var(--transition), transform var(--transition); }
.arrow-icon { transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1); }

.hero-composite-btn:hover { gap: 4px; }
.hero-composite-btn:hover .btn-pill { color: var(--text-dark); }
.hero-composite-btn:hover .btn-pill::before { transform: translateX(0); }
.hero-composite-btn:hover .btn-circle { background-color: var(--color-accent); transform: scale(1.06); }
.hero-composite-btn:hover .arrow-icon { animation: arrowFly 0.4s cubic-bezier(0.65, 0, 0.35, 1); }

@keyframes arrowFly {
    0% { transform: translate(0, 0); }
    45% { transform: translate(14px, -14px); }
    46% { transform: translate(-14px, 14px); }
    100% { transform: translate(0, 0); }
}

/* ================= Визуал и Слайдер ================= */
.hero-visual {
    position: relative; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
}

/* =======================================
   НАСТРОЙКА РАЗМЕРОВ 
   ======================================= */
.stack {
    position: relative;
    
    /* 1. Ширина одной карточки */
    --card-w: 340px; 
    /* 2. Отступ (на сколько выглядывают задние) */
    --shift: 60px;   
    width: calc(var(--card-w) + var(--shift) * 2);
    height: calc(var(--card-w) * 4 / 3);
    
    margin-bottom: 68px;
}

/* СЛОЙ 1 — сдвиг по X (края) + z-index */
.s-card {
    position: absolute; top: 0; left: 0;
    width: var(--card-w); 
    aspect-ratio: 3/4;
    border: none; padding: 0; margin: 0; cursor: pointer;
    background: transparent;
    z-index: calc(10 - var(--n));
    transform: translateX(calc(var(--n) * var(--shift)));
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* СЛОЙ 2 — только hover-подъём. */
.s-lift {
    position: absolute; inset: 0;
    display: block;
    transform: translateY(0);
    transition: transform .45s cubic-bezier(.34,1.2,.64,1), filter .45s ease;
    will-change: transform;
}

/* СЛОЙ 3 — визуал + пиано-анимация */
.s-inner {
    position: absolute; inset: 0;
    border-radius: 22px; overflow: hidden; background: #1a1a1a;
    display: block;
    transform: translateY(0);
    will-change: transform;
}
.s-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-inner::after { content:''; position:absolute; inset:0; border-radius:22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events:none; transition: box-shadow .4s; }

/* задние приглушены */
.s-card:nth-child(2) .s-lift { filter: brightness(.8); }
.s-card:nth-child(3) .s-lift { filter: brightness(.5); }

/* ИКОНКА */
.s-icon {
    position: absolute; top: 14px; right: 14px;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20,20,24,.55); backdrop-filter: blur(6px);
    color: #fff;
    opacity: 0; transform: scale(.7);
    transition: opacity .35s ease, transform .35s cubic-bezier(.34,1.4,.64,1);
    pointer-events: none; z-index: 2;
}
.s-icon svg { width: 18px; height: 18px; }

/* НАВЕДЕНИЕ */
.s-card:hover .s-lift {
    transform: translateY(-16px) ;
    filter: brightness(1);
}
.s-card:hover .s-inner::after { box-shadow: inset 0 0 0 1px rgba(176,110,244,.7); }
.s-card:hover .s-icon { opacity: 1; transform: scale(1); }

/* ПИАНО-АНИМАЦИЯ */
@keyframes pianoLift {
    0%, 25%   { transform: translateY(0); }     
    32%, 38%  { transform: translateY(-12px); }   
    45%, 100% { transform: translateY(0); }   
}
@keyframes pianoIcon {
    0%, 25%   { opacity: 0; transform: scale(.7); }
    32%, 38%  { opacity: 1; transform: scale(1); }
    45%, 100% { opacity: 0; transform: scale(.7); }
}

/* Общее время одного цикла */
.stack:not(:hover) .s-inner { animation: pianoLift 10s ease-in-out infinite; }
.stack:not(:hover) .s-icon  { animation: pianoIcon 10s ease-in-out infinite; }

.stack:not(:hover) .s-card:nth-child(1) .s-inner,
.stack:not(:hover) .s-card:nth-child(1) .s-icon { animation-delay: 0s; }
.stack:not(:hover) .s-card:nth-child(2) .s-inner,
.stack:not(:hover) .s-card:nth-child(2) .s-icon { animation-delay: .5s; }
.stack:not(:hover) .s-card:nth-child(3) .s-inner,
.stack:not(:hover) .s-card:nth-child(3) .s-icon { animation-delay: 1s; }


/* ===== МОДАЛКА ===== */
.hg-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.hg-modal.open { opacity: 1; visibility: visible; }

.hg-backdrop {
    position: absolute; inset: 0;
    background: rgba(8,8,11,.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .4s ease;
}
.hg-modal.open .hg-backdrop { opacity: 1; }

.hg-figure { position: relative; margin: 0; z-index: 2; }
.hg-modal-img {
    display: block;
    max-width: 720px; /* Максимальный размер на ПК */
    max-height: 86vh;
    border-radius: 20px; object-fit: contain;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
    opacity: 0;
    transform: translateY(24px) scale(.96);
    transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1);
}
.hg-modal.open .hg-modal-img { opacity: 1; transform: translateY(0) scale(1); }

.hg-close {
    position: absolute; top: 24px; right: 28px; z-index: 3;
    width: 44px; height: 44px; border: none; border-radius: 50%;
    background: rgba(255,255,255,.1); cursor: pointer;
    transition: background .3s, transform .3s;
}
.hg-close::before, .hg-close::after {
    content:''; position:absolute; top:50%; left:50%;
    width:18px; height:1.5px; background:#fff;
}
.hg-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.hg-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }
.hg-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }


/* =======================================
   АДАПТИВ (простые пиксели)
   ======================================= */

/* 1. НОУТБУКИ  */
@media (max-width: 1200px){
    .stack {
        --card-w: 280px; /* Уменьшаем карточку */
        --shift: 40px;   /* Уменьшаем гармошку */
    }
}

/* 2. ПЛАНШЕТЫ */
@media (max-width: 992px){
    .stack {
        --card-w: 260px; /* Еще меньше карточка */
        --shift: 60px;   /* Меньше гармошка */
    }
    .hg-modal-img {
        max-width: 470px; 
        max-height: 60vh;
    }
}

/* 3. МОБИЛКА */
@media (max-width: 768px){
    .stack {
        width: 100%; 
        max-width: 320px;
        height: 320px; 
        aspect-ratio: auto;
		margin-bottom: 0px;
    }
    .s-card {
        width: 220px; 
        height: 293px; 
        aspect-ratio: auto;
        left: 50%;
        transition: transform .5s cubic-bezier(.4,0,.2,1);
    }
    .s-card:nth-child(1){ transform: translateX(-50%);  z-index: 3; }
    .s-card:nth-child(2){ transform: translateX(-80%); z-index: 2; }
    .s-card:nth-child(3){ transform: translateX(-20%); z-index: 2; }

    .s-card:nth-child(2) .s-inner,
    .s-card:nth-child(3) .s-inner { transform: scale(.9); filter: brightness(.7); }

    .s-icon { opacity: 1; transform: scale(1); }

    .stack:not(:hover) .s-inner { animation: none; }
    .stack:not(:hover) .s-icon  { animation: none; }
    .s-card:active .s-lift { filter: brightness(1); }

    .hg-modal { padding: 20px; }
    .hg-modal-img {
        max-width: 100%;
    }
}
/* ================= Адаптив Hero ================= */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; padding-bottom: 20px;}
    .hero-eyebrow, .hero-title { text-align: center; }
    .hero-visual { justify-content: center; }
}

@media (max-width: 950px) {
    .hero-container { padding: 40px 20px 0; }
    
    .hero-info-row { 
        flex-direction: row; 
        align-items: center; 
        justify-content: center;
        gap: 20px; 
        text-align: left;
        width: 100%;
        max-width: 500px;
    }
    .hero-desc { 
        font-size: 13px; 
        line-height: 1.5;
        flex: 1;
    }
    .hero-stats {
        padding: 12px 18px;
    }
    
    .hero-nav { display: none; } 
}

@media (max-width: 480px) {
    .hero-info-row { gap: 12px; } 
    .hero-stats .stat-num { font-size: 26px; }
    .hero-stats .stat-text { font-size: 10px; }
    .hero-cards-swiper { width: 240px; } 
}

/* ================= FEATURES ================= */
.features { background-color: var(--bg-page); }
.features-title { text-align: center; line-height: 1.2; margin-bottom: 60px; }
.features-title .title-accent { font-weight: 500; font-style: italic; color: var(--color-accent); display: block; }
.features-title .title-dark { font-weight: 700; font-style: normal; color: var(--text-dark); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background-color: #ffffff; border-radius: 24px; padding: 40px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); }
.feature-card .card-title { color: var(--text-dark); line-height: 1.2; }
.feature-card .card-desc { font-size: 16px; color: #666666; line-height: 1.5; margin-bottom: 30px; }
.card-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.card-tags .tag { background-color: var(--color-accent); color: #ffffff; padding: 10px 20px; border-radius: 100px; font-size: 14px; font-weight: 500; line-height: 1; }
.card-list { display: flex; flex-direction: column; gap: 15px; }
.card-list li { position: relative; padding-left: 16px; font-size: 16px; color: var(--text-dark); line-height: 1.4; font-weight: 500; }
.card-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 3px; background-color: var(--color-accent); border-radius: 2px; }

/* Адаптив Features */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .feature-card:nth-child(3) { grid-column: auto; }
    .feature-card { padding: 30px 20px; }
}

/* ================= CTA ================= */
.cta-banner { position: relative; overflow: hidden; padding: 60px 80px; display: flex; flex-direction: column; transition: transform var(--transition); }
.cta-content { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.cta-text { min-width: 475px; pointer-events: auto; }
.cta-text h2 { font-style: italic; font-weight: 500; line-height: 1.2; margin-bottom: 15px; color: #ffffff; }
.cta-text p { font-size: 16px; color: #cccccc; line-height: 1.5; margin: 0; max-width: 400px;}
.cta-action { flex-shrink: 0; pointer-events: auto; }
.btn-rectangle { display: inline-flex; align-items: center; justify-content: center; background-color: var(--color-accent); color: #ffffff; padding: 20px 40px; border-radius: 12px; font-weight: 500; font-size: 16px; white-space: nowrap; transition: var(--transition); cursor: pointer; }
.btn-rectangle:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(177, 92, 233, 0.4); }
.cta-image-layer { position: absolute; top: 0; left: 7%; width: 100%; height: 100%; z-index: 1; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.cta-img { display: block; max-height: 200px; width: auto; margin-bottom: -50px; position: relative; z-index: 2; transition: transform var(--transition); }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -20%); width: 280px; height: 280px; background: var(--color-accent); filter: blur(90px); border-radius: 50%; z-index: -1; }
.cta-banner:hover .cta-img { transform: translateY(-3px); }

/* Адаптив CTA */
@media (max-width: 1024px) {
    .cta-banner { padding: 50px 40px; }
}
@media (max-width: 850px) {
    .cta-banner { padding: 40px 20px; }
    .cta-image-layer { position: relative; left: 0; order: -1; height: 220px; margin-bottom: 20px; align-items: center; }
    .cta-img { margin-bottom: 0; max-height: 200px; }
    .cta-content { flex-direction: column; text-align: center; gap: 30px; }
    .cta-text { min-width: 0; width: 100%; }
    .cta-glow { width: 200px; height: 200px; filter: blur(60px); }
	.cta-text p { margin: 0 auto; display: block;}
}

/* ================= PORTFOLIO ================= */
.portfolio-title { text-align: center; margin-bottom: 40px; }
.portfolio-title .title-bottom { display: block; font-style: italic; font-weight: 500; color: var(--color-accent); line-height: 1.1; }
.portfolio-tabs { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; }
.tab-btn { background: none; border: none; font-family: inherit; font-size: 18px; font-weight: 500; color: var(--text-dark); cursor: pointer; padding: 10px 5px; position: relative; transition: color 0.3s ease; }
.tab-btn:hover, .tab-btn.active { color: var(--color-accent); }
.tab-btn::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--color-accent); transition: width 0.3s ease; }
.tab-btn.active::after { width: 100%; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.portfolio-item { background-color: #E2E2E2; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; position: relative; animation: fadeInItem 0.5s ease forwards; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }



.portfolio-item.hidden { display: none; }

@keyframes fadeInItem { 0% { opacity: 0; transform: scale(0.95) translateY(10px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

/* Адаптив Portfolio */
@media (max-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .portfolio-tabs { gap: 20px; flex-wrap: wrap; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .tab-btn { font-size: 16px; }
    .portfolio-grid { gap: 15px; }
    .tabs { flex-wrap: wrap; gap: 15px; }
}

/* ================= ABOUT ================= */
.about-section { }
.about-grid { display: grid; grid-template-columns: 4.5fr 7.5fr; gap: 50px; align-items: center; }
.about-image-col { position: relative; height: 100%; min-height: 550px; }
.about-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05); }
.about-content-col { padding: 20px 0; }
.about-badge { display: inline-block; background-color: #E5E7EB; color: #4B5563; padding: 8px 16px; border-radius: 100px; font-size: 14px; font-weight: 500; margin-bottom: 24px; }
.about-title { margin-bottom: 24px; line-height: 1.1; }
.about-title .title-accent { display: block; font-weight: 500; font-style: italic; color: var(--color-accent); }
.about-title .title-dark { display: block; font-weight: 700; color: var(--text-dark); }
.about-desc { font-size: 16px; line-height: 1.6; color: #4B5563; margin-bottom: 40px; max-width: 90%; }
.about-stats-glass { display: flex; justify-content: space-between; gap: 20px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 24px; padding: 30px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04); position: relative; margin-left: -120px; margin-bottom: 40px; z-index: 2; }
.stat-item { flex: 1; }
.stat-number { display: block; font-size: 32px; font-weight: 700; color: var(--color-accent); margin-bottom: 8px; }
.stat-text { display: block; font-size: 13px; line-height: 1.4; color: #6B7280; }
.about-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.about-footer-text { font-size: 13px; line-height: 1.5; color: #4B5563; margin: 0; }
/* кнопка */
.about-composite-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: gap 0.3s ease; }
.about-composite-btn .btn-pill { position: relative; overflow: hidden; background-color: var(--color-accent); color: #ffffff; font-weight: 600; font-size: 14px; padding: 14px 24px; border-radius: 100px; z-index: 1; }
.about-composite-btn .btn-pill::before { content: ""; position: absolute; inset: 0; background-color: var(--text-dark); transform: translateX(-101%); transition: transform 0.3s ease; z-index: -1; }
.about-composite-btn .btn-circle { display: flex; justify-content: center; align-items: center; background-color: #222222; width: 46px; height: 46px; border-radius: 50%; transition: background-color 0.3s ease, transform 0.3s ease; }
.about-composite-btn .btn-circle svg { transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1); }

.about-composite-btn:hover { gap: 4px; }
.about-composite-btn:hover .btn-pill::before { transform: translateX(0); }
.about-composite-btn:hover .btn-circle { background-color: var(--color-accent); transform: scale(1.06); }
.about-composite-btn:hover .btn-circle svg { animation: arrowFlyAbout 0.4s cubic-bezier(0.65, 0, 0.35, 1); }

@keyframes arrowFlyAbout {
    0% { transform: translate(0, 0); }
    45% { transform: translate(14px, -14px); }
    46% { transform: translate(-14px, 14px); }
    100% { transform: translate(0, 0); }
}

/* Адаптив About */
@media (max-width: 1100px) {
    .about-stats-glass { margin-left: -60px; padding: 25px; }
}
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-image-col { min-height: 400px; }
    .about-stats-glass { margin-left: 0; flex-wrap: wrap; }
    .about-desc { max-width: 100%; }
}
@media (max-width: 650px) {
    .about-image-col { min-height: 300px; }
    .about-stats-glass { flex-direction: column; gap: 20px; text-align: left; }
    .about-footer { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ================= PRICES ================= */
.prices-title { margin-bottom: 50px; text-align: center;}

.prices-title .text-accent { font-style: italic; font-weight: 500;}
.prices-dark-wrapper { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.price-dark-card { background-color: var(--bg-dark); border-radius: 20px; padding: 30px 40px; display: flex; align-items: center; position: relative; overflow: hidden; }
.dark-card-left { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; }
.time-badge { color: #9CA3AF; font-size: 14px; }
.card-heading { color: #ffffff; font-size: 32px; font-weight: 600; margin: 0; }
.dark-card-visual { position: relative; margin-right: 40px; align-self: flex-end; margin-bottom: -90px; z-index: 1; }
.visual-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -20%); width: 130px; height: 100px; background-color: var(--color-accent); filter: blur(45px); border-radius: 50%; z-index: -1; pointer-events: none; }
.visual-img { display: block; height: 180px; width: auto; position: relative; z-index: 2; transition: transform var(--transition); }
.price-dark-card:hover .visual-img { transform: translateY(-3px); }
.dark-card-right { min-width: 120px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex-shrink: 0; }
.price-val { color: #ffffff; font-size: 34px; font-weight: 700; line-height: 1.1; }
.price-desc { color: #9CA3AF; font-size: 14px; margin-top: 4px; white-space: nowrap; }
.prices-light-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.price-light-card { background-color: #ffffff; border-radius: 20px; padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; box-shadow: 0 4px 20px rgba(0,0,0, 0.03); }
.light-card-info h3 { color: var(--text-dark); margin: 0 0 8px 0; }
.light-card-info p { font-size: 13px; color: #666666; line-height: 1.4; margin: 0; max-width: 280px; }
.light-card-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex-shrink: 0; }
.light-card-price .val { font-size: 22px; font-weight: 700; white-space: nowrap; }
.light-card-price .time { font-size: 13px; color: #9CA3AF; margin-top: 2px; }
.btn-prices { display: inline-flex; align-items: center; justify-content: center; background-color: var(--color-accent); color: #ffffff; padding: 18px 40px; border-radius: 12px; font-weight: 500; font-size: 16px; transition: var(--transition); }
.btn-prices:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(177, 92, 233, 0.4); }

/* Адаптив Prices */
@media (max-width: 900px) {
    .price-dark-card { padding: 25px; }
    .card-heading { font-size: 22px; }
    .price-val { font-size: 28px; }
}
@media (max-width: 768px) {
    .price-dark-card { flex-direction: column; text-align: center; padding: 30px 20px 20px; }
    .dark-card-left { flex-grow: 0; margin-bottom: 20px; }
    .dark-card-visual { margin-right: 0; align-self: center; margin-bottom: 0; order: -1; margin-top: 10px; }
    .visual-img { height: 100px; }
    .dark-card-right { align-items: center; text-align: center; min-width: auto; }
    .prices-light-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .price-light-card { flex-direction: column; align-items: flex-start; text-align: left; }
    .light-card-price { align-items: flex-start; text-align: left; margin-top: 10px; }
}

/* ================= STAGES ================= */
.stages-container { padding: 60px 80px 80px 80px; position: relative; overflow: hidden; }
.stages-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; position: relative; z-index: 2; }
.stages-title { margin-bottom: 0; line-height: 1.1; color: #ffffff;}
.stages-title .text-accent { font-style: italic;  font-weight: 500; }
.stages-desc { color: #E5E7EB; font-size: 16px; line-height: 1.5; text-align: left; max-width: 250px; margin-bottom: 10px; }
.stages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 2; }
.stage-card { background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 40px 24px 30px 24px; position: relative; transition: transform var(--transition), background-color var(--transition); }
.stage-card:hover { transform: translateY(-5px); background-color: rgba(255, 255, 255, 0.08); }
.stage-number { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; background-color: var(--color-accent); color: #ffffff; font-size: 13px; font-weight: 700; display: flex; justify-content: center; align-items: center; border-radius: 50%; box-shadow: 0 0 0 4px var(--bg-dark); }
.stage-name { color: #ffffff; font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.stage-text { color: #9CA3AF; font-size: 14px; line-height: 1.5; }
.stages-glow { position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%); width: 80%; height: 200px; background: var(--color-accent); filter: blur(120px); opacity: 0.45; z-index: 1; pointer-events: none; }

/* Адаптив Stages */
@media (max-width: 1024px) {
    .stages-container { padding: 50px 40px; }
    .stages-header { gap: 20px; margin-bottom: 50px; }
    .stages-desc { max-width: 100%; margin-bottom: 0; }
    .stages-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 650px) {
    .stages-container { padding: 40px 20px; }
    .stages-header { margin-bottom: 40px; flex-direction: column; align-items: flex-start; }
    .stages-grid { grid-template-columns: 1fr; gap: 24px; }
    .stage-card { padding: 35px 20px 25px; }
}

/* ================= FAQ ================= */
.faq-section {}
.faq-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.faq-title { font-style: italic; color: var(--text-dark); margin-bottom: 40px; font-weight: 600; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background-color: #ffffff; border-radius: 12px; overflow: hidden; }
.faq-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 30px; cursor: pointer; user-select: none; transition: background-color var(--transition); }
.faq-header:hover { background-color: #fcfcfc; }
.faq-question { font-size: 16px; font-weight: 500; color: var(--text-dark); margin: 0; padding-right: 20px; line-height: 1.4; }
.faq-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-icon .dot { position: absolute; width: 4px; height: 4px; background-color: var(--color-accent); border-radius: 50%; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.dot-top { top: 0; left: 50%; margin-left: -2px; }
.dot-bottom { bottom: 0; left: 50%; margin-left: -2px; }
.dot-left { top: 50%; left: 0; margin-top: -2px; }
.dot-right { top: 50%; right: 0; margin-top: -2px; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-item.active .dot-top { transform: translateY(8px) scale(0); opacity: 0; }
.faq-item.active .dot-bottom { transform: translateY(-8px) scale(0); opacity: 0; }
.faq-item.active .dot-left, .faq-item.active .dot-right { background-color: #9CA3AF; }
.faq-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.faq-item.active .faq-content { grid-template-rows: 1fr; }
.faq-content-inner { overflow: hidden; padding: 0 30px; }
.faq-content-inner p { margin: 0; padding-bottom: 24px; color: #6B7280; font-size: 15px; line-height: 1.6; }

/* Адаптив FAQ */
@media (max-width: 768px) {
    .faq-header { padding: 20px; }
    .faq-content-inner { padding: 0 20px; }
}
@media (max-width: 480px) {
    .faq-question { font-size: 15px; }
}

/* ================= CONTACT ================= */
.contact-container { display: grid; grid-template-columns: 4fr 6fr; align-items: center; padding: 60px 80px; gap: 60px; position: relative; overflow: hidden; }
.contact-left { position: relative; display: flex; justify-content: center; align-items: center; }
.contact-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 250px; height: 250px; background-color: var(--color-accent); filter: blur(90px); border-radius: 50%; z-index: 1; pointer-events: none; }
.contact-img { position: relative; z-index: 2; max-width: 120%; width: 120%; height: auto; display: block; animation: floatImage 6s ease-in-out infinite; }
@keyframes floatImage { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.contact-title { margin-bottom: 20px; line-height: 1.1; }
.contact-title .title-italic { color: #ffffff; }
.contact-title .title-accent {  font-style: italic; font-weight: 500; color: var(--color-accent); }
.contact-desc { color: #E5E7EB; font-size: 15px; line-height: 1.6; margin-bottom: 40px; max-width: 90%; }

.contact-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
/* кнопка */

/* эффект волны  */
.btn-ripple { position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; border-radius: inherit;  border-radius: 100px;}
.btn-ripple .ripple-effect { position: absolute; border-radius: 50%; background-color: rgba(255, 255, 255, 0.5); transform: translate(-50%, -50%) scale(0); animation: ripple-anim 0.6s linear forwards; pointer-events: none; z-index: 1; }
@keyframes ripple-anim { 100% { transform: translate(-50%, -50%) scale(3); opacity: 0; } }

/* Внешний вид кнопки  */
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-accent);
    padding: 16px 20px;
    border-radius: 100px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    z-index: 0;
}
.btn-contact::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;          
    height: 100%;      
    background: rgba(255, 255, 255, 0.06);
    transition: width 0.35s ease;  
    z-index: -1;
}

.btn-contact:hover::before {
    width: 100%;         
}
.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(157, 78, 221, 0.4);
}

.btn-icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s ease; }
.btn-contact:hover .btn-icon { transform: scale(1.1); }

/* Адаптив Contact */
@media (max-width: 1024px) {
    .contact-container { padding: 50px 40px; gap: 40px; }
    .contact-img { width: 100%; max-width: 100%; }
}
@media (max-width: 850px) {
    .contact-container { grid-template-columns: 1fr; text-align: center; padding: 40px 20px; gap: 30px; }
    .contact-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
    .contact-buttons { justify-content: center; }
    .contact-img { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 480px) {
    .btn-ripple { width: 100%; justify-content: center; }
    .contact-img { max-width: 250px; }
}

/* ================= SEO TEXT & INFO ================= */
.seo-section {
    background-color: var(--bg-page);
}
.seo-title {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}
.seo-intro {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 30px;
}
.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
}
.seo-tags li {
    background-color: #E5E7EB;
    color: #4B5563;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: default;
}
.seo-tags li:hover {
    background-color: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.seo-subtitle {
    font-size: 28px;
    margin-top: 50px;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.seo-text {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 20px;
}
.seo-image-placeholder {
    margin: 60px 0;
    width: 100%;
    height: 350px;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.seo-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .seo-title { font-size: 32px; }
    .seo-subtitle { font-size: 24px; margin-top: 40px; }
    .seo-image-placeholder { min-height: 350px; }
}

@media (max-width: 768px) {
    .seo-title { font-size: 28px; }
    .seo-subtitle { font-size: 22px; margin-top: 35px; }
    .seo-tags { gap: 10px; margin-bottom: 40px; }
    .seo-tags li { padding: 8px 16px; font-size: 13px; }
    .seo-intro, .seo-text { font-size: 15px; }
    .seo-image-placeholder { min-height: 250px; border-radius: 20px; margin-top: 40px; }
}

@media (max-width: 480px) {
    .seo-title { font-size: 24px; }
    .seo-subtitle { font-size: 20px; margin-top: 30px; }
    .seo-image-placeholder { min-height: 200px; border-radius: 16px; }
}

/* ================= FOOTER ================= */
.section-foo {
    display: flex;
    justify-content: center;
    padding: 0 10px 20px;
}

.footer-block { 
    padding: 40px 0 20px;
    width: 100%;
    border-radius: 20px;
    background-color: #1a1a1c;
}

/* --- ВЕРХНЯЯ ЧАСТЬ (Сетка 3 колонки) --- */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px; 
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-left-top {
    display: flex;
    flex-direction: column;
}

.footer-logo { font-size: 24px; font-weight: 700; margin-bottom: 5px; color: #fff; }
.footer-desc { color: #888; font-size: 14px; }

.footer-custom-nav {
    display: flex;
    justify-content: center; 
}

.custom-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left; 
}

.custom-nav-link {
    color: #aaa;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
    display: inline-block;
}

.custom-nav-link:hover {
    color: var(--color-accent);
}

/* --- ПРАВАЯ КОЛОНКА (Кнопки) --- */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
}

.social-link { 
    display: flex;  
    gap: 10px; 
    background: #2a2a2b; 
    padding: 15px 30px; 
    border-radius: 12px; 
    margin-bottom: 10px; 
    transition: 0.3s; 
    text-decoration: none;
    color: #fff;
    width: 200px;
}

.social-link .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center; 
}

.f-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--color-accent);
}
.social-link:hover .f-icon {fill: #fff;}
.social-link:last-child { margin-bottom: 0; }
.social-link:hover { background: var(--color-accent, #6366f1); }
.social-link .icon { color: var(--color-accent, #6366f1); transition: 0.3s; }
.social-link:hover .icon { color: #fff; }

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05); 
    margin-bottom: 20px;
}

/* --- Ссылка на Behance под описанием --- */
.footer-behance {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: 16px;
    padding: 9px 18px 9px 14px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.behance-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: var(--color-accent);
    transition: fill var(--transition);
}

.footer-behance:hover {
    color: #fff;
    border-color: var(--color-accent);
    background-color: rgba(177, 92, 233, 0.12);
    transform: translateY(-2px);
}

.footer-behance:hover .behance-icon {
    fill: #fff;
}

/* --- НИЖНЯЯ ЧАСТЬ --- */
.footer-bottom {
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.copyright { 
    color: #555; 
    font-size: 13px; 
}

/* --- ссылка в нижней части --- */
.footer-legal {
    display: flex;
    align-items: center;
}

.legal-link {
    position: relative;
    color: #777;
    font-size: 14px;
    text-decoration: none;
    transition: color var(--transition);
}

.legal-link:hover {
    color: #fff;
}


/* --- АДАПТИВ  --- */
@media (max-width: 768px) {
    .footer-top { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 40px; 
    }
    
    .footer-custom-nav {
        justify-content: center;
    }
    
    .custom-nav-list {
        text-align: center; 
    }

    .custom-nav-link:hover {
        transform: none; 
    }

    .footer-right { 
        align-items: center; 
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 15px;
        text-align: center;
    }
    
    .footer-behance {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* ================= КНОПКА НАВЕРХ ================= */
.btn-scroll-top {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(50px) scale(0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 1px solid rgba(177, 92, 233, 0.3);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.btn-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.scroll-top-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(12px);
}

.btn-scroll-top svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    animation: arrowFloat 2s ease-in-out infinite;
}

/* ================= ХОВЕР ЭФФЕКТЫ ================= */
.btn-scroll-top:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(177, 92, 233, 0.4);
    transform: translateX(-50%) translateY(-5px) scale(1); 
}

.btn-scroll-top:hover .scroll-top-glow {
    opacity: 0.6; 
}

.btn-scroll-top:hover svg {
    animation: none;
    transform: translateY(-4px); 
}

@keyframes arrowFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ================= АДАПТИВ ================= */
@media (max-width: 768px) {
    .btn-scroll-top {
        bottom: 25px;
        width: 50px;
        height: 50px;
    }
    .btn-scroll-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ================= COOKIE POPUP ================= */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 380px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-small);
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                visibility 0.5s;
}

.cookie-popup.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.cookie-content {
    display: flex;
	justify-content: center;
    align-items: center;
    gap: 16px;
}

.cookie-text {
    color: #E5E7EB;
    font-size: 13px;
    line-height: 1.5;
    font-family: var(--font-main);
}

.cookie-text a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.cookie-text a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.cookie-btn {
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.3s ease, background-color 0.3s;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(177, 92, 233, 0.3);
}

/* АДАПТИВНОСТЬ  */
@media (max-width: 768px) {
    .cookie-popup {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* ================= ПОЯВЛЕНИЕ БЛОКОВ ПРИ СКРОЛЛЕ ================= */
/* Скрываем только пока JS не показал элемент. Сама анимация — в js/reveal.js */
.rv { visibility: hidden; }
.rv.in { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
    .rv { visibility: visible; }
}