/* =============== Reset + Base =============== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #0e2530;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea { font: inherit; color: inherit; }

/* =============== Design tokens =============== */
:root {
    --brand-1: #00C3D4;
    --brand-2: #29F0DC;
    --brand-grad: linear-gradient(135deg, #00C3D4 0%, #29F0DC 100%);
    --brand-grad-flat: linear-gradient(90deg, #00C3D4 0%, #29F0DC 100%);
    /* Диагональный градиент hero — от фиолетового (сверху-слева)
       через циан к бирюзе (снизу-справа). */
    --hero-grad: linear-gradient(135deg, #8975B8 0%, #00C3D4 51%, #29F0DC 100%);
    --ink-900: #0e2530;
    --ink-700: #2a4552;
    --ink-500: #59717c;
    --ink-300: #94a5ae;
    --ink-100: #dde5e9;
    --bg-muted: #f5f9fa;
    --bg-dark: #0e2530;
    --white: #ffffff;
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 4px 16px -8px rgba(14, 37, 48, 0.15);
    --shadow-md: 0 12px 40px -12px rgba(14, 37, 48, 0.18);
    --shadow-lg: 0 24px 64px -16px rgba(0, 195, 212, 0.25);
    --container: 1200px;
}

/* =============== Container =============== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* =============== Header + Hero =============== */
.header {
    position: relative;
    color: var(--white);
    padding-bottom: 100px;
    overflow: hidden;
    isolation: isolate;
}
.header-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--hero-grad);
}
/* Лёгкое затемнение снизу-справа — компенсирует «выгорание» текста
   в самой светлой (бирюзовой) части градиента, где как раз плитки. */
.header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 70% at 90% 90%, rgba(14, 37, 48, 0.22), transparent 65%);
    pointer-events: none;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px;
    gap: 32px;
    position: relative;
    z-index: 10;
}
.nav-logo {
    display: block;
    line-height: 0;
}
.logo {
    height: 40px;
    width: auto;
}
.logo--dark { height: 36px; }

.nav-menu {
    display: flex;
    gap: 32px;
    margin-left: auto;
}
.nav-menu a {
    font-weight: 500;
    font-size: 15px;
    opacity: 0.9;
    transition: opacity 0.2s;
    position: relative;
    padding: 4px 0;
}
.nav-menu a:hover { opacity: 1; }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.2s;
    transform-origin: right;
}
.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-cta { flex-shrink: 0; }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-burger span {
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero content */
.hero {
    padding-top: 60px;
    text-align: center;
}
.hero-content {
    max-width: 860px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
}
.hero-title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    /* мягкая тень — не заметная, но добавляет читаемости на светлой
       правой части градиента */
    text-shadow: 0 2px 24px rgba(14, 37, 48, 0.18);
}
.hero-subtitle {
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.55;
    max-width: 640px;
    margin: 0 auto 40px;
    opacity: 0.95;
    text-shadow: 0 1px 12px rgba(14, 37, 48, 0.15);
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
    flex-wrap: wrap;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.stat-num {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 13px;
    opacity: 0.85;
    text-align: center;
}

/* =============== Hero features (три плитки на градиенте) =============== */
.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1080px;
    margin: 56px auto 0;
    padding: 0;
}
.hero-feature {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 26px;
    border-radius: 20px;
    /* Glass-эффект — плитка отделяется от градиента, текст внутри
       читается на однородном полупрозрачном слое. */
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 32px -12px rgba(14, 37, 48, 0.25);
    text-align: left;
    transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.hero-feature:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.4);
}
.hero-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
}
.hero-feature-icon svg { width: 22px; height: 22px; }
.hero-feature h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--white);
    margin: 0;
}
.hero-feature p {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

/* =============== Buttons =============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
    text-align: center;
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--wide { width: 100%; padding: 17px 28px; }
.btn--primary {
    background: var(--white);
    color: var(--ink-900);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.25);
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.3);
}
.btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.25); }
.btn--outline {
    background: transparent;
    color: currentColor;
    border: 1.5px solid currentColor;
}
.btn--outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* =============== Sections =============== */
.section {
    padding: 120px 0;
}
.section--muted { background: var(--bg-muted); }
.section--dark {
    background: var(--bg-dark);
    color: var(--white);
}
.section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 72px;
}
.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}
.section-head--light .section-eyebrow {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 20px;
}
.section-lead {
    font-size: 17px;
    color: var(--ink-500);
    max-width: 640px;
    margin: 0 auto;
}
.section-head--light .section-lead { color: rgba(255, 255, 255, 0.75); }

/* =============== About =============== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.about-text p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-700);
}
.about-text p + p { margin-top: 20px; }
.about-text b { color: var(--ink-900); font-weight: 700; }

.about-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.about-features li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.feature-dot {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-grad);
    position: relative;
    box-shadow: var(--shadow-lg);
}
.feature-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 4px;
}
.about-features h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.about-features p {
    font-size: 15px;
    color: var(--ink-500);
    line-height: 1.6;
}

/* =============== Cards =============== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: var(--white);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--ink-100);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--brand-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 24px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.card > p {
    font-size: 15px;
    color: var(--ink-500);
    line-height: 1.6;
    margin-bottom: 20px;
}
.card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.card-list li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: var(--ink-700);
    font-weight: 500;
}
.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--brand-1);
    border-bottom: 2px solid var(--brand-1);
    transform: rotate(-45deg);
}

/* =============== Steps =============== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.step {
    padding: 32px 28px;
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
}
.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}
.step-num {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}
.step h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.step p {
    font-size: 14px;
    color: var(--ink-500);
    line-height: 1.6;
}

/* =============== Why us =============== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.why-item {
    padding: 40px 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: background 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}
.why-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 0;
    background: var(--brand-grad);
    transition: height 0.3s ease;
}
.why-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(41, 240, 220, 0.3);
}
.why-item:hover::before { height: 100%; }
.why-num {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}
.why-item h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--white);
}
.why-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
}

/* =============== Contact =============== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
    padding: 56px;
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
}
.contact-info .section-eyebrow { margin-bottom: 16px; }
.contact-info .section-title { text-align: left; font-size: clamp(26px, 3vw, 36px); }
.contact-info .section-lead { text-align: left; margin: 20px 0 32px; font-size: 16px; }

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid var(--ink-100);
}
.contact-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-500);
    font-weight: 600;
}
.contact-list a {
    font-size: 17px;
    font-weight: 500;
    color: var(--ink-900);
    transition: color 0.2s;
}
.contact-list a:hover {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700);
    letter-spacing: -0.01em;
}
.form-field input,
.form-field textarea {
    padding: 14px 16px;
    border: 1.5px solid var(--ink-100);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    min-height: 48px;
    font-family: inherit;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-1);
    box-shadow: 0 0 0 4px rgba(0, 195, 212, 0.12);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--ink-300);
}
.form-field textarea { min-height: 120px; }
.form-field.error input,
.form-field.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-consent {
    font-size: 13px;
    color: var(--ink-500);
}
.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.4;
}
.form-consent input[type='checkbox'] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--brand-1);
    flex-shrink: 0;
}
.form-status {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
}
.form-status.success {
    display: block;
    background: rgba(41, 240, 220, 0.12);
    color: #027d70;
    border: 1px solid rgba(41, 240, 220, 0.3);
}
.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn--primary.contact-submit {
    background: var(--brand-grad);
    color: var(--white);
    box-shadow: 0 12px 32px -12px rgba(0, 195, 212, 0.5);
}
.contact-form .btn--primary {
    background: var(--brand-grad);
    color: var(--white);
    box-shadow: 0 12px 32px -12px rgba(0, 195, 212, 0.5);
}
.contact-form .btn--primary:hover { transform: translateY(-1px); }

/* =============== Footer =============== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 64px;
    padding-bottom: 28px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}
.footer-brand .logo {
    height: 40px;
    margin-bottom: 12px;
}
.footer-tagline {
    font-size: 14px;
    line-height: 1.5;
    max-width: 280px;
}
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}
.footer-contacts a {
    display: inline-block;
    padding: 4px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
}
.footer-contacts a:hover { color: var(--brand-2); }

.footer-bottom {
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* =============== Responsive =============== */
@media (max-width: 960px) {
    .hero-features { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; max-width: 560px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; padding: 40px; gap: 40px; }
    .contact-form { padding: 32px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
    .footer-contacts { text-align: left; }
    .section { padding: 80px 0; }
    .section-head { margin-bottom: 48px; }
    .nav-menu, .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .nav-menu.is-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        background: rgba(0, 100, 110, 0.9);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        border-radius: var(--radius-md);
        gap: 4px;
        z-index: 20;
    }
    .nav-menu.is-open a { padding: 12px 8px; font-size: 16px; }
    .hero-stats { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
    .stat-num { font-size: 28px; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .header { padding-bottom: 80px; }
    .hero { padding-top: 32px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .cards { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .section-title { font-size: 28px; }
    .contact-form { padding: 24px; }
    .contact-wrap { padding: 24px; }
}

/* =============== Motion =============== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
