/* ============================================================
   Ivnish — Разработка и продвижение сайтов на Drupal
   Светлая тема (основная) + тёмная тема ([data-theme="dark"])
   ============================================================ */

/* Локальные шрифты (переменные, woff2) */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-cyrillic-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --bg: #f5f7fa;
  --surface: #ffffff;
  --stroke: #e3e8f0;
  --stroke-strong: #d3dbe7;

  --ink: #0d1424;
  --ink-soft: #232c42;
  --muted: #5b6478;

  --blue: #0678be;
  --cyan: #40c4ff;
  --violet: #7c5cff;

  --gradient: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 45%, var(--violet) 100%);

  /* Темозависимые переменные */
  --header-bg: rgba(255, 255, 255, 0.72);
  --mobile-nav-bg: rgba(245, 247, 250, 0.88);
  --dot-color: rgba(13, 20, 36, 0.13);
  --section-alt-bg: #eef2f7;
  --cta-bg: var(--ink);
  --cta-color: #ffffff;
  --contact-bg: linear-gradient(150deg, #e9f3fc 0%, #f0ecfd 60%, #e7f1fb 100%);
  --contact-border: #ffffff;
  --dot-bg: #ffffff;
  --marquee-filter: none;
  --marquee-hover-filter: none;
  --num-stroke: #a3b2c6;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;

  --radius-lg: 24px;
  --radius-md: 18px;

  --header-h: 76px;

  --shadow-soft: 0 20px 50px rgba(13, 20, 36, 0.08);
  --shadow-hover: 0 30px 70px rgba(13, 20, 36, 0.14);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #05070f;
  --surface: #0e1524;
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.18);

  --ink: #eef1f8;
  --ink-soft: #ccd5e6;
  --muted: #9aa3b8;

  --header-bg: rgba(5, 7, 15, 0.68);
  --mobile-nav-bg: rgba(5, 7, 15, 0.88);
  --dot-color: rgba(255, 255, 255, 0.12);
  --section-alt-bg: #090d18;
  --cta-bg: #eef1f8;
  --cta-color: #0d1424;
  --contact-bg: linear-gradient(160deg, rgba(6, 120, 190, 0.2), rgba(124, 92, 255, 0.15) 60%, rgba(64, 196, 255, 0.1));
  --contact-border: rgba(255, 255, 255, 0.16);
  --dot-bg: #0e1524;
  --marquee-filter: grayscale(1) invert(1) brightness(1.2);
  --marquee-hover-filter: grayscale(1) invert(1) brightness(1.6);
  --num-stroke: rgba(255, 255, 255, 0.42);

  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 30px 70px rgba(0, 0, 0, 0.55);
}

/* ---------- Reset ---------- */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.45s ease, color 0.45s ease;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 18px;
  margin: 0;
  clip: auto;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
}

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

.section {
  position: relative;
  padding: clamp(90px, 12vw, 150px) 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 10px);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

::selection {
  background: rgba(6, 120, 190, 0.25);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 130;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    backdrop-filter 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: var(--stroke);
  box-shadow: 0 10px 40px rgba(13, 20, 36, 0.07);
}

[data-theme="dark"] .site-header.scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

.site-header__logo {
  display: flex;
  align-items: center;
}

.site-header__logo img {
  width: 172px;
  height: auto;
  transition: transform 0.35s var(--ease-out);
}

.site-header__logo:hover img {
  transform: scale(1.04);
}

.site-header__logo .logo--dark {
  display: none;
}

[data-theme="dark"] .site-header__logo .logo--light {
  display: none;
}

[data-theme="dark"] .site-header__logo .logo--dark {
  display: block;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.site-nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 2px;
  transition: color 0.3s;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

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

.site-nav__link:hover::after {
  transform: scaleX(1);
}

.site-nav__link--cta {
  color: var(--cta-color);
  background: var(--cta-bg);
  padding: 10px 22px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, color 0.3s;
}

.site-nav__link--cta::after {
  display: none;
}

.site-nav__link--cta:hover {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(6, 120, 190, 0.35);
  transform: translateY(-1px);
}

/* ---------- Переключатель темы ---------- */

.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--stroke-strong);
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s,
    background 0.45s ease, color 0.45s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(6, 120, 190, 0.5);
  box-shadow: 0 10px 24px rgba(6, 120, 190, 0.22);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  grid-area: 1 / 1;
  transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-out);
}

.theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}

.theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}

/* ---------- Burger / mobile nav ---------- */

.burger {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke-strong);
  background: var(--surface);
  transition: background 0.45s ease, border-color 0.45s ease;
}

.burger__line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.25s, top 0.35s var(--ease-out),
    background 0.45s ease;
}

.burger__line:nth-child(1) { top: 15px; }
.burger__line:nth-child(2) { top: 21px; }
.burger__line:nth-child(3) { top: 27px; }

.burger.is-open .burger__line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

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

.burger.is-open .burger__line:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile-nav-bg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.mobile-nav__link {
  display: block;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--muted);
  opacity: 0;
  transform: translateY(24px);
  transition: color 0.3s, opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.mobile-nav.is-open .mobile-nav__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.is-open .mobile-nav__list li:nth-child(1) .mobile-nav__link { transition-delay: 0.08s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(2) .mobile-nav__link { transition-delay: 0.16s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(3) .mobile-nav__link { transition-delay: 0.24s; }
.mobile-nav.is-open .mobile-nav__list li:nth-child(4) .mobile-nav__link { transition-delay: 0.32s; }

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

/* ============================================================
   HERO — типографская композиция
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 60px;
}

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

.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot-color) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 70% 35%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 75% 65% at 70% 35%, #000 20%, transparent 70%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.hero__orb--1 {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, rgba(64, 196, 255, 0.4), transparent 65%);
  animation: orb-float 15s ease-in-out infinite;
}

.hero__orb--2 {
  width: 480px;
  height: 480px;
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.28), transparent 65%);
  animation: orb-float 19s ease-in-out infinite reverse;
}

[data-theme="dark"] .hero__orb--1 {
  background: radial-gradient(circle, rgba(6, 120, 190, 0.5), transparent 65%);
}

[data-theme="dark"] .hero__orb--2 {
  background: radial-gradient(circle, rgba(124, 92, 255, 0.4), transparent 65%);
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(36px, -28px) scale(1.07); }
}

.hero__ring {
  position: absolute;
  top: 12%;
  right: 7%;
  width: clamp(160px, 20vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(6, 120, 190, 0.4);
  animation: ring-spin 30s linear infinite;
}

.hero__ring::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 5px rgba(6, 120, 190, 0.15);
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.hero__shape {
  position: absolute;
  will-change: transform;
}

.hero__shape--square {
  bottom: 18%;
  right: 22%;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  transform: rotate(18deg);
  opacity: 0.8;
  animation: shape-float 9s ease-in-out infinite;
}

.hero__shape--circle {
  top: 26%;
  left: 6%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 4px solid var(--violet);
  opacity: 0.55;
  animation: shape-float 11s ease-in-out infinite 1s;
}

.hero__shape--plus {
  bottom: 24%;
  left: 16%;
  width: 30px;
  height: 30px;
  opacity: 0.5;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 100% 6px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 6px 100% no-repeat;
  animation: shape-float 10s ease-in-out infinite 2s;
}

@keyframes shape-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(12deg); }
}

.hero__inner {
  position: relative;
}

.hero__title {
  display: flex;
  flex-direction: column;
}

.hero__title-small {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 20ch;
  text-wrap: balance;
}

.hero__title-big {
  position: relative;
  align-self: flex-start;
  margin-top: clamp(6px, 1vw, 14px);
  margin-left: clamp(20px, 8vw, 140px);
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 15.5vw, 13.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__title-echo {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: -1;
  background: none;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(6, 120, 190, 0.22);
}

[data-theme="dark"] .hero__title-echo {
  -webkit-text-stroke-color: rgba(64, 196, 255, 0.3);
}

/* ============================================================
   УСЛУГИ — редакционный список
   ============================================================ */

.services__heading {
  max-width: 26ch;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.services__list {
  border-bottom: 1px solid var(--stroke-strong);
}

.service-row {
  display: grid;
  grid-template-columns: 96px 96px minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(26px, 3.5vw, 40px) clamp(10px, 1.5vw, 20px);
  border-top: 1px solid var(--stroke-strong);
  border-radius: var(--radius-md);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out), border-color 0.45s ease;
}

.service-row:hover {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transform: translateX(8px);
}

.service-row__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--num-stroke);
  transition: -webkit-text-stroke-color 0.35s;
}

.service-row:hover .service-row__num {
  -webkit-text-stroke-color: var(--blue);
}

.service-row__icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(64, 196, 255, 0.16), rgba(124, 92, 255, 0.14));
  border: 1px solid var(--stroke);
  transition: transform 0.4s var(--ease-out), border-color 0.45s ease;
}

.service-row:hover .service-row__icon {
  transform: rotate(-6deg) scale(1.08);
}

.service-row__icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.service-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.service-row__descr {
  color: var(--muted);
  font-size: 15.5px;
  justify-self: end;
  max-width: 44ch;
}

/* ============================================================
   DRUPAL — цветная панель
   ============================================================ */

.drupal__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
  padding: clamp(44px, 6vw, 90px) clamp(28px, 5.5vw, 80px);
  border-radius: clamp(24px, 4vw, 40px);
  background: linear-gradient(130deg, #0a6cb8 0%, #0678be 35%, #5a5af0 80%, var(--violet) 100%);
  box-shadow: 0 40px 90px rgba(6, 120, 190, 0.35);
  color: #fff;
}

[data-theme="dark"] .drupal__panel {
  background: linear-gradient(130deg, #0c2a44 0%, #0e3a5c 35%, #26235c 80%, #2e2a6e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px rgba(2, 18, 38, 0.7);
}

.drupal__deco {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.drupal__deco--1 {
  width: 420px;
  height: 420px;
  top: -220px;
  right: -120px;
}

.drupal__deco--2 {
  width: 260px;
  height: 260px;
  bottom: -140px;
  left: 38%;
}

.drupal__media {
  display: flex;
  justify-content: center;
}

.drupal__drop-wrap {
  position: relative;
  width: clamp(170px, 22vw, 260px);
  aspect-ratio: 100 / 120;
  display: grid;
  place-items: center;
}

.drupal__drop {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 50px rgba(4, 40, 70, 0.45));
  animation: drop-float 6s ease-in-out infinite;
}

@keyframes drop-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

.drupal__drop-ring {
  position: absolute;
  inset: -13%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.45);
  animation: ring-spin 26s linear infinite;
}

.drupal__drop-ring--2 {
  inset: -25%;
  border-color: rgba(255, 255, 255, 0.22);
  animation-duration: 40s;
  animation-direction: reverse;
}

.drupal__heading {
  color: #fff;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.drupal__text {
  display: grid;
  gap: 18px;
}

.drupal__text p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.75;
  padding-left: 22px;
  border-left: 2px solid rgba(255, 255, 255, 0.45);
}

/* ============================================================
   КЛИЕНТЫ — marquee
   ============================================================ */

.clients {
  padding-bottom: clamp(70px, 9vw, 120px);
}

.clients__heading {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding-right: clamp(48px, 8vw, 110px);
}

.marquee__item {
  display: grid;
  place-items: center;
  height: 84px;
  padding: 0 10px;
}

.marquee__item img {
  max-height: 58px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  opacity: 0.45;
  filter: var(--marquee-filter);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), filter 0.45s ease;
}

.marquee__item:hover img {
  opacity: 1;
  filter: var(--marquee-hover-filter);
  transform: scale(1.06);
}

/* ============================================================
   ВИДЫ РАБОТ — timeline
   ============================================================ */

.works {
  background: var(--section-alt-bg);
  border-block: 1px solid var(--stroke);
  transition: background 0.45s ease, border-color 0.45s ease;
}

.works__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(56px, 8vw, 90px);
}

.works__subheading {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.timeline {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--blue) 12%, var(--violet) 88%, transparent);
  opacity: 0.4;
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 26px clamp(36px, 5vw, 64px);
}

.timeline__item:nth-child(odd) {
  left: 0;
  padding-left: 0;
  text-align: right;
}

.timeline__item:nth-child(even) {
  left: 50%;
  padding-right: 0;
}

.timeline__card {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 32px rgba(13, 20, 36, 0.06);
  text-align: left;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s,
    background 0.45s ease;
}

[data-theme="dark"] .timeline__card {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.timeline__card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 120, 190, 0.4);
  box-shadow: var(--shadow-hover);
}

.timeline__icon {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(64, 196, 255, 0.18), rgba(124, 92, 255, 0.15));
  border: 1px solid var(--stroke);
  transition: border-color 0.45s ease;
}

.timeline__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}

.timeline__descr {
  color: var(--muted);
  font-size: 14.5px;
}

.timeline__dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot-bg);
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 5px rgba(6, 120, 190, 0.15);
  transform: translateY(-50%);
  transition: background 0.45s ease;
}

.timeline__item:nth-child(odd) .timeline__dot {
  right: -7px;
}

.timeline__item:nth-child(even) .timeline__dot {
  left: -7px;
}

.timeline__step {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--num-stroke);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.45s ease;
}

.timeline__item:hover .timeline__step {
  -webkit-text-stroke-color: var(--blue);
}

.timeline__item:nth-child(odd) .timeline__step {
  left: calc(100% + 22px);
}

.timeline__item:nth-child(even) .timeline__step {
  right: calc(100% + 22px);
}

/* ============================================================
   КОНТАКТЫ
   ============================================================ */

.contact__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 6vw, 80px);
  border-radius: clamp(24px, 4vw, 40px);
  background: var(--contact-bg);
  border: 1px solid var(--contact-border);
  box-shadow: var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-align: center;
  transition: background 0.45s ease, border-color 0.45s ease;
}

[data-theme="dark"] .contact__panel {
  box-shadow: var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact__panel-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -340px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 196, 255, 0.35), transparent 65%);
  pointer-events: none;
}

.contact__heading {
  position: relative;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.contact__links {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 26px);
  max-width: 760px;
  margin-inline: auto;
}

.contact__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon label arrow"
    "icon value arrow";
  column-gap: 16px;
  align-items: center;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 32px rgba(13, 20, 36, 0.07);
  text-align: left;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s,
    background 0.45s ease;
}

[data-theme="dark"] .contact__link {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.contact__link:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 120, 190, 0.45);
  box-shadow: var(--shadow-hover);
}

.contact__link-icon {
  grid-area: icon;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(6, 120, 190, 0.35);
}

.contact__link-icon svg {
  width: 24px;
  height: 24px;
}

.contact__link-label {
  grid-area: label;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__link-value {
  grid-area: value;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.contact__link-arrow {
  grid-area: arrow;
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform 0.35s var(--ease-out), color 0.35s;
}

.contact__link:hover .contact__link-arrow {
  transform: translateX(6px);
  color: var(--blue);
}

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

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--stroke);
  background: var(--section-alt-bg);
  transition: background 0.45s ease, border-color 0.45s ease;
}

.site-footer__text {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .hero__orb,
  .hero__ring,
  .hero__shape,
  .drupal__drop,
  .drupal__drop-ring,
  .marquee__track {
    animation: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero__title-big {
    margin-left: 0;
  }

  .hero__title-echo {
    display: none;
  }

  .hero__ring {
    top: 6%;
    right: -40px;
  }

  /* Услуги: строки -> карточный стек */
  .service-row {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "icon num"
      "title title"
      "descr descr";
    row-gap: 14px;
    padding: 24px 20px;
  }

  .service-row:hover {
    transform: none;
  }

  .service-row__num {
    grid-area: num;
    justify-self: end;
  }

  .service-row__icon {
    grid-area: icon;
    width: 64px;
    height: 64px;
  }

  .service-row__title {
    grid-area: title;
  }

  .service-row__descr {
    grid-area: descr;
    justify-self: start;
  }

  /* Drupal панель в одну колонку */
  .drupal__panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .drupal__text p {
    text-align: left;
  }

  /* Timeline -> левая ось */
  .timeline::before {
    left: 7px;
    transform: none;
  }

  .timeline__item,
  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 14px 0 14px 40px;
    text-align: left;
  }

  .timeline__item:nth-child(odd) .timeline__dot,
  .timeline__item:nth-child(even) .timeline__dot {
    left: 1px;
    right: auto;
  }

  .timeline__step {
    display: none;
  }

  .timeline__card {
    width: 100%;
  }

  .contact__links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header__logo img {
    width: 148px;
  }

  .timeline__card {
    flex-direction: column;
  }

  .marquee__item {
    height: 64px;
  }

  .marquee__item img {
    max-height: 44px;
    max-width: 160px;
  }
}
