/* Ес Пи Баланс: styles for every page. Colours and type follow the design in Claude
   (navy #14225C, gold #E0A82E, Literata for headings, Sofia Sans for text). */

/* Fonts, served from this site (no requests to Google). Both are variable fonts. */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/literata-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/literata-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/literata-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/literata-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/sofia-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Sofia Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/sofia-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #14225C;
  --navy-dark: #0D1745;
  --gold: #E0A82E;
  --gold-dark: #CC951C;
  --ink: #3A4363;
  --muted: #5A6382;
  --line: #DCE0EA;
  --line-strong: #C5CBDB;
  --line-faint: #EDEFF5;
  --field: #A9B1C7;
  --soft: #F4F5F9;
  --tint: #EEF0F7;
  --on-dark: #C9CFE3;
  --on-dark-link: #E6E9F2;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Sofia Sans', 'Segoe UI', system-ui, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy); color: #FFFFFF; }
.section--cta { padding: clamp(56px, 7vw, 96px) 0; }
.section--after-intro { padding-top: 0; }
.intro { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }

.stack { display: flex; flex-direction: column; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-18 { gap: 18px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-28 { gap: 28px; }
.gap-48 { gap: 48px; }
.measure-640 { max-width: 640px; }
.measure-620 { max-width: 620px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.split--380 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: clamp(32px, 5vw, 80px); }
.split--420 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

/* Type */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before,
.rule::before {
  content: "";
  flex: none;
  width: 28px;
  height: 0;
  border-top: 6px double var(--gold);
}
.section--dark .eyebrow { color: var(--on-dark); }
.rule { display: flex; }
.rule--32::before { width: 32px; }
.rule--40::before { width: 40px; border-top-width: 9px; }
.rule--56::before { width: 56px; border-top-width: 9px; }

.display {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.display--hero { font-size: clamp(40px, 5.2vw, 68px); }
.display--about { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.1; }
.mark-balance {
  display: inline-block;
  line-height: 1;
  padding-bottom: 4px;
  border-bottom: 8px double var(--gold);
}

.title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-wrap: balance;
}
.title--md { font-size: clamp(30px, 3.4vw, 46px); }
.title--sm { font-size: clamp(30px, 3.4vw, 44px); }
.section--dark .title { color: #FFFFFF; }

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 40em;
  text-wrap: pretty;
}
.lead--hero { max-width: 34em; }
.lead--about { font-size: clamp(19px, 1.6vw, 22px); max-width: 36em; }
.text { font-size: 18px; line-height: 1.6; color: var(--ink); }
.text--narrow { max-width: 30em; }
.section--dark .text { color: var(--on-dark); }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink); }

/* Numbers with the double gold rule (01, 02, ...) */
.num {
  align-self: flex-start;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 6px double var(--gold);
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:disabled { cursor: progress; opacity: 0.75; }
.btn--primary { background: var(--navy); color: #FFFFFF; }
.btn--primary:hover { background: var(--navy-dark); }
.btn--outline { padding: 0 24px; background: #FFFFFF; border-color: var(--line-strong); color: var(--navy); }
.btn--outline:hover { border-color: var(--navy); }
.btn--gold { background: var(--gold); color: var(--navy); font-weight: 700; }
.btn--gold:hover { background: var(--gold-dark); }
.btn--ghost-light { padding: 0 24px; border-color: rgba(255, 255, 255, 0.4); color: #FFFFFF; }
.btn--ghost-light:hover { border-color: #FFFFFF; }
.btn--small { min-height: 46px; padding: 0 22px; font-size: 16px; white-space: nowrap; }
.btn--block { justify-content: center; min-height: 52px; padding: 0 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
}
.link-arrow:hover { border-bottom-color: var(--navy); }

/* Header */
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.site-header__bar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: flex;
  align-items: flex-end;
  gap: 0.24em;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark__lead { padding-bottom: 5px; }
.wordmark__accent { padding-bottom: 2px; border-bottom: 3px double var(--gold); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { font-weight: 700; color: var(--navy); border-bottom-color: var(--gold); }

.site-header__actions { display: flex; align-items: center; gap: 20px; }
.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.phone-link:hover span { text-decoration: underline; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--line);
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line-faint);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.mobile-menu__link[aria-current="page"] { font-weight: 700; color: var(--navy); }
.mobile-menu .phone-link { gap: 10px; min-height: 56px; font-size: 18px; }

@media (max-width: 1119px) {
  .site-nav, .site-header__actions { display: none; }
  .menu-toggle { display: flex; }
}
@media (min-width: 1120px) {
  .mobile-menu { display: none !important; }
}

/* Footer */
.site-footer { background: var(--navy); color: #FFFFFF; }
.site-footer__inner { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 56px; }
.site-footer .wordmark { align-self: flex-start; color: #FFFFFF; font-size: 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 40px;
}
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--on-dark); }
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-list { display: flex; flex-direction: column; gap: 4px; font-size: 16px; color: var(--on-dark-link); }
.footer-list a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--on-dark-link);
  text-decoration: none;
}
.footer-list a:hover { text-decoration: underline; }
.footer-list__text { min-height: 32px; display: flex; align-items: center; }
.footer-list__hours { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.footer-list__hours small { font-size: 14px; color: var(--on-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--on-dark);
}

/* Home: hero with the deadlines card */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 8vw, 112px); }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: clamp(48px, 5vw, 80px);
  align-items: center;
}
.deadlines {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(20, 34, 92, 0.10);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.deadlines .eyebrow { font-size: 12px; }
.deadlines .eyebrow::before { width: 24px; }
.deadlines__list { margin-top: 8px; }
.deadlines__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.deadlines__date {
  flex: 0 0 auto;
  min-width: 96px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}
.deadlines__what { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.deadlines__title { font-size: 17px; font-weight: 600; }
.deadlines__note { font-size: 15px; color: var(--muted); }
.deadlines__foot { display: flex; align-items: center; gap: 12px; padding-top: 18px; font-size: 15px; color: var(--ink); }

/* Home: service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}
.service-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__title { font-family: var(--serif); font-size: 23px; font-weight: 600; }
.service-card p { font-size: 16px; line-height: 1.6; color: var(--ink); }
.service-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  align-self: flex-start;
  color: var(--navy);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.service-card__link:hover span { text-decoration: underline; }

/* Steps and numbered items */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
}
.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step h3 { margin-top: 4px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.step p { font-size: 16px; line-height: 1.6; color: var(--ink); }
.steps--two { gap: 16px; }
.steps--two .step { padding-top: 20px; }
.steps--two .step h3 { margin-top: 0; line-height: 1.3; }

/* Feature list on the dark sections */
.features { display: flex; flex-direction: column; }
.feature {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.feature h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #FFFFFF; }
.feature p { font-size: 16px; line-height: 1.6; color: var(--on-dark); }
.features--large .feature p { font-size: 17px; }

/* Accordions (questions, services): <details> with one item open at a time */
.accordion { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.acc { border-bottom: 1px solid var(--line-strong); }
.acc > summary { list-style: none; cursor: pointer; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:focus-visible { outline-offset: 0; }
.acc__q {
  min-height: 72px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}
.acc[open] .acc__plus { display: none; }
.acc__a { padding: 0 48px 24px 0; font-size: 17px; line-height: 1.65; color: var(--ink); }

.svc__head {
  padding: 28px 0;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-weight: 400;
}
.svc__head .num { flex: none; align-self: flex-start; margin-top: 6px; }
.svc__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.svc__title { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.2; color: var(--navy); }
.svc__desc { font-size: 16px; line-height: 1.55; color: var(--ink); }
.svc__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.acc > summary:hover .svc__icon { border-color: var(--navy); }
.svc__panel { padding: 0 0 32px clamp(0px, 5vw, 66px); }
.svc__box {
  background: var(--soft);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.svc__box h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 12px 32px;
}
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.5; color: var(--navy); }
.checklist svg { margin-top: 2px; }

/* About */
.intro--about { padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.intro__body { max-width: 920px; }
.signature { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 16px; }
.signature::before { content: ""; flex: none; width: 40px; height: 0; border-top: 6px double var(--gold); }
.signature__name { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.signature__role { color: var(--muted); }
.mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}
.mini-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mini-card p { font-size: 17px; line-height: 1.65; color: var(--ink); }
.mini-card strong { font-weight: 700; color: var(--navy); }
.quote {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.quote blockquote {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.quote figcaption { font-family: var(--serif); font-size: 18px; font-weight: 600; }

/* Questions and contact pages: content next to an aside */
.with-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(40px, 5vw, 72px);
}
.with-aside__main { flex: 999 1 560px; min-width: 0; }
.with-aside__side { flex: 1 1 340px; min-width: 0; }
.with-aside--contact { gap: clamp(32px, 4vw, 56px); }
.with-aside--contact .with-aside__main { flex-basis: 600px; }

.ask-box {
  background: var(--soft);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ask-box h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; }
.ask-box p { font-size: 16px; line-height: 1.6; color: var(--ink); }
.ask-box__done {
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.6;
}
.ask-box__done:focus { outline: none; }

/* Forms */
.form-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(24px, 3.5vw, 44px);
}
.form { display: flex; flex-direction: column; gap: 22px; }
.form--compact { gap: 16px; }
.form h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 15px; font-weight: 600; color: var(--navy); }
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--field);
  border-radius: 4px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  color: var(--navy);
}
select.input { padding: 0 12px; }
textarea.input { min-height: 140px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
fieldset.field { margin: 0; padding: 0; border: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  color: var(--navy);
  cursor: pointer;
}
.choice input, .consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--navy);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}
.consent input { flex: none; margin-top: 2px; }
.consent a { color: var(--navy); font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-error {
  padding: 14px 16px;
  background: #FDF4E2;
  border: 1px solid #E8C77B;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--navy);
}
.form-error a { font-weight: 600; }
/* Filled only by bots; people never see it. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-done { display: flex; flex-direction: column; gap: 14px; padding: 24px 0; }
.form-done:focus { outline: none; }
.form-done h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.form-done p { font-size: 18px; line-height: 1.6; color: var(--ink); }

/* Contact details card and map */
.contact-card {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-card h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { margin-top: 1px; color: var(--gold); }
.contact-list__body { display: flex; flex-direction: column; gap: 2px; }
.contact-list__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.contact-list__value { font-size: 17px; color: #FFFFFF; text-decoration: none; }
a.contact-list__value:hover { text-decoration: underline; }
.contact-list__note { font-size: 15px; color: var(--on-dark); }
.map-card {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  border: 1px solid var(--line);
  background-color: var(--soft);
  background-image:
    repeating-linear-gradient(0deg, transparent 0px, transparent 31px, #E1E5EE 31px, #E1E5EE 32px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 31px, #E1E5EE 31px, #E1E5EE 32px);
  overflow: hidden;
}
.map-card__frame { display: block; width: 100%; height: 100%; border: 0; }

/* Plain text pages (privacy policy) */
.doc { max-width: 760px; display: flex; flex-direction: column; gap: 36px; }
.doc section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.doc h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.3; }
.doc p, .doc li { font-size: 17px; line-height: 1.7; color: var(--ink); }
.doc ul { list-style: disc; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }
.doc a { color: var(--navy); font-weight: 600; }
.doc-updated { font-size: 15px; color: var(--muted); }

/* News: the list (/novini/) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn--md { min-height: 48px; padding: 0 22px; font-size: 16px; }
.intro--news { padding-bottom: clamp(28px, 3vw, 40px); }
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.news-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.news-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
  color: var(--navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.news-tab:hover { border-color: var(--navy); }
.news-tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.news-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 13px;
  font-weight: 700;
}
.news-tab[aria-pressed="true"] .news-tab__count { background: rgba(255, 255, 255, 0.18); }
.news-search { position: relative; flex: 1 1 320px; max-width: 440px; }
.news-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.news-search__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px 0 48px;
  border: 1px solid var(--field);
  border-radius: 999px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  color: var(--navy);
  -webkit-appearance: none;
  appearance: none;
}
.news-search__input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.news-result { font-size: 15px; color: var(--muted); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}
.news-grid:empty { display: none; }
.news-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.news-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.tag--eu { background: #FBF0D6; color: #6B4A00; }
.news-card__title { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
h3.news-card__title { font-size: 21px; }
.news-card__title a { color: var(--navy); text-decoration: none; }
.news-card__title a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.news-card p { font-size: 16px; line-height: 1.6; color: var(--ink); }
.news-card__more {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.news-card__more:hover span { text-decoration: underline; }
.news-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.news-empty h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.news-empty p { max-width: 32em; font-size: 16px; line-height: 1.6; color: var(--ink); }
.news-empty .btn-row { justify-content: center; gap: 12px; margin-top: 6px; }

/* News: one article (/novini/<slug>/) */
.gap-22 { gap: 22px; }
.gap-32 { gap: 32px; }
.article__head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); }
.article__column { max-width: 760px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.crumbs a:hover { border-bottom-color: var(--navy); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 15px; color: var(--muted); }
.article__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.article__lead { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.article__main { padding-bottom: clamp(56px, 7vw, 96px); }
.article__text {
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.back-link {
  margin-top: 16px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.back-link:hover span { text-decoration: underline; }
.title--related { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }

/* An article's text (the Markdown from the editor) */
.article-body { display: flex; flex-direction: column; gap: 22px; }
.article-body h2 { margin-top: 16px; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; line-height: 1.25; }
.article-body h3 { margin-top: 8px; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; }
.article-body > :first-child { margin-top: 0; }
.article-body p { font-size: 18px; line-height: 1.75; color: var(--ink); }
.article-body ul, .article-body ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body strong { font-weight: 700; color: var(--navy); }
.article-body a { color: var(--navy); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.article-body blockquote {
  margin: 12px 0 0;
  background: var(--soft);
  border-radius: 6px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-body blockquote::before { content: ""; width: 32px; height: 0; border-top: 6px double var(--gold); }
.article-body blockquote p { font-size: 16px; line-height: 1.65; color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
