*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a2e; background: #fff; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8e8e8;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1100px; margin: 0 auto; padding: 12px 20px;
}
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-logo img { width: 40px; height: 40px; border-radius: 8px; }
.header-logo span { font-weight: 700; font-size: 20px; color: #1a1a2e; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { text-decoration: none; color: #555; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.header-nav a:hover { color: #16a34a; }
.header-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: #16a34a; color: #fff; padding: 10px 20px; border-radius: 8px;
    text-decoration: none; font-size: 14px; font-weight: 600; transition: background 0.2s;
}
.header-cta:hover { background: #15803d; }

/* Скрываем текст логотипа на мобильных устройствах */
@media (max-width: 600px) {
    .header-logo span {
        display: none;
    }
}

@media (max-width: 900px) {
    .header-logo span {
        display: none;
    }
}

.lang-dropdown {
    position: relative;
    display: flex;
    padding: 0px 5px;
}

/* Невидимый мостик между кнопкой и меню */
.lang-dropdown::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 6px;
    background: transparent;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background-color: #fff;
    min-width: 80px; /* Уменьшено */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 101;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    padding: 4px 0; /* Внутренние отступы */
}

.lang-dropdown:hover .lang-dropdown-content,
.lang-dropdown-content:hover {
    display: block;
}

.lang-dropdown-content a {
    color: #334155;
    padding: 6px 12px; /* Уменьшено */
    font-size: 13px; /* Уменьшен шрифт */
    font-weight: 500;
    display: block;
    text-decoration: none;
    transition: background-color 0.2s;
    text-align: center; /* Текст по центру */
}

.lang-dropdown-content a:hover {
    background-color: #f8fafc;
    color: #16a34a;
}

.lang-dropbtn {
    background: #16a34a;
    color: #fff;
    padding: 8px 16px; /* Уменьшено */
    font-size: 13px; /* Уменьшен шрифт */
    font-weight: 600;
    border: none;
    border-radius: 6px; /* Чуть скругление */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    line-height: 1;
    position: relative;
    z-index: 102;
}

.lang-dropbtn:hover {
    background: #15803d;
}

/* Иконка языка (если нужна) */
.lang-dropbtn svg {
    width: 16px;
    height: 16px;
}

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: #1a1a2e; margin: 5px 0; transition: 0.3s; }

/* ── Hero ── */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff; position: relative; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(22,163,74,0.15) 0%, transparent 70%); border-radius: 50%;
}
.hero-inner { display: flex; align-items: center; gap: 60px; position: relative; z-index: 1; }
.hero-text { flex: 1; }
.hero-badge {
    display: inline-block; background: rgba(22,163,74,0.15); color: #4ade80;
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #4ade80; }
.hero p { font-size: 17px; color: #94a3b8; max-width: 500px; margin-bottom: 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: #16a34a; color: #fff; padding: 14px 28px; border-radius: 10px;
    text-decoration: none; font-size: 15px; font-weight: 600; border: none; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #15803d; transform: translateY(-1px); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #fff; padding: 14px 28px; border-radius: 10px;
    text-decoration: none; font-size: 15px; font-weight: 600; border: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: #4ade80; background: rgba(22,163,74,0.1); }
.hero-visual { flex: 0 0 400px; text-align: center; }
.hero-visual img { width: 100%; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

/* ── Stats ── */
.stats { background: #f8fafc; padding: 50px 0; border-bottom: 1px solid #e2e8f0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item h3 { font-size: 36px; font-weight: 800; color: #16a34a; }
.stat-item p { font-size: 14px; color: #64748b; margin-top: 4px; }

/* ── Section common ── */
.section-label {
    display: inline-block; background: #f0fdf4; color: #16a34a;
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.section-title { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.section-subtitle { font-size: 16px; color: #64748b; max-width: 600px; margin-bottom: 50px; }

/* ── Features ── */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: #16a34a; box-shadow: 0 4px 20px rgba(22,163,74,0.08); }
.feature-icon {
    width: 48px; height: 48px; background: #f0fdf4; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; color: #16a34a; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #64748b; line-height: 1.6; }

/* ── Kaspi Integration ── */
.kaspi { padding: 80px 0; background: #f8fafc; }
.kaspi-inner { display: flex; align-items: center; gap: 60px; }
.kaspi-text { flex: 1; }
.kaspi-visual { flex: 0 0 400px; text-align: center; }
.kaspi-visual img { width: 100%; border-radius: 16px; }
.kaspi-badges { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.kaspi-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 16px;
    font-size: 14px; font-weight: 600; color: #334155;
}
.kaspi-badge svg { width: 20px; height: 20px; color: #16a34a; }

/* ── Platforms ── */
.platforms { padding: 80px 0; }
.platforms-grid {display: flex;gap: 20px;margin-top: 40px;justify-content: center;}
.platform-card {
    text-align: center; padding: 32px 20px; background: #f8fafc;
    border: 1px solid #e2e8f0; border-radius: 14px; transition: border-color 0.2s;
}
.platform-card:hover { border-color: #16a34a; }
.platform-card svg { width: 48px; height: 48px; color: #16a34a; margin-bottom: 12px; }
.platform-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.platform-card p { font-size: 13px; color: #64748b; }

/* ── Equipment ── */
.equipment { padding: 80px 0; background: #f8fafc; }
.equipment-hero-img { text-align: center; margin-bottom: 40px; }
.equipment-hero-img img { max-width: 600px; width: 100%; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.equipment-grid-img { text-align: center; margin-top: 30px; }
.equipment-grid-img img { max-width: 700px; width: 100%; border-radius: 14px; }
.equip-price-note {
    text-align: center; margin-top: 24px; font-size: 18px; font-weight: 700; color: #16a34a;
}

/* ── Pricing Calculator ── */
.pricing { padding: 80px 0; }
.calc-card {
    max-width: 560px; margin: 0 auto; background: #f8fafc;
    border: 2px solid #e2e8f0; border-radius: 20px; padding: 40px;
}
.calc-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0; border-bottom: 1px solid #e2e8f0;
}
.calc-row:last-of-type { border-bottom: none; }
.calc-label { font-size: 15px; font-weight: 600; color: #334155; }
.calc-label small { display: block; font-size: 12px; font-weight: 400; color: #94a3b8; margin-top: 2px; }
.calc-controls { display: flex; align-items: center; gap: 14px; }
.calc-btn {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid #d1d5db;
    background: #fff; font-size: 20px; font-weight: 700; color: #334155;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}
.calc-btn:hover { border-color: #16a34a; background: #f0fdf4; }
.calc-value { font-size: 20px; font-weight: 800; color: #1a1a2e; min-width: 30px; text-align: center; }
.calc-total {
    text-align: center; margin-top: 28px; padding-top: 24px; border-top: 2px solid #e2e8f0;
}
.calc-total-label { font-size: 14px; color: #64748b; margin-bottom: 4px; }
.calc-total-price { font-size: 42px; font-weight: 800; color: #16a34a; }
.calc-total-price span { font-size: 18px; font-weight: 500; color: #64748b; }
.calc-total-note { font-size: 13px; color: #94a3b8; margin-top: 6px; }
.calc-cta { text-align: center; margin-top: 24px; }
.calc-cta .btn-primary { width: 100%; justify-content: center; padding: 16px 28px; font-size: 16px; }

/* ── CTA ── */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff; text-align: center;
}
.cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.cta p { font-size: 16px; color: #94a3b8; max-width: 480px; margin: 0 auto 32px; }
.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25d366; color: #fff; padding: 16px 36px; border-radius: 12px;
    text-decoration: none; font-size: 17px; font-weight: 700;
    transition: background 0.2s, transform 0.15s;
}
.btn-whatsapp:hover { background: #22c55e; transform: translateY(-2px); }
.btn-whatsapp svg { width: 22px; height: 22px; }

/* ── Footer ── */
footer { padding: 40px 0; border-top: 1px solid #e2e8f0; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-left img { width: 32px; height: 32px; border-radius: 6px; }
.footer-left span { font-weight: 600; font-size: 14px; }
.footer-center { font-size: 13px; color: #64748b; line-height: 1.7; max-width: 340px; }
.footer-right { text-align: right; }
.footer-right a { display: block; color: #64748b; text-decoration: none; font-size: 13px; margin-bottom: 4px; transition: color 0.2s; }
.footer-right a:hover { color: #16a34a; }

/* ── WhatsApp Float ── */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 99;
    width: 56px; height: 56px; background: #25d366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: transform 0.2s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-visual { flex: none; width: 100%; max-width: 340px; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero h1 { font-size: 32px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .kaspi-inner { flex-direction: column; }
    .kaspi-visual { flex: none; width: 100%; max-width: 360px; }
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .header-nav { display: none; }
    .mobile-menu-btn { display: block; }
}
@media (max-width: 600px) {
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 26px; }
    .section-title { font-size: 24px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-item h3 { font-size: 28px; }
    .platforms-grid { grid-template-columns: 1fr 1fr; }
    .calc-card { padding: 24px; }
    .calc-total-price { font-size: 32px; }
}
@media (max-width: 900px) {
    .header-nav.show {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: #fff;
        padding: 16px 20px; gap: 12px; border-bottom: 1px solid #e8e8e8;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
}

/* ── Carousel ── */
.equipment-carousel {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-slide {
    min-width: 100%;
}
.carousel-slide img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}
.carousel-btn:hover {
    background: #16a34a;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.dot:hover { background: rgba(255,255,255,0.8); }
.dot.active {
    background: #16a34a;
    transform: scale(1.2);
}
@media (max-width: 600px) {
    .carousel-btn { width: 36px; height: 36px; }
    .carousel-btn svg { width: 18px; height: 18px; }
    .carousel-btn.prev { left: 8px; }
    .carousel-btn.next { right: 8px; }
}
/* ── New Calculator Services ── */
.calc-services {
    margin-top: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    transition: border-color 0.2s;
}

.service-item:hover {
    border-color: #16a34a;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #16a34a;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #16a34a;
    border-color: #16a34a;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.service-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}

.service-desc {
    font-size: 12px;
    color: #64748b;
}

.service-price {
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
}

.calc-total-label small {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}
