* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --blue: #003b6b;
    --blue-deep: #002240;
    --blue-light: #0a4d80;
    --accent: #5a9bc7;
    --white: #ffffff;
    --gray-bg: #f5f8fc;
    --text-main: #1a2b42;
    --text-muted: #5a6b7d;
    --border: #dde4ea;
    --shadow: 0 10px 40px -10px rgba(0, 59, 107, 0.15);
}

::selection { background: var(--blue); color: var(--white); }

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    background: var(--gray-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.accent { color: var(--accent); }
.accent-dark { color: #08457e; }
.accent-light { color: #b8cfe5; }

/* ============================================
   ГЛОБАЛЬНЫЕ КАПЛИ
   ============================================ */
.global-drops {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.gdrop {
    position: absolute;
    border-radius: 50%;
    animation: gdropFloat 10s ease-in-out infinite;
}

.gdrop-1 { width: 10px; height: 10px; top: 12%; left: 5%; background: rgba(0, 59, 107, 0.12); animation-delay: 0s; }
.gdrop-2 { width: 6px; height: 6px; top: 28%; left: 14%; background: rgba(0, 59, 107, 0.09); animation-delay: 1.2s; }
.gdrop-3 { width: 14px; height: 14px; top: 48%; left: 7%; background: rgba(0, 59, 107, 0.08); animation-delay: 2.4s; }
.gdrop-4 { width: 8px; height: 8px; top: 68%; left: 11%; background: rgba(0, 59, 107, 0.1); animation-delay: 3.6s; }
.gdrop-5 { width: 12px; height: 12px; top: 86%; left: 6%; background: rgba(0, 59, 107, 0.09); animation-delay: 4.8s; }
.gdrop-6 { width: 9px; height: 9px; top: 18%; right: 9%; background: rgba(255, 255, 255, 0.35); animation-delay: 0.6s; }
.gdrop-7 { width: 13px; height: 13px; top: 42%; right: 5%; background: rgba(255, 255, 255, 0.3); animation-delay: 1.8s; }
.gdrop-8 { width: 7px; height: 7px; top: 62%; right: 13%; background: rgba(0, 59, 107, 0.1); animation-delay: 3s; }
.gdrop-9 { width: 16px; height: 16px; top: 82%; right: 7%; background: rgba(255, 255, 255, 0.28); animation-delay: 4.2s; }
.gdrop-10 { width: 6px; height: 6px; top: 35%; left: 48%; background: rgba(0, 59, 107, 0.08); animation-delay: 1.5s; }
.gdrop-11 { width: 9px; height: 9px; top: 72%; right: 44%; background: rgba(0, 59, 107, 0.09); animation-delay: 5.4s; }
.gdrop-12 { width: 11px; height: 11px; top: 8%; right: 40%; background: rgba(0, 59, 107, 0.06); animation-delay: 6.6s; }

@keyframes gdropFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    25% { transform: translate(15px, -20px) scale(1.15); opacity: 0.8; }
    50% { transform: translate(-12px, -35px) scale(1.25); opacity: 1; }
    75% { transform: translate(18px, -18px) scale(1.08); opacity: 0.6; }
}

/* --- Анимации появления --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* --- Прогресс бар --- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--blue), var(--accent));
    z-index: 1000; transition: width 0.1s;
}

/* --- Волны --- */
.section-wave {
    position: absolute; bottom: -1px; left: 0; width: 100%; height: 80px;
    z-index: 5; pointer-events: none; line-height: 0;
}
.section-wave svg { display: block; width: 100%; height: 100%; }

/* ============================================
   ШАПКА
============================================ */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    padding: 12px 0;
    transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0, 59, 107, 0.08); }

.header-inner {
    display: flex; justify-content: space-between; align-items: center;
}

.logo img {
    max-width: 220px;
    height: auto;
    display: block;
}

.logo_footer img {
    max-width: 230px;
    height: auto;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-contacts {
    display: grid;
    grid-template-columns: 16px auto;
    column-gap: 8px;
    row-gap: 3px;
    align-items: center;
    justify-content: end;
}

.contact-row {
    display: contents;
}

.contact-row i {
    color: var(--blue);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.contact-row span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.3;
    white-space: nowrap;
}

.header-phone span {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--black);
    transition: color 0.25s ease;
}

.header-phone i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.header-phone:hover span {
    color: var(--blue);
}

.header-phone:hover i {
    transform: rotate(-15deg);
}

.header-right {
    display: flex; align-items: center; gap: 30px;
}

.header-info {
    display: flex; flex-direction: column; align-items: flex-end;
}
.h-phone {
    font-weight: 700; color: var(--text-main); text-decoration: none;
    font-size: 1.1rem; transition: color 0.3s;
}
.h-phone:hover { color: var(--blue); }
.h-schedule { font-size: 0.85rem; color: var(--text-muted); }

.btn-header {
    background: var(--blue); color: var(--white);
    padding: 12px 24px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s; white-space: nowrap;
}
.btn-header:hover {
    background: var(--blue-deep); transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 59, 107, 0.3);
}

/* ============================================
   HERO
============================================ */
.hero {
    position: relative;
    padding: 90px 0 150px;
    background: #0a1628 url('../images/bg_screen_hello.png') no-repeat center top;
    background-size: cover;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 15, 35, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15;
}
.shape-1 { width: 600px; height: 600px; background: #4fc3f7; top: -200px; right: -100px; }
.shape-2 { width: 400px; height: 400px; background: #4a90c2; bottom: -150px; left: -100px; }

.hero-inner {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center;
    position: relative; z-index: 2;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px; border-radius: 30px; font-size: 0.9rem; font-weight: 600;
    margin-bottom: 24px; backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3.2rem; font-weight: 800; line-height: 1.1;
    margin-bottom: 24px; letter-spacing: -1px;
}

.hero-lead {
    font-size: 1.15rem; opacity: 0.9; margin-bottom: 36px; max-width: 540px;
}

.hero-features {
    list-style: none;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-features i {
    color: #8fb8d8;
    font-size: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-main {
    background: var(--white); color: var(--blue);
    padding: 16px 32px; border-radius: 8px; font-weight: 700;
    text-decoration: none; transition: all 0.3s; border: none; cursor: pointer;
    font-size: 1.05rem; display: inline-flex; align-items: center; gap: 10px;
}
.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    background: transparent; color: var(--white);
    padding: 16px 32px; border-radius: 8px; font-weight: 600;
    text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

/* Visual Card in Hero */
.visual-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: transform 0.4s;
    display: block;
    text-decoration: none;
    color: var(--white);
    max-width: 340px;
    margin: 0 auto;
}
.visual-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.12); }

.accreditation-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
    padding: 12px;
    background: var(--white);
    border-radius: 16px;
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
}

.accreditation-logo img { width: 100%; height: auto; display: block; }
.visual-title1 { font-size: 1.1rem; font-weight: 1000; margin-bottom: 10px; }
.visual-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.visual-sub { font-size: 0.85rem; opacity: 0.7; }

/* ============================================
   ЦИФРЫ
============================================ */
.stats {
    padding: 10px 0 100px;
    background: #16243c;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0, 59, 107, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.stat { text-align: center; }

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fdf4e3;
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: #8fb8d8;
    display: inline-block;
    margin-left: 4px;
}

.stat p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.stat-text {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #fdf4e3 !important;
    margin-top: 12px;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* ============================================
   СЕКЦИИ
============================================ */
.section { position: relative; padding: 90px 0 150px; overflow: hidden; }
.section-head { text-align: center; margin-bottom: 20px; }
.section-tag {
    display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--blue); background: #e8f0f8;
    padding: 6px 16px; border-radius: 20px; margin-bottom: 16px;
}
.section-tag-light { background: rgba(255,255,255,0.1); color: var(--accent); border: 1px solid rgba(255,255,255,0.15); }
.section-title { font-size: 2.4rem; font-weight: 800; color: var(--text-main); margin-bottom: 16px; }
.section-title-light { color: var(--white); }
.section-sub { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.section-sub-light { color: rgba(255,255,255,0.8); }

/* Benefits */
.section-benefits { background: var(--gray-bg); }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.benefit {
    background: var(--white); padding: 32px; border-radius: 14px;
    border: 1px solid var(--border); transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 59, 107, 0.05);
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.benefit-icon {
    width: 56px; height: 56px; background: #e8f0f8; color: var(--blue);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 20px; transition: 0.3s;
}
.benefit:hover .benefit-icon { background: var(--blue); color: var(--white); }
.benefit h3 { font-size: 1.15rem; margin-bottom: 10px; }
.benefit p { font-size: 0.95rem; color: var(--text-muted); }

/* Prices */
.section-prices { background: #002a4d; color: var(--white); }
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-card {
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px; padding: 32px 22px; text-align: center;
    transition: all 0.3s; display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.12); }
.price-card-icon {
    width: 56px; height: 56px; margin: 0 auto 18px;
    background: rgba(124, 184, 232, 0.15); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.price-card-icon i { font-size: 1.5rem; color: var(--accent); }

.price-card-image {
    width: 222px;
    height: 222px;
    margin: 0 auto 18px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 184, 232, 0.1);
    border: 1px solid rgba(124, 184, 232, 0.25);
}

.price-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.price-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 16px; min-height: 2.7em; display: flex; align-items: center; justify-content: center; }
.price-value { font-size: 1.9rem; font-weight: 800; margin-bottom: 20px; margin-top: auto; }
.btn-card {
    display: block; background: var(--white); color: var(--blue);
    text-decoration: none; font-weight: 700; padding: 12px; border-radius: 8px;
    transition: 0.3s;
}
.btn-card:hover { background: var(--accent); color: var(--blue-deep); }

/* ============================================
   CTA FORM
============================================ */
.section-cta {
    background: var(--gray-bg);
}

.cta {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    border-radius: 20px;
    padding: 55px 60px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
    color: var(--white);
    box-shadow: 0 30px 60px rgba(0, 59, 107, 0.25);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: var(--blue-light);
    opacity: 0.35;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.2;
}

.cta-text h2 .accent {
    color: var(--accent);
}

.cta-text p {
    opacity: 0.9;
    margin-bottom: 26px;
    font-size: 1rem;
    line-height: 1.5;
}

.cta-points {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-points span {
    font-size: 0.92rem;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cta-points i {
    color: var(--accent);
}

/* Форма */
.cta-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-form input,
.cta-form select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.cta-form input:focus,
.cta-form select:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(90, 155, 199, 0.2);
}

/* Обёртка для селекта со стрелкой */
.select-wrap {
    position: relative;
}

.select-wrap select {
    cursor: pointer;
    padding-right: 48px;
    color: var(--white);
}

.select-wrap select:invalid {
    color: rgba(255, 255, 255, 0.55);
}

.select-wrap select option {
    background: var(--blue-deep);
    color: var(--white);
    padding: 10px;
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 0.9rem;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.select-wrap select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Кнопка */
.cta-form .btn-main {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1.05rem;
    background: var(--white);
    color: var(--blue);
    margin-top: 4px;
}

.cta-form .btn-main:hover {
    background: #eef4fa;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.form-note {
    display: block;
    font-size: 0.78rem;
    opacity: 0.55;
    text-align: center;
    line-height: 1.4;
    margin-top: 2px;
}

/* ============================================
   ПОДВАЛ
============================================ */
.footer { background: #0a1628; color: rgba(255,255,255,0.75); padding-top: 80px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; padding-bottom: 60px; }
.footer-logo { font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer-logo span { color: var(--accent); }
.footer-inn { font-size: 0.85rem; opacity: 0.5; margin-top: 10px; }
.footer-contacts h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-contacts a, .footer-contacts p {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    color: inherit; text-decoration: none; transition: 0.3s;
}
.footer-brand .logo {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-brand .logo img {
    max-width: 200px;
    max-height: 56px;
    width: auto;
    height: auto;
    display: block;
    filter: brightness(1.1);
}
.footer-contacts a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; text-align: center; font-size: 0.85rem; }

.to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: var(--blue); color: var(--white); border: none; border-radius: 50%;
    cursor: pointer; font-size: 1rem; opacity: 0; visibility: hidden;
    transition: 0.3s; z-index: 99; box-shadow: 0 10px 25px rgba(0, 59, 107, 0.35);
}
.to-top.visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--blue-deep); transform: translateY(-4px); }

/* ============================================
   АДАПТИВ
============================================ */
@media (max-width: 1100px) {
    .prices { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .header-info { display: none; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.4rem; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; margin-bottom: 40px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .cta { grid-template-columns: 1fr; padding: 40px 28px; gap: 30px; }
    .cta-text h2 { font-size: 1.7rem; }
    .footer-inner { grid-template-columns: 1fr; }
}



@media (max-width: 520px) {
    .logo img { max-width: 160px; }
    .btn-header { padding: 10px 16px; font-size: 0.85rem; }
    .hero { padding: 60px 0 120px; }
    .hero h1 { font-size: 1.9rem; }
    .btn-main, .btn-ghost { width: 100%; justify-content: center; }
    .section-title { font-size: 1.6rem; }
    .prices { grid-template-columns: 1fr; }
}

/* ============================================
   СОЦСЕТИ В ПОДВАЛЕ
============================================ */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.social-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-btn i {
    color: inherit;
    margin: 0;
    width: auto;
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--blue-deep);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(90, 155, 199, 0.35);
}

@media (max-width: 520px) {
    .footer-socials {
        justify-content: center;
    }
    .social-btn {
        width: 42px;
        height: 42px;
    }
}

/* Ссылка в карточке аттестата */
.visual-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8fb8d8;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 16px;
    transition: all 0.3s ease;
}

.visual-card:hover .visual-link {
    color: var(--white);
    gap: 10px;
}

/* Бейдж ГазЧек под карточкой */
.gazchek-badge {
    display: block;
    margin: 16px auto 0;
    max-width: 260px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.gazchek-badge:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.gazchek-badge img {
    display: block;
    width: 100%;
    height: auto;
}