/* =========================================================
   TAXI Mnichovo Hradiště — landing page
   ========================================================= */

:root {
  --color-navy: #001F3F;
  --color-navy-soft: #1a3a5c;
  --color-sand: #C4A46F;
  --color-sand-dark: #A8884F;
  --color-sand-light: #E0CBA0;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F7F8FA;
  --color-bg-sky: #EAF2F8;
  --color-text: #1f2937;
  --color-text-soft: #4b5563;
  --color-border: #e5e7eb;

  --shadow-sm: 0 2px 6px rgba(0, 31, 63, 0.06);
  --shadow-md: 0 8px 20px rgba(0, 31, 63, 0.10);
  --shadow-lg: 0 20px 40px rgba(0, 31, 63, 0.15);

  --radius-pill: 999px;
  --radius-lg: 14px;

  --container-max: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* iOS Safari fix: prevent inline SVGs from being stretched
   to intrinsic 100% inside flex containers when HTML width/height
   attributes are missing. Belt-and-suspenders with explicit attrs. */
svg:not(:root) {
  flex-shrink: 0;
  flex-grow: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----------- Header / Nav ----------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-navy);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-navy);
  color: #fff;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { font-size: 1.05rem; }

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--color-sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--color-sand-dark); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--color-sand);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--color-sand-dark); transform: translateY(-1px); }
.nav-cta svg { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* ----------- Hero ----------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #EAF2F8 0%, #FFFFFF 60%, #F4F8F2 100%);
  isolation: isolate;
}
.hero-stage {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 3rem 0 4rem;
}
.hero-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32%;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
  opacity: 0.95;
}
.hero-side.left {
  left: 0;
  background-image: url('images/budovy.webp');
  background-position: bottom left;
}
.hero-side.right {
  right: 0;
  background-image: url('images/krajina.webp');
  background-position: bottom right;
}

.hero-mobile-banner {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
}
.hero-title {
  color: var(--color-navy);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  text-transform: uppercase;
}
.hero-title .small {
  display: block;
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin-top: 0.4rem;
  letter-spacing: -0.01em;
}
.hero-tagline {
  color: var(--color-navy);
  margin-top: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-car {
  position: relative;
  z-index: 2;
  margin: 2rem auto 0;
  max-width: 560px;
  filter: drop-shadow(0 24px 32px rgba(0, 31, 63, 0.25));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #fff;
  color: var(--color-navy);
  padding: 0.75rem 1.4rem 0.75rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
  transition: transform .2s, box-shadow .2s;
}
.phone-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.phone-pill .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.phone-pill .icon-wrap svg { width: 20px; height: 20px; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-sand);
  color: #fff;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-cta:hover {
  background: var(--color-sand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-cta svg { width: 18px; height: 18px; }

.btn-cenik {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-pill);
  background: transparent;
  transition: background .2s, color .2s;
}
.btn-cenik:hover {
  background: var(--color-navy);
  color: #fff;
}

.mobile-only { display: none; }
@media (max-width: 899px) {
  .mobile-only { display: inline-flex; }
}

@media (min-width: 900px) {
  .hero-stage { min-height: 720px; padding: 4rem 0 5rem; }
  .hero-side { width: 38%; }
  .hero-content { padding: 0 8%; }
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
  .hero-mobile-banner { display: none; }
}

/* Mobile fallback – use the full hero illustration instead of the
   3-part composition, which would be too cramped on small screens */
@media (max-width: 899px) {
  .hero { background: #fff; }
  .hero-side,
  .hero-car { display: none; }
  .hero-stage {
    min-height: 0;
    padding: 1rem 0 3rem;
  }
  .hero-mobile-banner {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  /* Title and tagline stay in DOM for SEO/screen readers,
     but are visually hidden — same text is baked into the banner */
  .hero-title,
  .hero-tagline {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* ----------- Features ----------- */
.features {
  padding: 4.5rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.section-eyebrow {
  text-align: center;
  color: var(--color-sand-dark);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}
.section-title {
  text-align: center;
  color: var(--color-navy);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 2.75rem;
}
.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-sand-light);
}
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  color: #fff;
  display: grid;
  place-items: center;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  color: var(--color-navy);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.feature-card p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

/* ----------- Contact CTA ----------- */
.contact {
  background: var(--color-navy);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}
.contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.contact p.lead {
  color: var(--color-sand-light);
  margin-bottom: 1.75rem;
}
.contact-info {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}
.contact-info strong { color: #fff; }

.service-area {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.service-area-title {
  color: var(--color-sand-light);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}
.service-area-list {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.9;
}

.btn-cta.large {
  font-size: 1.15rem;
  padding: 1.1rem 2.2rem;
}

/* ----------- Senior Taxi page (senior-taxi.php) ----------- */
.senior-page {
  background: var(--color-bg-soft);
  padding: 2.5rem 0 4rem;
}
.senior-hero {
  max-width: 1100px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.senior-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.senior-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}
@media (min-width: 720px) {
  .senior-card { padding: 2.5rem 3rem; }
}

.senior-card h1,
.senior-card h2,
.senior-card h3 { color: var(--color-navy); }
.senior-card h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}
.senior-card h1 .icon-pill {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--color-navy);
  color: #fff;
  display: grid;
  place-items: center;
}
.senior-card h1 .icon-pill svg { width: 26px; height: 26px; }
.senior-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.senior-card h2 svg {
  width: 22px; height: 22px;
  color: var(--color-sand-dark);
  flex: 0 0 auto;
}
.senior-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 0.4rem;
}
.senior-card p { color: var(--color-text-soft); margin-bottom: 0.75rem; }
.senior-card p strong { color: var(--color-navy); }

.senior-intro {
  font-size: 1.05rem;
  color: var(--color-text);
  background: var(--color-bg-sky);
  border-left: 4px solid var(--color-navy);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin: 1rem 0 1.5rem;
}

.dest-list {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
  margin: 0.5rem 0 1.5rem;
}
@media (min-width: 720px) {
  .dest-list { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
}
.dest-list li {
  list-style: none;
  position: relative;
  padding-left: 1.6rem;
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.5;
}
.dest-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sand);
}

.senior-cta-card {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  margin: 1.5rem 0;
}
.senior-cta-card .label {
  color: var(--color-sand-light);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.senior-cta-card .number {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  display: block;
}
.senior-cta-card .number a { color: #fff; }
.senior-cta-card .btn-cta { background: var(--color-sand); color: #fff; }
.senior-cta-card .btn-cta:hover { background: var(--color-sand-dark); }
.senior-cta-card small {
  display: block;
  margin-top: 1rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.price-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
  margin: 0.5rem 0 1rem;
}
@media (min-width: 600px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
.price-row {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.price-row .label { color: var(--color-text-soft); font-size: 0.92rem; }
.price-row .amount {
  color: var(--color-navy);
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
}

.notice {
  border: 1px solid #f6d8a4;
  background: #fff8eb;
  border-left: 4px solid var(--color-sand-dark);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
}
.notice svg {
  width: 22px; height: 22px;
  color: var(--color-sand-dark);
  flex: 0 0 auto;
  margin-top: 2px;
}
.notice strong { color: var(--color-navy); }

/* ----------- Map / Pricing page (other.php) ----------- */
.map-page {
  background: var(--color-bg-soft);
  min-height: calc(100vh - 60px);
  padding: 2.5rem 0 4rem;
}
.map-intro {
  text-align: center;
  margin-bottom: 1.75rem;
}
.map-intro h1 {
  color: var(--color-navy);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.map-intro p {
  color: var(--color-text-soft);
  max-width: 640px;
  margin: 0 auto;
}

.map-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .map-card { padding: 2rem; }
}

.map-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-navy);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.map-input:focus {
  border-color: var(--color-sand);
  box-shadow: 0 0 0 3px rgba(196, 164, 111, 0.18);
  background: #fff;
}

.map-status {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--color-bg-sky);
  border-left: 4px solid var(--color-navy);
  border-radius: 6px;
  color: var(--color-navy);
  font-size: 0.95rem;
  line-height: 1.5;
}
.map-address-row {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin: 0.75rem 0;
}
.map-address-row > div:not(:empty) {
  padding: 0.55rem 0.85rem;
  background: var(--color-bg-soft);
  border-radius: 8px;
}

#map {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin: 1rem 0;
}
@media (min-width: 720px) {
  #map { height: 480px; }
}

.map-action-row {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* override jQuery UI autocomplete to match brand */
.ui-autocomplete {
  background: #fff;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}
.ui-autocomplete .ui-menu-item-wrapper {
  padding: 0.6rem 0.75rem !important;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-text);
  border: 0 !important;
  background: transparent !important;
}
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
  background: var(--color-bg-sky) !important;
  color: var(--color-navy) !important;
}

/* ----------- Footer ----------- */
.site-footer {
  background: #000d1c;
  color: rgba(255, 255, 255, 0.6);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer a { color: var(--color-sand-light); }
.site-footer a:hover { color: #fff; }


/* =========================================================
   Auth: nav actions, login/register chips, flash, pages
   ========================================================= */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem 0.35rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-soft);
  color: var(--color-navy);
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 12rem;
  overflow: hidden;
}
.nav-user svg { color: var(--color-sand-dark); }
.nav-user-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-auth {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.nav-auth:hover { background: var(--color-navy-soft); transform: translateY(-1px); }

.nav-auth--ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}
.nav-auth--ghost:hover {
  background: var(--color-bg-soft);
  color: var(--color-navy);
  transform: translateY(-1px);
}

@media (max-width: 899px) {
  .nav-actions { gap: 0.35rem; }
  .nav-user { display: none; }
  .nav-auth {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
  }
  .nav-cta {
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
  }
  .nav-cta-text { display: none; }
}

@media (max-width: 420px) {
  .nav-auth { padding: 0.4rem 0.6rem; font-size: 0.74rem; }
}


.auth-flash {
  background: var(--color-sand-light);
  color: var(--color-navy);
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-sand);
}


/* ----- Auth pages (registrace, prihlaseni, etc.) ----- */
.auth-body {
  background: var(--color-bg-soft);
  min-height: 100vh;
}

.auth-link-secondary {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}
.auth-link-secondary:hover { background: var(--color-bg-sky); }

.auth-shell {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 1.5rem;
}

.auth-card--wide { max-width: 720px; }
.auth-card h2 { font-size: 1rem; margin-top: 1.25rem; color: var(--color-navy); }
.auth-card ul { padding-left: 1.25rem; list-style: disc; }
.auth-card ul li { margin: 0.2rem 0; }

.auth-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
}

.auth-subtitle {
  margin: 0.35rem 0 1.25rem;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auth-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.auth-field input {
  font: inherit;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--color-sand);
  box-shadow: 0 0 0 3px rgba(196, 164, 111, 0.18);
}

.auth-consents {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 0;
  padding: 0.5rem 0 0;
  margin: 0;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-text);
  cursor: pointer;
  line-height: 1.4;
}
.auth-check input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--color-sand-dark);
}
.auth-check a { color: var(--color-sand-dark); text-decoration: underline; }

.auth-cookie-notice {
  background: var(--color-bg-sky);
  border: 1px solid #d0e2ee;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
}
.auth-cookie-notice strong { display: block; color: var(--color-navy); margin-bottom: 0.35rem; }
.auth-cookie-notice p { margin: 0.35rem 0; }
.auth-cookie-notice em { color: var(--color-navy); font-style: normal; font-weight: 600; }

.auth-submit {
  font: inherit;
  font-weight: 800;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-navy);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.auth-submit:hover { background: var(--color-navy-soft); transform: translateY(-1px); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-foot {
  margin: 0.5rem 0 0;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}
.auth-foot a { color: var(--color-sand-dark); font-weight: 700; }
.auth-foot a:hover { text-decoration: underline; }

.auth-alert {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.auth-alert p { margin: 0.15rem 0; }
.auth-alert--error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.auth-alert--info {
  background: var(--color-bg-sky);
  border: 1px solid #d0e2ee;
  color: var(--color-navy);
}

.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;
}

@media (max-width: 520px) {
  .auth-row { grid-template-columns: 1fr; }
  .auth-card { padding: 1.25rem 1rem; }
  .auth-title { font-size: 1.3rem; }
}


/* ----- Account page sections + order history ----- */
.account-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1.25rem;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.account-chip--ok      { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.account-chip--wait    { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.account-chip--info    { background: var(--color-bg-sky); color: var(--color-navy); border-color: #d0e2ee; }

.account-section {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}
.account-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
}
.account-section-note {
  margin: 0 0 0.75rem;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}
.account-section--danger { border-top-color: #fecaca; }
.account-section--danger .account-section-title { color: #991b1b; }

.auth-submit--inline {
  align-self: flex-start;
  width: auto;
  padding: 0.7rem 1.4rem;
}
.auth-submit--danger {
  align-self: flex-start;
  width: auto;
  padding: 0.7rem 1.4rem;
  background: #b91c1c;
}
.auth-submit--danger:hover { background: #991b1b; }


.order-list {
  display: grid;
  gap: 0.85rem;
}
.order-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-soft);
  padding: 1rem;
}
.order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.order-card__time {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.95rem;
}
.order-card__id {
  color: var(--color-text-soft);
  font-size: 0.78rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.order-card__status {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.order-card__status--pending   { background: #fef3c7; color: #92400e; }
.order-card__status--progress  { background: #dbeafe; color: #1e40af; }
.order-card__status--done      { background: #dcfce7; color: #166534; }
.order-card__status--cancelled { background: #fee2e2; color: #991b1b; }

.order-card__meta { display: grid; gap: 0.3rem; font-size: 0.9rem; }
.order-card__row {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}
.order-card__label {
  color: var(--color-text-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

@media (max-width: 520px) {
  .order-card__row { grid-template-columns: 1fr; }
  .order-card__row .order-card__label { letter-spacing: 0.02em; }
}


/* ----- Order detail page ----- */
.auth-shell--detail { padding-top: 1.5rem; }

.order-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s, transform .18s, background .18s;
}
.order-card--link:hover {
  border-color: var(--color-sand);
  background: #fff;
  transform: translateY(-1px);
}

.order-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.order-detail__map {
  width: 100%;
  height: clamp(260px, 42vh, 460px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.order-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.order-detail__item {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-soft);
}

.order-detail__item--full { grid-column: 1 / -1; }

.order-detail__label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.order-detail__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  word-break: break-word;
}

.order-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.auth-submit--ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}
.auth-submit--ghost:hover {
  background: var(--color-bg-soft);
  color: var(--color-navy);
}

@media (max-width: 520px) {
  .order-detail__grid { grid-template-columns: 1fr; }
  .order-detail__head { flex-direction: column; }
}
