/* ==========================================================================
   Tech Noir — design tokens

   Spacing scale reverse-engineered from Figma (base unit 4px):
   4, 8, 10, 12, 16, 20, 24, 30, 32, 40, 42, 80
   Radii: 4 (pill) / 6 (button) / 12 (small card) / 24 (medium card) / 30 (glass panel)
   Container: 1280px content width with 80px side gutters at desktop
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-2-5: 10px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 30px;
  --sp-8: 32px;
  --sp-9: 36px;
  --sp-10: 40px;
  --sp-10-5: 42px;
  --sp-20: 80px;

  /* radii */
  --r-pill: 4px;
  --r-btn: 6px;
  --r-card-sm: 12px;
  --r-card-md: 24px;
  --r-panel: 30px;

  /* colors */
  --bg: #060606;
  --white: #ffffff;
  --text-muted: #919191;
  --text-dim: #7c7c7c;
  --text-faint: #dbdbdb;
  --border-subtle: #2e2e2e;
  --border-pill: #434343;
  --accent: #7655fc;
  --accent-hover: #6644e8;

  --glass-white-04: rgba(255, 255, 255, 0.04);
  --glass-white-05: rgba(255, 255, 255, 0.05);
  --glass-white-10: rgba(255, 255, 255, 0.1);
  --glass-black-30: rgba(0, 0, 0, 0.3);
  --glass-black-50: rgba(0, 0, 0, 0.5);

  /* typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  /* layout */
  --container-max: 1440px;
  --container-pad: var(--sp-20);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

ul { margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { position: relative; }

.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Unicorn Studio WebGL scene container — same box as .section-bg, but with
   no <img>-only properties since the SDK renders its own <canvas> inside. */
.section-bg-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.section-bg-webgl canvas { display: block; }

.section > .container { position: relative; z-index: 1; }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, p { margin: 0; }

.eyebrow {
  color: var(--text-dim);
  font-size: 16px;
  font-weight: 400;
}

.section-title {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.22;
  color: var(--white);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Buttons & tags
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  height: var(--sp-10-5);
  padding: var(--sp-2-5) var(--sp-3);
  border-radius: var(--r-btn);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  border: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.icon-chevron {
  width: 7.5px;
  height: 13.5px;
  flex-shrink: 0;
  transition: filter 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: #000;
}

.btn-secondary:hover .icon-chevron { filter: invert(1); }

.btn-full { width: 100%; }

.btn-hidden { display: none; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-pill);
  border: 1px solid var(--border-pill);
  background: var(--glass-black-30);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--white);
  font-size: 16px;
  white-space: nowrap;
}

/* ==========================================================================
   Header (inside hero)
   ========================================================================== */

.hero-topbar {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.hero-topbar a {
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 709px;
  padding-top: 396px;
  padding-bottom: var(--sp-10);
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-20);
}

.hero-heading {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  max-width: 723px;
}

.hero-tags { margin-top: var(--sp-6); max-width: 583px; }

.hero-desc {
  font-size: 16px;
  color: var(--white);
  line-height: 1.5;
  max-width: 543px;
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.hero-trust {
  margin-top: 108px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.hero-trust-label {
  color: var(--text-dim);
  font-size: 16px;
}

.trust-logos {
  background: var(--glass-white-04);
  border-radius: var(--r-panel);
  padding: var(--sp-3);
  display: flex;
  gap: var(--sp-3);
}

.trust-logo {
  flex: 1 0 0;
  min-width: 0;
  height: 118px;
  background: var(--glass-white-05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card-md);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.trust-logo img { max-height: 54px; width: auto; object-fit: contain; }

/* ==========================================================================
   AstanaHub strip
   ========================================================================== */

.astana-strip {
  padding-block: var(--sp-5);
  background: var(--bg);
}

.astana-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-9);
}

.astana-inner .dots { flex: 1 1 0; min-width: 0; height: 20px; opacity: 0.6; }
.astana-inner .dots img { width: 100%; height: 100%; }

.astana-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-shrink: 0;
}

.astana-brand img { width: 41px; height: 42px; }

.astana-brand .astana-text {
  display: flex;
  gap: var(--sp-2-5);
  font-size: 22px;
  white-space: nowrap;
}

.astana-text .light { font-weight: 300; color: var(--text-faint); }
.astana-text .bold { font-weight: 700; color: var(--white); }

/* ==========================================================================
   About + Stats
   ========================================================================== */

.about {
  padding-block: 120px;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 965fr 315fr;
  gap: var(--sp-20);
  align-items: start;
}

.about-text {
  position: sticky;
  top: 160px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--white);
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 70px;
  line-height: 1;
  color: var(--white);
}

.stat-label {
  margin-top: var(--sp-2);
  font-size: 15px;
  color: var(--white);
}

/* ==========================================================================
   Cases / Carousel
   ========================================================================== */

.cases { padding-block: var(--sp-10) 120px; background: var(--bg); }

.cases-label { color: var(--text-dim); font-size: 16px; margin-bottom: var(--sp-5); }

.carousel {
  background: var(--glass-white-04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-panel);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: 517fr 691fr;
  gap: var(--sp-6);
}

.case-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-10);
  min-height: 528px;
}

.case-slide { display: none; }
.case-slide.active { display: block; }

.case-top { display: flex; flex-direction: column; gap: var(--sp-10); }

.case-logo { height: 40px; }
.case-logo img { height: 100%; width: auto; }

.case-copy { display: flex; flex-direction: column; gap: var(--sp-2-5); }

.case-title { font-size: 24px; font-weight: 400; color: var(--white); line-height: 1.35; }

.case-desc { font-size: 16px; color: #919191; line-height: 1.5; }

.case-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.case-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.case-nav { display: flex; gap: var(--sp-3); }

.case-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--r-panel);
  background: var(--glass-white-10);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.case-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

.case-nav-btn:hover .icon-chevron { filter: brightness(1.3); }


.case-dots { display: flex; gap: var(--sp-3); align-items: center; }

.case-dot {
  width: 31px;
  height: 5px;
  border-radius: var(--r-btn);
  background: var(--glass-white-10);
  border: none;
  padding: 0;
  transition: background-color 0.2s ease;
}

.case-dot.active { background: var(--white); }

.case-visuals {
  position: relative;
  height: 528px;
  background: var(--glass-white-05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card-md);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  padding: var(--sp-6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-visual {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.case-visual.active { display: flex; }

/* Fixed-height box above means different mockups (wide laptop vs. tall
   phones) must scale to FIT it rather than dictate its size — otherwise
   the carousel's height would jump between slides. */
.case-visual img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding-block: 120px;
  background: var(--bg);
  overflow: hidden;
}

/* Fades the section background (image / WebGL scene) into solid black at the
   very top and bottom edges, matching Figma's "Rectangle 5 / 6" overlays. */
.services-vignette {
  position: absolute;
  left: 0;
  right: 0;
  height: 168px;
  pointer-events: none;
  z-index: 0;
}

.services-vignette-top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 51.445%, rgba(6, 6, 6, 0) 100%);
}

.services-vignette-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 51.445%, rgba(6, 6, 6, 0) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: 500fr 600fr;
  gap: var(--sp-20);
  align-items: center;
}

.services-copy { display: flex; flex-direction: column; gap: var(--sp-6); }

.services-copy .section-title { max-width: 500px; }
.services-copy .section-subtitle { max-width: 500px; }

.services-list-wrap {
  position: relative;
  background: var(--glass-black-30);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-panel);
  max-height: 620px;
  overflow: hidden;
}

.services-fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  pointer-events: none;
  z-index: 2;
}

.services-fade-top {
  top: 0;
  border-radius: var(--r-panel) var(--r-panel) 0 0;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 18%, rgba(6, 6, 6, 0) 100%);
}

.services-fade-bottom {
  bottom: 0;
  border-radius: 0 0 var(--r-panel) var(--r-panel);
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 18%, rgba(6, 6, 6, 0) 100%);
}

.services-list {
  display: flex;
  flex-direction: column;
  animation: services-marquee 36s linear infinite;
  will-change: transform;
}

.services-list-wrap:hover .services-list {
  animation-play-state: paused;
}

@keyframes services-marquee {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .services-list { animation: none; }
}

.service-card {
  background: var(--glass-black-30);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card-sm);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  padding: var(--sp-6);
  margin-bottom: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2-5);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
}

.service-card > p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
}

.service-card ul {
  list-style: disc;
  color: var(--text-muted);
  font-size: 16px;
  padding-left: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ==========================================================================
   Idea
   ========================================================================== */

.idea {
  /* Background starts 40px before content ends (292px), overlapping the
     bottom of the button slightly: 292 + 800 (full, unscaled) = 1092px. */
  min-height: 1092px;
  padding-top: 100px;
  background: var(--bg);
  overflow: hidden;
}

.idea .section-bg,
.idea .section-bg-webgl {
  top: 292px;
  height: 800px;
}

.idea-content {
  max-width: 807px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  text-align: center;
}

.idea-title-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: center;
}

.idea .section-title { text-align: center; white-space: nowrap; }
.idea .section-subtitle { text-align: center; white-space: nowrap; }

.idea .tag-row { justify-content: center; max-width: 583px; }

/* ==========================================================================
   Mission
   ========================================================================== */

.mission { padding-block: 120px; background: var(--bg); }

.mission-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-10);
}

.mission-title-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: center;
  max-width: 834px;
  text-align: center;
}

.mission .section-title { text-align: center; }
.mission .section-subtitle { text-align: center; }

.advantages {
  width: 100%;
  background: var(--glass-white-04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-panel);
  padding: var(--sp-6);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.advantage-card {
  background: var(--glass-black-50);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card-md);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  height: 100%;
}

.advantage-icon {
  width: 80px;
  height: 80px;
  border-radius: 6.78px;
  border: 0.68px solid #444;
  box-shadow: 0 1.36px 1.36px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  --dot: rgba(255, 255, 255, 0.35);
  background-color: #313131;
  background-repeat: no-repeat;
  background-size: 2.71px 2.71px;
  background-image:
    radial-gradient(circle, var(--dot) 50%, transparent 52%),
    radial-gradient(circle, var(--dot) 50%, transparent 52%),
    radial-gradient(circle, var(--dot) 50%, transparent 52%),
    radial-gradient(circle, var(--dot) 50%, transparent 52%);
  background-position:
    5.42px 5.42px,
    calc(100% - 5.42px) 5.42px,
    5.42px calc(100% - 5.42px),
    calc(100% - 5.42px) calc(100% - 5.42px);
}

.advantage-icon img { width: 44px; height: 44px; }

/* icon-fire.svg is not square (28.3 × 35.6) — force uniform 44px height
   scales the wrong axis unless width follows the same aspect ratio. */
.advantage-icon img[src*="icon-fire"] { width: 35px; height: 44px; }

.advantage-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex: 1;
}

.advantage-body h3 { font-size: 20px; font-weight: 500; color: var(--white); }
.advantage-body p { font-size: 16px; color: var(--text-muted); line-height: 1.5; }

.advantage-card .btn { margin-top: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { padding-block: 120px 40px; background: var(--bg); }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-6);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15.6px;
}

.footer-logo img { width: 38px; height: 40px; }

.footer-logo span {
  font-size: 26.8px;
  letter-spacing: 0.02em;
  color: var(--white);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-block: var(--sp-6);
}

.footer-main {
  display: grid;
  grid-template-columns: 500fr 471fr;
  gap: var(--sp-20);
}

.footer-heading {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.22;
  margin-bottom: var(--sp-6);
  max-width: 500px;
}

.footer-details { display: flex; flex-direction: column; gap: var(--sp-6); }

.footer-detail-row { display: flex; gap: var(--sp-6); font-size: 16px; }

.footer-detail-row dt { color: var(--text-muted); width: 85px; flex-shrink: 0; font-weight: 400; }
.footer-detail-row dd { color: var(--white); margin: 0; }

.footer-bottom {
  margin-top: var(--sp-20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-social { display: flex; gap: var(--sp-6); }
.footer-social img { width: 24px; height: 24px; }

.footer-copy, .footer-clock { color: var(--text-muted); font-size: 16px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  :root { --container-pad: 48px; }

  .hero-grid,
  .about-grid,
  .services-grid,
  .footer-main { grid-template-columns: 1fr; }

  .about-text { position: static; top: auto; }

  .carousel { grid-template-columns: 1fr; }
  .case-visual { order: -1; }

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

  .hero-trust { margin-top: var(--sp-10); }
  .hero { padding-top: 320px; }

  .idea { min-height: 700px; }
  .idea .section-title, .idea .section-subtitle { white-space: normal; }

  .services-fade { height: 220px; }
  .services-fade-top { background: linear-gradient(to bottom, var(--bg) 0%, rgba(6, 6, 6, 0) 100%); }
  .services-fade-bottom { background: linear-gradient(to top, var(--bg) 0%, rgba(6, 6, 6, 0) 100%); }
}

@media (max-width: 720px) {
  :root { --container-pad: 24px; }

  .hero { padding-top: 260px; min-height: auto; }
  .hero-topbar { position: static; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-6); align-items: flex-start; }
  .hero-topbar a:last-child { text-align: left; }
  .hero { padding-top: var(--sp-6); }

  .hero-heading { font-size: 30px; }
  .about-text { font-size: 24px; }
  .section-title, .footer-heading { font-size: 26px; }

  .trust-logos { flex-wrap: wrap; }
  .trust-logo { flex: 1 1 45%; }

  .astana-inner { flex-direction: column; text-align: center; }
  .astana-inner .dots { display: none; }
  .astana-brand { flex-direction: column; gap: var(--sp-2); }
  .astana-text { font-size: 16px; white-space: normal; flex-direction: column; align-items: center; gap: var(--sp-1) !important; text-align: center; }

  .stat-number { font-size: 48px; }

  .idea { min-height: auto; padding-top: 60px; padding-bottom: 60px; }
  .idea .section-bg, .idea .section-bg-webgl { top: 0; height: 100%; transform: none; }

  .hero-actions, .case-actions { flex-direction: column; }
  .hero-actions .btn, .case-actions .btn { width: 100%; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Request modal ("Оставить заявку")
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-black-50);
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-6);
  width: 466px;
  padding: var(--sp-8) var(--sp-6);
  border-radius: var(--r-pill);
  background: var(--white);
  color: #000;
}

.modal-close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
}

.modal-close img { width: 100%; height: 100%; }

.modal-title {
  font-size: 23px;
  font-weight: 600;
  color: #000;
}

.modal-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-6);
  width: 100%;
}

.modal-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  width: 100%;
}

.modal-field label {
  font-size: 14px;
  color: #111;
}

.modal-field input {
  width: 100%;
  padding: var(--sp-3);
  border: 1px solid #cecece;
  border-radius: var(--r-pill);
  background: var(--white);
  color: #000;
  font-family: inherit;
  font-size: 14px;
}

.modal-field input::placeholder { color: #838383; }

.modal-field input:focus { outline: none; border-color: var(--accent); }

.modal-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}

.modal-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  flex-shrink: 0;
  border: 1px solid #cecece;
  border-radius: var(--r-pill);
  accent-color: var(--accent);
}

.modal-consent label {
  font-size: 14px;
  color: #838383;
  line-height: 1.4;
}

.modal-consent-link { color: #6173ff; }

.modal-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.modal-error {
  display: none;
  margin: 0;
  font-size: 14px;
  color: #c0392b;
  line-height: 1.4;
}

.modal-error.is-visible { display: block; }

.modal-success {
  display: none;
  margin: 0;
  font-size: 16px;
  color: #111;
  line-height: 1.5;
}

.modal-box.is-submitted .modal-form { display: none; }
.modal-box.is-submitted .modal-success { display: block; }

.modal-submit {
  height: 44px;
  width: 100%;
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 720px) {
  .modal-box { width: calc(100vw - 48px); padding: var(--sp-6); }
}
