/* Бюро «Омский переводчик»: общий стиль RU и DE. Цвета только через токены ниже. */

:root {
  color-scheme: light dark;

  --bg: #f7f4ec;
  --surface: #ffffff;
  --surface-2: #efeadc;
  --text: #1d2420;
  --muted: #56615a;
  --border: #ddd5c2;
  --accent: #1f5e3b;
  --accent-hover: #174a2e;
  --accent-ink: #ffffff;
  --accent-soft: #e3ecdf;
  --gold: #9a7a28;
  --band-bg: #1f5e3b;
  --band-text: #f4f1e6;
  --band-muted: #c9dccd;
  --band-card: #174a2e;
  --ill-line: #c9c1ac;
  --shadow: 0 1px 2px rgb(30 40 30 / 6%), 0 8px 24px rgb(30 40 30 / 8%);

  --font-serif: "PT Serif", Georgia, "Noto Serif", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  --gutter: 16px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121815;
    --surface: #1a221e;
    --surface-2: #212b26;
    --text: #e8ece6;
    --muted: #a3ada6;
    --border: #2e3a33;
    --accent: #7cc39a;
    --accent-hover: #98d4b0;
    --accent-ink: #0d1912;
    --accent-soft: #213428;
    --gold: #d2b263;
    --band-bg: #17301f;
    --band-text: #eef2ea;
    --band-muted: #b4c9ba;
    --band-card: #1e3d29;
    --ill-line: #3c4943;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-sans);
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: .18em; }
a[href^="tel:"] { white-space: nowrap; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

svg { display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 8px;
}
.skip:focus { left: 8px; }

/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand img { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: none; gap: 4px; }
.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .95rem;
  white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }

.lang {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  font-size: .85rem;
  font-weight: 600;
}
.lang a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.lang a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

.lang, .header-call { flex: none; }
.header-call .btn-label { display: none; }

@media (min-width: 600px) {
  .header-call .btn-label { display: inline; }
}

/* Меню помещается в одну строку рядом с RU/DE/EN и кнопкой звонка только от 1024px. */
@media (min-width: 1024px) {
  .nav { display: flex; }
}

@media (max-width: 599px) {
  .site-header .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand-sub { display: none; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 1rem; line-height: 1.1; white-space: normal; overflow: visible; overflow-wrap: normal; }
  .lang a { padding: 4px 8px; }
  .site-header .header-call { padding-left: 10px; padding-right: 10px; }
  dd, :lang(de) p, :lang(de) li { -webkit-hyphens: auto; hyphens: auto; }
  .hero .facts dt { font-size: 1.1rem; }
}

/* Уже 350px название, три языка и кнопка звонка не помещаются; телефон есть на первом экране. */
@media (max-width: 349px) {
  .site-header .header-call { display: none; }
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: .95rem; }

/* Секции */

main > section { padding: 72px 0; scroll-margin-top: var(--header-h); }

@media (max-width: 719px) {
  main > section { padding: 56px 0; }
}

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* Первый экран */

.hero { padding-top: 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.3fr .7fr; gap: 56px; }
}

.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hint { font-size: .95rem; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}
.facts div { min-width: 0; }
.facts dt { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); color: var(--accent); }
.facts dd { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.35; }

.hero-art { max-width: 440px; width: 100%; margin: 0 auto; }
.hero-art svg { width: 100%; height: auto; }

@media (max-width: 899px) {
  .hero-art { max-width: 300px; }
}

.ill-sheet { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.ill-sheet-back { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; }
.ill-line { fill: var(--ill-line); }
.ill-title { fill: var(--accent); }
.ill-tag { fill: var(--accent-soft); }
.ill-tag-text { fill: var(--accent); font: 700 15px var(--font-sans); letter-spacing: .08em; }
.ill-stamp { fill: none; stroke: var(--accent); }
.ill-stamp-text { fill: var(--accent); font: 700 10.5px var(--font-sans); letter-spacing: .14em; }
.ill-stamp-mark { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ill-sign { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.ill-badge { fill: var(--accent); }
.ill-badge-text { fill: var(--accent-ink); font: 700 13px var(--font-sans); letter-spacing: .04em; }

/* Карточки услуг */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Языки */

.langs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.lang-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.lang-code {
  flex: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
  border: 2px solid currentColor;
  border-radius: 10px;
  padding: 8px 8px 6px;
  min-width: 56px;
  text-align: center;
}
.lang-tile h3 { margin: 2px 0 4px; }
.lang-tile p { margin: 0; color: var(--muted); font-size: .95rem; }

.note { margin-top: 20px; color: var(--muted); }

/* Германия: зелёная полоса */

.band {
  background: var(--band-bg);
  color: var(--band-text);
}
.band .eyebrow { color: var(--band-muted); }
.band .section-head p { color: var(--band-muted); }

.band-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }

@media (min-width: 900px) {
  .band-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px 24px;
}
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--band-muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.band-card {
  background: var(--band-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 12%);
}
.band-card p { color: var(--band-muted); }
.band-card .btn { background: var(--band-text); color: var(--band-bg); }
.band-card .btn:hover { background: #ffffff; color: var(--band-bg); }

/* Как мы работаем */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 28px;
}
.principles h3 { padding-top: 16px; border-top: 3px solid var(--gold); }
.principles p { color: var(--muted); margin: 0; }

/* Как заказать */

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

@media (min-width: 900px) {
  .order-grid { grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 1.3rem/1 var(--font-serif);
}
.steps h3 { margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

@media (max-width: 380px) {
  .steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .steps li::before { width: 40px; height: 40px; font-size: 1.1rem; }
  .card, .price, .band-card { padding: 20px; }
}

.price {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.price p:last-child { margin-bottom: 0; }

/* Клиенты */

.chips { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .95rem;
}

.works { max-width: 820px; color: var(--muted); }

/* Контакты */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.contact-card h3 { font-family: var(--font-sans); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-card .big {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  margin-bottom: 4px;
}
.contact-card .big:hover { text-decoration: underline; }
.contact-card small { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.contact-card small:last-child { margin-bottom: 0; }

/* Подвал */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: .9rem;
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer p { margin: 0; }

/* 404 */

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound .code { font: 700 clamp(4rem, 3rem + 6vw, 7rem)/1 var(--font-serif); color: var(--gold); margin-bottom: 8px; }
.notfound .actions { justify-content: center; }
