/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg:           #08091a;
  --bg-card:      #0f1122;
  --bg-card-hover:#151829;
  --bg-section:   #0b0c1e;
  --accent:       #2563eb;
  --accent-light: #3b82f6;
  --accent-glow:  rgba(37, 99, 235, 0.25);
  --text:         #f1f5f9;
  --text-muted:   #8b9ab5;
  --text-dim:     #4a5568;
  --border:       rgba(255, 255, 255, 0.07);
  --border-accent:rgba(37, 99, 235, 0.3);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card:  0 2px 16px rgba(0, 0, 0, 0.35);
  --transition:   0.25s ease;
  --header-h:     72px;
  --container:    1200px;
  --pad:          clamp(16px, 4vw, 24px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.nav-open,
body.nav-open {
  overflow: hidden;
}

body.nav-open {
  position: fixed;
  width: 100%;
}

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

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

ul {
  list-style: none;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-accent);
}

.btn--outline:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 96px 0;
}

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

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section__title--center {
  text-align: center;
}

.section__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 48px;
}

.section__subtitle--center {
  text-align: center;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(8, 9, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

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

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
  text-decoration: none;
}

.header__logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.header__logo-title {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav */
.nav {
  flex: 1;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  flex-shrink: 0;
  margin-left: auto;
  transition: color 0.2s;
}

.header__phone:hover {
  color: var(--text);
}

.header__phone svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.header__cta {
  flex-shrink: 0;
  margin-left: 20px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero .container {
  width: 100%;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__photo-wrap {
  flex-shrink: 0;
  width: 300px;
}

.hero__photo {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.25);
}

.hero__title {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero__title em {
  font-style: normal;
  color: var(--accent-light);
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero__cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

.about__photo-wrap {
  position: relative;
}

.about__photo {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}

.about__photo-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  z-index: -1;
  opacity: 0.5;
}

.about__content {
  padding-top: 8px;
}

.about__text {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 20px;
  margin-bottom: 40px;
}

.about__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
}

.about__stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 120px;
  line-height: 1.4;
}

/* Advantage cards */
.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.advantage-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
}

.advantage-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.advantage-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.advantage-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.advantage-card__text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   CASES GRID (placeholder, рендер в Сессии 4)
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 0;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-light);
  white-space: nowrap;
}

.badge--lg {
  padding: 6px 14px;
  font-size: 13px;
}

/* ============================================================
   CASE CARDS
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  outline: none;
  display: flex;
  flex-direction: column;
}

.case-card:hover,
.case-card:focus-visible {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

.case-card:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

/* Image */
.case-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-section);
}

.case-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-card__img {
  transform: scale(1.04);
}

.case-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d1127 0%, #111c38 50%, #0a0f22 100%);
  position: relative;
}

.case-card__img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(37, 99, 235, 0.18) 0%, transparent 65%);
}

/* Body */
.case-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.case-card__subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.case-card__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.case-card__btn {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.case-card:hover .case-card__btn {
  opacity: 0.75;
}

.case-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* ============================================================
   MODAL
   ============================================================ */
html.modal-open,
body.modal-open {
  overflow: hidden;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.modal.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px var(--pad);
  overflow: hidden;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 15, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}

.modal__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: auto;
  animation: slideUp 0.25s ease;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

.modal__content {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  min-height: 0;
}

/* Modal header */
.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-card);
}

.modal__tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.modal__title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  margin-top: 4px;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.modal__close svg {
  width: 16px;
  height: 16px;
}

/* Modal body */
.modal__body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.modal__section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.modal__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal__screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.modal__screenshot img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.modal__screenshot img:hover {
  opacity: 0.85;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.modal__screenshot figcaption {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: center;
}

.modal__result {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.modal__result .modal__section-label {
  color: var(--accent-light);
}

.modal__text--result {
  color: var(--text);
  font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* ============================================================
   TASKS (Какие задачи автоматизирую)
   ============================================================ */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.task-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.task-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.task-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.task-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.task-card__text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   PROCESS (Как я работаю)
   ============================================================ */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  list-style: none;
}

.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 40px;
}

.process-step:last-child {
  padding-bottom: 0;
}

/* Вертикальная линия между шагами */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 31px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--border-accent), var(--border));
}

.process-step__num {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-light);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-step__body {
  padding-top: 16px;
}

.process-step__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.process-step__text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}

.faq-item__trigger:hover {
  color: var(--accent-light);
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.faq-item__trigger[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
  color: var(--accent-light);
}

.faq-item__trigger[aria-expanded="true"] {
  color: var(--accent-light);
}

.faq-item__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item__answer.open {
  max-height: 400px;
}

.faq-item__answer p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-bottom: 22px;
}

/* ============================================================
   START (С чего начать)
   ============================================================ */
.start__inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.start__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.start__content {
  position: relative;
  z-index: 1;
}

.start__content .section__title {
  margin-bottom: 20px;
}

.start__text {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.start__cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.start__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.start__visual img {
  width: 100%;
  max-width: 320px;
  opacity: 0.4;
  filter: blur(0.5px);
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts .section__subtitle {
  margin-bottom: 48px;
}

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

.contacts__icons {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
}

.contact-icon:hover {
  transform: translateY(-4px);
  color: var(--text);
}

.contact-icon__circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
}

.contact-icon__circle svg {
  width: 32px;
  height: 32px;
}

.contact-icon:hover .contact-icon__circle {
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.4);
}

.contact-icon__circle--phone { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.contact-icon__circle--tg    { background: rgba(41, 182, 246, 0.15); color: #29b6f6; }
.contact-icon__circle--max   { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.contact-icon__circle--max-img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; display: block; }
.contact-icon__circle--wa    { background: rgba(37, 211, 102, 0.15); color: #25d366; }

.contact-icon__label {
  font-size: 15px;
  font-weight: 500;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card__icon--tg      { background: rgba(0, 136, 204, 0.15); color: #2CA5E0; }
.contact-card__icon--wa      { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.contact-card__icon--max     { background: rgba(0, 119, 255, 0.15);  color: #0077FF; }
.contact-card__icon--phone   { background: rgba(37, 99, 235, 0.12);  color: var(--accent-light); }
.contact-card__icon--channel { background: rgba(0, 136, 204, 0.15);  color: #2CA5E0; }

.contact-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-card__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-card__arrow {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.contact-card:hover .contact-card__arrow {
  color: var(--accent-light);
  transform: translate(2px, -2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 14px;
  color: var(--text-dim);
}

.footer__channel {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__channel:hover {
  color: var(--accent-light);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Задержки для дочерних элементов в сетках */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }

/* Отключаем анимации при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

/* 1024px — планшет горизонтальный */
@media (max-width: 1024px) {
  .advantages {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__top {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }

  .nav__link {
    font-size: 13px;
    padding: 7px 10px;
  }
}

/* 1024px */
@media (max-width: 1024px) {
  .contacts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .start__inner {
    grid-template-columns: 1fr 280px;
    gap: 40px;
    padding: 48px;
  }

  .tasks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 768px — планшет вертикальный */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  /* Header mobile */
  .header__cta,
  .header__phone {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(8, 9, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    padding: 32px var(--pad);
    overflow-y: auto;
  }

  .nav.open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav__link {
    font-size: 20px;
    font-weight: 600;
    padding: 14px 0;
    color: var(--text);
    width: 100%;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav__list li:last-child .nav__link {
    border-bottom: none;
  }

  /* Hero */
  .hero__inner {
    flex-direction: column;
    gap: 40px;
    padding: 60px 0;
  }

  .hero__photo-wrap {
    width: 220px;
    align-self: center;
  }

  /* About */
  .about__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__photo-wrap {
    max-width: 240px;
  }

  .about__photo {
    aspect-ratio: 1 / 1;
  }

  .about__stats {
    gap: 24px;
  }

  .about__stat-label {
    max-width: none;
  }
}

/* 768px — Start, Contacts, Process */
@media (max-width: 768px) {
  .process-list {
    max-width: 100%;
  }

  .process-step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .process-step__num {
    width: 48px;
    height: 48px;
    font-size: 13px;
  }

  .process-step:not(:last-child)::after {
    left: 23px;
    top: 40px;
  }
}

/* 768px — Start и Contacts */
@media (max-width: 768px) {
  .start__inner {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 32px;
  }

  .start__visual {
    display: none;
  }

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

/* 480px — мобильный */
@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }

  .hero__cta-group {
    flex-direction: column;
  }

  .hero__cta-group .btn,
  .start__cta-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

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

  .about__stats {
    flex-direction: column;
    gap: 16px;
  }

  .about__stat-value {
    font-size: 20px;
  }

  .start__inner {
    padding: 32px 24px;
  }

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

  .faq-item__trigger {
    font-size: 15px;
    padding: 18px 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* 480px — модалка */
@media (max-width: 480px) {
  .modal.open {
    padding: 0;
    align-items: flex-end;
    overflow: hidden;
  }

  .modal__container {
    max-width: 100%;
    margin: 0;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
  }

  .modal__content {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 92vh;
  }

  .modal__header,
  .modal__body {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* 320px — минимальная ширина */
@media (max-width: 360px) {
  .hero__title {
    font-size: 28px;
  }

  .header__logo-name {
    font-size: 14px;
  }
}
