/* Continental — black & gold, mobile-first, no framework.
   Revised from an earlier graphite+brass direction: owner wanted a
   cleaner, more classic black instead of a bluish-graphite background. */

:root {
  --color-bg: #0d0d0d;
  --color-bg-alt: #1a1a1a;
  --color-bg-card: #1a1a1a;
  --color-gold: #d4af37;
  --color-gold-light: #e8c766;
  --color-gold-dim: #9c7f2e;
  --color-text: #f0ede4;
  --color-text-muted: #a8a8a8;
  --color-border: #2a2a2a;
  --color-success: #4caf50;
  --color-error: #e35b5b;
  --font-heading: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  /* Wordmark only (.hero__brand) - not the page's heading font. One extra
     weight loaded just for this one word; everything else stays Space
     Grotesk. */
  --font-wordmark: "Cinzel", Georgia, "Times New Roman", serif;
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 720px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-gold-light);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header / Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% -10%, #1f1f1f 0%, var(--color-bg) 60%);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0 40px;
  text-align: center;
}

/* Signature element: a single stylized route line behind the wordmark -
   restrained, low-opacity, brass. Draws in once on load; static (no
   animation) under prefers-reduced-motion. */
.hero__route-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero__route-line path {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.35;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__route-line path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: route-draw 1.6s ease-out forwards;
  }
}

@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__brand {
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-size: clamp(30px, 9vw, 42px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  color: var(--color-gold-light);
}

.hero__brand-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.55em;
  color: var(--color-gold-dim);
  margin: 6px 0 0;
  padding-left: 0.55em; /* optically re-center after the trailing letter-spacing gap */
  text-transform: uppercase;
}

.hero__slogan {
  margin: 16px 0 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

.hero__slogan strong {
  color: var(--color-gold-light);
  font-weight: 600;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold-dim));
  color: #17130a;
  font-weight: 700;
  font-size: 17px;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
  min-height: 48px;
}

.cta-button:active {
  transform: translateY(1px);
}

/* ---------- Action buttons (bot/group/Viber link-out) ---------- */
/* Outlined, not solid-filled like .cta-button - three equal-weight
   buttons stacked solid gold would read as "linktree", not premium.
   Restraint (brass outline, fills on press) reads as the deliberate
   choice instead. */

.action-buttons {
  display: grid;
  gap: 12px;
  padding: 32px 0 0;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-dim);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  min-height: 56px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.action-button:hover,
.action-button:focus-visible {
  border-color: var(--color-gold);
  background: rgba(212, 175, 55, 0.08);
}

.action-button:active {
  background: rgba(212, 175, 55, 0.14);
}

.action-button__icon {
  font-size: 20px;
  line-height: 1;
}

/* ---------- Dispatcher link (Telegram contact, replaces a phone number) --- */

.dispatcher-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--color-gold-light);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--color-gold-dim);
  padding-bottom: 2px;
}

.dispatcher-link:hover,
.dispatcher-link:focus-visible {
  border-color: var(--color-gold);
}

/* ---------- Section base ---------- */

section {
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-gold-light);
  margin: 0 0 18px;
  text-align: center;
}

/* ---------- Order form ---------- */

.order-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.order-type {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.order-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-type label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  cursor: pointer;
  min-height: 44px;
}

.order-type input:checked + label {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.08);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: 13px 14px;
  font-size: 16px; /* >=16px prevents iOS auto-zoom on focus */
  font-family: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.schedule-fields {
  display: none;
}

.schedule-fields.is-visible {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-error {
  color: var(--color-error);
  font-size: 12px;
  margin-top: 6px;
  display: none;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--color-error);
}

.field.has-error .field-error {
  display: block;
}

.order-submit {
  width: 100%;
  margin-top: 4px;
}

.order-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}

.order-status.is-visible {
  display: block;
}

.order-status.success {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid var(--color-success);
  color: #b7e6ba;
}

.order-status.error {
  background: rgba(227, 91, 91, 0.12);
  border: 1px solid var(--color-error);
  color: #f4b9b9;
}

.order-status a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.service-card__icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.service-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
}

.service-card__text strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 2px;
}

/* ---------- Contact buttons ---------- */

.contact-buttons {
  display: grid;
  gap: 10px;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  min-height: 48px;
}

.contact-button:active {
  border-color: var(--color-gold);
}

.contact-button__icon {
  font-size: 20px;
}

/* ---------- Trust block ---------- */

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

.trust-list li {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--color-text-muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

.trust-list strong {
  color: var(--color-text);
}

.trust-list a {
  color: var(--color-gold-light);
  font-weight: 700;
}

/* ---------- Install banner ---------- */

.install-banner {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-dim);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.install-banner.is-visible {
  display: flex;
}

.install-banner__text {
  font-size: 13px;
  color: var(--color-text-muted);
}

.install-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.install-banner button {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.install-banner__install {
  background: var(--color-gold);
  color: #17130a;
}

.install-banner__dismiss {
  background: transparent;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */

footer {
  padding: 24px 0 40px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
}
