:root {
  --ink: #17212b;
  --muted: #556270;
  --line: #d9e0e5;
  --surface: #ffffff;
  --canvas: #f5f7f8;
  --blue: #0b5cab;
  --blue-dark: #063b70;
  --sky: #e8f3ff;
  --green: #146c52;
  --green-soft: #e9f6f0;
  --amber: #9a5b00;
  --amber-soft: #fff4df;
  --red: #9c3531;
  --red-soft: #fcebea;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 { line-height: 1.18; }

h1 { font-size: 44px; }
h2 { font-size: 30px; }
h3 { font-size: 19px; }

button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: #fff;
  border: 2px solid var(--blue);
}

.skip-link:focus { top: 12px; }

.site-bar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(20px, calc((100% - var(--max)) / 2));
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; color: var(--blue-dark); text-decoration: none; }
.brand__logo { display: block; width: 176px; max-width: min(42vw, 176px); height: auto; }
.site-bar__actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 22px; }
.site-bar__link { color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-bar__link:hover, .site-bar__link:focus-visible { text-decoration: underline; }
.language-switch { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid #b9c7d5; border-radius: 4px; background: #fff; }
.language-switch__button { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 30px; padding: 4px 8px; color: #526b82; font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none; }
.language-switch__button + .language-switch__button { border-left: 1px solid #b9c7d5; }
.language-switch__button:hover, .language-switch__button:focus-visible { color: var(--blue); background: #edf6ff; }
.language-switch__button.is-active { color: #fff; background: var(--blue); }

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  color: #fff;
  background: url('../images/eurovizion-av15l-first-launch.webp') center center / cover no-repeat;
}

.hero__scrim { position: absolute; inset: 0; background: rgba(5, 34, 60, .54); }
.hero__content { position: relative; z-index: 1; max-width: 690px; padding: 52px 0; }
.eyebrow { margin-bottom: 12px; color: var(--blue); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.hero .eyebrow { color: #c5e3ff; }
.hero h1 { max-width: 620px; }
.hero__lead { max-width: 590px; margin-top: 20px; font-size: 19px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 28px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; font-size: 16px; font-weight: 700; text-decoration: none; }
.button--light { color: var(--blue-dark); background: #fff; }
.button--light:hover, .button--light:focus-visible { background: #e7f3ff; }

.priority { padding: 72px 0; background: #fff; }
.section-heading { max-width: 760px; }
.section-heading > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }
.priority-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.priority-card { min-height: 236px; padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 6px; background: #fff; }
.priority-card--test { border-top-color: var(--blue); }
.priority-card--safety { border-top-color: var(--red); }
.priority-card--charge { border-top-color: var(--amber); }
.priority-card--map { border-top-color: var(--green); }
.priority-card__number { display: block; margin-bottom: 34px; color: var(--muted); font-size: 13px; font-weight: 700; }
.priority-card h3 { min-height: 2.36em; margin-bottom: 10px; }
.priority-card p { color: var(--muted); font-size: 15px; }

.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 54px; padding: 72px 0 96px; }
.guide-nav { position: sticky; top: 20px; align-self: start; padding: 18px 0; }
.guide-nav__title { margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.guide-nav nav { display: grid; gap: 2px; border-left: 2px solid var(--line); }
.guide-nav a { padding: 7px 10px; color: var(--muted); font-size: 14px; text-decoration: none; }
.guide-nav a:hover, .guide-nav a:focus-visible, .guide-nav a.is-active { color: var(--blue); background: var(--sky); font-weight: 700; }

.guide-article { min-width: 0; }
.content-section { scroll-margin-top: 22px; padding: 0 0 66px; }
.content-section + .content-section { padding-top: 6px; border-top: 1px solid var(--line); }
.step-list { display: grid; gap: 0; margin: 30px 0; padding: 0; list-style: none; counter-reset: none; }
.step-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step-list li > span { display: grid; place-items: center; width: 32px; height: 32px; color: var(--blue-dark); background: var(--sky); border-radius: 50%; font-weight: 700; }
.step-list h3 { margin-bottom: 5px; }
.step-list p { color: var(--muted); }

.notice { margin-top: 26px; padding: 20px 22px; border-left: 4px solid var(--blue); border-radius: 0 6px 6px 0; }
.notice strong { display: block; margin-bottom: 6px; }
.notice p { color: var(--muted); }
.notice ul { margin: 12px 0; padding-left: 20px; color: var(--muted); }
.notice li + li { margin-top: 6px; }
.notice--safety { border-color: var(--red); background: var(--red-soft); }
.notice--info { border-color: var(--blue); background: var(--sky); }
.notice--reb { border-color: var(--amber); background: var(--amber-soft); }
.notice--warning { border-color: var(--amber); background: var(--amber-soft); }
.notice--indoor { border-color: #0d6b78; background: #e7f6f7; }

.procedure { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.procedure__tag { margin-bottom: 7px; color: var(--blue); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.procedure h3 { margin-bottom: 12px; }
.procedure > p { color: var(--muted); }
.procedure ol, .procedure ul { margin: 16px 0 0; padding-left: 22px; }
.procedure li { padding-left: 3px; }
.procedure li + li { margin-top: 8px; }
.procedure--compact { margin-bottom: 6px; }

.guide-figure { margin: 26px 0 42px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.guide-figure a { display: block; cursor: zoom-in; }
.guide-figure a:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.guide-figure img { display: block; width: 100%; height: auto; }
.guide-figure figcaption { padding: 12px 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }

body.is-lightbox-open { overflow: hidden; }
.guide-lightbox { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; }
.guide-lightbox[hidden] { display: none; }
.guide-lightbox__backdrop { position: absolute; inset: 0; background: rgba(7, 22, 38, .82); }
.guide-lightbox__panel { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(1180px, 100%); height: min(820px, 100%); overflow: hidden; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; background: #12263a; box-shadow: 0 22px 64px rgba(0, 0, 0, .45); }
.guide-lightbox__toolbar { display: flex; justify-content: flex-end; gap: 8px; padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.guide-lightbox__button { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 34px; padding: 4px 9px; color: #fff; border: 1px solid rgba(255, 255, 255, .42); border-radius: 4px; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.guide-lightbox__button:hover, .guide-lightbox__button:focus-visible { background: rgba(255, 255, 255, .16); }
.guide-lightbox__button--close { margin-left: 8px; }
.guide-lightbox__stage { display: grid; place-items: center; overflow: auto; padding: 18px; }
.guide-lightbox__stage img { display: block; width: var(--guide-lightbox-width, 100%); max-width: none; height: auto; transition: width .16s ease; }

.checklist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.checklist-grid article { padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 6px; background: #fff; }
.checklist-grid p { margin-top: 10px; color: var(--muted); }

.explain-grid, .use-grid, .status-checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.explain-grid article, .use-grid article, .status-checklist article { padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.explain-grid p, .use-grid p, .status-checklist p { margin-top: 10px; color: var(--muted); }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.comparison > div { padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.comparison > div:first-child { border-top: 4px solid var(--green); }
.comparison > div:last-child { border-top: 4px solid var(--amber); }
.comparison__label { color: var(--muted); font-size: 14px; }
.comparison strong { display: block; margin: 6px 0; font-size: 19px; }
.comparison span, .fine-print { color: var(--muted); }
.fine-print { margin-top: 15px; font-size: 14px; }

.status-checklist { grid-template-columns: repeat(3, 1fr); }
.status-checklist span { display: inline-block; margin-bottom: 18px; color: var(--blue); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.use-grid { grid-template-columns: repeat(2, 1fr); }
.use-grid--three { grid-template-columns: repeat(3, 1fr); }

.info-panel { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.info-panel h3 { margin-bottom: 10px; }
.info-panel ol { margin: 0; padding-left: 20px; }
.info-panel li + li { margin-top: 6px; }
.info-panel a { color: var(--blue); font-weight: 700; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.app-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid #9cc7ee; border-radius: 6px; background: var(--sky); text-decoration: none; }
.app-links a:hover, .app-links a:focus-visible { background: #d9ecff; }
.model-note { margin-top: 20px; padding: 16px 18px; color: var(--ink); border-left: 4px solid var(--amber); background: var(--amber-soft); }
.mode-list, .care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.mode-list article, .care-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.mode-list p, .care-grid p { margin-top: 10px; color: var(--muted); }
.cabinet-inline-link { color: var(--blue); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cabinet-inline-link:hover, .cabinet-inline-link:focus-visible { color: var(--blue-dark); }
.cabinet-panel { margin-top: 28px; padding: 30px; color: #fff; border-radius: 6px; background: var(--blue-dark); }
.cabinet-panel__tag { margin-bottom: 7px; color: #9dd5ff; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.cabinet-panel h3 { max-width: 620px; }
.cabinet-panel > p:not(.cabinet-panel__tag):not(.cabinet-panel__note) { max-width: 720px; margin-top: 12px; color: #d4e8f9; }
.cabinet-panel ul { margin: 18px 0 0; padding-left: 20px; color: #fff; }
.cabinet-panel li + li { margin-top: 6px; }
.cabinet-panel .button { margin-top: 22px; }
.cabinet-panel__note { margin-top: 16px; color: #d4e8f9; font-size: 14px; }
.no-wrap { white-space: nowrap; }
.priority-card--charge .no-wrap { display: inline-block; }

.diagnostic-list, .faq-list { display: grid; gap: 10px; margin-top: 28px; }
details { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
details[open] { border-color: #b9d7f3; }
summary { position: relative; padding: 17px 48px 17px 18px; cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; right: 18px; content: '+'; color: var(--blue); font-size: 25px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: '-'; }
details > div { padding: 0 18px 18px; color: var(--muted); }

.support-panel { padding: 36px; color: #fff; background: var(--blue-dark); border-radius: 6px; }
.support-panel .eyebrow { color: #9dd5ff; }
.support-panel h2 { max-width: 680px; }
.support-panel ul { margin: 20px 0; padding-left: 20px; }
.support-panel li { margin: 6px 0; }
.support-panel > p:last-child { color: #d4e8f9; }

@media (max-width: 900px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .priority-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-layout { grid-template-columns: 1fr; gap: 22px; }
  .guide-nav { position: static; padding: 0; }
  .guide-nav nav { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; }
  .guide-nav a { border: 1px solid var(--line); }
  .use-grid--three, .mode-list, .care-grid, .checklist-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 25px; }
  h3 { font-size: 18px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .site-bar { min-height: 56px; padding: 10px 16px; gap: 10px; }
  .brand__logo { width: 140px; }
  .site-bar__actions { gap: 12px; }
  .site-bar__link { font-size: 13px; }
  .hero { min-height: 520px; background-position: 64% center; }
  .hero__scrim { background: rgba(5, 34, 60, .64); }
  .hero__content { padding: 58px 0; }
  .hero__lead { font-size: 17px; }
  .priority { padding: 48px 0; }
  .priority-grid, .explain-grid, .status-checklist, .use-grid, .use-grid--three, .comparison, .mode-list, .care-grid, .checklist-grid { grid-template-columns: 1fr; }
  .priority-card { min-height: 0; }
  .priority-card h3 { min-height: 0; }
  .priority-card__number { margin-bottom: 20px; }
  .guide-layout { padding: 48px 0 64px; }
  .guide-nav nav { grid-template-columns: 1fr; }
  .content-section { padding-bottom: 48px; }
  .support-panel { padding: 26px 22px; }
  .guide-lightbox { padding: 12px; }
  .guide-lightbox__panel { height: min(760px, 100%); }
  .guide-lightbox__stage { padding: 10px; }
}
