:root {
  color-scheme: dark;
  --bg: #131214;
  --panel: #1b191c;
  --line: #3a3439;
  --accent: #ed354a;
  --text: #fbf7f7;
  --muted: #cac1c5;
  font-family: "Noto Sans Georgian", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }
:is(a, button, input):focus-visible { outline: 2px solid #ff9aa5; outline-offset: 4px; }
.container { width: min(100% - 5rem, 77rem); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 1rem; left: 1rem; padding: .75rem; background: var(--panel); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }

.header { position: sticky; z-index: 3; top: 0; border-bottom: 1px solid var(--line); background: #131214f2; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: .92rem; letter-spacing: .055em; white-space: nowrap; }
.brand img { object-fit: contain; }
.brand strong { font-weight: 850; }
nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); font-size: .93rem; }
nav a { color: var(--muted); }
nav a:hover, nav a[aria-current="page"], .footer a:hover, .visit-strip a:hover { color: #ff8b99; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem 1.25rem; border: 1px solid transparent; border-radius: .45rem; font: inherit; font-weight: 750; line-height: 1.3; text-align: center; cursor: pointer; }
.button-primary { color: #fff; background: #c92337; }
.button-primary:hover { background: #ae1e30; }
.button-outline { border-color: #6c5961; background: #211b20; }
.button-outline:hover { background: #38242a; border-color: #ba6975; }
.header-phone { font-variant-numeric: tabular-nums; white-space: nowrap; }

.hero { padding-block: clamp(2rem, 5vw, 5rem) 0; background: radial-gradient(ellipse at top right, #2b171e, var(--bg) 61%); }
.hero-layout { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(2rem, 5vw, 4.5rem); }
.overline { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .875rem; font-weight: 700; }
.overline span { width: 1.1rem; height: 2px; background: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 850; line-height: 1.12; }
h1 { margin-block: 1.15rem; font-size: clamp(3.35rem, 7.5vw, 7.2rem); letter-spacing: -.055em; }
h1 em { color: #ff4c62; font-style: normal; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.035em; }
h3 { font-size: 1.16rem; line-height: 1.4; }
.hero-description { max-width: 24rem; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.2rem); line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.hero-copy .actions { margin-top: 1.6rem; }
.hero-media { overflow: hidden; position: relative; min-width: 0; aspect-ratio: 1.34; border: 1px solid #514049; border-radius: .7rem; background: #231b22; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.visit-strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-block: 1px solid var(--line); }
.visit-strip > div { display: grid; gap: .45rem; padding: 1rem 1.35rem; }
.visit-strip > div:first-child { padding-inline-start: 0; }
.visit-strip > div + div { border-inline-start: 1px solid var(--line); }
.field-label { color: var(--muted); font-size: .875rem; }
.visit-strip strong, .visit-strip a { font-weight: 750; }

.section { padding-block: clamp(3rem, 6vw, 6rem); }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2.5rem; margin-bottom: 1.65rem; }
.section-heading p { max-width: 25rem; }
.section-heading p, .service p, .workshop-copy p:not(.overline), .tool p { color: var(--muted); line-height: 1.65; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.service { padding: 1.4rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--panel); }
.service h3::before { content: ""; display: block; width: 1.05rem; height: 2px; margin-bottom: .9rem; background: var(--accent); }
.service p, .tool p { margin-top: .55rem; }

.workshop { border-block: 1px solid var(--line); background: #1a171b; padding-block: clamp(2.4rem, 4.5vw, 4.5rem); }
.workshop-layout { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.workshop-image { width: 100%; aspect-ratio: 1.65; object-fit: cover; border-radius: .65rem; }
.workshop-copy { display: grid; gap: 1rem; justify-items: start; }
.tools-section { padding-bottom: 0; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tool { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem; background: var(--panel); border: 1px solid var(--line); border-radius: .6rem; }
.map-page { padding-block: clamp(1.5rem, 4vw, 3.5rem); }
.map-page h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.35rem); letter-spacing: -.035em; }
.map-panel { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.route-form { display: grid; gap: .55rem; width: 100%; }
.route-form label { font-size: .94rem; font-weight: 750; }
.route-controls { display: flex; flex-wrap: wrap; gap: .65rem; }
.route-controls input { min-width: min(13rem, 100%); flex: 1; border: 1px solid #6c5961; border-radius: .45rem; background: #141216; color: var(--text); padding: .65rem .8rem; font: inherit; }
.route-controls input::placeholder { color: var(--muted); }
.map-results { display: grid; margin: 0; padding: 0; list-style: none; gap: .35rem; }
.map-results[hidden] { display: none; }
.map-results button { display: block; width: 100%; padding: .7rem .85rem; color: var(--text); background: #211b20; border: 1px solid var(--line); border-radius: .35rem; cursor: pointer; font: inherit; text-align: start; }
.map-results button:hover { background: #38242a; }
.map-options, .map-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; color: var(--muted); }
.map-footer a { font-size: .875rem; text-decoration: underline; }
#route-map { position: relative; isolation: isolate; height: clamp(20rem, 50vw, 37rem); overflow: hidden; border: 1px solid #6c5961; border-radius: .5rem; background: #dfded9; color-scheme: light; }
.leaflet-container .leaflet-control-attribution { font-size: .8rem; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.7rem; padding: clamp(1.4rem, 4vw, 3.1rem); background: linear-gradient(125deg, #3d1d26, #231a21 76%); border: 1px solid #74404a; border-radius: .75rem; }
.contact-copy address { font-style: normal; margin-block: .9rem .45rem; }
.contact-copy p { color: var(--muted); }
.footer { border-top: 1px solid var(--line); }
.footer small { color: var(--muted); font-size: .875rem; }

@media (max-width: 58rem) {
  .container { width: min(100% - 2.5rem, 77rem); }
  .header-inner { flex-wrap: wrap; gap: .3rem 1rem; padding-block: .55rem; }
  .header nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: .6rem; }
  .header nav a { padding-block: .55rem; }
  html { scroll-padding-top: 8rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-layout { gap: 1.5rem; }
}

@media (max-width: 43rem) {
  .container { width: calc(100% - 2rem); }
  .hero-layout, .workshop-layout, .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { aspect-ratio: 1.45; }
  .visit-strip { grid-template-columns: 1fr 1fr; }
  .visit-strip > div:first-child { grid-column: 1 / -1; }
  .visit-strip > div:nth-child(2) { padding-inline-start: 0; border-inline-start: 0; }
  .visit-strip > div:not(:first-child) { border-block-start: 1px solid var(--line); }
  .service { padding: 1.05rem; }
  .section-heading { align-items: start; }
  .footer-inner { padding-block: .8rem; flex-wrap: wrap; }
}

@media (max-width: 28rem) {
  .header-phone { min-height: 2.5rem; padding-inline: .6rem; font-size: .875rem; }
  .header .brand { font-size: .79rem; gap: .35rem; }
  .header .brand img { width: 2rem; height: 2rem; }
  .header nav { flex-wrap: wrap; justify-content: start; gap: .1rem .9rem; }
  .header nav a { font-size: .875rem; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
