/* ===== Переменные ===== */
:root {
    --bg: #09090B;
    --surface: #121217;
    --surface-hover: #1A1A22;
    --text: #FFFFFF;
    --text-muted: #A1A1AA;
    
    /* Ярко-бордовый акцент */
    --primary: #B3122E;       
    --primary-hover: #D91E3F;
    --primary-glow: rgba(179, 18, 46, 0.28);
    
    --border: #27272A;
    --border-light: #3F3F46;
    
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 24px;
    --radius-sm: 12px;
}

/* ===== Сброс ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container { width: min(1280px, 92%); margin-inline: auto; }

/* ===== Типографика ===== */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

.text-accent { color: var(--primary); }

/* ===== Карточки ===== */
.hero__card, .service-card, .contact__box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn--primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 30px var(--primary-glow);
    transform: translateY(-2px);
}

.btn--glass {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn--glass:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.btn--sm { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
.btn--lg { padding: 1.2rem 2.5rem; font-size: 1.1rem; }

/* ===== Шапка ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}
.logo span { color: var(--primary); }

.nav { display: flex; gap: 2.5rem; }
.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}
.nav__link:hover { color: var(--primary); }

.header__actions { display: flex; gap: 1rem; }

/* ===== HERO ===== */
.hero { padding: 10rem 0 5rem; position: relative; }

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(179, 18, 46, 0.12);
    border: 1px solid rgba(179, 18, 46, 0.45);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.hero__title { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 1.5rem; }

.hero__desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__visual { display: flex; justify-content: flex-end; }

.hero__card {
    width: 100%;
    max-width: 380px;
    padding: 2.5rem;
    border-top: 3px solid var(--primary);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero__card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

.hero__card-body { display: flex; flex-direction: column; gap: 1.2rem; }

.hero__card-feature {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.hero__card-feature:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(179, 18, 46, 0.45);
}

.hero__card-feature strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.hero__card-feature span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== СТАТИСТИКА ===== */
.stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
    background: var(--surface);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item { text-align: center; }

.stat-item__value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-item__value small {
    font-size: 0.4em;
    color: var(--primary);
    font-weight: 600;
    margin-left: 4px;
}

.stat-item__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== СЕКЦИИ ===== */
.section { padding: 6rem 0; }
.section__head { margin-bottom: 4rem; }
.section__title { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 1rem; }
.section__desc { color: var(--text-muted); font-size: 1.1rem; }

/* ===== УСЛУГИ ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card { padding: 2.5rem; }

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.service-card__icon {
    width: 50px; height: 50px;
    background: rgba(179, 18, 46, 0.12);
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-card__icon {
    background: rgba(179, 18, 46, 0.22);
    transform: scale(1.1);
}

.service-card__name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.service-card__desc { font-size: 0.95rem; color: var(--text-muted); }

/* ===== ПРОЦЕСС ===== */
.process__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process__item {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.process__item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.process__num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.process__content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text);
}
.process__content p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== КОНТАКТЫ ===== */
.contact { padding: 6rem 0 8rem; }

.contact__box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    border-color: rgba(179, 18, 46, 0.45);
}

.contact__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact__title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}

.contact__phone {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: block;
    transition: var(--transition);
}
.contact__phone:hover { color: var(--primary); }

.contact__hours {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.contact__messengers { display: flex; gap: 1rem; }

/* Кнопки Telegram / MAX — ярко-бордовый контур */
.contact__messengers .btn--glass {
    border: 2px solid var(--primary-hover);
    color: var(--primary-hover);
    background: transparent;
}

.contact__messengers .btn--glass:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 30, 63, 0.35);
}

/* Мокап телефона */
.contact__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    display: block;
    cursor: pointer;
    width: 260px;
    height: 520px;
    background: #000;
    border-radius: 40px;
    border: 4px solid #222;
    position: relative;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transform: rotate(-5deg);
    transition: var(--transition);
}

.phone-mockup:hover { transform: rotate(0deg) scale(1.02); }

.phone-mockup__speaker {
    width: 80px; height: 25px;
    background: #000;
    border-radius: 20px;
    position: absolute;
    top: 15px; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-mockup__screen {
    width: 100%; height: 100%;
    background: #0a0f1c;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Экран вызова как на iPhone ===== */
.call-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.call-avatar {
    width: 80px; height: 80px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(179, 18, 46, 0.12), 0 0 0 20px rgba(179, 18, 46, 0.06);
    animation: callPulse 2s infinite;
}

@keyframes callPulse {
    0% { box-shadow: 0 0 0 0 rgba(179, 18, 46, 0.5); }
    70% { box-shadow: 0 0 0 30px rgba(179, 18, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(179, 18, 46, 0); }
}

.call-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.call-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.call-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.call-btn {
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: var(--primary-hover);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(217, 30, 63, 0.45);
    animation: callBtnPulse 2s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phone-mockup:hover .call-btn {
    transform: scale(1.05);
    box-shadow: 0 10px 26px rgba(217, 30, 63, 0.6);
}

@keyframes callBtnPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(217, 30, 63, 0.45); }
    50%      { box-shadow: 0 6px 26px rgba(217, 30, 63, 0.75); }
}

/* ===== ПОДВАЛ ===== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer__brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}
.footer__brand span { color: var(--primary); }
.footer__copy { font-size: 0.85rem; color: var(--text-muted); }
.footer__links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--primary); }

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(700px, 95%);
    padding: 1.5rem 2rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 3000;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 0.85rem; margin: 0; color: var(--text); }
.cookie-banner a { color: var(--primary); }
.cookie-banner__actions { display: flex; gap: 0.8rem; flex-shrink: 0; }

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__desc { margin-inline: auto; }
    .hero__actions { justify-content: center; }
    .hero__visual { justify-content: center; margin-top: 2rem; }
    .hero__card { max-width: 100%; animation: none; }
    
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .process__list { grid-template-columns: repeat(2, 1fr); }
    
    .contact__box { grid-template-columns: 1fr; padding: 2rem; }
    .contact__visual { display: none; }
}

@media (max-width: 768px) {
    .nav, .header__actions .btn--glass { display: none; }
    .header__inner { justify-content: space-between; }
    
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    
    .services__grid { grid-template-columns: 1fr; }
    .process__list { grid-template-columns: 1fr; }
    
    .contact__messengers { flex-direction: column; }
    .contact__messengers .btn { width: 100%; }
    
    .footer__inner { flex-direction: column; text-align: center; }
    .cookie-banner { flex-direction: column; padding: 1.5rem; }
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__actions .btn { flex: 1; }
}