/*
Theme Name: jsg
Author: Developer
Version: 1.1.0
Description: Custom block-based theme with centralized variables.
*/

/* =========================================
   0. ГЛОБАЛЬНЫЙ СБРОС И ЗАЩИТА ВЕРСТКИ
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: clip;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

.site-header__container,
.hero-btn-wrapper,
.ticker-wrapper,
.projects-container,
.about-container,
.relative-container,
.footer-container {
    width: var(--container-width);
    margin: 0 auto;
    min-width: 280px; 
}

/* --- ЦВЕТОВЫЕ СХЕМЫ СЕКЦИЙ --- */
body[data-scroll-section="projects-gallery-section"] {
    --blob-1-color: #0b1f2e;
    --blob-2-color: #071520;
    --blob-3-color: #102a3d;
    --blob-4-color: #0a1a26;
    --blob-opacity: 0.8;
}

body[data-scroll-section="about-section"] {
    --blob-1-color: #3d1b0d;
    --blob-2-color: #2b1107;
    --blob-3-color: #4c2210;
    --blob-4-color: #1f0b04;
}

body[data-scroll-section="services-v-section"] {
    --blob-1-color: #4a1505;
    --blob-2-color: #1c0a04;
    --blob-3-color: #5c1804;
    --blob-4-color: #2e0e05;
    --blob-opacity: 0.4;
}

/* --- Базовые настройки --- */
body {
    margin: 0;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    -webkit-font-smoothing: antialiased;
}

.site-main {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
}

/* Заголовки и управление их отступами */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-wider);
    margin-top: 0;
    color: var(--color-accent);
}

h1 { 
    font-size: var(--fs-xl); 
    margin-bottom: var(--gap-md);
}

h2 { 
    font-size: var(--fs-lg); 
    margin-bottom: var(--block-gap);
}

h3 {
    margin-bottom: var(--gap-md);
}

/* Текстовые абзацы */
p { 
    font-size: var(--fs-base); 
    margin-bottom: var(--gap-md); 
}

/* --- HEADER --- */
.site-header {
    width: 100%;
    padding-top: var(--header-padding);
    padding-bottom: var(--header-padding);
    padding-left: 0;
    padding-right: 0;
    position: relative;
    z-index: var(--z-header);
    transition: background-color var(--transition-speed) ease;
}

.site-header.is-open {
    background-color: var(--bg-main);
}

.site-header__container {
    width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header__brand { display: flex; align-items: center; gap: 1.5rem; }
.site-header__logo { display: flex; align-items: center; }
.svg-logo { width: var(--icon-logo-w); height: var(--icon-logo-h); display: block; }
.svg-logo path {
    fill: var(--color-accent);
    fill-rule: nonzero;
}

.site-header__tagline {
    font-size: var(--fs-sm);
    line-height: 1.3;
    font-weight: var(--fw-light);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--text-muted);
}

.site-header__contacts { display: flex; align-items: center; gap: 2rem; }
.site-header__phone-wrapper { display: flex; align-items: center; gap: 0.625rem; }

.site-header__phone {
    color: var(--text-main);
    text-decoration: none;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-base);
    transition: color var(--transition-speed) ease;
}

.site-header__phone:hover { color: var(--color-accent); }

.icon-phone { display: flex; align-items: center; }
.svg-phone { width: var(--icon-base); height: var(--icon-base); display: block; }

.site-header__socials { display: flex; gap: 1rem; align-items: center; }
.svg-social { width: var(--icon-base); height: var(--icon-base); display: block; }

.social-link {
    color: var(--text-main);
    display: flex;
    align-items: center;
    transition: color var(--transition-speed) ease;
}

.social-link[aria-label="Telegram"] .svg-social {   
    transform: scale(1.5);
    transform-origin: center;
}

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

.site-header__toggle {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--color-accent);
    cursor: pointer;
    width: var(--icon-lg);
    height: var(--icon-lg);
    position: relative;
    z-index: calc(var(--z-modal) + 1);
    transition: color var(--transition-speed) ease;
}

.svg-toggle { width: 100%; height: 100%; display: block; }

.site-header__toggle:hover { color: var(--text-main); }

.icon-burger, .icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; 
}

.icon-close { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg); }
.site-header.is-open .icon-burger { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.site-header.is-open .icon-close { opacity: 1; transform: translate(-50%, -50%) rotate(0); }

/* =========================================
   ВЫПАДАЮЩЕЕ МЕНЮ (ОВЕРЛЕЙ)
   ========================================= */
.site-header__overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: calc(100dvh - 100%);
    background-color: var(--bg-main);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: var(--z-modal);
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
}

.site-header.is-open .site-header__overlay {
    opacity: 1;
    visibility: visible;
}

.site-header__overlay-inner {
    width: var(--container-width);
    margin: 0 auto;
    padding: 20px 0 20px 0;
    display: flex;
    flex-direction: column;
}

/* --- OVERLAY LAYOUT --- */
.overlay-content {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 20px;
    align-items: stretch;
    min-height: 30vh; 
}

.overlay-left-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.overlay-text {
    background-color: var(--text-main);
    border-radius: var(--radius-xd, 2rem);
    padding: 1rem 5% 2rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    flex-grow: 1; 
}

.overlay-text h2 {
    width: 100%;
    font-family: var(--font-primary, sans-serif);
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 0.9;
    letter-spacing: -0.06rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}

.overlay-text p {
    width: 100%;
    font-family: var(--font-primary, sans-serif);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.3;
    font-weight: 800;
    color: var(--color-accent);
    margin: 0;
    text-align: left;
}

.overlay-btn-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    flex-shrink: 0;
}

.overlay-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    font-size: clamp(2.5rem, 4vw, 4.5rem); 
    font-weight: var(--fw-extrabold, 800);
    letter-spacing: -0.1rem;       
    text-transform: lowercase; 
    text-align: right;
}

.main-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-menu li:first-child {
    margin-top: -0.12em;
}

.main-menu li:last-child {
    margin-bottom: -0.12em;
}

.main-menu a {
    text-decoration: none;
    line-height: 1.1; 
    display: block;
    position: relative;
    padding-right: 0; 
    margin-right: 0;
    overflow: hidden;
    color: transparent;
    transition: none; 
}

/* --- АНИМАЦИЯ ХОВЕРА МЕНЮ --- */
.main-menu a::before,
.main-menu a::after {
    content: attr(data-text);
    position: absolute;
    right: 0;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-menu a::before {
    top: 0;
    color: var(--color-accent);
    transform: translateY(0);
}

.main-menu a::after {
    top: 100%; 
    color: var(--text-main);
    transform: translateY(0);
}

.main-menu a:hover::before { transform: translateY(-100%); }
.main-menu a:hover::after { transform: translateY(-100%); }

/* --- АКТИВНЫЙ ПУНКТ МЕНЮ --- */
.main-menu li.current-menu-item a::before {
    color: var(--text-main);
}

/* =========================================
   HERO БЛОК
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    overflow-x: clip;
    overflow-y: visible;
}

.hero-section .hero-swiper {
    width: 100%;
    overflow: visible;
}

.hero-section .swiper-slide {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    padding: 0 0 0 0; 
    box-sizing: border-box;
    overflow: visible;
}

.hero-slide__card {
    width: 100%;
    max-width: var(--container-width); 
    position: relative;
    border-radius: var(--radius-xd);
    padding: 4px; 
    overflow: visible;
    height: 100%;
    display: flex;
}

/* --- BACKGROUNDS --- */
.hero-slide__background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-xd);
    overflow: hidden; 
    z-index: var(--z-normal);
    background: conic-gradient(from var(--gradient-angle, 0deg), var(--color-accent), #FFFFFF, var(--color-accent));
}

.hero-slide__background::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    background-clip: padding-box;
    background-color: var(--color-accent);
    border-radius: calc(var(--radius-xd) - 4px);
    z-index: var(--z-normal, 1);
}

.hero-slide__background::after {
    content: '';
    position: absolute;
    /* Координаты совпадают с внутренним слоем */
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    z-index: 2;
    pointer-events: none; 
    border-radius: calc(var(--radius-xd) - 4px);
    background: radial-gradient(
        1200px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.25), 
        transparent 40%
    );
    opacity: 0; 
    transition: opacity 0.3s ease;
}

.hero-slide__card:hover .hero-slide__background::after { 
    opacity: 1; 
}

/* --- CONTENT GRID & LAYERS --- */
.hero-slide__content {
    position: relative;
    z-index: var(--z-normal); 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    height: 100%; 
    padding: 3rem 4% 3rem 8%;
    box-sizing: border-box;
    width: 100%;
}

.hero-slide__text {
    flex: 0 0 100%;
    max-width: 100%;
    z-index: 2; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* --- HERO IMAGE --- */
.hero-slide__image {
    position: absolute;
    left: var(--slide-img-x, 75%);
    top: var(--slide-img-y, 50%);
    transform: translate(-50%, -50%);
    width: clamp(280px, var(--slide-img-w, 45%), 1050px);
    max-height: min(75vh, 800px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    pointer-events: none;
}

.hero-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* --- HERO TYPOGRAPHY --- */
.hero-slide__text.animated-text {
    font-family: var(--font-primary);
    font-size: var(--hero-base-clamp);
    color: var(--text-main, #ffffff);
}

.hero-slide__text.animated-text :is(h1, h2, h3, h4, h5, h6) {
    font-size: var(--hero-title-clamp);
    line-height: var(--lh-tight, 1.1);
    margin-top: 0;
    margin-bottom: var(--gap-sm, 0.5rem);
}

.hero-slide__text.animated-text p {
    line-height: var(--lh-normal, 1.5);
    margin-top: 0;
    margin-bottom: var(--gap-sm, 0.5rem);
}

:where(.hero-slide__text.animated-text) :is(h1, h2, h3, h4, h5, h6, p):not(.has-text-color):not([style*="color"]) {
    color: var(--text-main, #ffffff);
}

/* --- AUTONOMOUS COLOR PALETTE SUPPORT --- */
.hero-slide__text.animated-text .has-bg-main-color { color: var(--wp--preset--color--bg-main); }
.hero-slide__text.animated-text .has-bg-surface-color { color: var(--wp--preset--color--bg-surface); }
.hero-slide__text.animated-text .has-accent-color { color: var(--wp--preset--color--accent); }
.hero-slide__text.animated-text .has-text-main-color { color: var(--wp--preset--color--text-main); }
.hero-slide__text.animated-text .has-text-muted-color { color: var(--wp--preset--color--text-muted); }
.hero-slide__text.animated-text .has-text-muted-dark-color { color: var(--wp--preset--color--text-muted-dark); }
.hero-slide__text.animated-text .has-text-dark-color { color: var(--wp--preset--color--text-dark); }

/* --- HERO INLINE FORMATTING --- */
.hero-slide__text.animated-text :is(h1, h2, h3, h4, h5, h6, p) strong {
    font-weight: 700;
}

/* --- HERO INLINE TYPOGRAPHY --- */
.hero-slide__text :is(h1, h2, h3, h4, h5, h6, p) code {
    font-family: var(--font-primary, inherit);
    font-size: 0.55em;
    font-weight: 600;
    color: var(--text-main);
    background: transparent;
    padding: 0;
    letter-spacing: normal;
}

.hero-slide__text.animated-text :is(h1, h2, h3, h4, h5, h6, p) mark {
    background: transparent;
    font-size: 1.25em;
    font-weight: 800;
    color: inherit;
}

.hero-slide__text.animated-text :is(h1, h2, h3, h4, h5, h6, p) sub {
    font-size: 0.75em;
    font-weight: 400;
    text-transform: uppercase;
    bottom: 0;
    line-height: inherit;
}

/* --- SWIPER PAGINATION & BUTTON --- */
.hero-section .swiper-pagination {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.hero-section .swiper-pagination-bullet {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #8c8c8c;
    opacity: 1;
    margin: 0 calc(var(--block-padding) / 6);
    transition: all 0.4s ease;
}

.hero-section .swiper-pagination-bullet-active {
    width: 40px; height: 8px;
    border-radius: 4px;
    background: var(--color-accent);
}

.hero-swiper .swiper-wrapper {
    align-items: stretch;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-wrapper {
    width: 100%;
    max-width: var(--container-width);
    margin: 4rem auto 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: var(--z-normal);
    pointer-events: none;
}

.hero-btn {
    pointer-events: auto; 
    display: inline-block; 
    background-color: var(--color-accent);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    transition: transform 0.3s ease;
}

.hero-btn:hover { 
    transform: scale(1.05); 
}

/* --- HERO ANIMATIONS --- */
.hero-section .swiper-slide .animated-text h1,
.hero-section .swiper-slide .animated-text h2,
.hero-section .swiper-slide .animated-text h3,
.hero-section .swiper-slide .animated-text p {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
    will-change: transform, opacity;
}

.hero-section .swiper-slide .hero-slide__image img {
    opacity: 0;
    transform: translate(calc(-50% + 120px), -50%) scale(0.85);
    filter: blur(15px);
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease, filter 1.2s ease;
    will-change: transform, opacity, filter;
}

.hero-section .swiper-slide-active .animated-text h1,
.hero-section .swiper-slide-active .animated-text h2,
.hero-section .swiper-slide-active .animated-text h3,
.hero-section .swiper-slide-active .animated-text p { 
    opacity: 1; 
    transform: translateY(0); 
}

.hero-section .swiper-slide-active .animated-text > *:nth-child(1) { transition-delay: 0.1s; }
.hero-section .swiper-slide-active .animated-text > *:nth-child(2) { transition-delay: 0.2s; }
.hero-section .swiper-slide-active .animated-text > *:nth-child(3) { transition-delay: 0.3s; }
.hero-section .swiper-slide-active .animated-text > *:nth-child(4) { transition-delay: 0.4s; }
.hero-section .swiper-slide-active .animated-text > *:nth-child(5) { transition-delay: 0.5s; }
.hero-section .swiper-slide-active .animated-text > *:nth-child(6) { transition-delay: 0.6s; }

.hero-section .swiper-slide-active .hero-slide__image img {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
    transition-delay: 0.2s;
    transition-duration: 1.6s;
}

/* --- RESPONSIVE RULES --- */
@media (max-width: 1024px) {
    .hero-slide__card {
        overflow: hidden;
    }

    .hero-slide__content {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 4rem 5%;
    }

    .hero-section .swiper-slide[class*="slide-"] {
        --slide-img-w: 80%;
        --slide-img-x: 50%;
        --slide-img-y: 75%;
    }

    .hero-slide__text {
        z-index: var(--z-normal);
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .hero-section .swiper-slide[class*="slide-"] {
        --slide-img-w: 95%;
        --slide-img-y: 85%;
    }
    
    .hero-slide__content {
        justify-content: flex-start;
    }
}

/* =========================================
   БЕГУЩАЯ СТРОКА (ЛОГОТИПЫ)
   ========================================= */
.partners-section {
    padding: var(--block-padding) 0;
    width: 100%;
}

.ticker-wrapper {
    width: var(--container-width); 
    margin: 0 auto;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content; 
    animation: scroll-ticker 30s linear infinite;
}

.ticker-group {
    display: flex;
    align-items: center;
    gap: 1rem; 
    padding-right: 4rem; 
}

.partner-logo-img {
    height: 300px;
    margin-top: -80px; 
    margin-bottom: -80px; 
    width: auto;
    max-width: 300px;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.partner-logo-img:hover { opacity: 1; }
.ticker-wrapper:hover .ticker-track { animation-play-state: paused; }

@keyframes scroll-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .ticker-group {
        gap: 1rem;
        padding-right: 1rem; 
    }
    .partner-logo-img {
        height: 200px;
        margin-top: -60px; 
        margin-bottom: -70px;
        max-width: none; 
        width: auto;
        flex-shrink: 0;
    }
}

/* =========================================
   PROJECTS SLIDER
   ========================================= */
.projects-section {
    padding: var(--block-padding, 4rem) 0;
    width: 100%;
}

.projects-container {
    width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.projects-swiper {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.projects-swiper .swiper-slide {
    opacity: 1;
    transform: scale(1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3; 
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    backface-visibility: hidden;
    transform: translateZ(0); 
    background-color: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Добавляется плавная физика карточки */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, box-shadow;
}

.project-card:hover {
    /* Эффект левитации и увеличения глубины тени (Apple TV / App Store style) */
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* --- КАРТИНКА --- */
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}

.project-card:hover .project-img { 
    transform: scale(1.08);
}

.project-card:hover::after {
    opacity: 1;
}

/* =========================================
   БЛОК О КОМПАНИИ (СТАТИСТИКА И ТЕКСТ)
   ========================================= */
.about-section {
    padding: var(--section-padding) 0;
    width: 100%;
    color: #ffffff;
}

.about-container {
    width: var(--container-width); 
    margin: 0 auto;
    display: grid;
    grid-template-columns: 4.5fr 5.5fr; 
    gap: 5rem;
}

.about-left { display: flex; flex-direction: column; }
.about-logo { margin-bottom: 4rem; }
.about-logo-img { height: 45px; width: auto; display: block; }

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 3rem 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* --- ГЛАВНЫЙ КОНТЕЙНЕР ЦИФРЫ --- */
.stat-num {
    font-family: var(--font-secondary);
    font-size: clamp(3.5rem, 5.5vw, 6rem); 
    font-weight: 700;
    line-height: 1;
    display: flex;
    white-space: nowrap;
}

.stat-num .counter {
    color: inherit;
    font-family: inherit;
    font-size: 1em; 
    line-height: 1; 
    margin-left: 0;
    letter-spacing: -0.05em;
}

/* --- ОБЩИЕ СТИЛИ СУФФИКСОВ --- */
.s-plus, 
.s-full, 
.s-m2, 
.num-suffixes {
    color: var(--color-accent);
    font-family: var(--font-primary);
    margin-left: 0; 
}

/* --- ВЫРАВНИВАНИЕ --- */
.align-center {
    align-self: center; 
    transform: translateY(0.08em); 
}

.align-bottom {
    align-self: flex-end; /* Вернули flex-end, чтобы избежать глюков с sup */
    margin-bottom: -0.1em; /* m2 снизу*/
}

.align-baseline {
    align-self: baseline; 
}

/* --- РАЗМЕРЫ ЗНАКОВ --- */
.s-plus { 
    font-size: 0.75em; 
}
.s-full { 
    font-size: 1em; 
} 
.s-m2 { 
    font-size: 0.65em; 
    line-height: 1; 
}
.s-m2 sup { 
    font-size: 0.6em; 
    position: relative; 
    top: -0.6em; 
}

/* --- 15+ ЛЕТ --- */
.num-suffixes {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center; 
    align-self: stretch;
    padding: 0 0 0 0.05em; 
}

.num-suffixes .s-plus {
    font-size: 0.75em; 
    align-self: center;
    transform: translateY(0.2em);
}

.num-suffixes .s-word {
    color: var(--text-main);
    font-size: 0.25em; 
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    align-self: center; 
}

/* --- ТЕКСТЫ И ПРАВАЯ КОЛОНКА --- */
.stat-text {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.about-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem; 
    margin-bottom: 3rem; 
}

.about-intro {
    font-family: var(--font-primary);
    color: var(--text-muted); 
    line-height: 1.2; 
    font-size: 1rem;
    margin: 0;
}

.about-feature h4 {
    font-family: var(--font-primary);
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0; 
}

.about-feature p {
    font-family: var(--font-primary);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7; 
    margin: 0;
}

.about-btn {
    align-self: flex-end;
    position: relative; 
    z-index: var(--z-sticky);    
    display: inline-block; 
    background-color: var(--color-accent);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    padding: 1rem 3rem;
    border-radius: 3rem;
    line-height: 1.2;
    white-space: nowrap;
    
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.3s ease;
}

.about-btn:hover { 
    transform: translateZ(0) scale(1.05); 
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    .about-container { grid-template-columns: 1fr; gap: 4rem; }
    .about-btn { align-self: flex-start; margin-top: 2rem; }
}

@media (max-width: 768px) {
    .about-stats { grid-template-columns: 1fr; gap: 2rem; }
}

/* =========================================
   БЛОК УСЛУГ
   ========================================= */
.services-scroll-wrapper {
    position: relative;
    width: 100%;
    z-index: 10;
    height: calc(100vh * var(--slide-count));
}

.services-section-master-wrapper {
    margin-top: -10vh; 
    margin-bottom: -10vh;
    position: relative;
    z-index: 10;
}

.services-v-section {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center; 
    justify-content: center;
    overflow: hidden; 
}

.relative-container {
    position: relative;
    width: var(--container-width);min-height: 75vh; 
    height: 75vh;
    min-height: 550px;
    max-height: 800px;
}

/* --- СТАТИЧНОЕ МЕНЮ СЛЕВА --- */
.s-static-left {
    position: absolute;
    top: 0; 
    left: 0;
    width: 34%; 
    height: 100%;
    pointer-events: none; 
    z-index: 10;
    padding-right: 2rem;
    box-sizing: border-box;
}

.s-number-box {
    display: flex;
    align-items: flex-start;
    height: clamp(5rem, 8vw, 10rem);
    overflow: hidden; 
    margin-bottom: 2rem;
}

.s-number-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: max-content;
}

.s-number-slide {
    font-family: var(--font-secondary);
    font-size: clamp(5rem, 8vw, 10rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    height: clamp(5rem, 8vw, 10rem);
    display: flex; 
    align-items: flex-end;
}

.s-number-square {
    width: 20px; 
    height: 20px;
    background-color: var(--color-accent);
    margin-left: 4px;
    align-self: flex-end;   
    margin-bottom: 8px; 
    flex-shrink: 0;
}

.s-menu {
    list-style: none;
    padding: 0; 
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.1rem, 1vh, 0.2rem);    
    pointer-events: auto; 
}

.s-menu li {
    font-family: var(--font-primary);
    font-weight: 200; 
    font-size: clamp(0.75rem, 1vw + 0.4rem, 0.875rem); 
    color: var(--text-muted);
    text-transform: uppercase;
    cursor: pointer; 
    display: flex;
    align-items: flex-start;
    line-height: 1;
    padding: 5px 0;
    transition: color 0.3s cubic-bezier(0.44, 0, 0.56, 1);
}
/* НЕАКТИВНАЯ ЛИНИЯ */
.s-menu li::before { 
    content: ''; 
    display: inline-block;
    width: 15px;
    height: 2px;
    background-color: var(--text-muted);
    margin-right: 15px;
    margin-top: 6px;
    flex-shrink: 0;
    border-radius: 10px;
    transition: background-color 0.3s cubic-bezier(0.44, 0, 0.56, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.s-menu li.active { 
    color: var(--text-main); 
    font-weight: 700;
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem); 
}

/* АКТИВНАЯ ЛИНИЯ */
.s-menu li.active::before { 
    background-color: var(--text-main); 
    width: 20px;
    height: 5px;
}

.s-dynamic-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.s-slide-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    pointer-events: none;
}

.s-slide-layer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- ВНУТРЕННОСТИ СЛАЙДА (3 КОЛОНКИ) --- */
.s-slide-inner {
    display: flex;
    justify-content: space-between; 
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    gap: 1%;
}

/* --- 1. ЛЕВЫЙ БЛОК --- */
.s-slide-left {
    flex: 0 0 34%;
    max-width: 34%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    height: 100%;
    padding-bottom: 0;
    z-index: var(--z-normal);
}

.s-left-bottom-content {
    display: flex;
    flex-direction: column;
}

.s-left-big-title {
    font-family: var(--font-primary);
    font-size: var(--fs-48); 
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    line-height: 0.95; 
    margin: 0 0 0.5rem 0;
}

.s-left-desc {
    color: var(--text-muted-dark);
    font-family: var(--font-primary);
    font-size: var(--fs-14);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.s-left-btn {
    align-self: flex-start; 
    display: inline-block;
    background-color: #555555;
    color: #111111;
    font-family: var(--font-primary);
    font-weight: 800;
    padding: 0.8rem 1.8rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    pointer-events: auto;
}

.s-left-btn:hover { 
    background-color: var(--text-main); 
}

/* --- 2. ЦЕНТРАЛЬНЫЙ БЛОК (Видео/Картинка) --- */
.s-slide-center {
    flex: 0 0 32%;
    max-width: 32%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-width: 0;
}

.s-center-media {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.s-center-video,
.s-center-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: translateZ(0) scale(var(--vid-scale, 1));
    transform-origin: center center;
}

/* временно закоммиченно
.s-center-text {
    font-family: var(--font-primary);
    font-size: var(--fs-20);
    font-weight: var(--fw-light);
    color: var(--text-main);
    text-transform: uppercase;
    text-align: left;
    line-height: 1.3;
    margin-top: auto;
    padding-top: 2rem;
}*/

/* --- 3. ПРАВЫЙ БЛОК (Текст и Кнопка) --- */
.s-slide-right {
    flex: 0 0 32%; 
    max-width: 32%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    height: 100%; 
    box-sizing: border-box; 
    padding-left: 1rem;
}

.s-right-top-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin-bottom: 1.5rem;
}

.s-right-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: #ff4500; 
    font-size: var(--fs-24);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 1.5rem 0;
}

.s-right-desc-wrapper p {
    font-family: var(--font-primary);
    font-weight: 100;
    font-size: clamp(0.75rem, 1.8vh, var(--fs-17));
    line-height: 0.9;
    text-align: left;
    margin-bottom: 0.5rem;
    color: var(--text-muted-dark);
}

.s-right-desc-wrapper {
    font-family: var(--font-primary);
    color: var(--text-muted-dark);
    flex: 1;    
    
}

.s-right-desc-wrapper strong,
.s-right-desc-wrapper b {
    color: var(--text-main);
}

.s-right-cta {
    margin-top: auto;
    display: flex;
    justify-content: flex-end; 
    width: 100%;
    pointer-events: auto;
    padding-top: 2rem;
}

.s-right-btn {
    background: #ff4500;
    color: #ffffff;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-transform: uppercase;
}

.s-right-btn:hover { 
    transform: scale(1.05); 
    background: #e03e00;
}

/* --- ПРОСТРАНСТВЕННЫЕ АНИМАЦИИ ПРИ СКРОЛЛЕ --- */
.s-slide-layer .s-slide-left,
.s-slide-layer .s-slide-center,
.s-slide-layer .s-slide-right {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.s-slide-layer.is-past .s-slide-left { opacity: 0; transform: translateY(-40px); }
.s-slide-layer.is-past .s-slide-center { opacity: 0; transform: translateY(-80px); }
.s-slide-layer.is-past .s-slide-right { opacity: 0; transform: translateY(-60px); }

.s-slide-layer.is-future .s-slide-left { opacity: 0; transform: translateY(40px); }
.s-slide-layer.is-future .s-slide-center { opacity: 0; transform: translateY(80px); }
.s-slide-layer.is-future .s-slide-right { opacity: 0; transform: translateY(60px); }

.s-slide-layer.active .s-slide-left { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.s-slide-layer.active .s-slide-center { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.s-slide-layer.active .s-slide-right { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ (Складываем в 1 колонку) --- */
@media (max-width: 1024px) {
    .services-section-master-wrapper { margin: 0; }
    .services-scroll-wrapper { height: auto !important; }
    .services-v-section { position: relative; height: auto; padding: var(--section-gap) 0; }
    
    .relative-container { height: auto; max-height: none; }
    .s-static-left { display: none; }
    
    .s-dynamic-right { position: relative; height: auto; }
    .s-slide-layer {
        position: relative;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        margin-bottom: 5rem;
    }
    
    .s-slide-layer.is-past .s-slide-left, .s-slide-layer.is-past .s-slide-center, .s-slide-layer.is-past .s-slide-right,
    .s-slide-layer.is-future .s-slide-left, .s-slide-layer.is-future .s-slide-center, .s-slide-layer.is-future .s-slide-right {
        opacity: 1; transform: none;
    }

    .s-slide-inner {
        flex-direction: column;
        gap: 2rem;
    }
    
    .s-slide-left, .s-slide-center, .s-slide-right {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding: 0;
        height: auto;
    }
    
   .s-center-media { 
    height: auto; 
    aspect-ratio: auto;
}

    .s-right-cta { justify-content: flex-start; padding-top: 1rem; }
}

/* =========================================
   PROJECTS GALLERY GRID
   ========================================= */
.projects-gallery-section {
    padding: var(--section-padding) 0;
    width: 100%;
}

.custom-gallery-wrapper { 
    width: 100%; 
}

.gallery-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    border: none;
    background: var(--text-main); 
    color: var(--text-dark);
    padding: 0.8rem 2rem;
    cursor: pointer;
    border-radius: var(--radius-full, 2rem);
    transition: all var(--transition-speed, 0.3s) ease;
    font-family: var(--font-primary);
    font-weight: var(--fw-bold, 700);
    font-size: var(--fs-sm, 0.85rem);
    text-transform: uppercase;
    z-index: var(--z-sticky);
}

.filter-btn:hover, 
.filter-btn.active {
    background: var(--color-accent); 
    color: var(--text-main);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    grid-auto-rows: clamp(250px, 25vw, 400px); 
}

.gallery-item {
    background-color: transparent;
    overflow: hidden;
    border-radius: var(--radius-md, 24px);
    position: relative;
    display: block;
    width: 100%;
    height: 100%; 
    cursor: pointer;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    will-change: transform, opacity;
}

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

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease;
}

.gallery-grid .gallery-item:hover img { 
    transform: scale(1.08); 
}

.item-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 40px 20px 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.gallery-item:hover .item-overlay { 
    opacity: 1; 
}

.item-overlay h3 {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: var(--fw-bold, 700);
    color: #fff;
    text-transform: uppercase;
}

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.projects-not-found {
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    text-align: center;
}

/* --- КНОПКА ПОДГРУЗКИ С Z-INDEX --- */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.load-more-btn {
    position: relative;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--text-main);
    color: var(--text-dark);
    border-color: var(--text-main);
}

.load-more-btn svg {
    width: 20px; height: 20px;
}

.load-more-btn .spinner { display: none; }
.load-more-btn.loading { pointer-events: none; opacity: 0.8; }
.load-more-btn.loading .arrow { display: none; }
.load-more-btn.loading .spinner { 
    display: block; 
    animation: spin 1s linear infinite; 
}

@keyframes spin { 
    100% { transform: rotate(360deg); } 
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }
    .gallery-grid .span-3 { grid-column: span 2; }
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* =========================================
   КНОПКА "НАВЕРХ"
   ========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: var(--text-main);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.5);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .scroll-to-top svg { width: 20px; height: 20px; }

}

/* =========================================
   CONTACTS SECTION
   ========================================= */
.contacts-section {
    padding: var(--section-padding) 0;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: var(--z-normal);
}

.contacts-container {
    --info-width: 30%;
    width: var(--container-width);
    display: grid;
    grid-template-columns: var(--info-width) 1fr;
    gap: var(--gap-lg);
    align-items: stretch;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contacts-title {
    font-family: var(--font-primary);
    font-size: var(--fs-48);
    font-weight: var(--fw-bold);
    color: var(--text-main);
    text-transform: uppercase;
    line-height: var(--lh-tight);
    margin: 0;
}

.contacts-details {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    margin: auto 0; 
}

.contacts-details p {
    font-family: var(--font-primary);
    font-size: var(--fs-18);
    color: var(--text-muted);
    margin: 0;
    line-height: var(--lh-normal);
}

.contacts-details strong {
    color: var(--text-main);
    font-weight: var(--fw-semibold);
}

.contacts-details a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.contacts-details a:hover {
    color: var(--hover-color-accent);
}

/* --- MAP --- */
.contacts-map-wrapper {
    position: relative;
    width: 100%;
    height: clamp(350px, 40vh, 500px);
    z-index: var(--z-normal);
}

.contacts-map {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    -webkit-mask-image: -webkit-radial-gradient(var(--bg-surface), var(---hover-color-text));
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: none;
    transform: translateZ(0);
}

.contacts-map-wrapper:hover iframe {
    pointer-events: auto;
}

/* --- MOBILE --- */
@media (max-width: 1024px) {
    .contacts-container {
        grid-template-columns: 1fr;
        gap: var(--block-gap);
    }
    
    .contacts-info {
        height: auto;
    }
    
    .contacts-details {
        margin: var(--gap-md) 0 0 0;
    }
    
    .contacts-map-wrapper {
        height: clamp(300px, 50vw, 400px);
    }
}
/* =========================================
   ФУТЕР
   ========================================= */
.site-footer {
    background-color: #040a10;
    padding: 4rem 0 3rem;
    color: var(--text-main);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: var(--z-normal);
    font-family: var(--font-primary);
}

.footer-container {
    width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* --- Колонки и заголовки --- */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: var(--text-main);
    font-family: var(--font-primary);
}

/* --- Логотип и контакты --- */
.footer-logo {
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo .svg-logo {
    height: 40px;
    width: auto;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-contacts p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-family: var(--font-primary);
}

.footer-contacts strong {
    color: var(--text-main);
    font-weight: 600;
}

.footer-contacts a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-contacts a:hover {
    color: var(--color-accent);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials .social-link {
    color: var(--text-muted);
    transition: color var(--transition-speed) ease;
}

.footer-socials .social-link:hover {
    color: var(--color-accent);
}

.footer-socials .svg-social {
    width: 24px;
    height: 24px;
}

/* --- Навигация --- */
.footer-col--nav {
    margin-top: calc(40px + 2rem);
}
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-menu li a {
    color: #8c8c8c;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color var(--transition-speed) ease;
}

.footer-menu li a:hover {
    color: var(--color-accent);
}

/* --- Форма обратной связи --- */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.footer-form input[type="text"],
.footer-form input[type="tel"] {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-speed) ease;
    box-sizing: border-box;
}

.footer-form input::placeholder {
    color: #666;
}

.footer-form input:focus {
    border-color: var(--color-accent);
}

.footer-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.footer-checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--color-accent);
}

.footer-checkbox-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    font-family: var(--font-primary);
}

.footer-submit {
    background: var(--color-accent);
    color: var(--text-main);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    margin-top: 0.5rem;
}

.footer-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 106, 0, 0.3);
}

/* --- Копирайт --- */
.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright p {
    margin: 0;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.4;
    font-family: var(--font-primary);
}

/* --- Адаптив --- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-col--nav {
        margin-top: 0;
    }
    
    .footer-col--form {
        grid-column: span 2;
    }
}