/* =========================================
   ВИЗОРХОУМ — ОСНОВНЫЕ СТИЛИ
   ========================================= */

:root {
    --bg: #04111f;
    --bg-dark: #020b15;
    --bg-card: #081a2b;
    --text: #f5f9fc;
    --muted: #a5b7c9;
    --cyan: #00d8ff;
    --green: #9df51c;
    --border: rgba(255,255,255,.10);
    --container: 1440px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img,
svg {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

/* =========================================
   HEADER — FIXED ON TOP
   ========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;

    min-height: var(--header-height);

    background: rgba(3, 14, 26, .96);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.07);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 30px;
}

.logo-link {
    display: flex;
    align-items: center;
    width: max-content;
}

.logo {
    display: block;
    width: auto;
    height: 70px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(18px, 2.2vw, 34px);
}

.desktop-nav a {
    color: #b9c7d3;
    font-size: 17px;
    font-weight: 700;
    transition: color .2s ease;
    white-space: nowrap;
}

.desktop-nav a:hover {
    color: var(--cyan);
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.header-phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.header-phones a {
    color: #eaf2f7;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    transition: transform .2s ease;
}

.mobile-menu {
    display: none;
}

/* =========================================
   HERO
   ========================================= */

.hero {
    position: relative;
    background: var(--bg);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    width: min(var(--container), calc(100% - 48px));
    min-height: 820px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    isolation: isolate;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(4,17,31,.98) 0%,
            rgba(4,17,31,.93) 27%,
            rgba(4,17,31,.64) 52%,
            rgba(4,17,31,.22) 75%,
            rgba(4,17,31,.08) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 820px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: 60%;
    max-width: 720px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(157,245,28,.8);
}

.hero h1 {
    margin: 0;
    font-size: clamp(52px, 5vw, 82px);
    line-height: .98;
    letter-spacing: -3px;
    font-weight: 900;
}

.grad {
    color: var(--cyan);
    background: linear-gradient(90deg, #00d8ff, #9df51c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    max-width: 650px;
    margin: 30px 0 0;
    color: #bfd0df;
    font-size: 17px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 30px;
    color: #bfd0df;
    font-size: 14px;
}

.hero-points div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-points span {
    color: var(--green);
    font-size: 18px;
    font-weight: 800;
}

/* =========================================
   SECTIONS
   ========================================= */

.section {
    padding: 110px 0;
    background: var(--bg);
}

.section-dark {
    background: var(--bg-dark);
}

.section-heading {
    max-width: 850px;
    margin-bottom: 55px;
}

.section-kicker {
    margin-bottom: 12px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-heading h2,
.contact-info h2 {
    margin: 0;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.02;
    letter-spacing: -2px;
}

.section-heading p {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
    padding: 32px 0;
    background: #020b15;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
}

.footer-inner strong,
.footer-inner span {
    display: block;
}

.footer-inner strong {
    color: #fff;
    margin-bottom: 3px;
}

/* =========================================
   LIGHTBOX
   ========================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0,0,0,.92);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-content {
    max-width: min(1200px, 90vw);
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    margin: auto;
    border-radius: 12px;
    object-fit: contain;
}

.lightbox-title {
    margin-top: 12px;
    color: #fff;
    font-weight: 700;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 2;
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.08);
    cursor: pointer;
}

.lightbox-close {
    top: 20px;
    right: 25px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 32px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    width: 52px;
    height: 70px;
    transform: translateY(-50%);
    border-radius: 12px;
    font-size: 44px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 700px) {
    .container {
        width: min(var(--container), calc(100% - 32px));
    }

    .hero-inner {
        width: 100%;
        min-height: 720px;
        border-radius: 0;
    }

    .hero-content {
        min-height: 720px;
    }

    .hero-copy {
        width: 100%;
    }

    .hero-bg-image img {
        object-position: 65% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(4,17,31,.97) 0%,
                rgba(4,17,31,.83) 52%,
                rgba(4,17,31,.95) 100%
            );
    }

    .lightbox {
        padding: 15px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 56px;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}
/* Фотографии карточек услуг */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.solution-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 216, 255, 0.45);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.solution-image {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.solution-card:hover .solution-image {
    transform: scale(1.04);
}

.solution-content {
    padding: 22px;
}

.solution-content > span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
}

.solution-content h3 {
    margin: 0 0 10px;
}

.solution-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

@media (max-width: 900px) {
    .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .solution-image {
        height: 190px;
    }
}

@media (max-width: 560px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solution-image {
        height: 220px;
    }

    .solution-content {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .solution-card,
    .solution-image {
        transition: none;
    }
}
#services .service-icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #00d8ff;
    background: linear-gradient(145deg, #0d2b3d, #071827);
    border: 1px solid rgba(0, 216, 255, .3);
    border-radius: 20px;
    transition: .25s ease;
}

#services .service-icon svg {
    width: 40px;
    height: 40px;
    display: block;
    stroke: currentColor;
}

#services .service-card:hover .service-icon {
    color: #8beaff;
    border-color: #00d8ff;
    transform: translateY(-3px);
    box-shadow: 0 0 22px rgba(0, 216, 255, .15);
}

/* ADVANTAGES */
.advantages-section {
    position: relative;
    overflow: hidden;
}

.advantages-heading {
    max-width: 680px;
    margin-bottom: 34px;
}

.advantages-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #00d8ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.advantages-heading h2 {
    margin: 0 0 12px;
    color: #f5f9fc;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.advantages-heading p {
    margin: 0;
    color: #a5b7c9;
    font-size: 16px;
    line-height: 1.7;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.advantage {
    position: relative;
    min-width: 0;
    padding: 26px 22px;
    overflow: hidden;
    background: linear-gradient(145deg, #0a1d2c, #061421);
    border: 1px solid rgba(0, 216, 255, 0.16);
    border-radius: 18px;
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.advantage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 216, 255, 0.65),
        transparent
    );
    opacity: 0.6;
}

.advantage:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 216, 255, 0.48);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2),
                0 0 24px rgba(0, 216, 255, 0.06);
}

.advantage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.advantage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    color: #00d8ff;
    background: rgba(0, 216, 255, 0.07);
    border: 1px solid rgba(0, 216, 255, 0.22);
    border-radius: 15px;
}

.advantage-icon svg {
    display: block;
    width: 34px;
    height: 34px;
}

.advantage-number {
    color: rgba(0, 216, 255, 0.42);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.advantage h3 {
    margin: 0 0 12px;
    color: #f5f9fc;
    font-size: 18px;
    line-height: 1.4;
}

.advantage p {
    margin: 0;
    color: #a5b7c9;
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 1050px) {
    .advantages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .advantages-heading {
        margin-bottom: 24px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .advantage {
        padding: 22px;
    }

    .advantage-top {
        margin-bottom: 18px;
    }

    .advantage h3 {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .advantage {
        transition: none;
    }

    .advantage:hover {
        transform: none;
    }
}

/* PROCESS — этапы работы */
#process .process-subtitle {
    max-width: 650px;
    margin: 16px 0 0;
    color: #a5b7c9;
    font-size: 16px;
    line-height: 1.7;
}

#process .process {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) 30px
        minmax(0, 1fr) 30px
        minmax(0, 1fr) 30px
        minmax(0, 1fr) 30px
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 42px;
}

#process .process-step {
    position: relative;
    min-width: 0;
    min-height: 235px;
    padding: 22px 18px;
    background: linear-gradient(145deg, #0a1d2c, #061421);
    border: 1px solid rgba(0, 216, 255, 0.18);
    border-radius: 18px;
    transition: border-color .25s ease,
                transform .25s ease,
                box-shadow .25s ease;
}

#process .process-step:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 216, 255, 0.55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2),
                0 0 22px rgba(0, 216, 255, .07);
}

#process .process-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 24px;
}

#process .process-number {
    color: rgba(0, 216, 255, .6);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

#process .process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: #00d8ff;
    background: rgba(0, 216, 255, .07);
    border: 1px solid rgba(0, 216, 255, .2);
    border-radius: 14px;
}

#process .process-icon svg {
    width: 27px;
    height: 27px;
}

#process .process-step h3 {
    margin: 0 0 10px;
    color: #f5f9fc;
    font-size: 17px;
    line-height: 1.4;
}

#process .process-step p {
    margin: 0;
    color: #a5b7c9;
    font-size: 13px;
    line-height: 1.7;
}

#process .process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d8ff;
    opacity: .8;
}

#process .process-arrow svg {
    display: block;
    width: 100%;
    max-width: 48px;
    overflow: visible;
    filter: drop-shadow(0 0 4px rgba(0, 216, 255, .35));
}

#process .process-step-final {
    border-color: rgba(0, 216, 255, .32);
    background: linear-gradient(145deg, #0b2637, #061421);
}

/* Планшеты и небольшие ноутбуки */
@media (max-width: 1200px) {
    #process .process {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    #process .process-arrow {
        display: none;
    }

    #process .process-step {
        min-height: 215px;
    }
}

/* Телефоны */
@media (max-width: 650px) {
    #process .process {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 28px;
    }

    #process .process-step {
        min-height: auto;
        padding: 22px;
    }

    #process .process-step-top {
        margin-bottom: 16px;
    }

    #process .process-arrow {
        display: flex;
        height: 20px;
        transform: rotate(90deg);
    }

    #process .process-arrow svg {
        width: 34px;
        height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #process .process-step {
        transition: none;
    }

    #process .process-step:hover {
        transform: none;
    }
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 15px);
}