/* ==========================================================================
   GRATA International Association — main stylesheet
   Rebuilt from gi.gratanet.com (Tilda) as hand-written CSS.
   ========================================================================== */

/* ---------- Fonts (TT Norms Pro — client-licensed, self-hosted) ---------- */
@font-face { font-family: "TTNormsPro"; src: url("/assets/fonts/TTNormsPro-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "TTNormsPro"; src: url("/assets/fonts/TTNormsPro-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TTNormsPro"; src: url("/assets/fonts/TTNormsPro-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "TTNormsPro"; src: url("/assets/fonts/TTNormsPro-DemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "TTNormsPro"; src: url("/assets/fonts/TTNormsPro-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TTNormsPro"; src: url("/assets/fonts/TTNormsPro-ExtraBold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy: #050f38;
  --navy-2: #000080;
  --blue: #3c82f6;
  --blue-2: #3179ff;
  --blue-3: #5c91ce;
  --blue-soft: #eaf1fe;
  --text: #5a5a5a;
  --text-dark: #2a2a2a;
  --muted: #8a8a8a;
  --line: #e3e3e3;
  --bg-light: #f2f2f2;
  --white: #fff;
  --danger: #d23f3f;
  --success: #1f9d55;
  --font: "TTNormsPro", Arial, Helvetica, sans-serif;
  --container: 1200px;
  --gutter: 20px;
  --radius: 8px;
  --header-h: 90px;
  --shadow: 0 2px 3px rgba(0, 11, 48, .25);
  --shadow-lg: 0 10px 30px rgba(0, 11, 48, .15);
  --shadow-hover: 0 10px 20px rgba(0, 11, 48, .25);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--text-dark); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
a { color: var(--blue); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { opacity: .8; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.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; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 4px; z-index: 1000; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 960px; }
.section { padding: 80px 0; }
.section--sm { padding: 50px 0; }
.section--light { background: var(--bg-light); }
.section-title { font-size: 42px; text-align: center; margin-bottom: 40px; color: var(--text-dark); }
.section-title--blue { color: var(--blue); }
.section-title--navy { color: var(--navy-2); }
.section-title--upper { text-transform: uppercase; letter-spacing: .5px; font-size: 30px; }
.text-center { text-align: center; }
.lead { font-size: 20px; line-height: 1.5; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.link-blue { color: var(--blue); font-weight: 600; }
strong { color: var(--text-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 40px; border-radius: 30px;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn--outline { color: var(--blue); border-color: var(--blue); background: #fff; box-shadow: var(--shadow); }
.btn--outline:hover { background: var(--blue); color: #fff; box-shadow: var(--shadow-hover); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-2); color: #fff; }
.btn--dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--dark:hover { background: #0b1a5c; color: #fff; }
.btn--outline-dark { color: var(--navy); border-color: var(--navy); background: #fff; }
.btn--outline-dark:hover { background: var(--navy); color: #fff; }
.btn--ghost { color: #fff; border-color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--text-dark); }
.btn--grey { background: var(--bg-light); color: var(--text); box-shadow: var(--shadow); }
.btn--grey:hover { background: var(--blue); color: #fff; box-shadow: var(--shadow-hover); }
.btn--link { background: none; border: 0; color: var(--text-dark); padding: 0 12px; }
.btn--sm { min-height: 40px; padding: 0 20px; font-size: 14px; border-radius: 6px; }
.btn--xs { min-height: 34px; padding: 0 16px; font-size: 13px; border-radius: 6px; }
.btn--lg { min-height: 56px; padding: 0 50px; font-size: 18px; }
.btn--block { width: 100%; }
.btn-text { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-dark); font-size: 16px; }
.btn-text::after { content: "\2192"; font-size: 20px; line-height: 1; transition: transform .2s; }
.btn-text:hover { color: var(--blue); opacity: 1; }
.btn-text:hover::after { transform: translateX(4px); }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 10px 40px -2px rgba(0, 11, 48, .3); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.site-header__logo img { width: 130px; height: auto; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav__item { position: relative; }
.site-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 13px; background: none; border: 0;
  font-family: var(--font); font-size: 12px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text); text-decoration: none; cursor: pointer; transition: color .3s;
}
/* Hover / current page: blue text + thin blue underline that slides in (as on the original site) */
.site-nav__link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 9px; height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left center; transition: transform .3s;
}
.site-nav__link:hover, .site-nav__item:hover > .site-nav__link, .site-nav__item.is-active > .site-nav__link { color: var(--blue); opacity: 1; }
.site-nav__link:hover::after, .site-nav__item:hover > .site-nav__link::after, .site-nav__item.is-active > .site-nav__link::after { transform: scaleX(1); }
/* Dropdown arrow is a static indicator: it never rotates */
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
/* Dropdown: plain white box, square corners, pointer triangle, opens on hover */
.site-nav__sub {
  list-style: none; margin: 0; padding: 18px 20px; position: absolute; top: calc(100% + 20px); left: 50%;
  min-width: 150px; display: grid; gap: 12px; background: #fff; border-radius: 0;
  opacity: 0; visibility: hidden; transform: translateX(-50%); transition: opacity .2s cubic-bezier(.895, .03, .685, .22), visibility .2s;
}
.site-nav__sub::before { content: ""; position: absolute; top: -20px; left: 50%; margin-left: -10px; border: 10px solid transparent; border-bottom-color: #fff; }
/* invisible bridge so the menu stays open while the pointer travels from the link to it */
.site-nav__item.has-sub::after { content: ""; position: absolute; left: -6px; right: -6px; top: 100%; height: 24px; }
.site-nav__item:hover > .site-nav__sub { opacity: 1; visibility: visible; }
/* Keyboard users: open while focus is inside (focus-visible, so a mouse click doesn't pin it open).
   Kept in separate rules: a browser that doesn't know :has() then ignores only these. */
.site-nav__item:has(:focus-visible) > .site-nav__sub { opacity: 1; visibility: visible; }
.site-nav__item:has(:focus-visible) > .site-nav__link { color: var(--blue); }
.site-nav__item:has(:focus-visible) > .site-nav__link::after { transform: scaleX(1); }
.site-nav__sub a { display: block; padding: 0; font-size: 11px; font-weight: 400; line-height: 1.35; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; color: var(--text); transition: color .2s; }
.site-nav__sub a:hover, .site-nav__sub a.is-active { color: var(--blue); opacity: 1; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 8px; background: none; border: 0; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--text-dark); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; }
.user-chip__avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0; }

/* ---------- Page hero ---------- */
.hero {
  position: relative; min-height: 360px; display: flex; align-items: center;
  background-color: var(--navy); background-size: cover; background-position: center; color: #fff;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.6)); }
.hero--dark::before { background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.7)); }
.hero .container { position: relative; }
.hero__title { color: #fff; font-size: 64px; font-weight: 700; text-transform: uppercase; line-height: 1.1; margin: 0; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero--center { min-height: 434px; text-align: center; }
.hero--center .hero__title { font-size: 60px; line-height: 1.15; }
.hero--center::before { background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)); }

/* ---------- Home slider ---------- */
.slider { position: relative; height: 715px; overflow: hidden; background: var(--navy); }
.slider__track { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  background-size: cover; background-position: center; color: #fff; opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.slide::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.slide__inner { position: relative; padding: 0 20px; }
.slide__title { color: #fff; font-size: 56px; font-weight: 700; margin: 0 0 40px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.slide .btn { min-height: 56px; padding: 0 50px; font-size: 20px; font-weight: 500; }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--text-dark);
  display: flex; align-items: center; justify-content: center; font-size: 22px; transition: background .2s;
}
.slider__arrow:hover { background: #fff; }
.slider__arrow--prev { left: 24px; }
.slider__arrow--next { right: 24px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.slider__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); transition: background .2s, transform .2s; }
.slider__dot.is-active { background: #fff; transform: scale(1.15); }

/* ---------- Stats ---------- */
.stats { padding: 50px 0 30px; }
.stats__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 60px; }
.stat { display: flex; align-items: center; gap: 12px; color: var(--blue); text-decoration: none; }
.stat__icon { width: 44px; height: 44px; }
.stat__num { font-size: 28px; font-weight: 700; color: var(--blue-2); line-height: 1; }
.stat__label { display: block; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-top: 4px; }

/* ---------- Video + text block ---------- */
.video-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed--lite { cursor: pointer; }
.video-embed--lite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-embed--lite::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: rgba(255,0,0,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat; border-radius: 14px; transition: background .2s; }
.video-embed--lite:hover::after { background-color: #f00; }
.video-split__text p { font-size: 15px; line-height: 1.6; }
.video-split--top { align-items: start; gap: 46px; }

/* ---------- Split (image + text halves) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 630px; }
.split__text { display: flex; flex-direction: column; justify-content: center; padding: 60px clamp(24px, 6vw, 80px); background: var(--bg-light); }
.split__title { font-size: 32px; color: var(--blue); margin-bottom: 24px; }
.split__text p { font-size: 15px; line-height: 1.6; max-width: 520px; }
.split__media { background-size: cover; background-position: center; min-height: 320px; }
.split__media--round-tr { border-top-right-radius: 30px; }
.split__media--round-bl { border-bottom-left-radius: 30px; }
.split .btn-text { margin-top: 20px; align-self: flex-start; }

/* ---------- Cooperate ---------- */
.cooperate { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 170px 0; }
.cooperate__text { text-align: center; }
.cooperate__title { color: var(--navy-2); font-size: 30px; }
.cooperate__text p { font-size: 15px; max-width: 460px; margin: 0 auto 30px; }
.cooperate__btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cooperate__btns .btn { min-height: 44px; padding: 0 28px; font-size: 14px; box-shadow: 0 6px 14px rgba(0, 11, 48, .18); }
.cooperate__btns .btn:hover { box-shadow: 0 10px 20px rgba(0, 11, 48, .25); }
.cooperate__media { text-align: center; }
.cooperate__media img { width: 100%; max-width: 460px; }
.cooperate__text .cooperate__tag { margin: 32px auto 0; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 110px 0 60px; text-align: center; }
.site-footer__title { color: #fff; font-size: 38px; margin-bottom: 30px; }
.site-footer__text { max-width: 620px; margin: 0 auto 40px; font-size: 16px; font-weight: 500; }
.site-footer a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.footer-links { display: flex; justify-content: center; align-items: flex-start; margin: 0 0 60px; }
.footer-links__group { padding: 0 48px; }
.footer-links__group + .footer-links__group { border-left: 1px solid rgba(255, 255, 255, .2); }
.footer-links__label { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.social { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 24px; }
.social__item { display: block; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; transition: transform .2s; }
.social__item svg { width: 100%; height: 100%; fill: #fff; display: block; }
.social__item:hover { transform: translateY(-3px); opacity: 1; }
.site-footer__note { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.site-footer__links { font-size: 14px; margin-bottom: 40px; }
.site-footer__copy { font-size: 12px; opacity: .6; margin: 0; }

/* ---------- Two-column text ---------- */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.two-col p { font-size: 15px; line-height: 1.65; }
.person { text-align: center; }
.person__img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 260px; margin: 0 auto 16px; }
.person__name { font-size: 20px; color: var(--text-dark); margin-bottom: 2px; }
.person__role { font-size: 14px; color: var(--muted); }

/* ---------- Governance ---------- */
.gov-list { list-style: none; margin: 0; padding: 0; }
.gov-list > li { margin-bottom: 14px; }
.gov-list h3 { font-size: 17px; font-weight: 500; margin-bottom: 2px; color: var(--text-dark); }
.gov-list ul { margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.65; list-style: disc; }

/* ---------- Tabs ---------- */
.tabs { margin-bottom: 40px; }
.tabs__list { list-style: none; margin: 0 auto; padding: 0; display: flex; max-width: 920px; border-bottom: 1px solid #cfcfcf; }
.tabs__list li { flex: 1; }
.tabs__btn {
  width: 100%; padding: 16px 10px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-size: 18px; font-weight: 600; color: var(--text-dark); transition: color .2s, border-color .2s;
}
.tabs__btn:hover { color: var(--blue); }
.tabs__btn[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.tabs--pills .tabs__list { border: 1px solid var(--blue); border-radius: 4px; overflow: hidden; max-width: 660px; }
.tabs--pills .tabs__btn { border: 0; margin: 0; padding: 14px; color: var(--blue); }
.tabs--pills .tabs__btn[aria-selected="true"] { background: var(--blue); color: #fff; }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Feature (image + text w/ underline) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature__title { font-size: 32px; color: var(--navy-2); position: relative; padding-bottom: 20px; margin-bottom: 18px; }
.feature__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 2px; background: var(--navy-2); }
.feature__title--plain::after { display: none; }
.feature p { font-size: 15px; line-height: 1.65; }
.feature__img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.feature ul { font-size: 15px; line-height: 1.65; }
.feature .subhead { font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.feature--person { grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.feature--person p, .feature--person ul { font-size: 17px; line-height: 1.75; }
.feature--person .subhead { margin-top: 28px; margin-bottom: 2px; font-weight: 500; }
.feature--person .person { margin: 0; }
.feature--person .person__img { width: 236px; max-width: 100%; margin-bottom: 20px; }
.feature--person .person__name { font-size: 22px; }
.feature--person .person__role { font-size: 15px; }
.tab-panel--narrow { max-width: 920px; margin: 0 auto; }

/* ---------- Cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 40px; }
.card { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: var(--navy); }
.card::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 30px 40px; color: #fff; }
.card__title { color: #fff; font-size: 20px; line-height: 1.1; margin: 0; padding-bottom: 15px; border-bottom: 1px solid #fff; }
.card__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s ease, opacity .3s ease; }
.card__more > div { overflow: hidden; min-height: 0; }
.card:hover .card__more { grid-template-rows: 1fr; opacity: 1; }
.card__descr { font-size: 15px; line-height: 1.5; margin: 10px 0 0; color: #fff; }
@media (hover: none) { .card__more { grid-template-rows: 1fr; opacity: 1; } }

/* ---------- Info cards (join page) ---------- */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-card { background: var(--bg-light); border-radius: 10px; padding: 40px 30px; display: flex; flex-direction: column; }
.info-card__icon { width: 56px; height: 56px; margin-bottom: 24px; }
.info-card__title { font-size: 20px; color: var(--blue); margin-bottom: 18px; }
.info-card p, .info-card li { font-size: 15px; line-height: 1.65; }
.info-card ul { padding-left: 20px; }
.info-card .btn-text { margin-top: auto; padding-top: 10px; font-size: 15px; }

/* ---------- Network map & flags ---------- */
.map-figure { margin: 0; text-align: center; }
.map-figure img { margin: 0 auto; max-width: 1000px; width: 100%; }
.country-list { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.country-list li { display: inline-flex; align-items: stretch; font-size: 13px; font-weight: 500; border: 1px solid var(--line); border-radius: 4px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.country-list li:hover, .country-list li:focus-within { border-color: var(--blue); box-shadow: 0 2px 8px rgba(60, 130, 246, .15); }
.country__name { display: inline-flex; align-items: center; padding: 4px 12px; color: var(--text-dark); }
.country__name:hover { color: var(--blue); opacity: 1; }
.country__langs { display: inline-flex; border-left: 1px solid var(--line); }
.country__langs a { display: inline-flex; align-items: center; padding: 4px 7px; font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--muted); }
.country__langs a + a { border-left: 1px solid var(--line); }
.country__langs a:hover { color: var(--blue); background: var(--blue-soft); opacity: 1; }
.flags { list-style: none; margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 30px; }
.flags li { text-align: center; }
.office__main { display: inline-flex; flex-direction: column; align-items: center; color: var(--text-dark); }
.office__main:hover { opacity: 1; color: var(--blue); }
.flags img { width: 100px; height: 58px; object-fit: cover; margin: 0 auto 12px; box-shadow: 0 1px 4px rgba(0,0,0,.2); border-radius: 2px; background: #fff; transition: transform .2s, box-shadow .2s; }
.office__main:hover img { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0, 11, 48, .2); }
.flags span { font-size: 14px; font-weight: 600; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 30px; margin-top: 60px; }
.benefit { text-align: center; position: relative; }
.benefit__icon { width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; background: #fff; transition: transform .25s, box-shadow .25s; }
.benefit__icon img { width: 48px; height: 48px; }
.benefit:hover .benefit__icon { transform: scale(1.06); box-shadow: 0 6px 20px rgba(60,130,246,.25); }
.benefit__title { font-size: 21px; margin-bottom: 8px; }
.benefit p { font-size: 15px; margin: 0; }
/* Dotted connector between icons: 4px dots on a ~35px pitch, spread evenly ("space") so no dot is clipped */
.benefit:not(:nth-child(3n))::after {
  content: ""; position: absolute; top: 48px; height: 4px; left: calc(50% + 78px); right: calc(-50% - 30px + 78px); /* 30px = column gap of .benefits */
  background: radial-gradient(circle, var(--navy) 1.6px, transparent 2.1px) 0 0 / 35px 4px space no-repeat;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 900px; margin: 30px auto 0; padding: 10px 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--blue); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 60px 50px 0; text-align: right; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 50px 60px; text-align: left; }
.tl-item__num { position: absolute; top: -4px; right: -22px; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px #fff; }
.tl-item:nth-child(even) .tl-item__num { right: auto; left: -22px; }
.tl-item h3 { font-size: 20px; margin-bottom: 8px; }
.tl-item p { font-size: 15px; margin: 0; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; background: none; border: 0; text-align: left;
  font-size: 18px; font-weight: 700; color: var(--text-dark); transition: color .2s;
}
.acc__btn:hover { color: var(--blue); }
.acc--blue .acc__btn { color: var(--blue); font-size: 19px; }
.acc__icon { flex: 0 0 auto; width: 24px; height: 24px; position: relative; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; background: currentColor; transition: transform .25s; }
.acc__icon::before { left: 0; right: 0; top: 11px; height: 2px; }
.acc__icon::after { top: 0; bottom: 0; left: 11px; width: 2px; }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: scaleY(0); }
.acc__panel { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.acc__body { padding: 0 0 26px; font-size: 15px; line-height: 1.65; }
.acc__body p:last-child, .acc__body ul:last-child { margin-bottom: 0; }
.acc__body img { border-radius: var(--radius); margin: 0 0 18px; }
.acc__body h4 { font-size: 15px; margin: 14px 0 4px; }

/* ---------- Forms ---------- */
.form { max-width: 720px; margin: 0 auto; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.form__group { margin-bottom: 18px; }
.form__group--full { grid-column: 1 / -1; }
.form label { display: block; font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.form label .req { color: var(--danger); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #000; border-radius: 4px; background: #fff;
  font-size: 15px; color: var(--text-dark); transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232a2a2a' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form textarea { min-height: 80px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(60,130,246,.2); }
.form input::placeholder, .form textarea::placeholder { color: #9a9a9a; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--danger); }
.form--soft input:not([type="checkbox"]), .form--soft select, .form--soft textarea { border-color: #c9c9c9; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400 !important; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.form__actions { text-align: center; margin-top: 24px; }
.form__error { font-size: 13px; color: var(--danger); margin: 6px 0 0; }
.form__status { margin-top: 18px; padding: 14px 18px; border-radius: 6px; font-size: 15px; }
.form__status--ok { background: #e6f6ec; color: #146c3a; }
.form__status--err { background: #fdeaea; color: #a32424; }
.form-success { position: relative; padding: 20px 22px 20px 64px; border: 1px solid #b7e2c6; background: #e9f7ef; color: #1d5b36; line-height: 1.55; outline: none; }
.form-success::before {
  content: ""; position: absolute; left: 20px; top: 20px; width: 28px; height: 28px; border-radius: 50%; background: #1f9d55
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat;
}
.form-success__title { font-size: 17px; font-weight: 700; color: #146c3a; margin-bottom: 4px; }
.form-success p { margin: 0 0 4px; }
.form-success a { color: #146c3a; font-weight: 600; text-decoration: underline; }
.form-success__note { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid #c9e9d5; font-size: 13px; color: #3c6b4f; }
.form__hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-note { text-align: center; font-style: italic; font-size: 15px; max-width: 640px; margin: 40px auto 0; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; align-items: start; margin-top: 40px; }
.contacts__intro { font-size: 18px; line-height: 1.5; }
.contacts__direct { list-style: disc; padding-left: 20px; font-size: 16px; }
.contacts__icons { display: flex; gap: 8px; margin-top: 20px; }
.contacts__icons a { width: 30px; height: 30px; display: block; }
.contacts__icons svg { width: 100%; height: 100%; fill: var(--blue); }

/* ---------- Video grid & rows (reviews) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }

/* Video card: thumbnail + caption as one unit */
.video-card {
  margin: 0; display: flex; flex-direction: column; background: #fff;
  border-radius: 12px; overflow: hidden; border: 1px solid #e8ebf0;
  box-shadow: 0 2px 6px rgba(0, 11, 48, .06), 0 8px 24px rgba(0, 11, 48, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.video-card:hover { transform: translateY(-4px); border-color: #d6e3fb; box-shadow: 0 4px 10px rgba(0, 11, 48, .08), 0 16px 36px rgba(60, 130, 246, .14); }
.video-card .video-embed { border-radius: 0; }
.video-card__body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; cursor: pointer; }
.video-card__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--text-dark); }
.video-card__meta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 13px; font-weight: 600; letter-spacing: .3px; color: var(--blue);
}
.video-card__meta::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233c82f6' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: background-color .2s;
}
.video-card:hover .video-card__meta::before { background-color: #d6e3fb; }
.video-card.is-playing .video-card__meta { visibility: hidden; }

/* ---------- Vertical video strip (shorts) ---------- */
/* Videos are sized to show a fraction of the next one (--per is fractional): the cut-off video,
   the arrows, the count and the progress bar tell visitors there is more — no edge fades. */
.video-strip {
  --per: 4.5; --gap: 16px;
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 0 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; outline: none;
  user-select: none; -webkit-user-select: none;
}
.video-strip img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.video-strip::-webkit-scrollbar { display: none; }
.video-strip:focus-visible { box-shadow: 0 0 0 3px rgba(60, 130, 246, .35); border-radius: 12px; }
.video-strip .video-embed--v {
  flex: 0 0 calc((100% - var(--gap) * (var(--per) - .5)) / var(--per)); aspect-ratio: 9 / 16;
  scroll-snap-align: start; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 11, 48, .12);
}

.carousel { position: relative; }
.carousel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -16px 0 14px; font-size: 13px; }
.carousel__count { font-weight: 700; color: var(--text-dark); letter-spacing: .3px; }
.carousel__hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.carousel__hint::after { content: "\2192"; font-size: 16px; color: var(--blue); animation: nudge 1.6s ease-in-out infinite; }
.carousel.is-scrolled .carousel__hint::after { animation: none; }
.carousel__hint--touch { display: none; }
@media (max-width: 640px), (hover: none) { .carousel__hint--desk { display: none; } .carousel__hint--touch { display: inline; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.carousel__viewport { position: relative; }
.carousel__btn {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid #e3e7ee; background: #fff; color: var(--text-dark);
  font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; padding-bottom: 3px;
  box-shadow: 0 6px 18px rgba(0, 11, 48, .16); transition: opacity .2s, background .2s, color .2s, transform .2s;
}
.carousel__btn:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-50%) scale(1.06); }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
.carousel__btn--prev { left: -24px; }
.carousel__btn--next { right: -24px; }
.carousel__progress { position: relative; height: 4px; margin: 18px auto 0; max-width: 360px; background: #dcdfe5; border-radius: 2px; overflow: hidden; cursor: pointer; }
.carousel__bar { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--blue); border-radius: 2px; transition: left .15s linear, width .15s linear; }
.carousel.no-scroll .carousel__btn, .carousel.no-scroll .carousel__progress, .carousel.no-scroll .carousel__hint { display: none; }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; max-width: 760px; margin: 0 auto; padding: 0 60px; }
.testimonial { text-align: center; display: none; animation: fadeIn .4s ease; }
.testimonial.is-active { display: block; }
.testimonial__img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 26px; box-shadow: var(--shadow); }
.testimonial__text { font-size: 15px; line-height: 1.65; margin-bottom: 8px; }
.testimonial__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.testimonial__more { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; margin-bottom: 20px; }
.testimonial__name { font-size: 18px; font-weight: 700; color: var(--navy-2); margin: 0 0 2px; }
.testimonial__role { font-size: 13px; color: var(--text-dark); margin: 0; }
.testimonials__arrow { position: absolute; top: 40px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d6d6d6; background: #fff; color: #999; display: flex; align-items: center; justify-content: center; }
.testimonials__arrow:hover { color: var(--blue); border-color: var(--blue); }
.testimonials__arrow--prev { left: 0; }
.testimonials__arrow--next { right: 0; }
.testimonials__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.testimonials__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #d1d1d1; }
.testimonials__dots button.is-active { background: var(--text-dark); }

/* ---------- Portal card ---------- */
.portal-card { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); overflow: hidden; text-align: center; }
.portal-card__img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.portal-card__body { padding: 30px 40px 40px; }
.portal-card__title { color: var(--blue); font-size: 20px; margin-bottom: 12px; }
.portal-card p { font-size: 15px; max-width: 620px; margin: 0 auto 26px; }
.portal-card__btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.construction {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 30px;
  background: repeating-linear-gradient(-45deg, #fff8e6 0 12px, #fff1cc 12px 24px); border: 1px solid #f3cf6b;
  color: #7a5200; font-size: 14px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
.construction svg { flex: none; }
.portal-card p.portal-card__soon { margin: 18px auto 0; font-size: 14px; color: var(--muted); }
.portal-card__soon a { font-weight: 600; }

/* ---------- Auth pages (members) ---------- */
.auth { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; background: var(--bg-light); padding: 60px 20px; }
.auth__box { width: 100%; max-width: 440px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 40px 36px; }
.auth__title { font-size: 26px; text-align: center; margin-bottom: 24px; }
.auth__box .form label { font-size: 14px; }
.auth__links { text-align: center; margin-top: 20px; font-size: 14px; }
.auth__links a { font-weight: 600; }

/* ---------- Dashboard ---------- */
.dash { padding: 50px 0 80px; background: var(--bg-light); min-height: 70vh; }
.dash__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.dash__head h1 { font-size: 30px; margin: 0; }
.dash__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.panel { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.panel h2 { font-size: 20px; margin-bottom: 16px; }
.panel h3 { font-size: 16px; }
.status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.status--submitted { background: #eef2f8; color: #3b4a6b; }
.status--review { background: #fff4e0; color: #9a6300; }
.status--assessment { background: #e8f0fe; color: #1a56c4; }
.status--meeting { background: #ede8fe; color: #5b3fc4; }
.status--approved { background: #e6f6ec; color: #146c3a; }
.status--declined { background: #fdeaea; color: #a32424; }
.steps { list-style: none; margin: 20px 0 0; padding: 0; }
.steps li { position: relative; padding: 0 0 18px 36px; font-size: 15px; }
.steps li::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: var(--muted); background: #fff; }
.steps li::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.is-done::before { background: var(--blue); border-color: var(--blue); color: #fff; content: "\2713"; }
.steps li.is-done::after { background: var(--blue); }
.steps li.is-current::before { border-color: var(--blue); color: var(--blue); }
.steps li.is-current { font-weight: 600; color: var(--text-dark); }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 15px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--text-dark); word-break: break-word; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { border-left: 3px solid var(--blue); padding: 8px 14px; margin-bottom: 10px; background: var(--bg-light); border-radius: 0 6px 6px 0; font-size: 14px; }
.notes time { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar select, .toolbar input { min-height: 38px; padding: 6px 10px; border: 1px solid #c9c9c9; border-radius: 6px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; right: 24px; bottom: 24px; z-index: 200; width: min(390px, calc(100vw - 40px));
  background: #fff; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 11, 48, .2); padding: 20px 20px 18px; color: #5e5e5e;
}
.cookie-banner.is-settings { width: min(360px, calc(100vw - 20px)); right: 10px; bottom: 10px; padding: 0; overflow: hidden; }
.cookie-banner__title { font-weight: 600; color: var(--navy); font-size: 15px; margin: 0 0 4px; }
.cookie-banner__text { margin: 0 0 16px; font-size: 13px; line-height: 1.5; }
.cookie-banner__actions { display: flex; gap: 8px; align-items: center; }
.cookie-banner .btn--sm { min-height: 38px; padding: 0 16px; font-size: 13px; border-radius: 6px; }
.cookie-banner__actions .btn--link { margin-left: auto; color: var(--navy); }
.cookie-banner__actions .btn--link:hover { transform: none; opacity: .75; }

.cookie-settings { display: flex; flex-direction: column; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
.cookie-settings[hidden] { display: none; }
.cookie-settings__back {
  display: flex; align-items: center; gap: 22px; width: 100%; padding: 18px 20px; border: 0; background: #fff; cursor: pointer;
  font: 500 16px var(--font); color: var(--navy); text-align: left; box-shadow: 0 2px 10px rgba(0, 11, 48, .08); position: relative; z-index: 1;
}
.cookie-settings__back svg { color: #5e5e5e; opacity: .5; flex: 0 0 auto; }
.cookie-settings__body { overflow-y: auto; padding: 24px 20px 10px; flex: 1 1 auto; }
.cookie-settings__title { font-size: 22px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; margin: 0 0 16px; }
.cookie-settings__text { font-size: 15px; line-height: 1.6; margin: 0 0 26px; }
.cookie-cat { border-top: 1px solid var(--line); padding: 14px 0; }
.cookie-cat:last-child { border-bottom: 1px solid var(--line); }
.cookie-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.cookie-cat__name {
  display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 16px var(--font); color: #5e5e5e; text-align: left;
}
.cookie-cat__name::before { content: "+"; width: 14px; font-size: 18px; font-weight: 400; line-height: 1; text-align: center; opacity: .7; }
.cookie-cat.is-open .cookie-cat__name::before { content: "\2014"; font-size: 14px; }
.cookie-cat__body { margin: 10px 0 4px; font-size: 13.5px; line-height: 1.65; }
.cookie-cat:not(.is-open) .cookie-cat__body { display: none; }
.cookie-cat__always { font-size: 12px; color: #1f5bff; white-space: nowrap; }
.cookie-settings__footer { padding: 16px 20px; background: #fff; box-shadow: 0 -2px 10px rgba(0, 11, 48, .06); }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.switch__state { font-size: 12px; color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 40px; height: 20px; border-radius: 20px; background: #d6d6d6; transition: background .2s; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .switch__track { background: #1f5bff; }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid #1f5bff; outline-offset: 2px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 30px; font-size: 14px; opacity: 0; transition: all .3s; z-index: 300; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .slide { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; overflow-y: auto; padding: 10px 20px 40px; transform: translateX(100%); transition: transform .3s; }
  .site-nav.is-open { transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 14px; border-bottom: 1px solid var(--line); }
  .site-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 12px 16px; gap: 14px; background: var(--bg-light); border-radius: 6px; min-width: 0; }
  .site-nav__sub::before, .site-nav__item.has-sub::after, .site-nav__link::after { display: none; }
  .site-nav__sub a { font-size: 13px; }
  .site-nav__item.is-open > .site-nav__sub { display: block; }
  .site-nav__item:hover > .site-nav__sub:not(.x) { display: none; }
  .site-nav__item.is-open:hover > .site-nav__sub { display: block; }
  .hero__title { font-size: 48px; }
  .hero--center .hero__title { font-size: 44px; }
  .slider { height: 560px; }
  .slide__title { font-size: 40px; }
  .video-split, .split, .cooperate, .two-col, .feature, .contacts, .info-cards, .dash__grid { grid-template-columns: 1fr; }
  .cooperate { padding: 90px 0; }
  .split__media { order: -1; min-height: 300px; border-radius: 0; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit::after { display: none; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-strip { --per: 3.4; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .flags { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 60px 0; }
  .section-title { font-size: 34px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { min-height: 280px; }
  .hero__title { font-size: 36px; }
  .hero--center { min-height: 320px; }
  .hero--center .hero__title { font-size: 32px; }
  .slider { height: 480px; }
  .slide__title { font-size: 30px; margin-bottom: 26px; }
  .slider__arrow { width: 36px; height: 36px; }
  .slider__arrow--prev { left: 10px; } .slider__arrow--next { right: 10px; }
  .stats__list { flex-direction: column; align-items: center; gap: 22px; }
  .site-footer { padding: 70px 0 40px; }
  .site-footer__title { font-size: 28px; }
  .footer-links { flex-direction: column; align-items: center; gap: 30px; margin-bottom: 40px; }
  .footer-links__group { padding: 0; }
  .footer-links__group + .footer-links__group { border-left: 0; }
  .social { gap: 16px; }
  .social__item { width: 46px; height: 46px; }
  .section-title { font-size: 28px; }
  .split__title, .feature__title, .cooperate__title { font-size: 26px; }
  .benefits { grid-template-columns: 1fr; gap: 40px; }
  .video-grid, .cards, .form__row { grid-template-columns: 1fr; }
  .video-strip { --per: 1.7; --gap: 12px; }
  .carousel__btn { display: none; }
  .flags { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .timeline::before { left: 22px; }
  .tl-item, .tl-item:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 40px 64px; text-align: left; }
  .tl-item__num, .tl-item:nth-child(even) .tl-item__num { left: 0; right: auto; }
  .tabs__btn { font-size: 14px; padding: 12px 6px; }
  .testimonials { padding: 0; }
  .testimonials__arrow { display: none; }
  .auth__box { padding: 30px 22px; }
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; width: auto; padding: 22px 20px; }
  .cookie-banner.is-settings { left: 10px; width: auto; }
  .cookie-banner__title { font-size: 19px; }
  .cookie-banner__text { font-size: 15px; margin-bottom: 18px; }
  .cookie-banner__actions { flex-wrap: wrap; gap: 8px; }
  .cookie-banner__actions .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .cookie-banner__actions .btn--link { padding: 0 4px; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dt { margin-top: 8px; }
  .acc__btn { font-size: 16px; }
  .info-card { padding: 30px 22px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .slider__arrow, .slider__dots, .nav-toggle { display: none !important; }
}
