*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg: #f6f6f4;
  --bg-soft: #eeeeea;
  --border: #dedad2;
  --text: #14161a;
  --text-muted: #62676f;
  --azure: #f6821f;
  --azure-strong: #d9690f;
  --azure-soft: rgba(246, 130, 31, .12);
  --azure-glow: rgba(246, 130, 31, .32);
  --glass-bg: rgba(255, 255, 255, .86);
  --glass-bg-strong: rgba(255, 255, 255, .96);
  --shadow: 0 1px 1px rgba(15, 20, 15, .03), 0 16px 32px -20px rgba(15, 20, 15, .18);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #141414;
  --bg-soft: #191919;
  --border: #2a2a2a;
  --text: #f3f3f1;
  --text-muted: #97999e;
  --azure: #f6821f;
  --azure-strong: #ff9d47;
  --azure-soft: rgba(246, 130, 31, .16);
  --azure-glow: rgba(246, 130, 31, .4);
  --glass-bg: rgba(24, 24, 24, .86);
  --glass-bg-strong: rgba(24, 24, 24, .96);
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 20px 40px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; }
.accent { color: var(--azure); }

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  border: 1px solid var(--border);
}

.tech-card { position: relative; }
.tech-card::before, .tech-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
  z-index: 5;
}
.tech-card::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--azure);
  border-left: 2px solid var(--azure);
}
.tech-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--azure);
  border-right: 2px solid var(--azure);
}
.tech-card:hover::before, .tech-card:hover::after { opacity: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--azure-strong);
  background: var(--azure-soft);
  border: 1px solid var(--azure);
  padding: 9px 20px;
  border-radius: 999px;
  margin: 0 0 28px;
}

.topbar { position: sticky; top: 0; z-index: 20; border-left: none; border-right: none; border-top: none; }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand, .footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em;
}
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--azure); box-shadow: 0 0 0 4px var(--azure-soft); flex: none;
}
.nav { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.nav a { font-size: 14.5px; color: var(--text-muted); font-weight: 500; transition: color .15s ease; }
.nav a:hover { color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  min-width: 38px; height: 38px; padding: 0 8px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--glass-bg-strong); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  transition: border-color .15s ease, transform .15s ease;
}
.theme-toggle:hover { border-color: var(--azure); transform: translateY(-1px); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

.color-swatch {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--azure);
  cursor: pointer;
  display: block;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  flex: none;
}
.color-swatch:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px var(--azure-glow); }
.color-swatch input[type="color"] {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--azure); color: #fff; box-shadow: 0 12px 26px -10px var(--azure-glow); }
.btn-primary:hover { background: var(--azure-strong); transform: translateY(-1px); }
.btn-outline { background: var(--glass-bg-strong); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--azure); color: var(--azure); }
.btn-ghost { background: var(--azure-soft); color: var(--azure-strong); }
.btn-ghost:hover { background: var(--azure); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 30px; font-size: 15.5px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.hero { position: relative; z-index: 1; padding: 120px 0 96px; }
.hero-inner { text-align: center; }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 8vw, 96px); letter-spacing: -.03em;
  margin: 0 0 24px; line-height: 1;
}
.hero-sub { max-width: 600px; margin: 0 auto 40px; font-size: 18px; color: var(--text-muted); }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.section { position: relative; z-index: 1; padding: 88px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-compact { padding: 44px 0; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--azure); margin: 0 0 12px;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em; margin: 0 0 12px;
}
.section-sub { color: var(--text-muted); font-size: 16.5px; max-width: 560px; margin: 0 0 44px; }
.section-title-sm {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.01em; margin: 0 0 8px;
}
.section-sub-sm { color: var(--text-muted); font-size: 14.5px; margin: 0 0 20px; }

.payment-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.payment-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--glass-bg); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text);
}
.payment-chip svg { fill: none; stroke: var(--azure); stroke-width: 1.7; stroke-linejoin: round; flex: none; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  border-radius: var(--radius-md); box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.contact-card:hover { transform: translateY(-2px); }
.contact-icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--azure-soft); color: var(--azure-strong); display: grid; place-items: center;
}
.contact-icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.contact-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-label { font-size: 12.5px; color: var(--text-muted); font-family: var(--font-mono); }
.contact-value { font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.contact-arrow { margin-left: auto; color: var(--text-muted); flex: none; }
.contact-card--static { cursor: default; }
.contact-copy {
  margin-left: auto; border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-family: var(--font-mono); font-size: 12px;
  padding: 7px 11px; border-radius: 999px; cursor: pointer; flex: none;
  transition: border-color .15s ease, color .15s ease;
}
.contact-copy:hover { border-color: var(--azure); color: var(--azure); }

.request-form { border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 34px; max-width: 720px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--text-muted); font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: .04em;
}
.field input, .field textarea {
  font: inherit; font-size: 15px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--glass-bg-strong); color: var(--text);
  resize: vertical; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px var(--azure-soft);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-footer { display: flex; align-items: center; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.form-status { font-size: 14px; color: var(--text-muted); margin: 0; }
.form-status[data-state="ok"] { color: #17a05e; }
.form-status[data-state="err"] { color: #e5484d; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s ease, transform .15s ease;
}
.service-card:hover { transform: translateY(-3px); }
.service-card--highlight { border-color: var(--azure); }
.service-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.service-tag {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--azure-strong); background: var(--azure-soft); padding: 4px 8px; border-radius: 999px;
  white-space: nowrap;
}
.service-price { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text); white-space: nowrap; }
.service-period { font-size: 11.5px; font-weight: 500; color: var(--text-muted); margin-left: 2px; white-space: nowrap; }
.service-title { font-family: var(--font-display); font-size: 17.5px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.service-desc { font-size: 14px; color: var(--text-muted); margin: 0; flex: 1; }
.service-cta { font-size: 14px; font-weight: 600; color: var(--azure); margin-top: 4px; }
.service-cta:hover { color: var(--azure-strong); }х

.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-sign { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-muted); margin: 0; }
.footer-payment { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); opacity: .75; margin: 0; }
.footer-links {
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  margin-top: 10px; font-size: 13.5px; color: var(--text-muted);
}
.footer-links a:hover { color: var(--azure); }

@media (max-width: 780px) {
  .nav { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 84px 0 64px; }
  .section { padding: 64px 0; }
  .request-form { padding: 24px; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--azure); outline-offset: 2px;
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}