/* Власний дизайн gs-design.dk: у вебархіві не збереглося жодного базового стилю теми (знімок головної без стилів),
   тож кольори (графіт #2b2d36 із темного блоку архіву, оранжевий акцент з ілюстрації) і розкладка зібрані заново.
   Шрифти системні: зовнішніх файлів немає. */
:root {
  --ink: #1e2029;
  --text: #2d3039;
  --muted: #5b6070;
  --bg: #ffffff;
  --soft: #f4f4f6;
  --line: #e2e3e8;
  --dark: #2b2d36;
  --dark-2: #20222a;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-soft: #fff1e8;
  --wrap: 1180px;
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, label:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); font-family: var(--sans); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1.15em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Шапка й меню (рядок, без маркерів) */
#nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.nav { display: block; }
.nav > ul, .nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav li { list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav > ul > li > a { display: block; padding: 10px 14px; border-radius: 8px; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }
.site-header .wrap { position: relative; }
.has-mega { position: static; }
.mega {
  display: none; position: absolute; right: 20px; top: 100%; width: min(860px, calc(100vw - 40px));
  padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(20, 22, 30, 0.16); grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { display: grid; }
.mega-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.mega li a { display: block; padding: 6px 0; font-weight: 500; line-height: 1.35; }
.mega li a:hover { color: var(--accent); }
.nav-btn { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-btn span, .nav-btn span::before, .nav-btn span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; position: relative; }
.nav-btn span::before { position: absolute; top: -6px; }
.nav-btn span::after { position: absolute; top: 6px; }

/* Герой */
.hero {
  background: linear-gradient(rgba(27, 29, 38, 0.84), rgba(27, 29, 38, 0.92)), var(--dark) url("/assets/img/hero.jpg") center / cover no-repeat;
  color: #fff; padding-block: clamp(56px, 10vw, 128px);
}
.hero h1 { color: #fff; margin-bottom: 0.45em; }
.hero p { color: #e6e7ec; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: #fff; line-height: 1.2; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.hero .eyebrow { color: #ffb48a; }

/* Блоки головної */
.section { padding-block: clamp(44px, 7vw, 88px); }
.section.soft { background: var(--soft); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature figure { margin: 0; background: var(--soft); border-radius: var(--radius); padding: 18px; }
.feature figure img { border-radius: 8px; width: 100%; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.split > h2 { position: sticky; top: 96px; }
.band { background: var(--dark); color: #e8e9ee; padding-block: clamp(44px, 7vw, 84px); }
.band .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); }
.band p { margin: 0 0 1.1em; }
.band p:first-child { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.5; color: #fff; font-weight: 600; }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.group + .group { margin-top: 2.6rem; }
.group > h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 20px 20px 18px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 22, 30, 0.1); }
.card h4 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.5em; color: var(--ink); }
.card h4 a { color: var(--ink); text-decoration: none; }
.card h4 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; margin: 0 0 1em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .more { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 0.92rem; }

/* Сторінки: хлібні крихти, стаття, бічна колонка */
.crumbs { font-size: 0.9rem; color: var(--muted); padding-block: 22px 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.page-head { padding-block: clamp(28px, 5vw, 56px) 8px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: 8px clamp(48px, 7vw, 88px); }
.article { min-width: 0; }
.article h1 { margin-bottom: 0.35em; }
.article .vw-kicker { display: inline-block; margin: 0 0 1rem; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.article .vw-lede { font-size: 1.28rem; line-height: 1.6; color: var(--ink); font-weight: 500; margin-bottom: 1.6rem; }
.article .vw-intro { padding: 20px 24px; background: var(--soft); border-radius: var(--radius); margin-bottom: 2.2rem; }
.article .vw-intro p:last-child, .article section p:last-child { margin-bottom: 0; }
.article .vw-sections { margin-top: 2.4rem; }
.article .vw-sections h2 { padding-top: 0.2em; }
.article .vw-conclusion { margin-top: 2.6rem; padding: 24px 26px; border-left: 5px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.article .vw-conclusion h2 { margin-top: 0; }
.article .vw-faq { margin-top: 2.6rem; }
.article .vw-faq h3 { margin-top: 1.5em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.article li { margin-bottom: 0.4em; }
.vw-photo { margin: 2.4rem 0; }
.vw-photo img { width: 100%; border-radius: var(--radius); background: var(--soft); }
.aside { position: sticky; top: 92px; display: grid; gap: 22px; }
.aside .box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--soft); }
.aside h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 12px; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li { padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.aside li:first-child { border-top: 0; padding-top: 0; }
.aside a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.aside a:hover { color: var(--accent); }
.aside .note { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* Kontakt og 404 */
.contact { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px); }
.contact-form { max-width: 640px; margin-top: 2rem; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); min-height: 120px; }
.notfound { padding-block: clamp(64px, 12vw, 140px); text-align: left; }
.notfound .code { font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.04em; margin-bottom: 0.2em; }

/* Підвал */
.site-footer { background: var(--dark-2); color: #c9cbd4; padding-block: 56px 0; margin-top: auto; }
.site-footer a { color: #e8e9ee; text-decoration: none; }
.site-footer a:hover { color: #ffb48a; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.site-footer h2 { color: #fff; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.95rem; line-height: 1.4; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: 0.95rem; line-height: 1.6; margin: 0 0 0.8em; }
.foot-bottom { margin-top: 44px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem; color: #9a9dab; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .feature, .split, .band .cols { grid-template-columns: minmax(0, 1fr); }
  .split > h2 { position: static; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20, 22, 30, 0.12); max-height: calc(100vh - 70px); overflow-y: auto; padding: 8px 20px 20px; }
  #nav-toggle:checked ~ .site-header .nav { display: block; }
  #nav-toggle:focus-visible ~ .site-header .nav-btn { outline: 3px solid var(--accent); outline-offset: 3px; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li > a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .mega { display: grid; position: static; width: auto; box-shadow: none; border: 0; padding: 12px 0 0; grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .article .vw-lede { font-size: 1.15rem; }
  .article .vw-intro, .article .vw-conclusion { padding: 18px; }
  .hero .actions .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
