/* IQFinance — iqfinance.pro
   Single stylesheet, no framework, no JS. */

:root {
    --purple: #4e3297;
    --purple-deep: #2a1c5a;
    --blue: #144bcf;
    --indigo: #3b39ae;
    --ink: #32335a;
    --text: #38454c;
    --orange: #ff7200;
    --orange-dark: #eb3b1b;
    --line: #e4e6ef;
    --wrap: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    margin: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--orange);
}

h1,
h2,
p,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(32, 22, 70, 0.92);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    backdrop-filter: saturate(140%) blur(8px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 56px;
}

.brand {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    display: block;
    padding: 8px 6px;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--orange);
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;
    padding: 72px 0 64px;
    background-color: var(--purple-deep);
    background-image:
        linear-gradient(105deg, rgba(30, 18, 74, 0.94) 0%, rgba(35, 22, 88, 0.82) 38%, rgba(22, 44, 140, 0.42) 72%, rgba(20, 60, 180, 0.3) 100%),
        url('../img/hero.jpg');
    background-size: cover;
    background-position: 60% center;
    background-repeat: no-repeat;
    color: #fff;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero__lead {
    max-width: 46rem;
    margin-top: 22px;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 64px;
    margin-top: 56px;
}

.stats__num {
    display: block;
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    line-height: 1;
    font-weight: 700;
    color: var(--orange);
}

.stats__label {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
    color: #fff;
}

/* ---------- sections ---------- */

.section {
    padding: 96px 0;
}

.section__title {
    margin-bottom: 48px;
    font-size: clamp(1.65rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    font-weight: 600;
    color: var(--indigo);
}

/* ---------- benefits ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 40px;
}

.card__icon {
    width: 50px;
    height: 50px;
}

.card__title {
    margin: 18px 0 12px;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--indigo);
}

.card__text {
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ---------- lifestyle band ---------- */

.band {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 64px 20px;
    background-color: var(--purple-deep);
    background-image:
        linear-gradient(to bottom, rgba(20, 75, 207, 0.72), rgba(78, 50, 151, 0.82)),
        url('../img/lifestyle.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.band__text {
    font-size: clamp(1.5rem, 5vw, 4rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
}

/* ---------- gallery ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ---------- contacts ---------- */

.contacts__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}

.contacts__label {
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a90a6;
}

.contacts__mail {
    display: inline-block;
    font-size: clamp(1.25rem, 3vw, 1.9rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--orange);
    text-decoration: none;
    word-break: break-word;
}

.contacts__mail:hover,
.contacts__mail:focus-visible {
    color: var(--orange-dark);
}

.contacts__note {
    margin-top: 12px;
    font-size: 1.05rem;
}

.button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 32px;
    border-radius: 3px;
    background: var(--orange);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.button:hover,
.button:focus-visible {
    background: var(--orange-dark);
}

/* ---------- footer ---------- */

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: #8a90a6;
}

/* ---------- tablet ---------- */

@media (max-width: 960px) {
    .section {
        padding: 72px 0;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 32px;
    }

    .hero {
        min-height: 520px;
    }

    .band {
        min-height: 320px;
    }
}

/* ---------- mobile ---------- */

@media (max-width: 640px) {
    html {
        scroll-padding-top: 60px;
    }

    .wrap {
        padding: 0 18px;
    }

    .nav {
        gap: 2px;
    }

    .nav a {
        padding: 8px 5px;
        font-size: 13px;
    }

    .hero {
        min-height: 0;
        padding: 56px 0 52px;
        background-position: 72% center;
        background-image:
            linear-gradient(to bottom, rgba(28, 18, 70, 0.84) 0%, rgba(30, 20, 80, 0.74) 55%, rgba(22, 48, 150, 0.58) 100%),
            url('../img/hero.jpg');
    }

    .hero__lead {
        margin-top: 18px;
    }

    .stats {
        gap: 28px 40px;
        margin-top: 40px;
    }

    .stats__label {
        font-size: 0.95rem;
    }

    .section {
        padding: 56px 0;
    }

    .section__title {
        margin-bottom: 32px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .band {
        min-height: 240px;
        padding: 48px 18px;
    }

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

    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 360px) {
    .brand {
        font-size: 14px;
    }

    .nav a {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
