/* ============================================
   Design tokens — modern dark landing system
   Inspired by: Linear, dark SaaS 2025/26 patterns
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Canvas & surfaces — deep blue dark */
  --bg:              #090d1a;
  --bg-elevated:     #0c1224;
  --surface:         #111a30;
  --surface-hover:   #162038;
  --surface-raised:  #1b2848;

  /* Text — off-white, not pure #fff */
  --text:            #e8eaed;
  --text-muted:      #9aa3b2;
  --text-subtle:     #6b7280;

  /* Single accent — CTAs & key highlights only */
  --accent:          #5b7fea;
  --accent-hover:    #4a6dd9;
  --accent-glow:     rgba(91, 127, 234, 0.45);
  --accent-subtle:   rgba(91, 127, 234, 0.12);

  /* Borders & structure */
  --border:          rgba(255, 255, 255, 0.08);
  --border-strong:   rgba(255, 255, 255, 0.14);

  /* Semantic */
  --danger:          #f87171;
  --header-bg:       rgba(255, 255, 255, 0.92);
  --header-text:     #0f1115;

  /* Layout */
  --font:            'Inter', system-ui, -apple-system, sans-serif;
  --max-width:       1300px;
  --radius:          16px;
  --radius-sm:       10px;
  --radius-pill:     999px;
  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --section-gap:     clamp(4rem, 8vw, 6rem);
}

@supports (color: oklch(0.5 0.1 260)) {
  :root {
    --bg:            oklch(0.11 0.035 265);
    --bg-elevated:   oklch(0.13 0.038 265);
    --surface:       oklch(0.16 0.042 265);
    --surface-hover: oklch(0.19 0.048 265);
    --text:          oklch(0.93 0.01 260);
    --text-muted:    oklch(0.70 0.02 260);
    --accent:        oklch(0.65 0.16 265);
    --accent-hover:  oklch(0.58 0.16 265);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

address {
  font-style: normal;
}

ul {
  list-style: none;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

/* ============================================
   BUTTONS — accent glow on primary only
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease),
    color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset,
              0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset,
              0 8px 32px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(12px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn--white {
  background: #fff;
  color: #1a1f2e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.btn--white:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.btn--outline-white {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* ============================================
   SECTION TITLE — clean typography, no bar
   ============================================ */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

/* ============================================
   HEADER — transparent, logo tab from top edge
   ============================================ */
.header {
  position: relative;
  z-index: 100;
  background: transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

/* White tab: flush to top, rounded bottom only */
.header__logo {
  display: block;
  flex-shrink: 0;
  margin-top: 0;
  padding: 10px;
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow:
    0 0 0 1px rgba(91, 127, 234, 0.06) inset,
    0 8px 32px rgba(91, 127, 234, 0.22),
    0 4px 16px rgba(91, 127, 234, 0.1);
  transition: opacity 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.header__logo img {
  height: 105px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.header__address,
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.header__phone {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
}

.header__address:hover {
  color: var(--text);
}

.header__phone:hover {
  color: #7b9cf5;
}

.header__address svg,
.header__phone svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* ============================================
   HERO — ambient depth, bold type
   ============================================ */
.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

/* Ambient gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 70%;
  top: -10%;
  right: -15%;
  background: radial-gradient(ellipse, var(--accent-subtle) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
  opacity: 0.5;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--section-gap);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero__main {
  min-width: 0;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.hero__title-accent {
  color: var(--accent);
  background: linear-gradient(135deg, #7b9cf5 0%, var(--accent) 50%, #4a6dd9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .hero__title-accent {
    color: var(--accent);
  }
}

@media (forced-colors: active) {
  .hero__title-accent {
    color: LinkText;
    background: none;
  }
}

.hero__desc {
  font-size: 1.1875rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 32rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.hero__hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-subtle);
  padding: 0.625rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.hero__hours svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Hero CTA panel (right column) */
.hero__cta {
  min-width: 0;
}

.hero__cta-panel {
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(91, 127, 234, 0.04) inset,
    0 8px 28px rgba(91, 127, 234, 0.09),
    0 4px 12px rgba(91, 127, 234, 0.05);
}

.hero__cta-title {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero__cta-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero__cta-btn {
  width: 100%;
}

.hero__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero__qr img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.hero__qr-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   SERVICES — elevated cards, hairline borders
   ============================================ */
.services {
  background: var(--bg-elevated);
  padding-block: var(--section-gap);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.services__card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.services__card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.services__list li {
  padding-left: 1.125rem;
  position: relative;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.services__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ============================================
   CONTACTS
   ============================================ */
.contacts {
  background: var(--bg-elevated);
  padding-block: var(--section-gap);
}

.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacts__item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contacts__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.contacts__value {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
}

.contacts__value svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
  opacity: 0.85;
}

.contacts__value--link {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.contacts__value--link:hover {
  color: var(--text);
}

.contacts__closed {
  color: var(--danger);
}

.contacts__map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(91, 127, 234, 0.04) inset,
    0 8px 28px rgba(91, 127, 234, 0.09),
    0 4px 12px rgba(91, 127, 234, 0.05);
}

.contacts__map-canvas {
  width: 100%;
  height: 100%;
}

.contacts__map-canvas .ol-viewport {
  border-radius: var(--radius);
}

.contacts__map-canvas .ol-control button {
  background-color: var(--surface-raised);
  color: var(--text);
  border-radius: var(--radius-sm);
}

.contacts__map-canvas .ol-control button:hover,
.contacts__map-canvas .ol-control button:focus {
  background-color: var(--surface-hover);
  color: var(--text);
}

.contacts__map-canvas .ol-attribution {
  background: rgba(9, 13, 26, 0.75);
  color: var(--text-subtle);
  font-size: 0.6875rem;
  border-radius: var(--radius-sm) 0 0 0;
  padding: 2px 6px;
}

.contacts__map-canvas .ol-attribution a {
  color: var(--text-muted);
}

.contacts__map-route {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(17, 26, 48, 0.88);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contacts__map-route:hover {
  background: rgba(22, 34, 62, 0.95);
  border-color: rgba(91, 127, 234, 0.35);
  color: var(--text);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__copy,
.footer__addr {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* ============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================ */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

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

  .contacts__map {
    height: 280px;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================ */
@media (max-width: 600px) {
  .header__inner {
    align-items: center;
    padding-top: 0;
    padding-bottom: 10px;
  }

  .header__logo {
    padding: 10px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }

  .header__logo img {
    height: 72px;
  }

  .header__contacts {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    margin-left: auto;
  }

  .hero__qr {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .contacts__map {
    height: 240px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

