:root {
  --color-bg: #020617;
  --color-surface: #0F172A;
  --color-text: #E2E8F0;
  --color-text-secondary: #94A3B8;
  --color-accent: #22D3EE;
  --color-accent-secondary: #6366F1;

  --border-subtle: 1px solid rgba(148, 163, 184, 0.15);

  --shadow-soft: 0 10px 30px rgba(2, 6, 23, 0.35);
  --shadow-accent: 0 0 24px rgba(34, 211, 238, 0.18);

  --radius-md: 14px;
  --radius-lg: 20px;

  --container-width: 1200px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 80px;
  --space-8: 120px;
}

/* База */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-accent-secondary);
}

button {
  font: inherit;
}

/* База */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-accent-secondary);
}

button {
  font: inherit;
}

/* Контейнеры и секции */

.layout-container {
  width: min(100% - 32px, var(--container-width));
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-lg {
  padding: 120px 0;
}

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.section-visual img {
  width: 100%;
  border-radius: 18px;
  border: var(--border-subtle);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.35);
}

@media (min-width: 768px) {
  .two-column-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
}

main > section {
  position: relative;
}

main > section:nth-of-type(even) {
  background: var(--color-surface);
}

/* Вертикальный ритм */

.stack-4 > * + * {
  margin-top: 16px;
}

.stack-6 > * + * {
  margin-top: 24px;
}

.center-text {
  text-align: center;
}
.reveal > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible > *:nth-child(1) {
  transition-delay: 0.08s;
}

.reveal.is-visible > *:nth-child(2) {
  transition-delay: 0.18s;
}

.reveal.is-visible > *:nth-child(3) {
  transition-delay: 0.28s;
}

.reveal.is-visible > *:nth-child(4) {
  transition-delay: 0.38s;
}

.reveal.is-visible > *:nth-child(5) {
  transition-delay: 0.48s;
}
/* Типографика */

h1,
h2,
h3,
h4,
p,
small {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
.title-xl {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2,
.title-lg {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3,
.subtitle {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 760px;
}

h4,
.eyebrow,
.lead-sm {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-text-secondary);
}

p,
.text-primary {
  color: var(--color-text);
}

small,
.text-secondary {
  color: var(--color-text-secondary);
}

.center-text h3,
.center-text .subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.16), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(99, 102, 241, 0.14), transparent 24%),
    radial-gradient(circle at 15% 18%, rgba(34, 211, 238, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(2, 6, 23, 0) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 32%, rgba(34, 211, 238, 0.22), transparent 18%),
    radial-gradient(circle at 78% 22%, rgba(99, 102, 241, 0.16), transparent 14%),
    radial-gradient(circle at 22% 24%, rgba(34, 211, 238, 0.10), transparent 12%);
  filter: blur(70px);
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}

.hero h1 {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-wrap: balance;
  color: var(--color-text);
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.08);
}

.hero h3 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  font-family: "Inter", sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-text-secondary);
}

main h2,
footer h2 {
  font-size: clamp(34px, 4.4vw, 56px);
}

main h3,
footer h3 {
  font-size: clamp(20px, 2.2vw, 24px);
}

main h4,
footer h4 {
  font-size: 18px;
}

main p,
main li,
main summary,
footer p,
footer li,
footer small {
  font-size: 18px;
}

/* Списки */

.list-spaced > li + li {
  margin-top: 12px;
}

.list-disc,
.list-decimal {
  padding-left: 20px;
}

.list-disc li::marker,
.list-decimal li::marker {
  color: var(--color-accent);
}

/* Шапка */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(2, 6, 23, 0.62);
  border-bottom: var(--border-subtle);
  box-shadow:
    0 8px 24px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(226, 232, 240, 0.06);
}

.header-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.menu,
.contact-links,
.links-inline,
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu a,
.contact-links a,
.links-inline a {
  color: var(--color-text-secondary);
}

.menu a:hover,
.contact-links a:hover,
.links-inline a:hover {
  color: var(--color-accent);
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: var(--border-subtle);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #020617;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: #67e8f9;
  color: #020617;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
  color: var(--color-text);
}

main .btn,
footer .btn {
  min-height: 58px;
  padding: 0 128px;
  font-size: 17px;
}

.actions-center {
  justify-content: center;
}

.ai-estimate-section {
  padding: 120px 0;
}

.ai-estimate-card {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-sizing: border-box;
}

.ai-estimate-eyebrow {
  margin: 0 0 12px;
  color: #22d3ee;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-estimate-title {
  margin: 0 0 12px;
}

.ai-estimate-text {
  margin: 0 0 28px;
  color: #94a3b8;
  max-width: 760px;
}

.ai-estimate-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}

.ai-estimate-label {
  display: block;
  margin: 0;
  font-weight: 600;
  color: #e2e8f0;
}

.ai-estimate-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 160px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.72);
  color: #e2e8f0;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  font: inherit;
  line-height: 1.6;
}

.ai-estimate-textarea::placeholder {
  color: rgba(148, 163, 184, 0.85);
}

.ai-estimate-textarea:focus {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.ai-estimate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.18);
}

.ai-estimate-button:hover {
  transform: translateY(-1px);
}

.ai-estimate-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ai-estimate-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: #94a3b8;
}

.ai-estimate-output {
  margin-top: 24px;
}

.ai-estimate-result {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.6);
}

.ai-estimate-result p {
  margin: 0 0 12px;
  color: #e2e8f0;
}

.ai-estimate-result p:last-child {
  margin-bottom: 0;
}

.final-cta-layout {
  max-width: 920px;
}

.final-cta-actions {
  margin-top: 6px;
}

.contact-form-dropdown {
  width: min(640px, 100%);
}

.contact-form-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.contact-form-dropdown summary::-webkit-details-marker {
  display: none;
}

.contact-form-dropdown[open] summary {
  margin-bottom: 16px;
}

.contact-form {
  width: 100%;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: var(--border-subtle);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.contact-form-field {
  display: grid;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.62);
  color: var(--color-text);
  font: inherit;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-field textarea {
  resize: vertical;
  min-height: 124px;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.contact-form-submit {
  padding: 0 28px;
  min-height: 52px;
  width: fit-content;
}

.team-layout {
  max-width: 1400px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 4px;
}

.team-card {
  height: 100%;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: var(--border-subtle);
  background: rgba(148, 163, 184, 0.08);
}

.team-role {
  color: var(--color-text);
}

.process-layout {
  max-width: 980px;
}

.steps-list {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
}

.steps-list li {
  color: var(--color-text);
}

.steps-list li + li {
  margin-top: 12px;
}

.steps-list li::marker {
  color: var(--color-accent);
}

/* Карточки и поверхности */

.card,
.faq-item,
.footer,
.surface {
  background: rgba(15, 23, 42, 0.72);
  border: var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 24px;
  border-radius: var(--radius-lg);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow:
    0 22px 52px rgba(2, 6, 23, 0.52),
    0 0 32px rgba(34, 211, 238, 0.08),
    0 0 0 1px rgba(34, 211, 238, 0.08);
}

.cards-3,
.services-list {
  display: grid;
  gap: 24px;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.services-list li {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.services-list li:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow:
    0 20px 44px rgba(2, 6, 23, 0.48),
    0 0 0 1px rgba(34, 211, 238, 0.07);
}

/* FAQ */

.faq-item {
  padding: 20px 24px;
  border-radius: var(--radius-md);
}

.faq-layout {
  max-width: 980px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-entry {
  background: rgba(15, 23, 42, 0.66);
}

.faq-question {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  margin-top: 12px;
  color: var(--color-text-secondary);
  max-width: 72ch;
}

/* Подвал */

.footer {
  border-top: var(--border-subtle);
}

.footer-wrap {
  padding-top: 24px;
  padding-bottom: 24px;
}

.contacts-layout {
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
}

.contacts-layout > * + * {
  margin-top: 0;
}

.contacts-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contacts-list li + li {
  margin-top: 0;
}

.contacts-links {
  margin-top: 0;
  flex-wrap: nowrap;
}

.contacts-meta {
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* Works */

#works .card {
  overflow: hidden;
  transition:
    transform 0.38s ease,
    box-shadow 0.42s ease,
    border-color 0.38s ease;
}

#works .card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.26);
  box-shadow:
    0 20px 44px rgba(2, 6, 23, 0.52),
    0 0 0 1px rgba(34, 211, 238, 0.08),
    0 0 28px rgba(34, 211, 238, 0.09);
}

#works .card img {
  transition: transform 0.45s ease;
  transform-origin: center center;
}

#works .card:hover img {
  transform: scale(1.04);
}

.works-card-link {
  display: block;
  color: inherit;
}

.works-card-image {
  width: 100%;
  border-radius: var(--radius-md);
  border: var(--border-subtle);
}

.works-card-meta {
  color: var(--color-text-secondary);
}

.works-card-result {
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 16px;
}

.works-card-result--cyan {
  border-color: rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.06);
}

.works-card-result--indigo {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.08);
}

/* Outcome */

.outcome-layout {
  --outcome-line-color: rgba(125, 173, 188, 0.54);
  --outcome-line-glow: rgba(34, 211, 238, 0.12);
  --outcome-line-width: 2px;
  --outcome-grid-gap-x: 56px;
  --outcome-grid-gap-y: 24px;
  max-width: 1400px;
}

.outcome-card {
  border: var(--border-subtle);
  background: rgba(15, 23, 42, 0.62);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
}

.outcome-card-main {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.outcome-card-main h2 {
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.outcome-card-wide {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--outcome-grid-gap-x);
  row-gap: var(--outcome-grid-gap-y);
  margin-top: 8px;
}

.outcome-grid .outcome-card h4 {
  margin-bottom: 10px;
}

.outcome-connector-top {
  height: 24px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.outcome-connector-top__line {
  width: var(--outcome-line-width);
  height: 24px;
  background: var(--outcome-line-color);
  box-shadow: 0 0 14px var(--outcome-line-glow);
}

.outcome-connector-bottom {
  position: relative;
  height: 32px;
  margin: 12px 0 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--outcome-grid-gap-x);
}

.outcome-connector-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc((100% - (var(--outcome-grid-gap-x) * 2)) / 6);
  right: calc((100% - (var(--outcome-grid-gap-x) * 2)) / 6);
  height: var(--outcome-line-width);
  background: var(--outcome-line-color);
  box-shadow: 0 0 12px var(--outcome-line-glow);
}

.outcome-connector-bottom__branch {
  justify-self: center;
  position: relative;
  width: var(--outcome-line-width);
  height: 20px;
  background: var(--outcome-line-color);
  box-shadow: 0 0 10px var(--outcome-line-glow);
}

.outcome-connector-bottom__branch::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(125, 173, 188, 0.72);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.16);
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner__inner {
  position: relative;
  width: min(100%, 1100px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}

.cookie-banner__content {
  min-width: 0;
}

.cookie-banner__eyebrow {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-banner__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  color: var(--color-text);
}

.cookie-banner__text {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 760px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-banner__button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.cookie-banner__button:hover {
  transform: translateY(-1px);
}

.cookie-banner__button--primary {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #ffffff;
  border-color: transparent;
}

.cookie-banner__button--secondary {
  background: transparent;
  color: var(--color-text);
}

.cookie-banner__button--secondary:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.cookie-banner__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.cookie-banner__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  transform: scale(1.04);
}

/* === LEAD FORM === */

.lead-form {
  margin-top: 32px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.lead-form h3 {
  margin-bottom: 8px;
  color: #E2E8F0;
}

.lead-form p {
  margin-bottom: 16px;
  color: #94A3B8;
}

.lead-form__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #020617;
  color: #E2E8F0;
  resize: vertical;
}

.lead-form input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #020617;
  color: #E2E8F0;
}

.lead-form button {
  margin-top: 8px;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22D3EE, #6366F1);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lead-form button:hover {
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }

  .cookie-banner__actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__button {
    width: 100%;
  }

  .cookie-banner__title {
    padding-right: 28px;
  }
}
/* Адаптив */

@media (max-width: 991px) {
  .cards-3,
  .services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 64px 0;
  }

  .section-lg {
    padding: 96px 0;
  }

  .outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cards-3,
  .services-list,
  .outcome-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .header-wrap {
    align-items: flex-start;
  }

  .section {
    padding: 56px 0;
  }

  .section-lg {
    padding: 80px 0;
  }

  .hero {
    min-height: 560px;
  }

  .hero::after {
    background-size: 72px 72px;
    opacity: 0.06;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.05em;
  }

  .hero h3 {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .actions {
    width: 100%;
  }

  .contact-form-dropdown {
    width: 100%;
  }

  .contact-form-submit {
    width: 100%;
  }

  .outcome-connector-top,
  .outcome-connector-bottom {
    display: none;
  }
}

@media (max-width: 1199px) {
  .layout-container {
    width: min(100% - 56px, var(--container-width));
  }

  .hero-content {
    max-width: 900px;
  }

  .ai-estimate-card {
    max-width: 100%;
    padding: 40px 40px;
  }

  .cards-3,
  .services-list {
    gap: 20px;
  }

  .outcome-layout {
    --outcome-grid-gap-x: 32px;
  }
}

@media (max-width: 991px) {
  .layout-container {
    width: min(100% - 48px, var(--container-width));
  }

  .header-wrap {
    min-height: auto;
    padding: 18px 0;
  }

  .menu,
  .contact-links,
  .links-inline,
  .actions {
    gap: 12px;
  }

  main .btn,
  footer .btn {
    padding: 0 28px;
    min-height: 54px;
    font-size: 16px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(52px, 8vw, 84px);
  }

  .hero h3 {
    max-width: 640px;
    font-size: clamp(17px, 2vw, 20px);
  }

  .ai-estimate-section {
    padding: 96px 0;
  }

  .ai-estimate-card {
    padding: 36px 32px;
    border-radius: 24px;
  }

  .ai-estimate-title,
  .ai-estimate-text {
    max-width: 100%;
  }

  .contact-form {
    padding: 20px;
  }

  .faq-item {
    padding: 18px 20px;
  }

  .contacts-layout {
    align-items: flex-start;
  }

  .contacts-list,
  .contacts-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .layout-container {
    width: min(100% - 40px, var(--container-width));
  }

  .section {
    padding: 56px 0;
  }

  .section-lg {
    padding: 72px 0;
  }

  .header-wrap {
    gap: 16px;
    align-items: flex-start;
  }

  .logo {
    font-size: 18px;
  }

  .menu,
  .contact-links,
  .links-inline,
  .actions {
    width: 100%;
    gap: 10px 14px;
  }

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.05em;
  }

  .hero h3 {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.55;
  }

  main h2,
  footer h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  main h3,
  footer h3 {
    font-size: 18px;
  }

  main p,
  main li,
  main summary,
  footer p,
  footer li,
  footer small {
    font-size: 16px;
  }

  .card {
    padding: 20px;
  }

  .services-list li {
    padding: 20px;
  }

  .ai-estimate-section {
    padding: 72px 0;
  }

  .ai-estimate-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .ai-estimate-eyebrow {
    font-size: 12px;
  }

  .ai-estimate-title {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.08;
  }

  .ai-estimate-text {
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.6;
  }

  .ai-estimate-label {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .ai-estimate-textarea {
    min-height: 150px;
    padding: 16px 16px;
    border-radius: 16px;
    font-size: 15px;
  }

  .ai-estimate-button {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
  }

  .ai-estimate-result {
    padding: 18px;
    border-radius: 16px;
  }

  .contact-form {
    padding: 18px;
  }

  .contact-form-field input,
  .contact-form-field textarea {
    padding: 12px 14px;
    box-sizing: border-box;
  }

  .contacts-layout {
    gap: 14px;
  }

  .contacts-meta {
    white-space: normal;
  }
}

@media (max-width: 479px) {
  .layout-container {
    width: min(100% - 32px, var(--container-width));
  }

  .section {
    padding: 48px 0;
  }

  .section-lg {
    padding: 64px 0;
  }

  .hero {
    min-height: 520px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero h3 {
    font-size: 15px;
  }

  .btn {
    min-height: 50px;
    padding: 0 18px;
    font-size: 15px;
  }

  main .btn,
  footer .btn {
    min-height: 50px;
    padding: 0 18px;
    font-size: 15px;
  }

  .card,
  .services-list li,
  .faq-item,
  .contact-form,
  .ai-estimate-card {
    border-radius: 18px;
  }

  .ai-estimate-card {
    padding: 22px 16px;
  }

  .ai-estimate-textarea {
    min-height: 132px;
    padding: 14px 14px;
  }

  .ai-estimate-result {
    padding: 16px;
  }
}

.turnstile-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.turnstile-modal.is-visible {
  display: flex;
}

.turnstile-modal__card {
  position: relative;
  width: min(100%, 420px);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.turnstile-modal__card h3 {
  margin-bottom: 8px;
  color: var(--color-text);
}

.turnstile-modal__card p {
  margin-bottom: 18px;
  color: var(--color-text-secondary);
}

.turnstile-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 24px;
  cursor: pointer;
}