/* =========================================================
   D-Gateway — Design tokens & components  (v0.1)
   Container-query based: every section reacts to the width
   of .dg (the page root), so the same blocks work at 375px
   and 1280px and inside WordPress block wrappers.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
.dg, .dg-tokens {
  /* color */
  --color-base: #0B1426;          /* dark ground under photos */
  --color-base-deep: #070D19;     /* footer */
  --color-primary: #0F6B3A;       /* German turf green */
  --color-primary-strong: #0A5229;
  --color-primary-tint: #E7F1EA;
  --color-accent: #D9A400;        /* CTA + emphasis only */
  --color-accent-ink: #0B1426;    /* text on accent */
  --color-text: #1C1F24;
  --color-text-muted: #525A66;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F3F5F7;
  --color-line: #DCE1E6;
  --color-on-dark: #FFFFFF;
  --color-on-dark-muted: rgba(255, 255, 255, 0.80);
  --color-on-dark-line: rgba(255, 255, 255, 0.22);
  --color-scrim: 11, 20, 38;      /* rgb of --color-base for scrims */

  /* type */
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-num: "Oswald", "Noto Sans JP", sans-serif;
  --fs-hero: clamp(38px, 6.2cqi, 80px);
  --fs-display: clamp(30px, 4.4cqi, 56px);
  --fs-h2: clamp(26px, 3.2cqi, 42px);
  --fs-h3: clamp(19px, 1.7cqi, 22px);
  --fs-lead: clamp(16px, 1.5cqi, 19px);
  --fs-body: clamp(16px, 1.35cqi, 17px);
  --fs-small: 14px;
  --fs-label: 13px;
  --lh-tight: 1.3;
  --lh-body: 1.9;

  /* space (4px base) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;
  --gutter: clamp(16px, 4cqi, 48px);
  --section-pad: clamp(72px, 9cqi, 128px);
  --container: 1200px;
  --header-h: 72px;

  /* shape */
  --radius-s: 4px;
  --radius-m: 8px;

  /* motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 160ms;
  --dur-reveal: 900ms;
  --dur-kenburns: 24s;
  --dur-marquee: 80s;
  --parallax: 7%;
}

/* ---------- 2. Base ---------- */
.dg {
  container: dg / inline-size;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-surface);
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
.dg *, .dg *::before, .dg *::after { box-sizing: border-box; }
.dg img { display: block; max-width: 100%; }
/* :where() keeps this reset at low priority so component spacing can override it (B variant) */
.dg :where(h1, h2, h3, p, ol, ul, figure, dl, dd) { margin: 0; }
.dg :where(ol, ul) { padding: 0; list-style: none; }
.dg a { color: inherit; }
.dg-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.dg-section { padding-block: var(--section-pad); }
.dg-section--alt { background: var(--color-surface-alt); }
.dg-section--dark { background: var(--color-base); color: var(--color-on-dark); }
.dg-phrase { display: inline-block; }   /* keeps a Japanese phrase on one line */

.dg-eyebrow {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em;
  color: var(--color-primary); margin-bottom: var(--space-4);
}
.dg-eyebrow__num { font-family: var(--font-num); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; }
.dg-eyebrow__num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; margin-left: var(--space-3); vertical-align: middle; }
.dg-eyebrow--on-dark { color: var(--color-accent); }

.dg-h2 { font-size: var(--fs-h2); font-weight: 900; line-height: var(--lh-tight); letter-spacing: 0.01em; word-break: auto-phrase; text-wrap: balance; }
.dg-h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.45; word-break: auto-phrase; }
.dg-lead { font-size: var(--fs-lead); line-height: 1.95; color: var(--color-text-muted); max-width: 36em; }
.dg-section--dark .dg-lead, .dg-on-photo .dg-lead { color: var(--color-on-dark-muted); }
.dg-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-8); }
.dg-head > div { max-width: 640px; }

/* ---------- 3. Buttons ---------- */
.dg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 52px; padding: 0 var(--space-6);
  border: 2px solid transparent; border-radius: var(--radius-s);
  font: 700 16px/1.2 var(--font-sans); letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.dg-btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.dg-btn:hover svg { transform: translateX(3px); }
.dg-btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.dg-btn--lg { min-height: 60px; padding: 0 var(--space-7); font-size: 17px; }
.dg-btn--sm { min-height: 44px; padding: 0 var(--space-5); font-size: 14px; }
/* primary = the one conversion action (accent) */
.dg-btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.dg-btn--primary:hover { filter: brightness(1.08); }
/* secondary = green outline on light sections */
.dg-btn--secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.dg-btn--secondary:hover { background: var(--color-primary); color: #fff; }
/* on-photo = white outline over photography */
.dg-btn--on-photo { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.85); backdrop-filter: blur(6px); }
.dg-btn--on-photo:hover { background: #fff; color: var(--color-base); }
.dg-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; color: var(--color-primary); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.dg-link svg { width: 16px; height: 16px; }

/* ---------- 4. Logo slot (swap for <img> later) ---------- */
.dg-logo { display: inline-flex; align-items: center; height: 40px; min-width: 132px; text-decoration: none; color: inherit; }
.dg-logo__text { font-family: var(--font-num); font-weight: 700; font-size: 26px; letter-spacing: 0.02em; line-height: 1; }
.dg-logo__text b { color: var(--color-accent); font-weight: 700; }
.dg-logo img { height: 100%; width: auto; }

/* ---------- 5. Header ---------- */
.dg-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  color: #fff; background: rgba(var(--color-scrim), 0);
  transition: background-color 300ms, box-shadow 300ms;
}
.dg-header.is-scrolled, .dg-header.is-open { background: rgba(var(--color-scrim), 0.94); box-shadow: 0 1px 0 var(--color-on-dark-line); backdrop-filter: blur(10px); }
.dg-header__bar { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.dg-nav { display: flex; gap: var(--space-6); margin-left: auto; }
.dg-nav a { font-size: 15px; font-weight: 700; text-decoration: none; padding-block: var(--space-2); border-bottom: 2px solid transparent; }
.dg-nav a:hover { border-color: var(--color-accent); }
.dg-menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: #fff; cursor: pointer; margin-right: -10px; }
.dg-menu-btn svg { width: 26px; height: 26px; }
.dg-mobile-menu { position: absolute; top: var(--header-h); left: 0; right: 0; background: rgba(var(--color-scrim), 0.98); padding: var(--space-5) var(--gutter) var(--space-7); border-top: 1px solid var(--color-on-dark-line); }
.dg-mobile-menu a:not(.dg-btn) { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-size: 18px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--color-on-dark-line); }
.dg-mobile-menu .dg-btn { width: 100%; margin-top: var(--space-6); }

/* ---------- 6. Photo primitives & motion ---------- */
.dg-on-photo { position: relative; isolation: isolate; color: var(--color-on-dark); overflow: hidden; background: var(--color-base); }
.dg-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.dg-photo__move { position: absolute; inset: calc(var(--parallax) * -1) 0; }
.dg-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.dg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--color-scrim), 0.55) 0%, rgba(var(--color-scrim), 0.15) 38%, rgba(var(--color-scrim), 0.82) 100%); }
.dg-photo--even::after { background: rgba(var(--color-scrim), 0.58); }
.dg-kenburns img { transform-origin: var(--kb-origin, 60% 45%); animation: dg-kenburns var(--dur-kenburns) ease-in-out infinite alternate; }
@keyframes dg-kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-2.2%, -1.6%, 0); } }

/* placeholder for photos still to shoot */
.dg-ph { display: grid; place-items: center; text-align: center; padding: var(--space-5); background: repeating-linear-gradient(135deg, #142038 0 14px, #111B30 14px 28px); color: rgba(255,255,255,0.78); font-size: 13px; line-height: 1.7; font-weight: 700; }
.dg-ph svg { width: 28px; height: 28px; margin: 0 auto var(--space-2); opacity: 0.7; }

/* scroll-driven (CSS only). Browsers without support show the static state. */
@supports (animation-timeline: view()) {
  .dg-parallax .dg-photo__move { animation: dg-parallax linear both; animation-timeline: view(); }
  .dg-reveal { animation: dg-reveal linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
}
@keyframes dg-parallax { from { transform: translate3d(0, calc(var(--parallax) * -1), 0); } to { transform: translate3d(0, var(--parallax), 0); } }
@keyframes dg-reveal { from { opacity: 0; transform: translate3d(0, 36px, 0); } to { opacity: 1; transform: none; } }
@keyframes dg-rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }

/* ---------- 7. Hero ---------- */
.dg-hero { height: clamp(620px, 100svh, 940px); margin-top: calc(var(--header-h) * -1); display: flex; align-items: flex-end; }
.dg-hero__inner { padding-bottom: clamp(56px, 8cqi, 112px); }
.dg-hero__title { font-size: var(--fs-hero); font-weight: 900; line-height: 1.22; letter-spacing: 0.02em; margin-bottom: var(--space-5); }
.dg-hero__sub { font-size: var(--fs-lead); font-weight: 500; color: var(--color-on-dark-muted); margin-bottom: var(--space-7); }
.dg-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.dg-hero .dg-eyebrow, .dg-hero__title, .dg-hero__sub, .dg-hero__ctas { animation: dg-rise 1100ms var(--ease-out) both; }
.dg-hero__title { animation-delay: 150ms; }
.dg-hero__sub { animation-delay: 300ms; }
.dg-hero__ctas { animation-delay: 450ms; }
.dg-scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(56px, 8cqi, 112px); writing-mode: vertical-rl; font-family: var(--font-num); font-size: 12px; letter-spacing: 0.3em; color: var(--color-on-dark-muted); display: flex; align-items: center; gap: var(--space-3); }
.dg-scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--color-accent), transparent); }

/* ---------- 8. Marquee strip ---------- */
.dg-marquee { background: var(--color-base); padding-block: var(--space-5); overflow: hidden; }
.dg-marquee__track { display: flex; width: max-content; animation: dg-marquee var(--dur-marquee) linear infinite; }
.dg-marquee:hover .dg-marquee__track { animation-play-state: paused; }
.dg-marquee__item { position: relative; width: clamp(240px, 32cqi, 440px); aspect-ratio: 3 / 2; margin-right: var(--space-4); overflow: hidden; border-radius: var(--radius-s); flex: none; }
.dg-marquee__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.dg-marquee__item:hover img { transform: scale(1.06); }
.dg-marquee__item figcaption { position: absolute; left: var(--space-4); bottom: var(--space-3); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
@keyframes dg-marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- 9. Cards ---------- */
.dg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.dg-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-m); padding: var(--space-7) var(--space-6); }
.dg-card__num { font-family: var(--font-num); font-size: 44px; font-weight: 500; line-height: 1; color: var(--color-primary); margin-bottom: var(--space-5); }
.dg-card .dg-h3 { margin-bottom: var(--space-3); }
.dg-card p { color: var(--color-text-muted); font-size: 15px; line-height: 1.85; }

/* blog card */
.dg-post { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.dg-post__img { aspect-ratio: 16 / 10; border-radius: var(--radius-m); overflow: hidden; margin-bottom: var(--space-5); background: var(--color-base); }
.dg-post__img img, .dg-post__img .dg-ph { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.dg-post:hover .dg-post__img img { transform: scale(1.05); }
.dg-post__meta { display: flex; align-items: center; gap: var(--space-3); font-size: 13px; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.dg-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 var(--space-3); border-radius: 999px; background: var(--color-primary-tint); color: var(--color-primary-strong); font-size: 12px; font-weight: 700; }
.dg-post__title { font-size: 18px; font-weight: 700; line-height: 1.6; word-break: auto-phrase; }
.dg-post:hover .dg-post__title { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 10. About ---------- */
.dg-about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); align-items: center; margin-bottom: var(--space-8); }
.dg-about__photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; }
.dg-about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }

/* ---------- 11. Steps ---------- */
.dg-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-8); }
.dg-trio figure { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; }
.dg-trio img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.dg-trio figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-6) var(--space-4) var(--space-3); color: #fff; font-size: 14px; font-weight: 700; background: linear-gradient(transparent, rgba(var(--color-scrim), 0.75)); }
.dg-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-5); position: relative; counter-reset: step; }
.dg-steps::before { content: ""; position: absolute; top: 28px; left: 28px; right: 10%; height: 2px; background: var(--color-line); }
.dg-step { position: relative; }
.dg-step__num { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface); border: 2px solid var(--color-primary); color: var(--color-primary); font-family: var(--font-num); font-size: 22px; font-weight: 500; margin-bottom: var(--space-5); }
.dg-step--key .dg-step__num { background: var(--color-primary); color: #fff; }
.dg-step__title { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: var(--space-2); word-break: auto-phrase; }
.dg-step p { font-size: 14px; line-height: 1.8; color: var(--color-text-muted); }
.dg-note { margin-top: var(--space-7); padding: var(--space-5) var(--space-6); border-radius: var(--radius-m); background: var(--color-surface); border: 1px solid var(--color-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.dg-note p { font-weight: 700; }
.dg-note small { display: block; font-size: 13px; font-weight: 400; color: var(--color-text-muted); }

/* ---------- 12. Target (full-bleed photo + keywords) ---------- */
.dg-target { min-height: clamp(560px, 70cqi, 760px); display: flex; align-items: center; padding-block: var(--section-pad); }
.dg-keywords { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--color-on-dark-line); margin-top: var(--space-8); }
.dg-keyword { padding: var(--space-6) var(--space-6) 0 0; }
.dg-keyword + .dg-keyword { padding-left: var(--space-6); border-left: 1px solid var(--color-on-dark-line); }
.dg-keyword__big { display: block; font-size: var(--fs-display); font-weight: 900; line-height: 1.2; margin-bottom: var(--space-3); }
.dg-keyword__big em { font-style: normal; color: var(--color-accent); }
.dg-keyword p { color: var(--color-on-dark-muted); }

/* ---------- 13. Kaz ---------- */
.dg-kaz { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-9); align-items: center; }
.dg-kaz__visual { position: relative; padding-bottom: var(--space-8); padding-right: var(--space-8); }
.dg-kaz__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-m); overflow: hidden; }
.dg-kaz__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 46% 50%); }
.dg-kaz__portrait { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: var(--radius-m); overflow: hidden; border: 6px solid var(--color-surface); }
.dg-kaz__portrait .dg-ph { height: 100%; }
.dg-quote { font-size: var(--fs-display); font-weight: 900; line-height: 1.35; margin-bottom: var(--space-6); word-break: auto-phrase; text-wrap: balance; }
.dg-quote::before { content: "“"; display: block; font-family: var(--font-num); font-size: 1.6em; line-height: 0.6; color: var(--color-accent); margin-bottom: var(--space-3); }
.dg-kaz__name { font-weight: 700; margin-bottom: var(--space-6); }
.dg-kaz__name small { display: block; font-size: 14px; font-weight: 400; color: var(--color-text-muted); }
.dg-timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-4); border-top: 1px solid var(--color-line); }
.dg-timeline li:last-child { border-bottom: 1px solid var(--color-line); }
.dg-timeline span { font-family: var(--font-num); color: var(--color-primary); font-size: 15px; letter-spacing: 0.06em; }
.dg-timeline p { font-weight: 700; }
.dg-timeline p small { display: block; font-weight: 400; font-size: 14px; color: var(--color-text-muted); }

/* ---------- 14. Stuttgart ---------- */
.dg-band { height: clamp(380px, 46cqi, 600px); display: flex; align-items: flex-end; padding-bottom: var(--space-8); }
.dg-band .dg-h2 { font-size: var(--fs-display); }
.dg-city { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-9); align-items: center; }
.dg-facts li { display: flex; gap: var(--space-4); padding-block: var(--space-4); border-top: 1px solid var(--color-on-dark-line); }
.dg-facts li:last-child { border-bottom: 1px solid var(--color-on-dark-line); }
.dg-facts svg { width: 22px; height: 22px; flex: none; color: var(--color-accent); margin-top: 4px; }
.dg-facts b { display: block; }
.dg-facts small { display: block; font-size: 14px; color: var(--color-on-dark-muted); }
.dg-map { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin-inline: auto; }
.dg-map__ring { position: absolute; border-radius: 50%; border: 1px dashed var(--color-on-dark-line); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.dg-map__ring--1 { width: 46%; height: 46%; }
.dg-map__ring--2 { width: 92%; height: 92%; }
.dg-map__ring-label { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--color-on-dark-muted); white-space: nowrap; }
.dg-map__pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--color-on-dark-muted); }
.dg-map__pin::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 4px rgba(15,107,58,0.35); }
.dg-map__pin--main { color: #fff; font-size: 15px; }
.dg-map__pin--main::before { width: 18px; height: 18px; background: var(--color-accent); box-shadow: 0 0 0 8px rgba(217,164,0,0.22); }
.dg-map__caption { text-align: center; font-size: 12px; color: var(--color-on-dark-muted); margin-top: var(--space-3); }

/* ---------- 15. Accordion ---------- */
.dg-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8); }
.dg-acc { border-top: 1px solid var(--color-line); }
.dg-acc details { border-bottom: 1px solid var(--color-line); }
.dg-acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 32px minmax(0, 1fr) 28px; gap: var(--space-3); align-items: center; min-height: 72px; padding-block: var(--space-4); font-weight: 700; font-size: 17px; line-height: 1.6; }
.dg-acc summary::-webkit-details-marker { display: none; }
.dg-acc summary:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.dg-acc__q { font-family: var(--font-num); font-size: 20px; color: var(--color-primary); }
.dg-acc__icon { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--color-primary); display: grid; place-items: center; color: var(--color-primary); transition: transform 300ms var(--ease-out), background-color 300ms; }
.dg-acc__icon svg { width: 14px; height: 14px; }
.dg-acc details[open] .dg-acc__icon { transform: rotate(45deg); background: var(--color-primary); color: #fff; }
.dg-acc__a { padding: 0 var(--space-7) var(--space-5) 44px; color: var(--color-text-muted); }

/* ---------- 16. Form ---------- */
.dg-form { display: grid; gap: var(--space-5); }
.dg-field { display: grid; gap: var(--space-2); }
.dg-field label { font-size: 14px; font-weight: 700; }
.dg-req { display: inline-block; margin-left: var(--space-2); padding: 0 6px; border-radius: 3px; background: var(--color-primary); color: #fff; font-size: 11px; line-height: 18px; }
.dg-input { width: 100%; min-height: 52px; padding: var(--space-3) var(--space-4); border: 1.5px solid var(--color-line); border-radius: var(--radius-s); background: var(--color-surface); font: 400 16px/1.6 var(--font-sans); color: var(--color-text); }
.dg-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(15,107,58,0.18); }
textarea.dg-input { min-height: 140px; resize: vertical; }
.dg-hint { font-size: 13px; color: var(--color-text-muted); }
.dg-check { display: flex; align-items: center; gap: var(--space-3); font-size: 14px; min-height: 44px; }
.dg-check input { width: 20px; height: 20px; accent-color: var(--color-primary); }

/* ---------- 17. CTA ---------- */
.dg-cta { min-height: clamp(560px, 62cqi, 760px); display: flex; align-items: center; text-align: center; }
.dg-cta .dg-container { display: flex; flex-direction: column; align-items: center; }
.dg-cta__title { font-size: var(--fs-display); font-weight: 900; line-height: 1.3; margin-bottom: var(--space-5); word-break: auto-phrase; text-wrap: balance; }
.dg-cta__sub { color: var(--color-on-dark-muted); margin-bottom: var(--space-7); }
.dg-cta__note { margin-top: var(--space-4); font-size: 13px; color: var(--color-on-dark-muted); }

/* ---------- 18. Footer ---------- */
.dg-footer { background: var(--color-base-deep); color: var(--color-on-dark-muted); padding-block: var(--space-9) var(--space-6); font-size: 14px; }
.dg-footer__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-8); padding-bottom: var(--space-8); border-bottom: 1px solid var(--color-on-dark-line); }
.dg-footer .dg-logo { color: #fff; margin-bottom: var(--space-4); }
.dg-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.dg-footer__cols h3 { font-size: 12px; letter-spacing: 0.14em; color: #fff; margin-bottom: var(--space-4); }
.dg-footer__cols a { display: block; padding-block: 6px; text-decoration: none; }
.dg-footer a:hover { color: #fff; }
.dg-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-5); font-size: 12px; }

/* ---------- 19. Narrow container (phones) ---------- */
@container dg (max-width: 767px) {
  .dg-header { --header-h: 60px; height: 60px; }
  .dg-hero { margin-top: -60px; height: clamp(620px, 100svh, 780px); }
  .dg-mobile-menu { top: 60px; }
  .dg-nav, .dg-header__cta { display: none; }
  .dg-menu-btn { display: inline-flex; }
  .dg-logo__text { font-size: 22px; }
  .dg-photo img, .dg-about__photo img, .dg-trio img, .dg-kaz__photo img { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .dg-hero__ctas { flex-direction: column; align-items: stretch; }
  .dg-hero__ctas .dg-btn { width: 100%; }
  .dg-scroll-cue { display: none; }
  .dg-head { margin-bottom: var(--space-7); }
  .dg-about__grid, .dg-kaz, .dg-city, .dg-faq, .dg-footer__top { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .dg-about__photo { aspect-ratio: 4 / 5; }
  .dg-cards { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .dg-card { padding: var(--space-6) var(--space-5); display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--space-4); }
  .dg-card__num { font-size: 34px; grid-row: span 2; margin: 0; }
  .dg-trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dg-trio figure:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
  .dg-trio figure { aspect-ratio: 3 / 4; }
  .dg-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dg-steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .dg-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--space-5); padding-bottom: var(--space-6); }
  .dg-step__num { grid-row: span 2; margin: 0; }
  .dg-target { min-height: 760px; align-items: flex-end; }
  .dg-keywords { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-6); }
  .dg-keyword, .dg-keyword + .dg-keyword { padding: var(--space-5) 0; border-left: 0; border-bottom: 1px solid var(--color-on-dark-line); }
  .dg-kaz__visual { padding-right: var(--space-7); padding-bottom: var(--space-7); }
  .dg-band { height: 520px; }
  .dg-cta { min-height: 680px; }
  .dg-acc summary { font-size: 16px; grid-template-columns: 26px minmax(0, 1fr) 28px; }
  .dg-acc__a { padding: 0 0 var(--space-5) 38px; }
  .dg-footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@container dg (min-width: 768px) and (max-width: 1080px) {
  .dg-nav { gap: var(--space-4); }
  .dg-nav a { font-size: 14px; }
  .dg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-7); }
  .dg-steps::before { display: none; }
}

/* ---------- 20. Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .dg *, .dg *::before, .dg *::after { animation: none !important; transition: none !important; }
}
.dg--still *, .dg--still *::before, .dg--still *::after { animation: none !important; }
