/* style.css */
:root {
    --color-bg: #050816;
    --color-bg-alt: #020617;
    --color-surface: #0b1120;
    --color-surface-alt: #020617;
    --color-border: #111827;
    --color-border-soft: #1f2937;
    --color-primary: #38bdf8;
    --color-primary-soft: #0ea5e9;
    --color-text: #e5e7eb;
    --color-text-soft: #9ca3af;
    --color-text-muted: #6b7280;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 999px;
    --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.6);
    --container-width: 1400px;
    --transition-fast: 0.18s ease-out;
    --transition-normal: 0.25s ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section__header {
    margin-bottom: 32px;
}

.section__header--center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.section__title {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #f9fafb;
}

.section__subtitle {
    margin: 0;
    font-size: 15px;
    color: var(--color-text-soft);
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(5, 8, 22, 0.96);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(16px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.nav a {
    position: relative;
    color: var(--color-text-soft);
    padding-bottom: 2px;
    transition: color var(--transition-fast);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 999px;
    transition: width var(--transition-fast);
}

.nav a:hover {
    color: var(--color-text);
}

.nav a:hover::after {
    width: 100%;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__phone {
    font-size: 14px;
    font-weight: 500;
}

.burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-soft);
    align-items: center;
    justify-content: center;
    padding: 0;
}

.burger span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background-color: #f9fafb;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.burger span+span {
    margin-top: 4px;
}

.burger--active span:first-child {
    transform: translateY(3px) rotate(45deg);
}

.burger--active span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 70px 0 auto;
    background-color: rgba(5, 8, 22, 0.98);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    padding: 14px 24px 18px;
}

.mobile-menu--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 12px;
}

.mobile-menu__nav a {
    color: var(--color-text-soft);
}

.mobile-menu__phone {
    font-weight: 500;
    font-size: 15px;
}


/* ================= HERO ================= */

.hero {
    height: calc(100vh - 70px);
    min-height: 650px;
    background-color: #FAF9FB;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: stretch;
    background-image: url("assets/images/hero5.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero__spacer {
    flex: 1;
}

.hero__content {
    max-width: 900px;
    text-align: left;
    margin: 0;
}

.hero__title {
    margin: 0 0 18px;
    font-size: 58px;
    line-height: 1.04;
    letter-spacing: -0.05em;
    color: rgba(15, 23, 42, 0.92);
    text-shadow: 0 2px 10px rgba(2, 6, 23, 0.18);
    margin-top: 40px;
}

.hero__subtitle {
    margin: 0;
    max-width: 760px;
    font-size: 18px;
    color: rgba(15, 23, 42, 0.72);
    line-height: 1.55;
    text-shadow: 0 2px 10px rgba(2, 6, 23, 0.14);
}

.hero__chips {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    padding-bottom: 60px; /* Поднял выше (было 40px) */
}

.hero-chip {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--color-border-soft);
    background-color: rgba(11, 17, 32, 0.88);
    box-shadow: 0 14px 46px rgba(0, 0, 0, 0.34);
    text-align: left;
    transition: transform 0.2s ease-out, border-color 0.2s ease-out;
}

.hero-chip__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--color-border-soft);
    background-color: rgba(2, 6, 23, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.hero-chip__icon svg {
    width: 18px;
    height: 18px;
    color: #e5e7eb;
}

.hero-chip__text {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.hero-chip__title {
    font-size: 14px; /* Уменьшил для лучшего вхождения в ряд */
    font-weight: 600;
    color: #f9fafb;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-chip__sub {
    font-size: 14px;
    color: rgba(229, 231, 235, 0.74);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.55);
}

@media (max-width: 1100px) {
    .hero__inner { gap: 56px; }
    .hero__title { font-size: 46px; }
    .hero__subtitle { font-size: 16px; }
    .hero__chips {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .hero {
        height: auto;
        min-height: calc(100vh - 70px);
        background-image: none;
        background-color: var(--color-bg-alt);
    }
    .hero__spacer { display: none; }
    .hero__inner {
        align-items: stretch;
        gap: 82px;
        padding-top: 60px;
    }
    .hero__content {
        max-width: 980px;
        margin: 0 auto;
        text-align: center;
    }
    .hero__title { color: #f9fafb; text-shadow: none; }
    .hero__subtitle { margin: 0 auto; color: var(--color-text-soft); }
    .hero__chips {
        max-width: 1160px;
        margin: 0 auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        padding-bottom: 60px;
    }
    .hero-chip { padding: 16px; border-radius: 18px; }
    .hero-chip__icon { width: 44px; height: 44px; }
    .hero-chip__title { font-size: 14px; }
    .hero-chip__sub { font-size: 13px; color: var(--color-text-soft); }
}

@media (max-width: 640px) {
    .hero__inner { padding-top: 3vh; gap: 44px; }
    .hero__title { font-size: 34px; }
    .hero__subtitle { font-size: 14px; }
    .hero__chips { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
    .hero-chip__title, .hero-chip__sub { white-space: normal; }
}

/* ================= ABOUT ================= */

.about {
    padding: 120px 0;
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.about__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    width: 100%;
}

.about-card__subtitle {
    margin: 0 0 50px;
    font-size: 32px;
    font-weight: 700;
    color: #f9fafb;
    letter-spacing: -0.03em;
    text-align: center;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.about-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-item__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
    border-radius: 16px;
    flex-shrink: 0;
}

.about-item__icon svg {
    width: 28px;
    height: 28px;
}

.about-item__text {
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .about-card__subtitle {
        font-size: 26px;
    }
    .about-item {
        padding: 24px;
    }
    .about-item__text {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }
    .about__grid {
        grid-template-columns: 1fr;
    }
    .about-card__subtitle {
        text-align: left;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .about-item {
        padding: 20px;
        gap: 16px;
    }
    .about-item__icon {
        width: 48px;
        height: 48px;
    }
    .about-item__icon svg {
        width: 24px;
    }
}


/* Process */
.process {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 60px 0;
}

.process__timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 0 0;

    @media (max-width: 768px) {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }
}

.process__timeline::before {
    content: "";
    position: absolute;
    top: 55px;
    /* Центрируем относительно круга 50px */
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-border-soft);
    z-index: 0;

    @media (max-width: 768px) {
        display: none;
    }
}

.process-timeline__progress-line {
    position: absolute;
    top: 55px;
    /* Тоже центрируем */
    left: 0;
    height: 3px;
    background-color: var(--color-primary);
    width: 0%;
    z-index: 1;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.5);

    @media (max-width: 768px) {
        display: none;
    }
}

.process-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
    text-align: center;
    transition: transform 0.3s ease;

    &:hover {
        transform: translateY(-5px);
    }

    &.is-active {
        .process-step__circle {
            border-color: var(--color-primary);
            background-color: var(--color-primary);
            color: #fff;
            box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.6);
            transform: scale(1.1);
        }

        .process-step__text {
            color: var(--color-text);
            font-weight: 700;
        }
    }

    @media (max-width: 768px) {
        flex-direction: row;
        align-items: center;
        text-align: left;
        width: 100%;
        margin-bottom: 25px;
    }
}

.process-step__circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--color-border);
    background-color: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-soft);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;

    @media (max-width: 768px) {
        width: 45px;
        height: 45px;
    }
}

.process-step__text {
    margin: 0;
    font-size: 16px;
    color: var(--color-text-soft);
    line-height: 1.4;
    transition: color 0.4s ease;
}
/* ================= TYPES ================= */

.types {
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.type {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 28px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.type__title {
    margin: 0 0 12px;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: #f9fafb;
}

.type__content p {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--color-text-soft);
}

.type__list-title {
    font-weight: 500;
    color: var(--color-text);
}

.type__content ul {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--color-text-soft);
}

.type__media {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* ОСНОВНОЕ ИЗОБРАЖЕНИЕ */
.type__preview {
    border: none;
    background: transparent;
    padding: 0;
    overflow: visible;
}

.type__preview img {
    width: 100%;
    max-width: 420px;          /* ↓ делаем изображение меньше */
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 14px;       /* ↓ мягкое скругление */
}

/* THUMBS */
.type__thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.type-thumb {
    width: 72px;
    height: 58px;
    border-radius: 12px;
    border: 1px solid var(--color-border-soft);
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.type-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.type-thumb.is-active {
    border-color: var(--color-primary-soft);
}


/* Applications */

.applications {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.applications__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.app-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.app-card__image {
    position: relative;
    width: 100%;
    padding-top: 58%;
    overflow: hidden;
    background-color: #020617;
}

.app-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card__body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-card__title {
    margin: 0;
    font-size: 14px;
    color: #f9fafb;
}

.app-card__text {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-soft);
}

.app-card__note {
    margin: 0;
    font-size: 12px;
    color: var(--color-primary-soft);
}

/* Contacts */

.contacts {
    background-color: var(--color-bg-alt);
}

.contacts__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.contact-card {
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    padding: 20px 18px 18px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.contact-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background-color: #1f2933;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-card__label {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.contact-card__value {
    margin: 0;
    font-size: 14px;
    color: var(--color-text);
}

.contacts__map {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-soft);
}

.contacts__map-iframe {
    width: 100%;
    height: 320px;
}

/* Footer */

.footer {
    padding: 18px 0 22px;
    border-top: 1px solid var(--color-border);
    background-color: #020617;
}

.footer__inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__text {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-soft);
}

/* Responsive */

@media (max-width: 1100px) {
    .hero {
        background-position: 80% center;
        background-size: 60%;
    }

    .hero__content {
        max-width: 480px;
    }

    .applications__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contacts__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .type {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .burger {
        display: inline-flex;
    }

    .header__phone {
        font-size: 13px;
    }

    .hero {
        background-position: center bottom;
        background-size: 90%;
    }

    .hero__inner {
        justify-content: center;
    }

    .hero__content {
        max-width: 560px;
    }

    .hero__benefits {
        grid-template-columns: minmax(0, 1fr);
    }

    .about__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .process__timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 32px;
    }

    .process__timeline::before {
        display: none;
    }

    .process-step {
        flex: 0 0 30%;
    }

    .type {
        grid-template-columns: minmax(0, 1fr);
    }

    .type__media {
        align-self: stretch;
    }

    .applications__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacts__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .header__inner {
        height: 64px;
    }


    .section {
        padding: 64px 0;
    }

    .section__title {
        font-size: 24px;
    }

    .process-step {
        flex: 0 0 44%;
    }

    .applications__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contacts__cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .contacts__map-iframe {
        height: 260px;
    }

    .footer__inner {
        text-align: center;
    }
}

@media (max-width: 420px) {
    .process-step {
        flex: 0 0 100%;
    }
}