/* gasit.md — root page. Calm warm neutrals, one brick accent, one device:
   a dot grid with the found point. Not one of the six client directions. */

:root {
  --bg: #f6f3ee;
  --surface: #fffdfa;
  --text: #1e1b17;
  --muted: #625c53;
  --accent: #a63f26;
  --accent-text: #ffffff;
  --hair: rgba(30, 27, 23, .14);
  --hair-soft: rgba(30, 27, 23, .08);
  --tint: #efeae2;
  --font-heading: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s8: 6rem;
  --page-pad: 1.25rem;
  --radius: 10px;
  --container: 70rem;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); margin: 0; line-height: 1.1; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.container { width: min(100% - 2 * var(--page-pad), var(--container)); margin-inline: auto; }

/* Language switching: three copies live in the markup, CSS shows one. */
html[lang="ro"] :is([lang="ru"], [lang="en"]):not(.lang-btn),
html[lang="ru"] :is([lang="ro"], [lang="en"]):not(.lang-btn),
html[lang="en"] :is([lang="ro"], [lang="ru"]):not(.lang-btn) { display: none !important; }

.skip {
  position: absolute;
  left: var(--page-pad);
  top: -4rem;
  padding: .5rem .9rem;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  text-decoration: none;
  z-index: 20;
}
.skip:focus { top: var(--s1); }

/* -------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--hair-soft); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand-dot { flex: none; width: .55em; height: .55em; margin-right: .5em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .28em rgba(166, 63, 38, .18); }
.brand-tld { color: var(--muted); font-weight: 500; }
.nav { display: none; gap: var(--s3); }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; padding: .6rem 0; }
.nav a:hover { color: var(--text); }
.lang { display: inline-flex; border: 1px solid var(--hair); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  min-width: 2.6rem;
  min-height: 2.1rem;
  padding: 0 .55rem;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang-btn:hover:not([aria-pressed="true"]) { color: var(--text); }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: var(--s5) var(--s6); }
.hero-grid { display: grid; gap: var(--s4); align-items: center; }
.hero-brand { display: flex; align-items: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.75rem; letter-spacing: -.02em; margin-bottom: var(--s3); }
.kicker { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s2); }
.hero-title { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem); font-weight: 650; max-width: 14ch; }
.lead { font-size: 1.125rem; line-height: 1.55; max-width: 36rem; margin-top: var(--s3); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--primary:hover { background: #8f3520; }
.btn--ghost { border-color: var(--hair); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }

/* The device: dot grid, one found point, a tag with the address. */
.hero-art { position: relative; color: var(--muted); }
.art { display: block; width: 100%; height: auto; }
.art-dots { opacity: .5; }
.art-pin { fill: var(--accent); }
.art-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .55; }
.art-ring--outer { opacity: .18; }
.art-tag {
  position: absolute;
  transform: translate(1.9rem, -50%);
  padding: .35rem .7rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .art-ring--outer { animation: found 3.2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
  @keyframes found {
    0% { transform: scale(.55); opacity: .4; }
    70% { opacity: .08; }
    100% { transform: scale(1.15); opacity: 0; }
  }
}

/* ------------------------------------------------------------ sections */
.section { padding-block: var(--s6); }
.section--tint { background: var(--tint); }
.section-head { max-width: 36rem; margin-bottom: var(--s4); }
.section-lead { margin-top: var(--s2); color: var(--muted); font-size: 1.05rem; }

.steps { display: grid; gap: var(--s3); }
.step { padding-top: var(--s2); border-top: 1px solid var(--hair); }
.step-num { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--accent); margin-bottom: var(--s1); }
.step-title { margin-bottom: .4rem; }
.step-text { color: var(--muted); max-width: 32rem; }

.inside-grid { display: grid; gap: var(--s3); }
.inside-grid .section-head { margin-bottom: 0; }
.inside { display: grid; gap: 0; }
.inside li { padding: .75rem 0; border-top: 1px solid var(--hair); font-size: 1.05rem; }
.inside li:last-child { border-bottom: 1px solid var(--hair); }

.cards { display: grid; gap: var(--s2); }
.card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--accent); }
.card-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }
.card-meta { color: var(--muted); font-size: .95rem; }
.card-link { display: flex; justify-content: space-between; gap: var(--s2); margin-top: .6rem; font-size: .9rem; }
.card-host { color: var(--muted); overflow-wrap: anywhere; }
.card-open { color: var(--accent); font-weight: 600; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .4rem .9rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--surface);
  font-size: .95rem;
}

.contacts-grid { display: grid; gap: var(--s3); }
.contacts-grid .section-head .btn { margin-top: var(--s3); }
.contacts { margin: 0; display: grid; gap: 0; }
.contact { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s2); padding: .8rem 0; border-top: 1px solid var(--hair); }
.contact:last-child { border-bottom: 1px solid var(--hair); }
.contact dt { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .35rem; }
.contact dd { margin: 0; font-size: 1.1rem; font-family: var(--font-heading); font-weight: 500; overflow-wrap: anywhere; }
/* Inline links get a 44px tap height without moving the text. */
.contact dd a { display: inline-block; padding-block: .6em; margin-block: -.6em; text-decoration: none; }
.contact dd a:hover { color: var(--accent); text-decoration: underline; }

/* -------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--hair-soft); padding-block: var(--s4); font-size: .9rem; color: var(--muted); }
.footer-row { display: grid; gap: .5rem; }
.footer-brand { font-family: var(--font-heading); font-weight: 700; color: var(--text); font-size: 1.05rem; }
.footer-studio a { color: var(--text); text-decoration-color: var(--hair); text-underline-offset: .2em; }
.footer-studio a:hover { color: var(--accent); }

/* ----------------------------------------------------------- ≥ 700px */
@media (min-width: 700px) {
  :root { --page-pad: 2rem; }
  .nav { display: flex; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .inside { grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
  /* Two columns: only the last row closes with a bottom rule. */
  .inside li { border-bottom: 0; }
  .inside li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--hair); }
  .footer-row { grid-template-columns: auto 1fr auto; align-items: baseline; gap: var(--s3); }
  .footer-studio { text-align: center; }
}

/* ----------------------------------------------------------- ≥ 960px */
@media (min-width: 960px) {
  .hero { padding-block: var(--s6) var(--s8); }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); }
  .hero-brand { font-size: 2.25rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .inside-grid { grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: start; }
  .contacts-grid { grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: start; }
  .contact { grid-template-columns: 8rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
