/* ===== RESET & BASE ===== */
:root {
    --accent: #00f2c3;
    --dark-bg: #000000;

    /* Типографика: минимум → идеал → максимум */
    --text-xs:   clamp(11px, 1vw, 13px);
    --text-sm:   clamp(13px, 1.1vw, 15px);
    --text-base: clamp(14px, 1.2vw, 16px);
    --text-md:   clamp(16px, 1.4vw, 18px);
    --text-lg:   clamp(18px, 1.6vw, 20px);
    --text-xl:   clamp(20px, 2vw, 24px);
    --text-2xl:  clamp(24px, 2.8vw, 32px);
    --text-3xl:  clamp(28px, 3.2vw, 39px);
    --text-hero: clamp(28px, 3vw, 38px);

    /* Отступы секций */
    --section-py: clamp(60px, 7vw, 100px);

    /* Внутренние отступы контейнеров */
    --container-px: clamp(20px, 5vw, 80px);

    /* Скругления */
    --radius-sm:  clamp(10px, 1.2vw, 15px);
    --radius-md:  clamp(15px, 2vw, 25px);
    --radius-lg:  clamp(20px, 3vw, 40px);
    --radius-xl:  clamp(30px, 4vw, 60px);
}

* { box-sizing: border-box; }



body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: #fff;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
    width: 100%;
    height: clamp(56px, 5.5vw, 72px);
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* На мобиле — лого слева, бургер справа */
.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 1fr auto;
    }
}
 
.logo {
    justify-self: start;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav { justify-self: center; }

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: clamp(16px, 2.5vw, 34px);
}

.nav-list a {
    text-decoration: none;
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-list a:hover { color: var(--accent); }

.header-container::after {
    content: "";
    display: block;
}

/* ===== HERO ===== */
.hero-section {
    padding-top: clamp(80px, 9vw, 120px);
    padding-bottom: clamp(50px, 7vw, 100px);
    display: flex;
    justify-content: center;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    padding: 0 var(--container-px);
}

.hero-main-card {
    background: linear-gradient(135deg, #151515 0%, #00F2A7 100%);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 4vw, 60px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: var(--text-hero);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 clamp(10px, 1vw, 16px) 0;
    text-transform: uppercase;
}
 
.accent-text { color: var(--accent); }
 
.hero-subtitle {
    font-size: var(--text-lg);
    font-weight: 400;
    margin-bottom: clamp(24px, 3vw, 40px);
}
 
.feature-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: clamp(14px, 1.8vw, 24px);
}
 
.feature-header {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
}
 
.feature-icon {
    color: var(--accent);
    font-size: var(--text-lg);
    line-height: 1;
    flex-shrink: 0;
}
 
.feature-text h4,
.feature-header h4 {
    font-size: var(--text-sm);
    margin: 0;
    font-weight: 600;
}
 
.feature-item > p {
    font-size: var(--text-xs);
    margin: 0;
    padding-left: calc(clamp(8px, 1vw, 12px) + clamp(18px, 1.6vw, 22px));
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}
 
.feature-text h4 {
    font-size: var(--text-sm);
    margin: 0;
    font-weight: 600;
}
 
.feature-text p {
    font-size: var(--text-xs);
    margin-top: 6px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}
 
.hero-actions {
    display: flex;
    gap: clamp(12px, 1.5vw, 20px);
    flex-wrap: wrap;
}
 
.hero-btn {
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 700;
    padding: clamp(12px, 1.4vw, 18px) clamp(20px, 2.5vw, 36px);
    border-radius: 50px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
 
.btn-filled {
    background: var(--accent);
    color: #000;
}
 
.btn-glass {
    background: rgba(0, 242, 195, 0.05);
    border: 1px solid var(--accent);
    color: #fff;
}
 
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 242, 195, 0.2);
}

/* ===== ABOUT ===== */
.about-section {
    padding: var(--section-py) 0;
    background-color: #000;
}

.container-about {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: var(--text-3xl);
    text-align: center;
    font-weight: 700;
    margin-bottom: clamp(16px, 2vw, 30px);
    text-transform: uppercase;
    width: 100%;
}

.section-description {
    font-size: var(--text-base);
    text-align: center;
    line-height: 1.6;
    max-width: 860px;
    margin: 0 auto clamp(36px, 4vw, 60px) auto;
    color: rgba(255, 255, 255, 0.8);
}

/* Cards grid — 6 виртуальных колонок: 3 карточки по span 2, затем 2 по span 3 */
.cards-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(16px, 2.5vw, 32px);
    width: 100%;
}

.info-card-item { grid-column: span 2; }

/* 4-я и 5-я — по полтора «слота», итого 2 карточки на ряду по центру */
.info-card-item:nth-child(4),
.info-card-item:nth-child(5) { grid-column: span 3; }

.info-card-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: clamp(20px, 2.2vw, 30px);
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.info-card-item h3 {
    text-align: center;
    font-size: var(--text-md);
    line-height: 1.2;
    margin-bottom: clamp(12px, 1.4vw, 20px);
    font-weight: 700;
}

.info-card-item p,
.info-card-item li {
    font-size: var(--text-sm);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.info-card-item ul {
    padding-left: 18px;
    margin: 0;
}

.info-card-item li { list-style-type: disc; }

/* ===== FEATURES GRID ===== */
.features-grid-section {
    width: 100%;
    background-color: var(--dark-bg);
    padding: var(--section-py) 0;
}

.container-features {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(32px, 4vw, 60px) clamp(20px, 3vw, 40px);
    width: 100%;
}

.feat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feat-icon {
    width: clamp(72px, 8vw, 110px);
    height: auto;
    margin-bottom: clamp(14px, 1.6vw, 24px);
    filter: drop-shadow(0 0 10px rgba(0, 242, 195, 0.3));
}

.feat-item h4 {
    color: #fff;
    font-size: var(--text-md);
    font-weight: 800;
    margin: 0 0 clamp(8px, 1vw, 14px) 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.feat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    line-height: 1.5;
    margin: 0;
}


/* ===== CALCULATOR ===== */
.calc-section {
    padding: var(--section-py) 0;
    background-color: #000;
}

.container-calc {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calc-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: clamp(24px, 3.5vw, 50px);
    border-radius: var(--radius-lg);
    gap: clamp(28px, 4vw, 60px);
    width: 100%;
    max-width: 900px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.calc-controls { flex: 1.2; }

.calc-results {
    flex: 1;
    background: #0a0a0a;
    padding: clamp(20px, 2.8vw, 40px);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--accent);
}

.control-group {
    margin-bottom: clamp(20px, 2.4vw, 35px);
}

.calc-controls label {
    display: block;
    margin-bottom: clamp(8px, 1vw, 14px);
    font-size: var(--text-md);
    color: #fff;
}

.calc-controls b {
    color: var(--accent);
    margin-left: 8px;
}

input[type=range] {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

.res-item span {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.res-item h4 {
    font-size: clamp(22px, 2.4vw, 36px);
    color: var(--accent);
    margin: 8px 0 clamp(16px, 2vw, 28px) 0;
    font-weight: 700;
}

.res-item:last-child h4 { margin-bottom: 0; }

/* ===== FORM ===== */
.form-section {
    background: #000;
    padding: var(--section-py) 0;
    text-align: center;
}
 
.container-form {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    justify-content: center;
}
 
.form-content {
    background: linear-gradient(145deg, #0a0a0a 0%, #111 100%);
    padding: clamp(28px, 4vw, 60px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 720px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
 
.highlight { color: var(--accent); }
 
.form-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: clamp(24px, 3vw, 40px);
}
 
.main-form {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.5vw, 20px);
}
 
.input-group {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.2vw, 16px);
}
 
.main-form input {
    padding: clamp(12px, 1.4vw, 18px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: var(--text-base);
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}
 
.main-form input:focus {
    border-color: var(--accent);
    background: rgba(0, 242, 195, 0.05);
}
 
.main-form textarea {
    padding: clamp(12px, 1.4vw, 18px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: var(--text-base);
    font-family: 'Montserrat', sans-serif;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s, background 0.3s;
}
 
.main-form textarea:focus {
    border-color: var(--accent);
    background: rgba(0, 242, 195, 0.05);
}
 
.main-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
 
.form-notes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
 
.form-note {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    line-height: 1.4;
}
 
.form-consent {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
    margin: 6px 0 0 0;
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}
 
.submit-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: clamp(14px, 1.6vw, 22px);
    border-radius: 10px;
    font-size: var(--text-md);
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
 
.submit-btn:hover {
    box-shadow: 0 0 30px rgba(0, 242, 195, 0.4);
    transform: translateY(-2px);
}

.input-error-msg {
    color: red;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

/* ===== FAQ ===== */
.faq-section {
    padding: var(--section-py) 0;
    background-color: #000;
}

.container-faq {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.2vw, 16px);
}

details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
}

details[open] {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 242, 195, 0.3);
}

summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(16px, 1.8vw, 24px) clamp(18px, 2vw, 28px);
    font-size: var(--text-md);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker { display: none; }

.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--accent);
    transition: transform 0.3s ease, opacity 0.3s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::before { width: 100%; height: 2px; }
.faq-icon::after  { width: 2px; height: 100%; }

details[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-content {
    padding: 0 clamp(18px, 2vw, 28px) clamp(18px, 2vw, 28px);
}

.faq-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-base);
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: clamp(14px, 1.6vw, 20px);
}

/* ===== FOOTER ===== */
.footer {
    padding: clamp(36px, 4.5vw, 60px) 0;
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.container-footer {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 3vw, 40px);
}

.footer-info h3 {
    font-size: var(--text-xl);
    color: var(--accent);
    margin-bottom: clamp(12px, 1.5vw, 20px);
    font-weight: 700;
}

.footer-info p,
.footer-social p,
.footer-link,
.footer-phone,
.footer-tg {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-phone {
    font-size: var(--text-lg);
    color: #fff;
    font-weight: 700;
}

.footer-link:hover,
.footer-phone:hover,
.footer-tg:hover { color: var(--accent); }

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-copy {
    margin-top: clamp(18px, 2.2vw, 30px);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid-8 { grid-template-columns: repeat(2, 1fr); }
 
    /* На планшете — 2 колонки: каждая карточка span 3 из 6 */
    .info-card-item,
    .info-card-item:nth-child(4),
    .info-card-item:nth-child(5) { grid-column: span 3; }
}
 
@media (max-width: 768px) {
    .nav { display: none; }
 
    /* Мобайл — 1 колонка */
    .info-card-item,
    .info-card-item:nth-child(4),
    .info-card-item:nth-child(5) { grid-column: span 6; }
 
    .grid-8 { grid-template-columns: repeat(2, 1fr); }
 
    .calc-wrapper { flex-direction: column; }
 
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { align-items: center; text-align: center; }
 
    .hero-actions { flex-direction: column; }
}

/* ===== BURGER ===== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
 
.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
 
/* Анимация в крестик */
.burger--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
 
@media (max-width: 768px) {
    .burger { display: flex; }
 
    .nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 80vw);
        height: 100dvh;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(16px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        padding: 80px 28px 40px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }
 
    .nav--open { right: 0; }
 
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
 
    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
 
    .nav-list a {
        display: block;
        padding: 16px 0;
        font-size: 15px;
        font-weight: 500;
    }
 
    .nav-link--external {
        color: var(--accent) !important;
    }
}