:root {
  --ink: #f5f8fc;
  --muted: #9fb0c4;
  --blue: #245a8d;
  --blue-dark: #173f68;
  --blue-hover: #7abeff;
  --green: #1f7a4d;
  --red: #a92b2b;
  --amber: #f2b84b;
  --night: #0b0d10;
  --night-2: #151a20;
  --panel: #1f252e;
  --panel-2: #20252d;
  --line: #303842;
  --surface: #11151b;
  --field: #f4f8fc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(13, 27, 46, 0.12);
}

body[data-theme="light"] {
  --ink: #111827;
  --muted: #607089;
  --blue: #245a8d;
  --blue-dark: #173f68;
  --blue-hover: #1f6db8;
  --green: #1f7a4d;
  --red: #a92b2b;
  --night: #f4f8fc;
  --night-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #eef4fb;
  --line: #d6e1ee;
  --surface: #eaf1f8;
  --field: #ffffff;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background: var(--night);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 64px;
  color: var(--ink);
  background: color-mix(in srgb, var(--night) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.main-nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.main-nav a:hover { color: var(--blue-hover); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #111820;
  border: 1px solid #59606b;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.18s ease;
}

body[data-theme="light"] .theme-toggle-track {
  background: var(--blue);
  border-color: var(--blue);
}

body[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(20px);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.secondary {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}

.button.light {
  color: var(--blue-dark);
  background: var(--field);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  min-height: calc(100vh - 76px);
  padding: 76px 64px 44px;
  background:
    linear-gradient(90deg, rgba(11, 13, 16, 0.9), rgba(11, 13, 16, 0.58)),
    url("/assets/hero-timecontrol.png") center right / cover no-repeat,
    linear-gradient(145deg, var(--night) 0%, var(--panel) 100%);
  color: var(--white);
}

body[data-theme="light"] .hero {
  background:
    linear-gradient(90deg, rgba(244, 248, 252, 0.96), rgba(244, 248, 252, 0.76)),
    url("/assets/hero-timecontrol.png") center right / cover no-repeat,
    var(--night);
  color: var(--ink);
}

.hero-copy {
  align-self: center;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 7vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 520px;
  margin: 28px 0;
  color: #d8e7f7;
  font-size: 21px;
  line-height: 1.55;
}

body[data-theme="light"] .hero-lead,
body[data-theme="light"] .hero-stats dd {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 0;
}

.hero-stats div {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats dt {
  font-size: 26px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: #bfd3e8;
}

.hero-visual {
  align-self: center;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero-visual img {
  opacity: 0.94;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 26px 64px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--night-2);
  font-weight: 800;
}

.logos span {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.section {
  padding: 90px 64px;
  color: var(--ink);
  background: var(--night);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section h2,
.split-section h2,
.download-band h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow),
.split-section p,
.download-band p,
.contact-section p {
  color: #b8c8dc;
  font-size: 18px;
  line-height: 1.65;
}

body[data-theme="light"] .section-head p:not(.eyebrow),
body[data-theme="light"] .split-section p,
body[data-theme="light"] .download-band p,
body[data-theme="light"] .contact-section p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.feature-grid h3 {
  margin: 20px 0 10px;
  font-size: 22px;
}

.feature-grid p {
  margin: 0;
  color: #b8c8dc;
  line-height: 1.55;
}

body[data-theme="light"] .feature-grid p,
body[data-theme="light"] .faq-item p,
body[data-theme="light"] label,
body[data-theme="light"] .price-panel span {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  padding: 90px 64px;
  background: var(--night-2);
  color: var(--ink);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: var(--panel);
}

body[data-theme="light"] .steps li {
  border-color: var(--line);
}

.steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue);
  font-weight: 900;
}

.steps strong { font-size: 20px; }
.steps p { margin: 6px 0 0; color: #c7d7e8; }

.license-section { background: var(--night-2); }

.license-layout {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 20px;
  max-width: 980px;
}

.calculator,
.price-panel,
.contact-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

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

label {
  display: grid;
  gap: 8px;
  color: #c8d7e8;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd8e7;
  border-radius: 12px;
  padding: 14px 14px;
  color: #111827;
  background: var(--field);
  font: inherit;
}

textarea { min-height: 130px; resize: vertical; }

.price-panel {
  display: grid;
  align-content: center;
  gap: 12px;
}

.price-panel strong {
  color: var(--blue-hover);
  font-size: 44px;
  line-height: 1;
}

.price-panel span { color: #c8d7e8; }

.gallery-section { background: var(--night); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.gallery-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: top;
}

.gallery-grid figcaption {
  padding: 16px 18px;
  font-weight: 850;
}

.download-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 72px 64px;
  color: var(--white);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--blue) 96%, black), color-mix(in srgb, var(--green) 82%, black)),
    var(--blue);
}

.download-band div { max-width: 760px; }
.download-band p { color: #d8e9ff; }
.download-band .eyebrow { color: #aef1d8; }

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  width: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  cursor: pointer;
}

.faq-item span { font-weight: 900; }
.faq-item p {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  color: #b8c8dc;
  line-height: 1.55;
}
.faq-item.is-open p { display: block; }

.contact-section {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 42px;
  background: var(--night-2);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 64px;
  color: #c9d8e8;
  background: var(--night);
}

.payment-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(145deg, var(--night), var(--panel));
}

.payment-card {
  width: min(560px, 100%);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: var(--panel);
}

.payment-card h1 {
  margin: 18px 0 12px;
  font-size: 42px;
}

.payment-card p {
  color: #c9d8e8;
  line-height: 1.65;
}

.payment-order {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.chat-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 14px 32px rgba(19, 168, 118, 0.34);
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header { padding: 0 24px; }
  .main-nav { display: none; }
  .hero,
  .split-section,
  .license-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }
  .hero { padding: 52px 24px 32px; }
  .section,
  .split-section,
  .download-band { padding: 64px 24px; }
  .feature-grid,
  .gallery-grid,
  .calculator { grid-template-columns: 1fr; }
  .download-band,
  .site-footer { align-items: flex-start; flex-direction: column; }
  .hero h1 { font-size: 58px; }
}
