/* ============================================================
   1С Вперед! — редизайн в стиле figma.com
   Адаптив: desktop → tablet (≤1024px) → mobile (≤720px, ≤480px)
   ============================================================ */

:root {
    --ink: #1e1e1e;
    --ink-soft: #444;
    --muted: #6e6e6e;
    --bg: #ffffff;
    --bg-soft: #f7f7f8;
    --line: #e6e6e6;
    --dark: #1e1e1e;
    --dark-2: #2c2c2c;
    --green: #0acf83;
    --blue: #1abcfe;
    --purple: #a259ff;
    --orange: #ff7262;
    --red: #f24e1e;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(30, 30, 30, .06), 0 4px 12px rgba(30, 30, 30, .05);
    --shadow-lg: 0 8px 24px rgba(30, 30, 30, .10), 0 24px 64px rgba(30, 30, 30, .10);
    --header-h: 72px;
    --container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 104px 0;
}

.section--dark {
    background: var(--dark);
    color: #fff;
}


/* ---------- Typography ---------- */

.section__title {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin-bottom: 20px;
}

.section__title--light {
    color: #fff;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 14px;
}

.section__eyebrow--light {
    color: var(--green);
}

.section__lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 560px;
}

.section__head {
    max-width: 720px;
    margin-bottom: 56px;
}

.grad-text {
    background: linear-gradient(90deg, var(--red) 0%, var(--orange) 25%, var(--purple) 55%, var(--blue) 80%, var(--green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.link-light {
    color: var(--green);
    font-weight: 600;
}

.link-light:hover {
    text-decoration: underline;
}


/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
}

.btn--lg {
    padding: 15px 30px;
    font-size: 1rem;
}

.btn--primary {
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn--ghost:hover {
    box-shadow: inset 0 0 0 1.5px var(--ink);
    transform: translateY(-2px);
}

.btn--ghost-light {
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
}

.btn--ghost-light:hover {
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7);
}


/* ---------- Header ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 4px 20px rgba(30, 30, 30, .05);
}

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo__mark {
    width: 145px;
    height: 70px;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.1s ease;
}

.logo__mark:active {
    filter: brightness(0.7);
    transform: scale(0.97);
}

.logo__text {
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}

.logo__text em {
    font-style: normal;
    color: var(--green);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav__list {
    display: flex;
    gap: 26px;
}

.nav__item {
    position: relative;
}

.nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color .15s ease;
}

.nav__trigger:hover,
.nav__item.is-open .nav__trigger {
    color: var(--ink);
}

.chev {
    width: 11px;
    height: 11px;
    transition: transform .22s ease;
}

.nav__item.is-open .chev {
    transform: rotate(180deg);
}


/* Выпадающая панель-мега-меню (как на figma.com) */

.menu {
    position: absolute;
    top: calc(100% + 16px);
    left: -14px;
    min-width: 320px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(30, 30, 30, .10), 0 32px 80px rgba(30, 30, 30, .14);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 90;
}

.nav__item.is-open .menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu--wide {
    min-width: 560px;
}

.menu--right {
    left: auto;
    right: -14px;
}

.menu__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.menu__col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 14px;
    transition: background .15s ease;
}

.menu__item:hover {
    background: var(--bg-soft);
}

.menu__item strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.menu__item small {
    display: block;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--muted);
}

.menu__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu__icon svg {
    width: 17px;
    height: 17px;
    color: #fff;
}

.menu__icon--green {
    background: var(--green);
}

.menu__icon--blue {
    background: var(--blue);
}

.menu__icon--purple {
    background: var(--purple);
}

.menu__icon--orange {
    background: var(--orange);
}

.menu__icon--red {
    background: var(--red);
}

.menu__footer {
    display: block;
    margin-top: 8px;
    padding: 12px 14px 6px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--purple);
}

.menu__footer:hover {
    color: var(--ink);
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color .15s ease;
}

.nav__link:hover {
    color: var(--ink);
}

.nav__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.nav__phone {
    font-weight: 700;
    font-size: 0.92rem;
}

.nav__mail {
    font-size: 0.8rem;
    color: var(--muted);
}


/* Burger */

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 110;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
}

.burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 96px 0 72px;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}


/* Светящиеся пятна фона (живой градиент в духе Figma) */

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .32;
    animation: drift 20s ease-in-out infinite alternate;
}

.blob--green {
    width: 420px;
    height: 420px;
    background: var(--green);
    top: -140px;
    left: -120px;
}

.blob--purple {
    width: 460px;
    height: 460px;
    background: var(--purple);
    top: 40px;
    right: -160px;
    animation-delay: -7s;
}

.blob--blue {
    width: 380px;
    height: 380px;
    background: var(--blue);
    bottom: -180px;
    left: 34%;
    animation-delay: -13s;
    opacity: .25;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, 30px) scale(1.12);
    }
    100% {
        transform: translate(-30px, 50px) scale(.94);
    }
}

.hero__inner {
    text-align: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 26px;
}

.hero__title {
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto 22px;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 34px;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}


/* Canvas mock */

.hero__canvas {
    position: relative;
    max-width: 880px;
    margin: 72px auto 0;
}

.canvas-window {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    text-align: left;
}

.canvas-window__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot--r {
    background: #ff5f57;
}

.dot--y {
    background: #febc2e;
}

.dot--g {
    background: #28c840;
}

.canvas-window__title {
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--muted);
}

.canvas-window__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: #06894f;
    background: rgba(10, 207, 131, .12);
    padding: 3px 10px;
    border-radius: 999px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(10, 207, 131, .45);
    }
    60% {
        box-shadow: 0 0 0 6px rgba(10, 207, 131, 0);
    }
}


/* Анимированный график — «видео-картинка» работы 1С */

.chart {
    position: relative;
    height: 108px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 6px;
}

.bar {
    flex: 1;
    border-radius: 6px 6px 3px 3px;
    transform-origin: bottom;
    animation: grow 2.6s ease-in-out infinite alternate;
}

.bar--1 {
    height: 42%;
    background: var(--green);
    animation-delay: .05s;
}

.bar--2 {
    height: 66%;
    background: var(--blue);
    animation-delay: .3s;
}

.bar--3 {
    height: 50%;
    background: var(--purple);
    animation-delay: .55s;
}

.bar--4 {
    height: 82%;
    background: var(--orange);
    animation-delay: .8s;
}

.bar--5 {
    height: 58%;
    background: var(--red);
    animation-delay: 1.05s;
}

.bar--6 {
    height: 92%;
    background: var(--green);
    animation-delay: 1.3s;
}

@keyframes grow {
    from {
        transform: scaleY(.5);
    }
    to {
        transform: scaleY(1);
    }
}

.chart__line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.chart__line path {
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    animation: draw 3.2s ease forwards .5s, floatLine 4s ease-in-out 3.8s infinite alternate;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes floatLine {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-4px);
    }
}


/* Летающие анимированные документы */

.doc {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    animation: float 6s ease-in-out infinite;
}

.doc svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.doc--1 {
    top: -22px;
    right: 7%;
    animation-delay: 1.2s;
}

.doc--2 {
    bottom: -20px;
    left: 5%;
    animation-delay: 2.8s;
}

.canvas-window__body {
    display: flex;
    min-height: 240px;
}

.canvas-window__side {
    width: 180px;
    border-right: 1px solid var(--line);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fcfcfc;
}

.skeleton {
    height: 12px;
    border-radius: 6px;
    background: #ececec;
    animation: pulse 1.8s ease-in-out infinite;
}

.skeleton--active {
    background: var(--green);
    opacity: .35;
}

.skeleton--w80 {
    width: 80%;
}

.skeleton--w60 {
    width: 60%;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: .55;
    }
}

.canvas-window__main {
    flex: 1;
    padding: 22px;
}

.canvas-cards {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.canvas-card {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 15px;
    border-radius: 10px;
    color: #fff;
}

.canvas-card--green {
    background: var(--green);
}

.canvas-card--blue {
    background: var(--blue);
}

.canvas-card--purple {
    background: var(--purple);
}


/* Collaborator cursors */

.cursor {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 2px;
    pointer-events: none;
    animation: float 5s ease-in-out infinite;
}

.cursor svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .18));
}

.cursor span {
    margin-top: 16px;
    margin-left: -4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.cursor--1 {
    top: -18px;
    left: 12%;
    color: var(--green);
}

.cursor--1 span {
    background: var(--green);
}

.cursor--2 {
    top: 34%;
    right: -6px;
    animation-delay: 1.4s;
}

.cursor--2 span {
    background: var(--purple);
}

.cursor--3 {
    bottom: -14px;
    left: 30%;
    animation-delay: 2.6s;
}

.cursor--3 span {
    background: var(--red);
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(8px, -10px);
    }
}


/* ---------- Brands strip ---------- */

.brands {
    padding: 26px 0 74px;
}

.brands__caption {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 22px;
}

.brands__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
}

.brands__list li {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink-soft);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    padding: 9px 18px;
    border-radius: 999px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.brands__list li:hover {
    background: var(--ink);
    color: #fff;
    transform: translateY(-2px);
}


/* ---------- About ---------- */

.about__inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__text p {
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.about__text a {
    color: var(--purple);
    font-weight: 600;
}

.about__text a:hover {
    text-decoration: underline;
}

.about__points {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.about__points li {
    padding-left: 30px;
    position: relative;
    color: var(--ink-soft);
}

.about__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--green), var(--blue));
}

.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat {
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform .2s ease;
}

.stat:hover {
    transform: translateY(-4px);
}

.stat--green {
    background: var(--green);
}

.stat--blue {
    background: var(--blue);
}

.stat--purple {
    background: var(--purple);
}

.stat--orange {
    background: var(--orange);
}

.stat__num {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat__label {
    font-size: 0.9rem;
    opacity: .92;
}


/* ---------- Services ---------- */

.services {
    background: var(--bg-soft);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card__icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.card__icon--green {
    background: var(--green);
}

.card__icon--blue {
    background: var(--blue);
}

.card__icon--purple {
    background: var(--purple);
}

.card__icon--orange {
    background: var(--orange);
}

.card__icon--red {
    background: var(--red);
}

.card__icon--teal {
    background: #14b8b0;
}

.card h3 {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
}


/* ---------- Support (dark) ---------- */

.support__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.support__text>p {
    color: #b9b9b9;
    margin-bottom: 26px;
    max-width: 480px;
}

.schedule {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    max-width: 460px;
}

.schedule li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, .03);
}

.schedule li+li {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.schedule span {
    color: #b9b9b9;
}

.schedule strong {
    font-weight: 600;
}

.schedule .muted {
    color: #8a8a8a;
    font-weight: 500;
}

.support__visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 30px;
}


/* Анимированный аватар оператора */

.support__avatar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(10, 207, 131, .45);
}

.support__avatar svg {
    width: 27px;
    height: 27px;
}

.support__avatar::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--green);
    animation: ring 2.2s ease-out infinite;
}

@keyframes ring {
    from {
        transform: scale(.85);
        opacity: .75;
    }
    to {
        transform: scale(1.6);
        opacity: 0;
    }
}

.chat {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 26px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.chat__msg {
    font-size: 0.92rem;
    line-height: 1.45;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 85%;
}

.chat__msg--in {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat__msg--out {
    background: var(--green);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat__typing {
    align-self: flex-start;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    padding: 12px 16px;
    display: flex;
    gap: 5px;
}

.chat__typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b5b5b5;
    animation: blink 1.2s infinite;
}

.chat__typing span:nth-child(2) {
    animation-delay: .2s;
}

.chat__typing span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes blink {
    0%,
    100% {
        opacity: .3;
    }
    50% {
        opacity: 1;
    }
}


/* ---------- News ---------- */

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform .22s ease, box-shadow .22s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-card__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.news-card__tag--green {
    background: var(--green);
}

.news-card__tag--blue {
    background: var(--blue);
}

.news-card__tag--purple {
    background: var(--purple);
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.news-card p {
    color: var(--muted);
    font-size: 0.93rem;
}


/* ---------- Contacts ---------- */

.contacts {
    background: var(--bg-soft);
}

.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contacts__info>p {
    color: var(--muted);
    margin-bottom: 30px;
}

.contacts__list {
    display: grid;
    gap: 4px;
}

.contacts__list li {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
}

.contacts__list a:hover {
    color: var(--purple);
}

.contacts__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 2px;
}

.contacts__addr {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.pin {
    width: 13px;
    height: 13px;
    border-radius: 50% 50% 50% 0;
    background: var(--red);
    transform: rotate(-45deg);
    position: relative;
    flex-shrink: 0;
}

.pin::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fff;
}

.pin::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--red);
    animation: ring 2s ease-out infinite;
}

.form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.form__title {
    font-size: 1.3rem;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.field span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.field input,
.field textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(162, 89, 255, .15);
}

.field input.is-invalid {
    border-color: var(--red);
}

.form__submit {
    width: 100%;
    margin-top: 6px;
}

.form__note {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 14px;
    text-align: center;
}

.form__success {
    margin-top: 14px;
    text-align: center;
    font-weight: 600;
    color: #06894f;
    background: rgba(10, 207, 131, .12);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.92rem;
}


/* ---------- Footer ---------- */

.footer {
    background: var(--dark);
    color: #cfcfcf;
    padding: 64px 0 28px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer__brand p {
    font-size: 0.92rem;
    margin-top: 16px;
    max-width: 320px;
    color: #9a9a9a;
}

.logo--footer .logo__text {
    color: #fff;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.footer__col a {
    font-size: 0.93rem;
    color: #9a9a9a;
    transition: color .15s ease;
}

.footer__col a:hover {
    color: #fff;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 26px;
    font-size: 0.85rem;
    color: #8a8a8a;
}


/* ---------- Reveal on scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .cursor,
    .skeleton,
    .chat__typing span,
    .blob,
    .bar,
    .doc,
    .live-dot,
    .pin::before,
    .support__avatar::before,
    .chart__line path {
        animation: none;
    }
    .chart__line path {
        stroke-dashoffset: 0;
    }
}


/* ============================================================
   Адаптивность
   ============================================================ */

@media (max-width: 1024px) {
    .section {
        padding: 84px 0;
    }
    .nav {
        gap: 20px;
    }
    .nav__list {
        gap: 18px;
    }
    .nav__meta {
        display: none;
    }
    .nav__cta {
        display: none;
    }
    .about__inner {
        gap: 44px;
    }
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news__grid .news-card:last-child {
        grid-column: 1 / -1;
    }
    .support__inner {
        gap: 44px;
    }
}

@media (max-width: 820px) {
    .about__inner,
    .support__inner,
    .contacts__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contacts__info>p {
        margin-bottom: 20px;
    }
}

@media (max-width: 720px) {
     :root {
        --header-h: 64px;
    }
    .section {
        padding: 68px 0;
    }
    .container {
        padding: 0 18px;
    }
    /* Мобильное меню */
    .burger {
        display: flex;
    }
    /* backdrop-filter делает шапку содержащим блоком для fixed-панели —
     на время открытого меню отключаем его, иначе панель сжимается */
    .header.nav-open {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .nav {
        position: fixed;
        inset: 0;
        top: var(--header-h);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        padding: 20px 24px 32px;
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0, 0, 0, .08);
    }
    .nav.is-open {
        transform: translateX(0);
    }
    .nav__list {
        flex-direction: column;
        gap: 0;
    }
    .nav__list li {
        border-bottom: 1px solid var(--line);
    }
    .nav__link {
        display: block;
        padding: 16px 0;
        font-size: 1.15rem;
        font-weight: 600;
    }
    .nav__meta {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 18px 0 6px;
    }
    .nav__phone {
        font-size: 1.05rem;
    }
    .nav__mail {
        font-size: 0.9rem;
    }
    .nav__cta {
        display: inline-flex;
        margin-top: 18px;
        justify-content: center;
    }
    /* На мобильных панели-подменю раскрываются аккордеоном */
    .nav__trigger {
        width: 100%;
        justify-content: space-between;
        padding: 16px 0;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--ink);
    }
    .chev {
        width: 13px;
        height: 13px;
    }
    .menu,
    .menu--wide,
    .menu--right {
        position: static;
        left: auto;
        right: auto;
        min-width: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 14px;
        background: transparent;
    }
    .nav__item.is-open .menu {
        display: block;
        animation: none;
    }
    .menu__grid {
        grid-template-columns: 1fr;
    }
    .menu__item {
        padding: 10px 0;
        border-radius: 0;
    }
    .menu__footer {
        border-top: none;
        padding: 8px 0 0;
    }
    .hero {
        padding: 60px 0 48px;
    }
    .hero__canvas {
        margin-top: 52px;
    }
    .cursor--2 {
        right: 4px;
    }
    .canvas-window__side {
        display: none;
    }
    .canvas-window__body {
        min-height: 170px;
    }
    .brands {
        padding-bottom: 52px;
    }
    .services__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .news__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .news__grid .news-card:last-child {
        grid-column: auto;
    }
    .about__stats {
        gap: 12px;
    }
    .stat {
        padding: 22px 18px;
    }
    .stat__num {
        font-size: 1.9rem;
    }
    .form {
        padding: 26px 20px;
    }
    .support__actions .btn {
        width: 100%;
    }
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer__bottom {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 400px) {
    .hero__title {
        font-size: 2rem;
    }
    .btn--lg {
        padding: 13px 22px;
        font-size: 0.92rem;
    }
    .hero__actions .btn {
        width: 100%;
    }
}