

:root {
    --color-bg: #ffffff;
    --color-surface: #f6f6f6;
    --color-surface-2: #ebebeb;
    --color-dark: #1c1c1c;
    --color-darker: #212121;
    --color-text: #212121;
    --color-text-soft: #6F6F6F;
    --color-border: #d0d0d0;
    --color-white: #ffffff;

    --color-primary-start: #233292;
    --color-primary-end:   #7081ED;
    --gradient-primary-light: linear-gradient(135deg, #233292 0%, #7081ED 100%);
    --gradient-primary-dark: linear-gradient(135deg, #00106D 0%, #233292 100%);

    --color-accent: #01106e;
    --color-accent-soft: #5555ff;

    --font-title: 'Unbounded', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-pill: 100px;

    --section-gutter: clamp(16px, 4vw, 50px);
    --section-gap: clamp(50px, 9vw, 90px);

    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lift: 0 20px 50px rgba(0, 0, 0, 0.18);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;

    overflow-x: hidden;

    /* отключаем автоматическое "раздувание" шрифта мобильным Safari —
       без этого текстовые блоки с одинаковым font-size (особенно на vw/clamp)
       рендерятся разного размера в зависимости от длины текста */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

[id] {
    scroll-margin-top: clamp(70px, 10vw, 100px);
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: clamp(14px, 0.9vw + 11px, 16px);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

img, svg, video {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

@media (min-width: 1600px) {
    body {
        zoom: 1.15;
    }
}

@media (min-width: 2200px) {
    body {
        zoom: 1.35;
    }
}

@media (min-width: 3000px) {
    body {
        zoom: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
