/* AN lead — visual parity with an-lead.ru (Tilda tokens) */
:root {
  --accent: #3927ff;
  --accent-hover: #2e1fd6;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);
  --text-dim: #a5a5a5;
  --bg: #0a0b2e;
  --canvas: 1160px;
  --header-h: 80px;
  --radius: 20px;
  --radius-btn: 30px;
  --font-display: "Unbounded", Arial, sans-serif;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background-color: #0b0c2e;
  background-image: url("../img/bg-blur.jpg");
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--outline {
  background: transparent;
  border: 1px solid #fff;
}
.btn--outline:hover { background: rgba(255,255,255,0.08); }
.btn--lg {
  min-width: 300px;
  height: 55px;
  padding: 0 28px;
  font-size: 14px;
}

/* Header — t228 full-bleed, side paddings 40px */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
}
.header.is-solid {
  background: rgba(11, 12, 46, 0.85);
  backdrop-filter: blur(10px);
}
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #fff;
  opacity: 0.9;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  height: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}
.logo {
  display: inline-flex;
  flex-shrink: 0;
  margin-right: 30px;
}
.logo img { width: 90px; height: auto; }
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 0;
  margin-left: auto;
  margin-right: 25px;
}
.nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.55;
  color: #fff;
  padding: 0 15px;
  white-space: nowrap;
}
.nav a:first-child { padding-left: 0; }
.nav a:last-child { padding-right: 0; }
.header__cta {
  flex-shrink: 0;
  height: 45px;
  padding: 0 30px;
  font-size: 14px;
}
.burger {
  display: none;
  width: 28px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2001;
}
.burger span {
  position: absolute; left: 0; width: 100%; height: 3px; background: #fff; transition: .25s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2),
.burger span:nth-child(3) { top: 8px; }
.burger span:nth-child(4) { top: 16px; width: 70%; right: 0; left: auto; }
.burger.is-open span:nth-child(1),
.burger.is-open span:nth-child(4) { top: 8px; width: 0; left: 50%; }
.burger.is-open span:nth-child(2) { transform: rotate(45deg); }
.burger.is-open span:nth-child(3) { transform: rotate(-45deg); }

/* ========== HERO (Zero Block 1200×1080) ========== */
/* live: header 60 + spacer #rec1127104036 (88) → artboard top 148; title +65 → 213 */
.hero {
  position: relative;
  padding-top: 148px;
  min-height: calc(148px + 1080px);
  overflow: hidden;
}
.hero__canvas {
  position: relative;
  width: min(100%, 1200px);
  margin: 0 auto;
  min-height: 1080px;
  padding: 0 20px;
  box-sizing: border-box;
}
.hero__title {
  position: relative;
  z-index: 3;
  max-width: 680px;
  margin: 65px 0 0;
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero__lead {
  position: relative;
  z-index: 5;
  max-width: 610px;
  /* measured live: title height 264 (4×66), gap title→lead = 45px */
  margin: 45px 0 0;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
}
.hero__stats-label {
  position: relative;
  z-index: 6;
  /* lead top 374 + ~48 → 422; label top 506 ⇒ ~84px */
  margin: 84px 0 23px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}
.hero__visual {
  position: absolute;
  z-index: 4;
  top: 85px;
  /* live Zero Block: left 620, width 663 inside 1200 artboard */
  left: 620px;
  right: auto;
  width: 663px;
  max-width: none;
  pointer-events: none;
  /* Tilda SBS loop: 0 → (-10,10,ro2) → (10,0,ro-2) → 0, 3s each */
  animation: hero-float 9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: transform;
}
.hero__visual img {
  width: 100%;
  height: auto;
}
@keyframes hero-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33.333% { transform: translate(-10px, 10px) rotate(2deg); }
  66.666% { transform: translate(10px, 0) rotate(-2deg); }
}
.hero__stats {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 360px);
  gap: 40px;
  max-width: 1160px;
}
.stat-card {
  position: relative;
  width: 360px;
  min-height: 280px;
  padding: 32px 40px 28px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #3927ff;
  opacity: 0.2;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  z-index: -1;
}
.stat-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 18px;
}
.stat-card p {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
}
.hero__bottom {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  /* cards top 561 + 280 = 841; cta title 908 ⇒ ~67px */
  margin-top: 67px;
  padding-bottom: 40px;
}
.hero__cta-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
}
.hero__cta-text {
  margin: 0;
  max-width: 666px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
}

/* ========== SECTIONS ========== */
.section {
  padding: 90px 0;
  position: relative;
}
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
}

/* Slider */
.slider {
  position: relative;
}
.slider__track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }

/* Full-bleed like t1196__slider_width_12: track = viewport, pad to container */
.slider--bleed {
  width: 100%;
  max-width: 100vw;
}
.slider--bleed .slider__track {
  /* t1196__slider_width_12: 12*60 + 11*40 = 1160 */
  --container-width: min(calc(100% - 40px), 1160px);
  --edge-pad: calc((100% - var(--container-width)) / 2);
  width: 100%;
  padding-left: var(--edge-pad);
  padding-right: var(--edge-pad);
  box-sizing: border-box;
  scroll-padding-left: var(--edge-pad);
  scroll-padding-right: var(--edge-pad);
}
.slider__arrows {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.slider__btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.slider__btn:hover { background: var(--accent-hover); }
.slider__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* Service cards */
.service-card {
  flex: 0 0 360px;
  width: 360px;
  scroll-snap-align: start;
  position: relative;
  min-height: calc(360px / (3 / 4));
  border-radius: var(--radius);
  overflow: hidden;
  background: #12133a;
}
.service-card__media {
  position: absolute;
  inset: 0;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card__body {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(57, 39, 255, 0.20);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.service-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}
.service-card__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Case cards — t1196 width 360, gap 40 */
.case-card {
  flex: 0 0 360px;
  width: 360px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
}
.case-card__media {
  height: calc(360px / (16 / 9));
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  background: rgba(57, 39, 255, 0.20);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0 0 var(--radius) var(--radius);
}
.case-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
}
.case-card__text {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  flex: 1;
}
.case-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Clients — t738: 4-in-row, logos ~260×173, one-row slider */
.clients-track {
  gap: 0;
  align-items: center;
}
.client-card {
  flex: 0 0 300px;
  width: 300px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}
.client-card img {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 600 / 400;
  object-fit: contain;
}

/* Reviews / thank-you letters — preview of first PDF page */
.review-card {
  flex: 0 0 300px;
  width: 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.review-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(57, 39, 255, 0.16);
  transform: translateY(-4px);
}
.review-card__media {
  display: block;
  aspect-ratio: 3 / 4;
  background: #f4f4f6;
  overflow: hidden;
}
.review-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}
.review-card:hover .review-card__media img {
  transform: scale(1.03);
}
.review-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  min-height: 148px;
}
.review-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}
.review-card__text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
  flex: 1;
}
.review-card__cta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.85;
}
.review-card:hover .review-card__cta { opacity: 1; }

/* Team — t545: text left on #efefef, photo right; then t537 3 cols */
.team-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 45px;
}
.team-featured__text {
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 60px;
  border-radius: var(--radius);
  background: #efefef;
  color: #000;
  box-sizing: border-box;
}
.team-featured__inner {
  max-width: 440px;
}
.team-featured h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.23;
  color: #000;
}
.team-featured__role {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: #666;
}
.team-featured__bio {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: #000;
}
.team-featured__photo {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 560px;
}
.team-featured__photo img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.team-card {
  background: none;
  border-radius: 0;
  overflow: visible;
}
.team-card img {
  width: 100%;
  aspect-ratio: 360 / 300;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.team-card__body { padding: 0; }
.team-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.35;
  color: #fff;
}
.team-card__role {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: #fff;
}
.team-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: #fff;
}

/* Contacts — t560: plain impact text, no cards */
.contacts__main {
  margin: 0 0 35px;
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.5;
  color: #fff;
}
.contacts__main a {
  color: inherit;
  text-decoration: none;
}
.contacts__main a:hover { opacity: 0.85; }
.contacts__meta {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: #fff;
}

/* CTA block */
.cta { padding: 0 0 50px; }
.cta__box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d2c52 url("../img/cta-bg.png") center / cover;
  min-height: 260px;
}
.cta__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,14,97,0.70), rgba(13,44,82,0.70));
}
.cta__content {
  position: relative;
  z-index: 1;
  padding: 48px 40px;
}
.cta__content h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.23;
  margin: 0 0 8px;
}
.cta__content > p {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: start;
}
.form-field input {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #111;
}
.form-field input:focus { outline: 2px solid var(--accent); }
.form-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.form-note a { color: var(--accent); text-decoration: underline; }
.form-success {
  display: none;
  padding: 16px;
  background: rgba(57, 39, 255, 0.25);
  border-radius: 10px;
  margin-bottom: 16px;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #fde8e8;
  color: #9b1c1c;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}
.form-error.is-visible { display: block; }

/* Footer */
.footer {
  background: var(--accent);
  padding: 70px 0;
  text-align: center;
}
.footer img { width: 140px; margin: 0 auto 16px; }
.footer p { margin: 0; font-size: 16px; }

/* Inner pages */
.page-hero { padding: calc(var(--header-h) + 60px) 0 40px; }
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 12px;
}
.page-hero__descr {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 18px;
}
.page-hero__block ul { list-style: none; padding: 0; }
.page-hero__block li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.page-hero__block li::before { content: "•"; position: absolute; left: 0; }
.gallery {
  padding: 0 0 60px;
}
.gallery .container {
  display: grid;
  gap: 28px;
}
.gallery img { width: 100%; border-radius: var(--radius); display: block; }

.section__label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.service-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mosaic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}
.accordion { border-top: 1px solid rgba(255,255,255,0.35); }
.accordion__item { border-bottom: 1px solid rgba(255,255,255,0.35); }
.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.accordion__btn span:first-child {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
}
.accordion__icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.accordion__icon::before {
  width: 12px;
  height: 1.5px;
}
.accordion__icon::after {
  width: 1.5px;
  height: 12px;
}
.accordion__item.is-open .accordion__icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}
.accordion__panel { display: none; padding: 0 0 20px; color: var(--text-muted); }
.accordion__item.is-open .accordion__panel { display: block; }
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.feature-list { display: grid; gap: 16px; }
.feature {
  display: flex; gap: 16px; padding: 18px;
  background: rgba(255,255,255,0.08); border-radius: var(--radius);
}
.feature img { width: 56px; height: 56px; object-fit: contain; }
.feature h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 400; margin: 0 0 6px;
}
.feature p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* Modal — Tilda t702 popup (+ tilda-popup show anim) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  outline: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  cursor: pointer;
}
.modal.is-open {
  opacity: 1;
}
.modal__dialog {
  width: min(calc(100% - 40px), 1060px);
  background: #fff;
  color: #000;
  border-radius: 0;
  padding: 40px 45px;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin: 0 auto;
  box-sizing: border-box;
  cursor: default;
  /* Tilda: translateY(-30%) scale(.9) → translateY(-50%) */
  transform: translateY(-30%) scale(0.9);
  transition: transform 0.3s ease-in-out;
}
.modal.is-open .modal__dialog {
  transform: translateY(-50%);
}
.modal__close {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 3001;
  width: 43px;
  height: 43px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: none;
  place-items: center;
  line-height: 0;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}
.modal.is-open .modal__close {
  display: grid;
}
.modal__close:hover { opacity: 0.7; }
.modal__close svg { display: block; }
.modal__dialog h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.23;
  margin: 0 0 11px;
  color: #000;
}
.modal__descr {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: #000;
}
.modal .form-stack {
  display: grid;
  gap: 25px;
}
.modal .form-stack input {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  border: 1px solid #000;
  border-radius: 10px;
  background: transparent;
  color: #000;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  box-sizing: border-box;
}
.modal .form-stack input::placeholder {
  color: #999;
}
.modal__submit {
  width: 100%;
  height: 60px;
  padding: 0 60px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
}
.modal .form-note {
  margin: 20px 0 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: #000;
}
.modal .form-note a {
  color: #3927ff;
  text-decoration: none;
}
.modal .form-note a:hover { text-decoration: underline; }
.modal .form-success {
  background: #eef;
  color: #111;
  margin-bottom: 16px;
}

@media (max-width: 960px) {
  .modal__dialog {
    padding: 28px 20px;
  }
  .modal__dialog h2 {
    font-size: 26px;
  }
}
@media (max-width: 560px) {
  .modal__close { right: 8px; top: 8px; }
  .modal__dialog h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal__dialog,
  .modal__close {
    transition: none !important;
  }
  .modal__dialog {
    transform: translateY(-50%) !important;
  }
}

/* Tilda-like fadeinup (distance 100, ease cubic-bezier(.19,1,.22,1)) */
.anim {
  opacity: 0;
}
.anim.is-in {
  opacity: 1;
}
@media (min-width: 980px) {
  .anim {
    transform: translateY(100px);
    transition-property: opacity, transform;
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    backface-visibility: hidden;
  }
  .anim--title {
    transition-duration: 1.2s;
  }
  .anim--text {
    transition-duration: 0.7s;
  }
  .anim.is-in {
    transform: none;
  }
}
@media (max-width: 979px) {
  .anim {
    transition: opacity 0.6s ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  .anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero__visual {
    animation: none;
    transform: none;
  }
}

/* legacy alias for inner pages */
.reveal {
  opacity: 0;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (min-width: 980px) {
  .reveal {
    transform: translateY(100px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1),
                transform 1s cubic-bezier(0.19, 1, 0.22, 1);
  }
}
@media (max-width: 979px) {
  .reveal { transition: opacity 0.6s ease; }
}

/* Responsive */
@media (max-width: 1200px) {
  .hero__title { font-size: 56px; max-width: 574px; }
  .hero__visual { left: 55%; width: 42%; top: 62px; }
  .hero__stats { gap: 20px; }
}

@media (max-width: 980px) {
  .header__inner { padding: 0 20px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; background: #111; padding: 12px 0 20px; display: none;
    justify-content: flex-start;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 16px;
  }
  .nav a:first-child,
  .nav a:last-child { padding-left: 24px; padding-right: 24px; }
  .header__cta { display: none; }

  .hero { min-height: 0; padding-top: var(--header-h); }
  .hero__canvas { min-height: 0; padding: 40px 20px 60px; }
  .hero__title { font-size: 36px; margin-top: 24px; max-width: none; }
  .hero__lead { font-size: 20px; margin-top: 28px; }
  .hero__stats-label { font-size: 24px; margin-top: 32px; }
  .hero__visual {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: min(420px, 90%);
    margin: 24px auto;
  }
  .hero__stats { grid-template-columns: 1fr; gap: 16px; }
  .stat-card { width: 100%; min-height: 0; padding: 20px; }
  .stat-card p { font-size: 18px; }
  .hero__bottom { flex-direction: column; align-items: stretch; margin-top: 32px; }
  .hero__cta-title { font-size: 24px; }
  .hero__cta-text { font-size: 18px; }
  .btn--lg { width: 100%; min-width: 0; }
  .service-card,
  .case-card { flex-basis: min(360px, 85vw); width: min(360px, 85vw); }
  .review-card { flex-basis: min(280px, 82vw); width: min(280px, 82vw); }
  .slider__track { gap: 16px; }

  .section__head {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .section__title {
    font-size: 28px;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .slider__arrows { align-self: flex-end; }
  .team-featured {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .team-featured__text,
  .team-featured__photo,
  .team-featured__photo img {
    min-height: 0;
  }
  .team-featured__text { padding: 32px 24px; }
  .page-hero__grid,
  .service-intro,
  .features,
  .team-grid { grid-template-columns: 1fr; gap: 28px; }
  .client-card { flex-basis: 240px; width: 240px; }
  .contacts__main { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .cta__content { padding: 32px 24px; }
  .cta__content h2 { font-size: 28px; }
}

@media (max-width: 600px) {
  .client-card { flex-basis: 200px; width: 200px; padding: 12px; }
  .section { padding: 56px 0; }
  .hero__title { font-size: 30px; }
}
