/* ================================================
   OSNOVA — REDESIGN — style.css
   Горизонтальний скролінг на десктопі, вертикальний на мобільному
================================================ */

/* ---------- ЛОКАЛЬНІ ШРИФТИ (без Google Fonts CDN) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-cyrillic-700.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-serif-display-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-serif-display-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- VARIABLES ---------- */
:root {
  --bg:       #FAFAFA;
  --bg2:      #F2F1EE;
  --white:    #FFFFFF;
  --ink:      #111111;
  --muted:    #6B6B6B;
  --faint:    #ADADAD;
  --line:     #E4E4E4;
  --blue:     #0F52BA;
  --blue-dk:  #0A3D8F;
  --blue-lt:  rgba(15,82,186,0.08);
  --fh: 'DM Serif Display', Georgia, serif;
  --fb: 'Inter', system-ui, sans-serif;
  --rad:  6px;
  --radl: 16px;
  --ease: 0.3s cubic-bezier(.4,0,.2,1);
  --sh:   0 2px 16px rgba(0,0,0,0.06);
  --shl:  0 8px 40px rgba(0,0,0,0.12);
  --panel-w: 100vw;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ================================================
   HEADER (fixed, поверх усього)
================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250,250,250,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.header.scrolled {
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 0;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}
.logo__img {
  height: 72px;
  width: auto;
  object-fit: contain;
}
.logo__img--wt { filter: invert(1) brightness(2); }
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: 32px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.nav-cta { flex-shrink: 0; }
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 16px;
  width: 32px;
  height: 32px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: var(--ease);
}

/* ================================================
   BUTTONS
================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--rad);
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  border: none;
  transition: var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover {
  background: var(--blue-dk);
  box-shadow: 0 4px 20px rgba(15,82,186,.3);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 9px 20px; font-size: 13px; }
.btn--full { width: 100%; justify-content: center; padding: 15px; font-size: 15px; }

/* ---------- SHARED TYPO ---------- */
.kicker, .label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.kicker::before, .label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--blue);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--fh);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--blue); }

/* ================================================
   FOOTER
================================================ */
.footer { background: #111; padding: 60px 0 0; }
.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo--footer .logo__img {
  height: 72px;
  filter: invert(1) brightness(10);
}
.footer__brand p { font-size: 12px; color: rgba(255,255,255,.35); line-height: 1.7; margin-top: 12px; }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 4px;
}
.footer__col a { font-size: 15px; color: rgba(255,255,255,.45); transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__socials { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  transition: color .2s, border-color .2s, background .2s;
}
.footer__social-icon:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
}
.footer__bottom { padding: 20px 0; }
.footer__bottom p { font-size: 12px; color: rgba(255,255,255,.25); text-align: center; }

/* ---------- REVEAL ---------- */
.r {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.r-d1 { transition-delay: .1s; }
.r-d2 { transition-delay: .2s; }
.r-d3 { transition-delay: .3s; }
.r.on { opacity: 1; transform: translateY(0); }

@media (max-width: 1023px) {
  .header__inner { padding: 0 24px; }
}

@media (max-width: 767px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 199;
    align-items: center;
    justify-content: center;
    gap: 28px;
  }
  .nav.open a { font-size: 22px; font-weight: 600; }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .burger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
}
