/* Balkan Drive Guide — асфальт, зелёный указатель, жёлтая разметка.
   Гротеск Archivo в заголовках, Barlow Condensed на «щитах», Source Sans 3 в тексте. */
:root {
  --asphalt: #25292E;
  --asphalt-2: #33383F;
  --green: #1B6B3A;
  --green-dk: #14522C;
  --yellow: #F2C230;
  --stone: #EEEBE4;
  --card: #FFFFFF;
  --ink: #1F2429;
  --muted: #6B7078;
  --line: #DAD6CD;
  --r: 12px;
  --sh: 0 1px 2px rgba(31, 36, 41, .06), 0 10px 26px rgba(31, 36, 41, .08);
  --fd: "Archivo", "Segoe UI", sans-serif;
  --fs: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fb: "Source Sans 3", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--stone); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-dk); text-underline-offset: 3px; }
a:hover { color: var(--asphalt); }
h1, h2, h3, h4 { font-family: var(--fd); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.3rem, 2.7vw, 1.8rem); margin-bottom: .5em; }
h3 { font-size: 1.05rem; font-weight: 700; }
b, strong { font-weight: 600; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.col { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 10px 16px; z-index: 99; border-radius: 8px; }

/* дорожная разметка — фирменный разделитель */
.roadline { height: 6px; background: var(--asphalt); position: relative; }
.roadline::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, transparent 22px 40px); }

/* ---------------- шапка ---------------- */
.top { background: var(--card); position: sticky; top: 0; z-index: 60; box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--asphalt); }
.brand span { font-family: var(--fd); font-weight: 800; font-size: 1.08rem; letter-spacing: -.03em; }
.brand span b { color: var(--green); }
.mark { width: 26px; height: 26px; flex: 0 0 26px; }
.nav { display: flex; gap: 24px; }
.nav a { font-family: var(--fd); font-weight: 700; font-size: .86rem; color: var(--asphalt); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--yellow); color: var(--asphalt); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--asphalt); margin: 5px 0; border-radius: 2px; }

/* ---------------- герой: фото + указатель ---------------- */
.hero { position: relative; background: var(--asphalt); }
.hero-img { width: 100%; height: clamp(300px, 46vw, 520px); object-fit: cover; opacity: .92; }
.hero-wrap { position: relative; }
.sign {
  position: relative; margin: -110px 0 0; max-width: 700px; color: #fff;
  background: var(--green); border: 4px solid #fff; border-radius: 14px; padding: 26px 30px 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.sign::before { content: ""; position: absolute; inset: 6px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 8px; pointer-events: none; }
.sign-k { font-family: var(--fs); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .86rem; color: var(--yellow); margin-bottom: 8px; }
.sign h1 { color: #fff; }
.sign-l { margin-top: 12px; font-size: 1.04rem; color: #D9EBDF; max-width: 60ch; }
.sign-l:empty { display: none; }
.arr { color: var(--yellow); }
.hero-flat { padding: 34px 0 0; }
.hero-flat .sign { margin: 0 0 -24px; }
.hero-flat + .wrap .crumbs { padding-top: 40px; }
@media (max-width: 720px) { .sign { margin-top: -70px; padding: 20px 20px 22px; } }

/* ---------------- табло фактов ---------------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 34px 0 26px;
  background: var(--asphalt); border-radius: 12px; overflow: hidden; }
.bcell { background: var(--asphalt-2); padding: 14px 16px; }
.bl { display: block; font-family: var(--fs); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: #A9B0B8; }
.bv { display: block; font-family: var(--fd); font-weight: 700; color: var(--yellow); font-size: 1rem; margin-top: 3px; line-height: 1.25; }
@media (max-width: 640px) { .board { grid-template-columns: 1fr 1fr; } }

/* ---------------- кнопки ---------------- */
.btn { display: inline-block; font-family: var(--fd); font-weight: 700; font-size: .9rem; padding: 12px 22px; border-radius: 8px; text-decoration: none; transition: .18s; border: 2px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-y { background: var(--yellow); color: var(--asphalt); }
.btn-y:hover { background: #F7CE4A; color: var(--asphalt); }
.btn-w { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-w:hover { border-color: var(--yellow); color: var(--yellow); }
.more { font-family: var(--fd); font-weight: 700; font-size: .95rem; }

/* ---------------- контент ---------------- */
.sec { margin: 36px 0; }
.sec p { margin: .6em 0; max-width: 70ch; }
.crumbs { font-family: var(--fd); font-size: .78rem; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-dk); }
.csep { margin: 0 8px; color: var(--line); }

.tw { overflow-x: auto; border-radius: var(--r); box-shadow: var(--sh); }
.grid { width: 100%; border-collapse: collapse; background: var(--card); min-width: 560px; }
.grid th { background: var(--asphalt); color: #fff; text-align: left; padding: 11px 16px; font-family: var(--fs); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.grid td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.grid tr:nth-child(even) td { background: #FBFAF7; }
.grid td.num { font-family: var(--fd); font-weight: 700; white-space: nowrap; color: var(--green-dk); }
.stages td:first-child { color: var(--asphalt); }

/* таблица правил — зелёная колонка заголовков как указатель */
.rules { width: 100%; border-collapse: collapse; background: var(--card); min-width: 520px; }
.rules th { width: 34%; text-align: left; background: var(--green); color: #fff; padding: 12px 16px; font-family: var(--fs); font-weight: 700; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; border-bottom: 2px solid var(--green-dk); vertical-align: top; }
.rules td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }

/* CTA */
.cta { background: var(--asphalt); border-radius: var(--r); padding: 24px 28px; margin: 30px 0; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, transparent 22px 40px); }
.cta-copy h3 { color: #fff; font-size: 1.12rem; }
.cta-copy p { color: #B8BEC6; font-size: .92rem; margin-top: 4px; max-width: 46ch; }
.cta-act { display: flex; gap: 10px; flex-wrap: wrap; }

/* врезка */
.note { display: flex; gap: 12px; background: #FFF7DC; border-left: 4px solid var(--yellow); border-radius: 10px; padding: 14px 18px; margin: 28px 0; }
.note p { margin: 0; font-size: .93rem; }
.note-i { color: var(--yellow); font-size: 1rem; line-height: 1.5; }

/* советы — пронумерованы жёлтыми плашками */
.tips { list-style: none; counter-reset: t; }
.tips li { counter-increment: t; position: relative; padding-left: 46px; margin: 14px 0; max-width: 70ch; font-size: .97rem; }
.tips li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 6px; background: var(--yellow); color: var(--asphalt); display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-weight: 800; font-size: .9rem; }

/* FAQ */
.qa-list { display: flex; flex-direction: column; gap: 8px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qa summary { cursor: pointer; padding: 14px 44px 14px 18px; font-family: var(--fd); font-weight: 700; font-size: .95rem; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 1.25rem; }
.qa[open] summary::after { content: "–"; }
.qa-b { padding: 0 18px 15px; }
.qa-b p { font-size: .93rem; color: #3A4046; margin: 0; }

/* карточки-ссылки */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lcard { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 10px; padding: 16px 18px; text-decoration: none; box-shadow: var(--sh); transition: .18s; color: var(--ink); }
.lcard:hover { transform: translateY(-2px); border-left-color: var(--yellow); color: var(--ink); }
.lcard h3 { color: var(--asphalt); margin-bottom: 4px; }
.lcard p { font-size: .86rem; color: var(--muted); margin: 0; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pcard { background: var(--card); border-radius: var(--r); overflow: hidden; text-decoration: none; box-shadow: var(--sh); transition: .18s; color: var(--ink); border: 1px solid var(--line); }
.pcard:hover { transform: translateY(-3px); color: var(--ink); }
.pcard img { width: 100%; height: 150px; object-fit: cover; }
.pcard-b { display: block; padding: 14px 16px; }
.pcard-b b { font-family: var(--fd); font-weight: 800; display: block; color: var(--asphalt); font-size: .98rem; line-height: 1.25; }
.pcard-b span { display: block; font-family: var(--fs); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--green-dk); margin-top: 6px; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 13px 18px; text-decoration: none; color: var(--ink); font-family: var(--fd); font-weight: 700; font-size: .94rem; transition: .15s; }
.row:hover { border-color: var(--green); color: var(--ink); }
.row i { font-family: var(--fb); font-style: normal; font-weight: 400; color: var(--muted); font-size: .86rem; margin-left: 6px; }
.row-m { font-family: var(--fb); font-weight: 400; font-size: .86rem; color: var(--green-dk); text-align: right; white-space: nowrap; }
@media (max-width: 560px) { .row { flex-direction: column; gap: 2px; } .row-m { text-align: left; } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--fd); font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); color: var(--asphalt); text-decoration: none; }
.chip:hover { border-color: var(--green); color: var(--green-dk); }

.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.icard { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: 10px; padding: 18px 20px; box-shadow: var(--sh); }
.icard h3 { color: var(--asphalt); margin-bottom: 6px; }
.icard p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------------- подвал ---------------- */
.foot { background: var(--asphalt); color: #B0B6BE; margin-top: 44px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 26px; }
.foot h4 { color: #fff; font-family: var(--fs); font-size: .84rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.foot a { display: block; color: #B0B6BE; font-size: .88rem; margin: 6px 0; text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot-brand { color: #fff; margin-bottom: 12px; }
.foot-brand span { color: #fff; }
.foot-brand span b { color: var(--yellow); }
.foot-lead p { font-size: .86rem; max-width: 42ch; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; padding-bottom: 22px; font-size: .79rem; color: #858C95; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- мобильное ---------------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--card); flex-direction: column; gap: 0; padding: 8px 22px 16px; box-shadow: var(--sh); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .cta { padding: 20px 20px; }
}
