/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

:root {
    --black: #0D0D0D;
    --white: #FFFFFF;
    --red: #E42313;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E8E8E8;
    --gray-400: #B0B0B0;
    --gray-500: #7A7A7A;
    --font-heading: 'Bicubik', 'Space Grotesk', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 1280px;
    --px: 80px;
}

body { font-family: var(--font-body); color: var(--black); background: var(--white); overflow-x: hidden; }

.container { max-width: var(--max-width); margin: 0 auto; padding-left: var(--px); padding-right: var(--px); }

/* ===== TYPOGRAPHY ===== */
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-size: 14px; font-weight: 500;
    text-decoration: none; cursor: pointer; border: none;
    transition: all 0.3s ease;
}

.btn--primary {
    background: var(--black); color: var(--white);
    padding: 14px 28px; border-radius: 24px;
}
.btn--primary:hover { background: var(--red); }

.btn--outline {
    background: transparent; color: var(--black);
    padding: 14px 28px; border-radius: 24px;
    border: 1px solid var(--black);
}
.btn--outline:hover { background: var(--red); color: var(--white); border-color: var(--red); }

.btn--red {
    background: var(--red); color: var(--white);
    padding: 14px 32px; border-radius: 24px;
    font-size: 14px; font-weight: 500;
}
.btn--red:hover { background: #c91f11; }
.btn--red:disabled { opacity: 0.6; cursor: not-allowed; }

.btn--sm { padding: 12px 24px; font-size: 13px; border-radius: 20px; }

/* ===== NAV LINKS ===== */
.nav-link {
    font-size: 14px; color: var(--black); text-decoration: none;
    position: relative; transition: color 0.3s ease;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 1px; background: var(--red);
    transition: width 0.3s ease;
}
.nav-link:hover { color: var(--red); }
.nav-link:hover::after { width: 100%; }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.95); transition: all 0.3s ease;
}
.header--sticky { backdrop-filter: blur(12px); background: rgba(255,255,255,0.85); box-shadow: 0 1px 0 var(--gray-200); }

.header__top { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.header__left { display: flex; align-items: center; gap: 32px; }
.header__right { display: flex; align-items: center; gap: 24px; }
.header__nav-main { display: flex; gap: 24px; }
.header__nav-main .nav-link--active { color: var(--black); font-weight: 500; }
.header__nav-main .nav-link:not(.nav-link--active) { color: var(--gray-500); }

.logo { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--red); text-decoration: none; letter-spacing: 1px; }

.header__phone { font-size: 14px; font-weight: 500; color: var(--black); text-decoration: none; transition: color 0.3s; }
.header__phone:hover { color: var(--red); }

.header__login { display: flex; align-items: center; gap: 6px; }

.header__divider { height: 1px; background: var(--gray-200); }

.header__sub { display: flex; gap: 32px; padding-top: 12px; padding-bottom: 12px; }
.header__sub .nav-link { font-size: 13px; color: var(--black); }

.burger { display: none; background: none; border: none; cursor: pointer; width: 24px; height: 20px; position: relative; }
.burger span { display: block; width: 100%; height: 2px; background: var(--black); position: absolute; left: 0; transition: all 0.3s; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }
.burger--open span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

.mobile-nav { display: none; }

/* ===== HERO ===== */
.hero { padding-top: 120px; }
.hero__content { display: flex; align-items: center; gap: 40px; padding-top: 60px; padding-bottom: 60px; }
.hero__text { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.hero__subtitle { font-size: 13px; color: var(--gray-500); }
.hero__title { font-family: var(--font-heading); font-size: clamp(36px, 4.5vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -1px; color: var(--black); }
.hero__desc { font-size: 16px; color: var(--gray-500); line-height: 1.6; }
.hero__buttons { display: flex; gap: 12px; align-items: center; }
.hero__reviews { display: flex; align-items: center; gap: 8px; }
.hero__reviews-label { font-size: 13px; color: var(--gray-500); }
.hero__reviews-icons { display: flex; gap: 4px; }
.review-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}
.review-link:hover { transform: scale(1.15); opacity: 0.85; }

.hero__image { flex-shrink: 0; width: 500px; height: 500px; }
.hero__image img { width: 100%; height: 100%; object-fit: contain; }

/* ===== PARALLAX ===== */
.parallax { will-change: transform; }

/* ===== STATS ===== */
.stats { padding: 40px 0; }
.stats__divider { height: 1px; background: var(--gray-200); margin-bottom: 24px; }
.stats__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats__item { display: flex; flex-direction: column; gap: 4px; }
.stats__number {
    font-family: var(--font-heading); font-size: clamp(28px, 3vw, 40px); font-weight: 600;
    letter-spacing: -1px; color: var(--black);
    transition: all 0.6s ease;
}
.stats__number--visible { animation: countFade 0.6s ease forwards; }
.stats__label { font-size: 13px; color: var(--gray-500); line-height: 1.4; }

@keyframes countFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== TARIFFS ===== */
.tariffs { padding: 40px 0; }
.tariffs__scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.tariffs__scroll::-webkit-scrollbar { height: 4px; }
.tariffs__scroll::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

.tariff-card {
    flex-shrink: 0; border-radius: 16px; padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tariff-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }

.tariff-card--expanded { width: 320px; border: 1px solid var(--gray-200); display: flex; flex-direction: column; gap: 16px; }
.tariff-card--collapsed { width: 220px; height: 380px; background: var(--gray-100); display: flex; flex-direction: column; gap: 16px; }

.tariff-card__head { display: flex; justify-content: space-between; align-items: center; }
.tariff-card__title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.tariff-card--collapsed .tariff-card__title { font-size: 16px; }
.tariff-card__desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.tariff-card__divider { height: 1px; background: var(--gray-200); }
.tariff-card__placeholder { flex: 1; background: var(--gray-200); border-radius: 12px; }

.tariff-card__feature { display: flex; gap: 8px; align-items: flex-start; }
.tariff-card__feature div { display: flex; flex-direction: column; gap: 2px; }
.tariff-card__feature strong { font-size: 14px; font-weight: 600; }
.tariff-card__feature span { font-size: 12px; color: var(--gray-500); }

.tariff-card__price { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tariff-card__price-num { font-family: var(--font-heading); font-size: 40px; font-weight: 700; letter-spacing: -1px; }
.tariff-card__price-unit { display: flex; flex-direction: column; font-size: 13px; }
.tariff-card__price-unit span:last-child { color: var(--gray-500); }
.tariff-card__footnote { font-size: 11px; color: var(--gray-400); line-height: 1.4; }

.tariff-check {
    flex-shrink: 0; width: 320px; height: 380px; padding: 32px;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
}
.tariff-check__title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; line-height: 1.1; }

/* ===== PROMO ===== */
.promo { padding: 40px 0; }
.promo__card {
    background: var(--gray-100); border-radius: 16px; padding: 32px 40px;
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.promo__content { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.promo__title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.promo__text { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.promo__arrow {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center;
    color: var(--black); transition: all 0.3s ease;
}
.promo__arrow:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* ===== FORM ===== */
.form-section { padding: 60px 0; }
.form-section__container { display: flex; justify-content: flex-end; }
.form-section__wrap { width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 24px; }
.form-section__title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; }

.form { display: flex; flex-direction: column; gap: 24px; }
.form__field { border-bottom: 1px solid var(--gray-200); padding-bottom: 12px; }
.form__input {
    width: 100%; border: none; outline: none; font-family: var(--font-body);
    font-size: 14px; color: var(--black); background: transparent;
}
.form__input::placeholder { color: var(--gray-400); }
.form__input:focus { border-color: var(--black); }

.form__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.form__disclaimer { font-size: 11px; color: var(--gray-400); line-height: 1.4; flex: 1; }
.form__error { font-size: 13px; color: var(--red); }

/* ===== FAQ ===== */
.faq { padding: 60px 0; }
.faq__container { display: flex; gap: 80px; }
.faq__title { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.1; flex-shrink: 0; width: 280px; }
.faq__list { flex: 1; }
.faq__item { border-bottom: 1px solid var(--gray-200); }
.faq__question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; border: none; background: none; cursor: pointer;
    font-family: var(--font-body); font-size: 15px; color: var(--black); text-align: left;
    transition: color 0.3s;
}
.faq__question:hover { color: var(--red); }
.faq__icon {
    font-size: 20px; color: var(--gray-500); transition: transform 0.3s ease;
    flex-shrink: 0; margin-left: 16px;
}
.faq__item--open .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 0 20px; }
.faq__answer p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ===== NEWS ===== */
.news { padding: 40px 0; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.news-card {
    display: flex; flex-direction: column; gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover { transform: translateY(-4px); }

.news-card__top {
    background: var(--gray-100); border-radius: 16px 16px 0 0;
    padding: 24px 24px 16px; display: flex; flex-direction: column; gap: 8px;
}
.news-card__head { display: flex; justify-content: space-between; align-items: center; }
.news-card__title { font-family: var(--font-heading); font-size: 14px; font-weight: 700; }
.news-card__date { font-size: 12px; color: var(--gray-400); }
.news-card__body { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* ===== FOOTER ===== */
.footer { padding: 40px 0; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 32px; }
.footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__phone { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--black); text-decoration: none; transition: color 0.3s; }
.footer__phone:hover { color: var(--red); }
.footer__email { font-size: 14px; color: var(--gray-500); text-decoration: none; transition: color 0.3s; }
.footer__email:hover { color: var(--red); }

.footer__nav { display: flex; gap: 80px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-title { font-size: 14px; font-weight: 600; color: var(--black); }
.footer__link { font-size: 13px; color: var(--gray-500); text-decoration: none; transition: color 0.3s; }
.footer__link:hover { color: var(--red); }

.footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.footer__info p { font-size: 12px; color: var(--gray-500); line-height: 1.5; }
.footer__social { display: flex; gap: 12px; }
.social-btn {
    width: 40px; height: 40px; border-radius: 50%; background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    color: var(--black); text-decoration: none; transition: all 0.3s ease;
}
.social-btn:hover { background: var(--red); color: var(--white); }

/* ===== LEGAL ===== */
.legal {
    padding: 16px 0; background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}
.legal p { font-size: 11px; color: var(--gray-400); line-height: 1.5; }
.legal p + p { margin-top: 4px; }
.legal a { color: var(--gray-500); text-decoration: underline; transition: color 0.3s; }
.legal a:hover { color: var(--red); }

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root { --px: 40px; }
    .hero__image { width: 350px; height: 350px; }
    .faq__container { flex-direction: column; gap: 32px; }
    .faq__title { width: auto; }
    .tariff-check { width: 260px; }
    .footer__nav { gap: 40px; }
}

@media (max-width: 768px) {
    :root { --px: 20px; }

    .header__nav-main, .header__sub { display: none; }
    .burger { display: block; }
    .mobile-nav {
        display: flex; flex-direction: column; gap: 0;
        padding: 0 20px 20px; background: var(--white);
        border-bottom: 1px solid var(--gray-200);
    }
    .mobile-nav__link {
        display: block; padding: 16px 0; font-size: 16px; color: var(--black);
        text-decoration: none; border-bottom: 1px solid var(--gray-200);
    }
    .mobile-nav__link:hover { color: var(--red); }
    .mobile-nav__link--cta {
        margin-top: 16px; background: var(--red); color: var(--white);
        text-align: center; padding: 16px; border-radius: 12px; border: none;
    }

    .hero__content { flex-direction: column; text-align: center; padding-top: 30px; padding-bottom: 30px; }
    .hero__buttons { justify-content: center; }
    .hero__reviews { justify-content: center; }
    .hero__image { width: 280px; height: 280px; }

    .stats__row { grid-template-columns: repeat(2, 1fr); }

    .tariffs__scroll { gap: 12px; }
    .tariff-card--expanded { width: 280px; }
    .tariff-card--collapsed { width: 180px; height: 300px; }
    .tariff-check { width: 260px; height: 300px; }

    .promo__card { flex-direction: column; text-align: center; }

    .form-section__container { justify-content: center; }
    .form-section__wrap { max-width: 100%; }
    .form__bottom { flex-direction: column; gap: 16px; }

    .news__grid { grid-template-columns: 1fr; }

    .footer__top { flex-direction: column; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 24px; align-items: flex-start; }
    .footer__nav { gap: 40px; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 32px; }
    .stats__number { font-size: 28px; }
    .hero__image { width: 220px; height: 220px; }
    .header__phone { display: none; }
    .footer__nav { flex-direction: column; gap: 24px; }
}
