/* ============================================================
   GVATE AGENCY — MAIN STYLESHEET
   ============================================================
   Table of Contents:
   1.  CSS Variables
   2.  Reset & Base
   3.  Layout Utilities
   4.  Typography Utilities
   5.  Buttons
   6.  Header
   7.  Mobile Navigation
   8.  Hero Section
   9.  Services Section
   10. Contact Section & Form
   11. Footer
   12. Scroll Reveal Animations
   13. Responsive — Tablet (≤1024px)
   14. Responsive — Mobile (≤768px)
   15. Responsive — Small Mobile (≤480px)
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  /* Colors — единая палитра с тестовой v3 (янтарь, #121212, светлый текст) */
  --bg:             #121212;
  --bg-secondary:   #161616;
  --bg-card:        #1c1c1c;
  --text-primary:   #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.76);
  --accent:         #ffb347;
  --accent-hover:   #ffd08a;
  --border:         rgba(255, 255, 255, 0.06);

  /* Поверхности для длинных лендингов (сопровождение и др.) */
  --support-surface-base:   #121212;
  --support-surface-raised: #161616;
  --support-surface-soft:   #1c1c1c;
  --support-line:           rgba(255, 255, 255, 0.06);
  --support-line-strong:    rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-display: 'Manrope', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Layout */
  --container:  1200px;
  --header-h:   72px;
  --section-py: 96px;

  /* Easing */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   4. TYPOGRAPHY UTILITIES
   ============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: transparent;
  background: linear-gradient(135deg, #fff4dc 0%, #ffb347 48%, #c9881a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 179, 71, 0.28));
}

.section-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.025em;
  border-radius: 3px;
  padding: 13px 26px;
  transition:
    background-color 0.25s var(--ease-smooth),
    border-color     0.25s var(--ease-smooth),
    color            0.25s var(--ease-smooth),
    box-shadow       0.25s var(--ease-smooth),
    transform        0.2s  var(--ease-smooth);
  white-space: nowrap;
  position: relative;
}

/* Primary — gold fill */
.btn--primary {
  background: var(--accent);
  color: #0a0a0a;
  border: 1px solid var(--accent);
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255, 179, 71, 0.22);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Outline — transparent with border */
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: rgba(255, 179, 71, 0.5);
  color: var(--accent);
}

/* Ghost — subtle secondary action */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 179, 71, 0.35);
}

/* Full width modifier */
.btn--full {
  width: 100%;
}

/* ============================================================
   6. HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  overflow: visible;
  border-bottom: 1px solid transparent;
  transition:
    background  0.4s var(--ease-smooth),
    border-color 0.4s var(--ease-smooth),
    backdrop-filter 0.4s;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

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

.header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  display: block;
  width: auto;
  height: 40px; /* визуально близко к высоте кнопки «Обсудить проект» (.btn) */
  opacity: 0.85; /* ~на 15% мягче к тёмному фону */
  transition: opacity 0.2s;
}

.header__logo:hover img {
  opacity: 0.95;
}

.header__nav {
  flex: 1;
}

.header__nav-list {
  display: flex;
  gap: 36px;
}

.header__nav-link {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-smooth);
}

.header__nav-link:hover {
  color: var(--text-primary);
}

.header__nav-link:hover::after {
  width: 100%;
}

/* Услуги — выпадающая панель */
.header__nav-item--dropdown {
  position: relative;
}

/* «Мост» между пунктом и панелью, чтобы не гасло меню при движении курсора */
.header__nav-item--dropdown::after {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 14px;
  z-index: 1000;
}

.header__nav-link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header__nav-chevron {
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.28s var(--ease-smooth), opacity 0.2s;
}

.header__nav-item--dropdown:hover .header__nav-chevron,
.header__nav-item--dropdown:focus-within .header__nav-chevron {
  transform: rotate(180deg);
  opacity: 0.9;
}

.header__dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  z-index: 1001;
  min-width: min(100vw - 48px, 600px);
  max-width: 600px;
  padding: 0;
  margin: 0;
  transform: translate(-50%, -8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease-smooth),
    transform 0.32s var(--ease-out),
    visibility 0.3s;
}

.header__nav-item--dropdown:hover .header__dropdown,
.header__nav-item--dropdown:focus-within .header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Mega menu: один контейнер с сеткой 2×2 внутри */
.header__dropdown-panel {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #171717;
  background-image:
    radial-gradient(
      ellipse 92% 72% at 50% 0%,
      rgba(255, 255, 255, 0.035) 0%,
      transparent 58%
    ),
    linear-gradient(rgba(245, 242, 234, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 242, 234, 0.022) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.header__dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1px;
  padding: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.07);
}

.header__dropdown-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  min-height: 0;
  gap: 6px;
  padding: 18px 38px 18px 20px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background-color: #171717;
  transition: background-color 0.22s var(--ease-smooth);
  outline: none;
}

.header__dropdown-item:hover,
.header__dropdown-item:focus-visible {
  background-color: rgba(255, 179, 71, 0.08);
}

.header__dropdown-item:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.35);
}

.header__dropdown-item-title {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
  padding-right: 4px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-clamp: 2;
  min-height: calc(1.25em * 2);
}

.header__dropdown-item-text {
  flex-shrink: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-clamp: 2;
  min-height: calc(1.5em * 2);
}

.header__dropdown-item-arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--text-secondary);
  transition: color 0.25s, transform 0.28s var(--ease-out);
}

.header__dropdown-item:hover .header__dropdown-item-arrow,
.header__dropdown-item:focus-visible .header__dropdown-item-arrow {
  color: var(--accent);
  transform: translateY(-50%) translateX(3px);
}

.header__cta {
  margin-left: auto;
  flex-shrink: 0;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  margin-left: auto;
  flex-shrink: 0;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s;
  transform-origin: center;
}

.header__burger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   7. MOBILE NAVIGATION (overlay; активация только ≤768px)
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1002;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease-smooth);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.mobile-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav__logo {
  display: inline-flex;
  align-items: center;
}

.mobile-nav__logo img {
  height: 36px;
  width: auto;
}

.mobile-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  color: var(--text-primary);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.mobile-nav__close:hover,
.mobile-nav__close:focus-visible {
  color: var(--accent);
}

.mobile-nav__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mobile-nav__middle {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 20px 8px;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(18px, 4vw, 24px);
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: clamp(26px, 6.4vw, 32px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color 0.2s;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  color: var(--accent);
}

/* Услуги — аккордеон */
.mobile-nav__item--accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
  padding: 2px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(26px, 6.4vw, 32px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color 0.2s;
}

.mobile-menu__services-toggle:hover,
.mobile-menu__services-toggle:focus-visible {
  color: var(--accent);
}

.mobile-menu__services-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.mobile-menu__services-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--accent);
  opacity: 0.85;
}

.mobile-menu__services-chevron {
  display: block;
  transition: transform 0.3s var(--ease-out);
}

.mobile-nav__item--accordion.is-open .mobile-menu__services-chevron {
  transform: rotate(180deg);
}

.mobile-menu__services-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-out);
}

.mobile-nav__item--accordion.is-open .mobile-menu__services-panel {
  grid-template-rows: 1fr;
}

.mobile-menu__services-list {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding-top: 8px;
  padding-bottom: 2px;
}

.mobile-nav__sublink {
  font-family: var(--font-body);
  font-size: clamp(15px, 3.9vw, 17px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--accent);
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 6px 0 6px 14px;
  margin-left: 2px;
  border-left: 2px solid rgba(201, 161, 74, 0.35);
  transition: color 0.2s, border-color 0.2s, opacity 0.2s;
  opacity: 0.95;
}

.mobile-nav__sublink:hover,
.mobile-nav__sublink:focus-visible {
  opacity: 1;
  color: var(--accent-hover);
  border-left-color: rgba(201, 161, 74, 0.65);
}

.mobile-nav__bottom {
  flex-shrink: 0;
  padding: 14px 20px max(16px, env(safe-area-inset-bottom, 16px));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.mobile-nav__cta {
  margin-top: 0;
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 13px 24px;
}

.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
}

.mobile-menu__phone {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.mobile-menu__phone:hover,
.mobile-menu__phone:focus-visible {
  color: var(--accent);
}

.mobile-menu__messengers {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu__email {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.mobile-menu__email:hover,
.mobile-menu__email:focus-visible {
  color: var(--accent);
}

/* Скрываем мобильную вёрстку на desktop: не занимает место, не меняет поток */
@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

/* Subtle background gradient radial */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 70% 50%,
    rgba(255, 179, 71, 0.035) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}

.hero__content {
  max-width: 600px;
}

/* Eyebrow label */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

/* Main heading — тот же золотой градиент, что на v3-сопровождении */
.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  color: transparent;
  background: linear-gradient(135deg, #fff4dc 0%, #ffb347 46%, #d49420 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(255, 179, 71, 0.35));
}

/* Subheading */
.hero__subheading {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 44px;
  max-width: 500px;
}

/* CTA buttons row */
.hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Benefit badges */
.hero__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.hero__badge svg {
  flex-shrink: 0;
}

.hero__badge-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 18px;
  flex-shrink: 0;
}

/* Canvas visual container */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__canvas {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 1 / 1;
}

/* ============================================================
   9. SERVICES SECTION — Premium vertical card showcase
   ============================================================ */
.services {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
  position: relative;
}

.services::before,
.services::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.services::before { top: 0; }
.services::after  { bottom: 0; }

.services__header {
  margin-bottom: 72px;
}

/* ---- 4-column row of tall cards ---- */
.svc-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---- Card base ---- */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 32px 28px 30px;
  overflow: hidden;
  cursor: default;

  /* Base surface — layered for depth */
  background-color: #171717;
  background-image:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(255, 255, 255, 0.022) 0%,
      transparent 55%
    ),
    linear-gradient(rgba(245, 242, 234, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 242, 234, 0.022) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;

  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 80px rgba(0, 0, 0, 0.15);

  transition:
    transform    0.42s var(--ease-out),
    border-color 0.35s var(--ease-smooth),
    box-shadow   0.42s var(--ease-out);
}

.svc-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 179, 71, 0.32);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.5),
    0 6px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 179, 71, 0.14),
    inset 0 0 80px rgba(0, 0, 0, 0.12);
}

/* Карточка-ссылка (напр. «Сопровождение сайтов») */
.svc-card--link {
  cursor: pointer;
}

.svc-card__hit-area {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}

.svc-card__hit-area:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Top-edge gold highlight — always present, intensifies on hover */
.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 179, 71, 0.5) 38%,
    rgba(255, 179, 71, 0.5) 62%,
    transparent
  );
  transition: opacity 0.35s var(--ease-smooth), left 0.35s, right 0.35s;
  opacity: 0.85;
}

.svc-card:hover::before {
  left: 0;
  right: 0;
  opacity: 1;
}

/* Inner radial glow from top */
.svc-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: radial-gradient(
    ellipse 75% 100% at 50% 0%,
    rgba(255, 179, 71, 0.065) 0%,
    transparent 75%
  );
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth);
  opacity: 0.8;
}

.svc-card:hover::after {
  opacity: 1;
}

/* Stronger ambient glow element — responds to hover */
.svc-card__glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(
    circle,
    rgba(255, 179, 71, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  opacity: 0.5;
}

.svc-card:hover .svc-card__glow {
  opacity: 1;
  transform: translateX(-50%) scaleY(1.25);
}

/* Ghost numeral — large, clipped, editorial background detail */
.svc-card__ghost {
  position: absolute;
  bottom: -12px;
  right: 4px;
  font-family: var(--font-display);
  font-size: 78px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth);
}

.svc-card:hover .svc-card__ghost {
  opacity: 0.065;
}

/* ---- Number row ---- */
.svc-card__top {
  margin-bottom: 0;
}

.svc-card__num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  opacity: 0.75;
  transition: opacity 0.3s var(--ease-smooth);
}

.svc-card:hover .svc-card__num {
  opacity: 1;
}

/* ---- Icon wrapper ---- */
.svc-card__icon-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 26px;
  margin-bottom: 26px;

  color: var(--accent);
  border: 1px solid rgba(255, 179, 71, 0.22);
  border-radius: 4px;
  background: rgba(255, 179, 71, 0.06);

  transition:
    border-color 0.35s var(--ease-smooth),
    background   0.35s var(--ease-smooth),
    color        0.35s var(--ease-smooth),
    transform    0.38s var(--ease-out);
}

.svc-card:hover .svc-card__icon-wrap {
  color: var(--accent-hover);
  border-color: rgba(255, 179, 71, 0.42);
  background: rgba(255, 179, 71, 0.1);
  transform: scale(1.06);
}

.svc-card__icon-wrap svg {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  transition: filter 0.38s var(--ease-smooth);
}

.svc-card:hover .svc-card__icon-wrap svg {
  filter: drop-shadow(0 0 10px rgba(255, 179, 71, 0.28));
}

/* ---- Body: title + description ---- */
.svc-card__body {
  flex: 1;
}

.svc-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: color 0.22s;
}

.svc-card:hover .svc-card__title {
  color: #ffffff;
}

.svc-card__text {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ---- Footer: arrow indicator ---- */
.svc-card__foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  color: var(--accent);
  opacity: 0.5;
  transform: translateX(0);
  transition: opacity 0.32s var(--ease-smooth), transform 0.32s var(--ease-smooth), color 0.32s var(--ease-smooth);
}

.svc-card:hover .svc-card__foot {
  color: var(--accent-hover);
  opacity: 1;
  transform: translateX(6px);
}

.svc-card__foot svg {
  width: 38px;
  height: 11px;
}

/* ---- Stagger transition delays ---- */
.svc-card:nth-child(1).reveal { transition-delay: 0s;    }
.svc-card:nth-child(2).reveal { transition-delay: 0.1s;  }
.svc-card:nth-child(3).reveal { transition-delay: 0.2s;  }
.svc-card:nth-child(4).reveal { transition-delay: 0.3s;  }

/* ============================================================
   10. CONTACT SECTION & FORM
   ============================================================ */
.contact {
  padding: 96px 0 88px;
  border-top: 1px solid rgba(255, 179, 71, 0.09);
  background: var(--bg);
}

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

.contact__left .section-text {
  max-width: 400px;
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Field label */
.form-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-required {
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}

.form-optional {
  color: var(--text-secondary);
  opacity: 0.45;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

/* Input field (≥16px: iOS Safari не зумит страницу при фокусе) */
.form-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  transition:
    border-color 0.25s var(--ease-smooth),
    box-shadow   0.25s var(--ease-smooth),
    background   0.25s;
}

.form-input::placeholder {
  color: #3e3e3e;
}

.form-input:focus {
  border-color: var(--accent);
  background: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.09);
}

.form-input.error {
  border-color: #b04040;
  box-shadow: 0 0 0 3px rgba(176, 64, 64, 0.09);
}

.form-input.valid {
  border-color: #3a8c5c;
}

textarea.form-input,
.form-textarea {
  /* Одна строка по высоте, как у input (padding 14px 16px уже у .form-input) */
  min-height: 48px;
  resize: vertical;
  line-height: 1.55;
}

/* Select — same as input, with dropdown arrow */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A6A09A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Error message */
.form-error {
  font-size: 12px;
  color: #c0604a;
  min-height: 16px;
  display: block;
  letter-spacing: 0.01em;
}

/* Consent row: checkbox слева, текст справа */
.form-consent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: -4px;
}

.form-consent {
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-secondary);
  opacity: 0.45;
  margin: 0;
}

.form-consent__link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.form-consent__link:hover {
  color: var(--accent);
}

.form-consent-row + .form-error {
  margin-top: -4px;
}

/* Custom checkbox — dark premium style */
.form-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.form-checkbox__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s;
}

.form-checkbox__check {
  display: none;
  color: var(--accent);
  flex-shrink: 0;
}

.form-checkbox input:checked + .form-checkbox__box .form-checkbox__check {
  display: block;
}

.form-checkbox input:focus + .form-checkbox__box {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.15);
}

.form-checkbox input:checked + .form-checkbox__box {
  border-color: var(--accent);
  background: rgba(255, 179, 71, 0.12);
  color: var(--accent);
}

.form-checkbox:hover .form-checkbox__box {
  border-color: rgba(255, 255, 255, 0.35);
}

.form-checkbox input.error + .form-checkbox__box {
  border-color: #b04040;
}

/* Success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 40px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-card);
}

.form-success.visible {
  display: flex;
}

.form-success__icon {
  margin-bottom: 28px;
  animation: successPop 0.55s var(--ease-out) both;
}

@keyframes successPop {
  from { transform: scale(0.65); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.form-success__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-success__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   PROJECT MODAL — Обсудить проект (используется в хедере)
   ============================================================ */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 60;
}

.project-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 28px 28px 26px;
}

.project-modal-inner { max-width: 360px; }

.project-modal-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-modal-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.project-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-modal-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-modal-label-optional {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.4;
  text-transform: none;
  letter-spacing: 0;
}

.project-modal-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #1A1A1A;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth), background 0.22s;
}

.project-modal-input::placeholder { color: #3A3A3A; }

.project-modal-input:focus {
  border-color: var(--accent);
  background: #1e1e1e;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.09);
}

.project-modal-input.error {
  border-color: #b04040;
  box-shadow: 0 0 0 2px rgba(176, 64, 64, 0.15);
}

.project-modal-input.error:focus {
  border-color: #c0604a;
  box-shadow: 0 0 0 3px rgba(176, 64, 64, 0.12);
}

textarea.project-modal-input.project-modal-textarea {
  /* Как у остальных полей модалки: padding 12px 14px у .project-modal-input */
  min-height: 46px;
  resize: vertical;
  line-height: 1.55;
}

.project-modal-required {
  color: var(--accent);
  font-weight: 600;
}

.project-modal-field-error {
  font-size: 12px;
  color: #c0604a;
  min-height: 16px;
  display: block;
  letter-spacing: 0.01em;
}

.project-modal-field-error--consent {
  margin-top: -6px;
  margin-bottom: 4px;
}

.project-modal-checkbox--error .project-modal-checkbox-custom {
  border-color: #b04040;
}

.project-modal-form-wrap {
  position: relative;
}

.project-modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.project-modal-success.is-visible {
  display: flex;
}

.project-modal-success__icon {
  margin-bottom: 20px;
  animation: successPop 0.55s var(--ease-out) both;
}

.project-modal-success__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.project-modal-success__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 280px;
}

.project-modal-success__close {
  min-width: 160px;
  justify-content: center;
}

.project-modal-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 9px;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-secondary);
}

.project-modal-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-modal-checkbox-custom {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.project-modal-checkbox input:focus-visible + .project-modal-checkbox-custom {
  box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.28);
}

.project-modal-checkbox input:checked + .project-modal-checkbox-custom {
  border-color: var(--accent);
  background: var(--accent);
}

.project-modal-checkbox input:checked + .project-modal-checkbox-custom::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 1px;
  background: #0A0A0A;
}

.project-modal-checkbox-text { line-height: 1.6; }

.project-modal-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.project-modal-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.project-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s, border-color 0.18s;
}

.project-modal-close span {
  position: absolute;
  width: 12px;
  height: 1px;
  border-radius: 999px;
  background: var(--text-secondary);
}

.project-modal-close span:first-child  { transform: rotate(45deg);  }
.project-modal-close span:last-child   { transform: rotate(-45deg); }

.project-modal-close:hover {
  background: var(--bg-secondary);
  border-color: rgba(255, 179, 71, 0.3);
}

@media (max-width: 480px) {
  .project-modal-backdrop { padding: 16px; }
  .project-modal { padding: 22px 18px 20px; max-width: 100%; }
  .project-modal-inner { max-width: none; }
  .project-modal-title  { font-size: 20px; }
}

/* ============================================================
   10b. SCROLL TO TOP
   ============================================================ */
.scroll-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 179, 71, 0.28);
  background:
    linear-gradient(160deg, rgba(40, 40, 40, 0.95) 0%, rgba(14, 14, 14, 0.98) 100%);
  color: rgba(255, 210, 150, 0.92);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.28s var(--ease-smooth),
    visibility 0.28s var(--ease-smooth),
    transform 0.28s var(--ease-out),
    border-color 0.22s var(--ease-smooth),
    box-shadow 0.22s var(--ease-smooth),
    color 0.22s var(--ease-smooth);
}

.scroll-to-top.scroll-to-top--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-to-top:hover {
  border-color: rgba(255, 179, 71, 0.5);
  color: #ffe8c4;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 179, 71, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.scroll-to-top.scroll-to-top--visible:hover {
  transform: translateY(-2px);
}

.scroll-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.scroll-to-top__icon {
  display: block;
  margin-top: -1px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-to-top {
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
    transform: none;
  }

  .scroll-to-top:hover {
    transform: none;
  }
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 68px 0 44px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}

.footer__logo img {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(100%, 320px);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer__logo:hover img {
  opacity: 0.95;
}

.footer__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.6;
}

.footer__city {
  font-size: 12.5px;
  color: var(--text-secondary);
  opacity: 0.5;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer__contact-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.footer__contact-link:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.38;
  letter-spacing: 0.01em;
}

/* ---- Единый футер (расширенный) ---- */
.footer-journal__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-journal__brand .footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .header__logo img {
    height: 32px;
  }

  .footer__logo img {
    height: 44px;
  }
}

.footer-journal__contacts {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-journal__phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  opacity: 0.75;
  transition: color 0.2s, opacity 0.2s, border-color 0.2s;
}

.footer-messenger:hover {
  color: var(--accent);
  opacity: 1;
  border-color: rgba(255, 179, 71, 0.35);
}

.footer-messenger svg {
  display: block;
}

.footer-journal__contact-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.4;
}

.footer-journal__col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.45;
  margin-bottom: 18px;
}

.footer-journal__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-journal__nav li a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-journal__nav li a:hover { color: var(--accent); }

.footer-journal__top ~ .footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-journal__legal {
  display: flex;
  gap: 24px;
}

.footer-journal__legal a,
.footer-journal__legal span {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.32;
}

.footer-journal__legal a {
  transition: opacity 0.2s, color 0.2s;
}

.footer-journal__legal a:hover {
  opacity: 0.75;
  color: var(--accent);
}

/* Responsive: footer columns */
@media (max-width: 1100px) {
  .footer-journal__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .footer-journal__top { gap: 28px; }
}

@media (max-width: 640px) {
  .footer-journal__top { grid-template-columns: 1fr; }
  .footer-journal__top ~ .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   12. SCROLL REVEAL ANIMATIONS
   ============================================================ */

/* Hero elements — initial state, animated via CSS keyframes */
.hero__eyebrow,
.hero__heading,
.hero__subheading,
.hero__buttons,
.hero__badges {
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.85s var(--ease-out) forwards;
}

.hero__eyebrow   { animation-delay: 0.08s; }
.hero__heading   { animation-delay: 0.2s;  }
.hero__subheading { animation-delay: 0.34s; }
.hero__buttons   { animation-delay: 0.48s; }
.hero__badges    { animation-delay: 0.62s; }

.hero__visual {
  opacity: 0;
  animation: heroFadeIn 1.1s var(--ease-out) 0.28s forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* General scroll-reveal — driven by IntersectionObserver in JS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity   0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}

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

/* Stagger for svc-cards is defined inside section 9 alongside card styles */

/* ============================================================
   13. RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero__visual {
    order: -1;
  }

  .hero__canvas {
    max-width: 400px;
  }

  .hero__content {
    max-width: 100%;
  }

  /* Services: 2 columns on tablet */
  .svc-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc-card {
    min-height: 380px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact__left .section-text {
    max-width: 560px;
  }
}

/* ============================================================
   14. RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-py: 80px;
  }

  .contact {
    padding: 64px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* Header: hide desktop nav & CTA, show burger */
  .header__nav,
  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 72px;
    min-height: auto;
  }

  .hero__canvas {
    max-width: 300px;
  }

  /* Services: single column on mobile */
  .svc-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .svc-card {
    min-height: auto;
    padding: 32px 28px 28px;
    /* Disable lift hover on touch — avoids layout jump */
    transition: border-color 0.35s var(--ease-smooth), box-shadow 0.35s;
  }

  .svc-card:hover {
    transform: none;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer__contacts {
    align-items: flex-start;
  }
}

/* ============================================================
   15. RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero__heading {
    font-size: 34px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero__badge-sep {
    display: none;
  }

  .hero__canvas {
    max-width: 260px;
  }

  .svc-card__icon-wrap {
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .svc-card__title {
    font-size: 16px;
  }
}
