/* =========================================
   1. CSS VARIABLES
   ========================================= */
:root {
    /* Кольори */
    --color-bg-main: #141619;
    --color-bg-card: #191a1e; 
    --color-text-main: #ffffff;
    --color-text-muted: #e5e5e5;
    margin-left: 40px;
    margin-right: 40px;
    
    /* Градієнти (З Figma) */
    --gradient-btn: linear-gradient(121deg, rgba(61, 106, 178, 1) 9%, rgba(22, 31, 53, 1) 100%);
    --gradient-highlight: linear-gradient(135deg, #2e4c85 0%, #5b87cc 100%);
    --gradient-grid-line: linear-gradient(135deg, #665dcd 0%, #5fa4e6 45%, #d2ab67 100%);
    
    /* Типографіка та сітка */
    --font-primary: 'Montserrat', sans-serif;
    --container-width: 1500px;
    --grid-border: 1px solid rgba(255, 255, 255, 0.15);

    /* Анімації (Додано) */
    --transition-premium: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: var(--font-primary);
    line-height: 1.4;
    overflow-x: hidden; 
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

/* =========================================
   3. ГЛОБАЛЬНІ КОМПОНЕНТИ
   ========================================= */
.section-title {
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 60px;
}

/* Базовий клас кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    transition: var(--transition-premium);
    will-change: transform, filter, box-shadow;
}

/* Універсальна первинна кнопка */
.btn--primary {
    background: var(--gradient-btn);
    color: var(--color-text-main);
    padding: 14px 36px;
    border-radius: 40px; 
    font-weight: 600;
    font-size: 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn--primary:hover, .btn--hero:hover, .btn--submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(61, 106, 178, 0.4);
    filter: brightness(1.15); 
}

.btn--primary:active, .btn--hero:active, .btn--submit:active {
    transform: translateY(-1px);
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    font-weight: 800; 
    font-size: 22px; 
    line-height: 1.1; 
    transition: opacity 0.3s ease;
}
.logo:hover { opacity: 0.8; }
.logo svg { width: 45px; height: 45px; }
.logo--small { font-size: 14px; }
.logo--small svg { width: 30px; height: 30px; }


/* =========================================
   4. СЕКЦІЇ ТА ФОНОВІ КАРТИНКИ
   ========================================= */

/* --- Хедер --- */
.header {
    padding: 40px 0;
    margin-bottom: 80px;
}

/* --- Hero (Головний екран) --- */
.hero {
    display: flex;
    flex-direction: column;
    margin-bottom: 180px;
    position: relative;
    z-index: 1; 
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    right: -340px; 
    width: 1920px;
    height: 1080px;
    background-image: url('./Img/Picture1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    /* Анімація дихання фону */
    animation: pulseHero 8s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes pulseHero {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.03); opacity: 1; }
}

.hero__title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: 0.01em;
}

.hero__stats-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.hero__stats {
    text-align: right;
    font-size: clamp(24px, 2.5vw, 40px);
    margin-top: 30px ;
    font-weight: 600;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn--hero {
    background: var(--gradient-btn); 
    color: var(--color-text-main);
    padding: 14px 30px; 
    border-radius: 40px;
    font-weight: 700;
    font-size: 25px;
    text-transform: uppercase;
    transition: var(--transition-premium);
    letter-spacing: 0.05em;
}

.btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-premium);
}

.btn-circle svg {
    width: 18px;
    height: 18px;
    stroke-width: 1px;
}

.btn-circle:hover {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: scale(1.1) rotate(5deg);
}

/* --- Features (Переваги) --- */
.features { margin-bottom: 180px; position: relative; z-index: 1; }
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 2px solid;
    border-bottom: 2px solid;
    border-image: var(--gradient-grid-line) 1;
}

/* --- Features (Переваги) --- */
.features { margin-bottom: 180px; position: relative; z-index: 1; }
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 2px solid;
    border-bottom: 2px solid;
    border-image: var(--gradient-grid-line) 1;
}

/* Базові стилі карток та анімація появи */
.feature-card {
    padding: 60px 40px;
    text-align: center;
    border-right: var(--grid-border);
    border-bottom: var(--grid-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
    background: rgba(255, 255, 255, 0);
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity, background;
}

.features__grid.is-visible .feature-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: var(--card-delay, 0s);
}

.feature-card:nth-child(3n) { border-right: none; }
.feature-card:nth-last-child(-n+3) { border-bottom: none; }

/* 1. Дефолтний стан: Карточка по центру зверху завжди синя */
.feature-card--highlight {
    background: var(--gradient-highlight);
    border-color: transparent !important; /* Ховаємо рамки для краси */
}

/* 2. МАГІЯ: Якщо мишка заходить у сітку карток — вимикаємо дефолтну синю карточку */
.features__grid:hover .feature-card--highlight {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15) !important; /* Повертаємо їй звичайні рамки */
}

/* 3. Вмикаємо синій колір ТІЛЬКИ для тієї картки, на якій зараз лежить курсор */
.features__grid .feature-card:hover {
    background: var(--gradient-highlight) !important;
    border-color: transparent !important;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(91, 135, 204, 0.4);
    z-index: 2;
    
    /* УБИВАЕМ ПАУЗУ И УСКОРЯЕМ: */
    transition-delay: 0s !important; 
    transition-duration: 0.2s !important;
}
.feature-card--highlight:hover {
    filter: brightness(1.1);
    box-shadow: 0 15px 35px rgba(91, 135, 204, 0.3);
}

.feature-card__title { font-size: 32px; font-weight: 500; margin-bottom: 15px; }
.feature-card__text { font-size: 20px; color: var(--color-text-muted); font-weight: 400; line-height: 1.4; }

/* --- Specs (Характеристики) --- */
.specs { margin-bottom: 30px; position: relative; z-index: 1; }

.specs::before {
    content: '';
    position: absolute;
    top: 480px; 
    left: -50px;
    width: 130%; 
    height: 130%;
    background-image: url('./Img/Picture2.png');
    background-size: contain;
    background-position: left center; 
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

.specs__intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.specs__text-wrap {
    flex: 1;
    max-width: 750px;
}

.specs__text-wrap .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.specs__desc {
    font-size: 20px;
    color: var(--color-text-main);
    font-weight: 400;
    line-height: 1.5;
}

.specs__main-card {
    background: var(--color-bg-card);
    border-radius: 24px;
    padding: 35px 45px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition-premium);
}
.specs__main-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.specs__circle-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    z-index: 1;
}

.progress-ring {
    position: absolute;
    top: 0; left: 0;
    transform: rotate(-90deg);
    z-index: 2;
}

.progress-ring__bg {
    stroke: #2a2c31; 
    stroke-width: 2px;
}

/* Анімація заповнення кільця при старті сторінки */
.progress-ring__circle {
    stroke: #86b2e0; 
    stroke-width: 4px; 
    stroke-dasharray: 477.5; 
    stroke-dashoffset: 477.5; /* Початковий стан — кільце порожнє */
    stroke-linecap: butt; 
    /* Звідси ми прибрали animation, щоб вона не стартувала сама по собі */
}

/* Анімація заповнення запускається ТІЛЬКИ коли користувач доскролив (.is-visible) */
.is-visible .progress-ring__circle,
.is-visible .progress-ring__circle {
    animation: fillRing 2s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.2s;
}

@keyframes fillRing {
    0% { stroke-dashoffset: 477.5; }
    100% { stroke-dashoffset: 80; } /* Кінцевий стан заповнення */
}

.circle-val {
    position: relative;
    z-index: 3;
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -1px;
}

.circle-val span { font-size: 24px; font-weight: 700; letter-spacing: 0; }
.circle-label { font-size: 18px; font-weight: 400; color: var(--color-text-main); line-height: 1.2; }

.specs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.spec-card {
    background: var(--color-bg-card);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: var(--transition-premium);
}

.spec-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.spec-card__content { padding: 40px 20px 0; position: relative; z-index: 2; }
.spec-card__val { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.spec-card__label { font-size: 16px; color: var(--color-text-main); font-weight: 400; line-height: 1.4; }

.spec-card__graphic {
    margin-top: auto;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
}

.spec-card__graphic--lightning { background: radial-gradient(ellipse at bottom, rgba(58, 98, 175, 0.4) 0%, transparent 70%); padding-bottom: 25px; }

/* Мікро-анімація іконки блискавки */
.spec-card:hover .spec-card__graphic--lightning svg {
    animation: lightning 0.8s ease-in-out infinite alternate;
}
@keyframes lightning {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,255,255,0.5)); }
    100% { transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(255,255,255,1)); }
}

.spec-card__graphic--battery { gap: 6px; padding-bottom: 30px; }
.bat-bar { width: 16px; height: 40px; border-radius: 4px; background: #2b2d35; transition: background 0.3s, box-shadow 0.3s; }
.bat-bar.active { background: #6da2df; box-shadow: 0 0 12px rgba(109, 162, 223, 0.4); }
.bat-bar.active-dim { background: #4a6c96; }
.bat-bar.empty { background: #353842; }

/* Підсвітка батареї при ховері */
.spec-card:hover .bat-bar.empty { background: rgba(109, 162, 223, 0.3); box-shadow: 0 0 8px rgba(109, 162, 223, 0.2); }

.spec-card__graphic--arcs { padding-bottom: 0; }
.arc { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border-radius: 50% 50% 0 0; border: 1px solid rgba(255, 255, 255, 0.05); background: linear-gradient(180deg, rgba(58, 98, 175, 0.15) 0%, transparent 100%); transition: var(--transition-premium); }
.arc-1 { width: 80px; height: 40px; background: rgba(58, 98, 175, 0.4); filter: blur(10px); }
.arc-2 { width: 150px; height: 75px; }
.arc-3 { width: 220px; height: 110px; border-color: rgba(255,255,255,0.02); }

.spec-card:hover .arc-2 { transform: translateX(-50%) scale(1.05); border-color: rgba(255,255,255,0.2); }

.spec-card__graphic--lines { gap: 14px; padding-bottom: 0; }
.line { width: 4px; background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%); border-radius: 2px 2px 0 0; transition: height 0.3s ease; }
.line:nth-child(1), .line:nth-child(7) { height: 25px; }
.line:nth-child(2), .line:nth-child(6) { height: 40px; }
.line:nth-child(3), .line:nth-child(5) { height: 55px; }
.line.active { height: 75px; background: #4a74c9; position: relative; box-shadow: 0 0 20px rgba(74, 116, 201, 0.8); }
.line.active svg { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); }

.spec-card:hover .line:not(.active) { height: 60px; background: rgba(255,255,255,0.2); }

/* --- Секція Калькулятора --- */
.calculator-section {
    position: relative;
    padding: 80px 0 180px;
    text-align: center;
}

.calculator-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.calculator__subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 15px;
}

.calculator__amount-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

#calc-input {
    background: transparent;
    border: none;
    color: var(--color-text-main);
    font-size: 48px;
    font-weight: 800;
    font-family: inherit;
    width: 220px;
    text-align: left;
    outline: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}
#calc-input:focus { border-color: rgba(255, 255, 255, 0.5); }

#calc-slider {
    -webkit-appearance: none;
    width: 100%;
    max-width: 300px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    margin: 0 auto 50px;
    display: block;
    cursor: pointer;
}

#calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

.calculator__box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    padding: 45px 30px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.calc-box-col {
    flex: 1;
    text-align: center;
    transition: var(--transition-premium);
}
.calc-box-col:hover { transform: scale(1.05); }

.calc-box-val {
    font-size: 34px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}
.calc-box-col:hover .calc-box-val { color: #86b2e0; }

.calc-box-label {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* --- Партнери --- */
.partners-block {
    text-align: left;
}

.partners__title {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.partners__logos-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partners__logos-row img {
    max-height: 40px;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partners__logos-row img:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
}

/* --- Bottom Section --- */
.bottom-section { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 40px; 
    margin-bottom: 100px; 
    position: relative;
    z-index: 1;
}

.bottom-section::before {
    content: '';
    position: absolute;
    top: -400px; 
    right: 200px; 
    width: 300%; 
    height: 300%;
    background-image: url('./Img/Picture3.png');
    background-size: contain;
    background-position: right center; 
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

.bottom-cta { 
    flex: 1; 
    padding-left: 60px;
}

.bottom-cta__title { 
    font-size: clamp(32px, 4vw, 48px); 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.bottom-cta__subtitle { 
    font-size: 25px; 
    color: var(--color-text-main); 
    margin-bottom: 40px; 
    line-height: 1.4; 
}

.bottom-info { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    width: 440px;
    flex-shrink: 0; 
}

/* Інформаційні картки */
.info-card { 
    background: var(--gradient-btn); 
    height: 79px; 
    padding: 0 44px; 
    border-radius: 17px; 
    font-size: 20px; 
    font-weight: 500; 
    line-height: 1.2; 
    color: var(--color-text-main);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    transition: var(--transition-premium);
}
.info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}

/* --- Form Box & Footer --- */
.footer { margin-bottom: 40px; position: relative; z-index: 2; }

.form-box { 
    display: flex; 
    justify-content: space-between; 
    gap: 40px; 
    width: 80%;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-top: 1px solid #ffffff; 
    border-left: 1px solid #ffffff; 
    border-radius: 12px; 
    padding: 40px 50px; 
    margin: 0 auto 40px auto; 
    backdrop-filter: blur(15px);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.form-box:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-left-color: rgba(255, 255, 255, 0.8);
}

.logo--small img { 
    height: 50px; 
}
.form-box__left { flex: 1; }
.form-box__right { width: 350px; flex-shrink: 0; }

.form-box__title { 
    font-size: 28px; 
    font-weight: 700; 
    line-height: 1.2; 
    margin-bottom: 15px; 
}

.form-box__desc { 
    font-size: 14px; 
    color: var(--color-text-muted); 
    line-height: 1.5; 
    max-width: 350px; 
    margin-bottom: 30px;
}

.form-group { margin-bottom: 20px; }

.form-label { 
    display: block; 
    font-size: 14px; 
    font-weight: 500; 
    margin-bottom: 8px; 
    color: var(--color-text-main); 
}

.form-input { 
    width: 100%; 
    height: 42px;
    background: transparent; 
    border-radius: 42px;
    padding: 0 20px; 
    color: var(--color-text-main); 
    font-size: 14px; 
    font-family: inherit; 
    outline: none; 
    transition: border-color 0.3s, background 0.3s; 
    border: 1px solid #fffefe; 
}

.form-input:focus { 
    border-color: #5fa4e6; 
    background: rgba(255, 255, 255, 0.05);
}

.btn--submit { 
    width: 100%; 
    height: 42px;
    background: var(--gradient-btn); 
    color: var(--color-text-main); 
    border-radius: 42px; 
    font-weight: 600; 
    font-size: 14px; 
    margin-top: 10px; 
    border: none; 
    cursor: pointer; 
    transition: var(--transition-premium); 
}

.footer__copyright { 
    text-align: center; 
    font-size: 14px; 
    font-weight: 300; 
    color: rgba(255,255,255,0.5); 
    margin-top: 40px;
}


/* =========================================
   ФІНАЛЬНИЙ ФУТЕР
   ========================================= */
/* Онови свій існуючий клас .main-footer (просто додай overflow: hidden) */
/* =========================================
   ФІНАЛЬНИЙ ФУТЕР
   ========================================= */
.main-footer {
    padding: 80px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    /* ВАЖЛИВО: Ми прибрали overflow: hidden; щоб світіння плавно йшло вгору і не обрізалося */
}

.main-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200vw; 
    height: 800px; 
    
    /* Змінили відсотки: тепер градієнт повністю розчиняється на 60% своєї висоти, 
       гарантовано не залишаючи смуг зверху */
    background: radial-gradient(
        ellipse at bottom, 
        rgba(109, 162, 223, 0.35) 0%, 
        rgba(46, 76, 133, 0.1) 35%, 
        transparent 60%
    );
    
    z-index: -1;
    pointer-events: none;
}

.footer__logo-wrap {
    margin-bottom: 40px;
}

.footer__logo {
    height: 60px; /* Регулюй розмір логотипу тут */
    width: auto;
    object-fit: contain;
}

/* Блок питань */
.footer__questions {
    text-align: center;
    margin-bottom: 60px;
}

.questions__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 12px;
}

.questions__subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-bottom: 40px;
}

.questions__action {
    display: flex;
    justify-content: center;
}

/* Біла кнопка зі світінням */
.btn--white-glow {
    background: #ffffff;
    color: #000000;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 10px 10px 10px 30px; 
    border-radius: 40px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 0 40px rgba(181, 209, 240, 0.4); 
    transition: var(--transition-premium);
    will-change: transform, box-shadow;
}

.btn--white-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 60px rgba(181, 209, 240, 0.6);
}

.btn__icon-dashed {
    width: 44px;
    height: 44px;
    border: 1px dashed rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.btn--white-glow:hover .btn__icon-dashed {
    transform: rotate(15deg) scale(1.05);
}
/* Ховаємо мобільний блок із зіркою на комп'ютерах */
.mobile-only {
    display: none !important;
}
/* Контакти (3 колонки) */
.footer__contacts-grid {
    display: flex;
    justify-content: center;
    gap: 100px; /* Великий відступ між колонками як на макеті */
    margin-bottom: 80px;
    width: 100%;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(180deg, #3f4756 0%, #b5d1f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-premium);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px; /* Відступ від кружка до заголовка */
}

.contact-circle svg {
    transition: transform 0.3s ease;
}

.contact-circle:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(181, 209, 240, 0.3);
    filter: brightness(1.1);
}

.contact-circle:hover svg {
    transform: scale(1.15);
}

.contact-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.contact-card__text {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.contact-card__text:hover {
    color: #86b2e0;
}

/* Соціальні мережі */
.footer__socials {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-main);
    transition: var(--transition-premium);
    opacity: 0.7;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    opacity: 1;
    color: #86b2e0;
    transform: translateY(-4px);
}




.mobile-only { display: none !important; }


@media (max-width: 768px) {
    /* --- 0. АНТИ-СКРОЛЛ И ФОНЫ --- */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
        position: relative;
    }

    /* Адаптируем фоны вместо скрытия */
    .hero::before {
        display: block !important;
        width: 150vw;
        height: 150vw;
        top: -50%;
        right: -25%;
        background-size: contain; 
        opacity: 0.7;
    }
    .specs::before {
        display: block !important;
        width: 150vw;
        height: 150vw;
        top: 80% !important; /* Опустили ниже */
        left: -30%;
        background-size: contain;
        opacity: 0.5;
    }
    .bottom-section::before {
        display: block !important;
        width: 200vw;
        height: 200vw;
        top: -50%;
        right: -50%;
        background-size: contain;
        opacity: 0.5;
    }

    /* --- 1. БАЗОВЫЕ НАСТРОЙКИ И ХЕДЕР --- */
    :root { margin-left: 0; margin-right: 0; }
    .page-wrapper { padding: 0 20px; overflow-x: hidden; }
    
    .header { padding: 20px 0; display: flex; justify-content: flex-start; }
    .header .logo { width: auto; justify-content: flex-start; }
    .header .logo img { max-width: 140px; height: auto; }

    /* --- 2. HERO --- */
    .hero { margin-bottom: 60px; }
    .hero__title { font-size: 32px; text-align: left; margin-bottom: 20px; line-height: 1.1; }
    .hero__stats-wrapper { justify-content: flex-end; margin-bottom: 40px; }
    .hero__stats { text-align: right; font-size: 16px; line-height: 1.4; margin-top: 0; }
    .hero__actions { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 20px; }
    .btn-circle { order: -1; width: 40px; height: 40px; background: transparent; margin-top: 25px; }
    .btn-circle svg { transform: rotate(90deg); }
    .btn--hero { width: 100%; font-size: 14px; padding: 16px 20px; border-radius: 30px; text-align: center; background: #365486; }

    /* --- 3. ПРЕИМУЩЕСТВА (ШАХМАТКА) --- */
    .features { margin-bottom: 60px !important; } /* Убрали огромную дыру */
    .features__title { font-size: 24px; text-align: center; margin-bottom: 30px; }
    .features__grid { display: grid; grid-template-columns: 1fr 1fr; border: none; }
    .feature-card {
        padding: 20px 10px; min-height: 130px; 
        border: 1px solid rgba(255, 255, 255, 0.15) !important; 
        background: transparent !important; opacity: 1; transform: none;
    }
    .feature-card__title { font-size: 14px; margin-bottom: 8px; }
    .feature-card__text { font-size: 11px; line-height: 1.3; }

    .feature-card:nth-child(1) { order: 1; }
    .feature-card:nth-child(2) { order: 2; background: linear-gradient(135deg, #4b74b6 0%, #304e82 100%) !important; border-color: transparent !important; }
    .feature-card:nth-child(4) { order: 3; background: linear-gradient(135deg, #4b74b6 0%, #304e82 100%) !important; border-color: transparent !important; }
    .feature-card:nth-child(6) { order: 4; }
    .feature-card:nth-child(3) { order: 5; }
    .feature-card:nth-child(5) { order: 6; background: linear-gradient(135deg, #4b74b6 0%, #304e82 100%) !important; border-color: transparent !important; }
    
    .feature-card:nth-child(2), .feature-card:nth-child(6), .feature-card:nth-child(5) { border-right: none !important; }
    .feature-card:nth-child(3), .feature-card:nth-child(5) { border-bottom: none !important; }
    .features__grid .feature-card:hover { transform: none !important; box-shadow: none !important; }

    /* --- 4. ХАРАКТЕРИСТИКИ (SPECS) --- */
    .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 80px; }
    .specs__intro, .specs__grid { display: contents; }
    .specs__text-wrap { grid-column: 1 / -1; text-align: left; margin-bottom: 10px; }
    .specs__text-wrap .section-title { font-size: 26px; text-align: left; margin-bottom: 15px; }
    .specs__desc { font-size: 12px; line-height: 1.4; color: #d0d0d0; }

/* Головна картка (4493) */
    .specs__main-card {
        grid-column: 1 / -1; 
        flex-direction: row; 
        justify-content: center; /* Центруємо весь вміст картки */
        align-items: center;
        padding: 15px; 
        background: rgba(255, 255, 255, 0.03); 
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px; box-shadow: none; 
        margin-bottom: 10px;
    }
    
    .specs__circle-wrap { 
        transform: scale(0.65); /* Трохи збільшив саме кільце */
        margin: -30px -15px -30px -30px; /* Прибираємо "пустоти" від масштабування */
        position: relative; /* Обов'язково для позиціонування тексту */
    }

    /* ЖОРСТКЕ ФІКСУВАННЯ ЦИФР ПО ЦЕНТРУ */
    .circle-val { 
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Ставить рівно по центру осей X та Y */
        width: 100%;
        text-align: center;
        margin: 0;
        padding-left: 2px; /* Візуально компенсуємо шрифт, щоб не здавався зсунутим вліво */
    }

    .circle-label { 
        font-size: 13px; 
        text-align: left; 
        line-height: 1.3; 
    }


 /* Маленькі картки (2х2) */
    .spec-card {
        padding: 15px 10px 0; 
        min-height: 170px; /* ЗБІЛЬШИЛИ висоту (було 150px), щоб було місце */
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03); 
        border: 1px solid rgba(255, 255, 255, 0.05); 
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    /* Відступ під текстом */
    .spec-card__content { 
        margin-bottom: 40px; /* СИЛЬНО ЗБІЛЬШИЛИ відступ (було 25px) */
        position: relative;
        z-index: 2;
    }

    .spec-card__val { font-size: 16px; margin-bottom: 4px; }
    .spec-card__label { font-size: 9px; line-height: 1.2; }
    
    /* Притискаємо графіку строго до низу картки */
    .spec-card__graphic { 
        height: 40px; 
        padding-bottom: 10px; 
        margin-top: auto; /* МАГІЯ: відштовхує графіку в самий низ */
    }
/* Зменшуємо висоту ліній для "Схід-Захід", щоб не вилазили на текст */
    .spec-card__graphic--lines .line:nth-child(1), 
    .spec-card__graphic--lines .line:nth-child(7) { height: 15px; }
    
    .spec-card__graphic--lines .line:nth-child(2), 
    .spec-card__graphic--lines .line:nth-child(6) { height: 25px; }
    
    .spec-card__graphic--lines .line:nth-child(3), 
    .spec-card__graphic--lines .line:nth-child(5) { height: 35px; }
    
    .spec-card__graphic--lines .line.active { height: 45px; }
    
    /* Трохи зменшуємо сам трикутник і притискаємо його ближче до лінії */
    .spec-card__graphic--lines .line.active svg {
        top: -10px;
        transform: translateX(-50%) scale(0.8);
    }

    /* --- 5. КАЛЬКУЛЯТОР --- */
    .calculator-section { padding: 0 0 60px 0; }
    .calculator-section .section-title { font-size: 24px; margin-bottom: 20px; }
    .calculator__subtitle { font-size: 14px; margin-bottom: 5px; }
    .calculator__amount-wrap { font-size: 22px; margin-bottom: 10px; }
    #calc-input { font-size: 22px; width: 100px; }
    
    #calc-slider { display: block; margin: 15px auto 40px; width: 90%; }

    .calculator__box {
        flex-direction: row; padding: 15px 5px; gap: 0; border-radius: 12px;
        background: rgba(255, 255, 255, 0.05); margin-bottom: 40px;
    }
    .calc-box-col { padding: 0 4px; border-right: 1px solid rgba(255, 255, 255, 0.1); }
    .calc-box-col:last-child { border-right: none; }
    .calc-box-val { font-size: 12px; margin-bottom: 4px; }
    .calc-box-label { font-size: 8px; line-height: 1.1; }

    /* --- 6. ПАРТНЕРЫ --- */
/* --- 6. ПАРТНЕРЫ --- */
    .partners__title { 
        font-size: 14px; /* Чуть увеличили заголовок "Партнери проєкту:" */
        margin-bottom: 20px; 
        text-align: center; /* Можно отцентрировать для красоты, если нужно */
    }
    .partners__logos-row { 
        gap: 20px; /* Увеличили расстояние между логотипами */
        justify-content: center; 
    }
    .partners__logos-row img { 
        height: 28px; /* ЗДЕСЬ УВЕЛИЧИЛИ РАЗМЕР (было 16px) */
        max-width: 30%; /* Разрешили им занимать чуть больше места в ряду */
        object-fit: contain; 
    }

    /* --- 7. НИЖНИЙ БЛОК CTA --- */
    /* --- 7. НИЖНИЙ БЛОК CTA (ОНОВЛЕНИЙ ТЕКСТ ТА ВІДСТУПИ) --- */
    .bottom-section { display: flex; flex-direction: column; margin-bottom: 20px; }
    .bottom-cta { display: contents; } 
    
    /* 1. Заголовок */
    .bottom-cta__title { 
        order: 1; font-size: 28px; text-align: left; 
        margin-bottom: 20px; padding-left: 0; line-height: 1.1; 
    }
    
    /* 2. Три плашки */
    .bottom-info {
        order: 2; 
        display: flex; flex-direction: row; flex-wrap: wrap;
        width: 100%; 
        gap: 10px; 
        margin-bottom: 12px; /* ЗМЕНШИЛИ: Відстань від плашок вниз до тексту */
        justify-content: center;
    }
    .info-card {
        background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); 
        border-radius: 40px; font-size: 13px; font-weight: 400; 
        padding: 12px 10px; height: auto; min-height: unset; text-align: center; 
        box-shadow: none; display: flex; align-items: center; justify-content: center; line-height: 1.2;
    }
    .info-card:nth-child(3) { order: 1; flex: 1 1 45%; background: rgba(58, 98, 175, 0.2); border-color: rgba(58, 98, 175, 0.4); } 
    .info-card:nth-child(2) { order: 2; flex: 1 1 45%; } 
    .info-card:nth-child(1) { order: 3; flex: 0 1 auto; padding: 12px 35px; margin-top: 5px; } 

    /* 3. Текст "Codex Energy..." (ВЕЛИКИЙ ТА БІЛИЙ) */
    .bottom-cta__subtitle { 
        order: 3; 
        font-size: 17px; /* ЗБІЛЬШИЛИ (було 15px) */
        color: #ffffff; /* Зробили яскраво-білим */
        font-weight: 400; /* Зробили більш читабельним */
        line-height: 1.4; /* Додали красивий інтервал між рядками */
        text-align: left; 
        margin-bottom: 5px; /* ЗМЕНШИЛИ: Відстань від тексту вниз до зірки */
    }

    /* 4. Зірка з кнопкою */
    .cta-action-group.mobile-only {
        order: 4; 
        display: flex !important; align-items: center; justify-content: space-between; 
        width: 100%; 
        margin-top: 0; 
        margin-bottom: 0; 
    }
    .cta-star-img { width: 140px; height: auto; object-fit: contain; margin-left: -25px; }
    
    /* Кнопка */
    .cta-action-group .btn--primary {
        margin-top: 0; width: auto; flex-shrink: 0; padding: 14px 24px; font-size: 14px;
        border-radius: 30px; background: linear-gradient(90deg, #304169 0%, #43619a 100%);
    }
    /* --- 8. ФОРМА --- */
    .form-box {
        flex-direction: column; padding: 30px 20px; gap: 20px; 
        width: 100%; margin-bottom: 40px;
    }
    .form-box__left, .form-box__right { width: 100%; }
    .form-box__title { font-size: 24px; margin-bottom: 10px; }
    .form-box__desc { margin-bottom: 20px; }
    .logo--small { margin-top: 10px !important; }

    /* --- 9. ФУТЕР --- */
  /* --- 9. ФУТЕР (КОМПАКТНИЙ І ПРЕМІАЛЬНИЙ) --- */
    .main-footer { padding: 40px 0 30px; }
    .footer__questions { margin-bottom: 30px; }
    
    .footer__contacts-grid {
        display: flex; 
        flex-direction: column; 
        gap: 12px; /* Дуже щільно і акуратно */
        margin-bottom: 40px;
        width: 100%;
    }

    /* Робимо з карток красиві горизонтальні плашки */
    .contact-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: 
            "icon title"
            "icon text";
        column-gap: 15px;
        row-gap: 2px;
        align-items: center;
        text-align: left;
        width: 100%;
        margin-bottom: 0;
        
        /* Додаємо преміальну напівпрозору підкладку */
        background: rgba(255, 255, 255, 0.03); 
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding: 12px 15px;
        border-radius: 20px;
    }

    /* Акуратна іконка зліва */
    .contact-circle { 
        grid-area: icon; 
        margin-bottom: 0; 
        width: 44px; /* Зменшили розмір (було 60px або 76px) */
        height: 44px; 
    }

    /* Приглушений підзаголовок (напр. "Телефон") */
    .contact-card__title { 
        grid-area: title; 
        font-size: 11px; 
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.4); 
        margin-bottom: 0; 
        align-self: end; 
    }

    /* Основний текст контакту */
    .contact-card__text { 
        grid-area: text; 
        font-size: 14px; 
        font-weight: 500;
        line-height: 1.3;
        align-self: start; 
    }

    /* Соцмережі під контактами */
    .footer__socials { justify-content: center; margin-bottom: 20px; }

    /* Переключатели видимости */
    .desktop-only { display: none !important; }
    /* Полностью скрываем блок "Залишились питання?" на мобилках */
    .footer__questions { 
        display: none !important; 
    }
}