@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 250 1000;
  src: url('../fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('../fonts/TildaSans-VF.woff') format('woff-variations');
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'TildaSans', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  margin: 0;
}

/* ── THEME VARIABLES ── */
body[data-spiros-theme="dark"] {
  --bg: #1c1c1b;
  --bg2: #2a2a29;
  --card-bg: #2a2a29;
  --card-bg2: #333332;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --accent: #e40011;
  --accent2: #2a9d6f;
  --nav-bg: rgba(30,30,28,0.95);
  --nav-text: #ffffff;
  --input-bg: #333332;
  --input-border: #555;
  --input-text: #ffffff;
  --submit-bg: #ffffff;
  --submit-text: #1c1c1b;
  --logo-img: url('../images/logo-dark.png');
  --hero-img: url('../images/hero-dark.png');
  --theme-btn-bg: #ffffff;
  --theme-btn-text: #1c1c1b;
  --theme-btn-label: 'Светлая тема';
  --divider: #3a3a38;
  --footer-bg: #3d3d3c;
  --about-bg: #3a3a38;
  --focus-border: #aaaaaa;
  
  /* Добавленные переменные для карточек и формы */
  --shadow-card: 0 12px 24px rgba(0,0,0,0.3);
  --form-border: #444442;
}
body[data-spiros-theme="light"] {
  --bg: #f2f2f0;
  --bg2: #ffffff;
  --card-bg: #ffffff;
  --card-bg2: #e8e8e6;
  --text: #1c1c1b;
  --text-muted: #666666;
  --accent: #e40011;
  --accent2: #2a9d6f;
  --nav-bg: rgba(255,255,255,0.95);
  --nav-text: #1c1c1b;
  --input-bg: #ffffff;
  --input-border: #cccccc;
  --input-text: #1c1c1b;
  --submit-bg: #1c1c1b;
  --submit-text: #ffffff;
  --logo-img: url('../images/logo-light.png');
  --hero-img: url('../images/hero-light.png');
  --theme-btn-bg: #1c1c1b;
  --theme-btn-text: #ffffff;
  --divider: #e0e0de;
  --footer-bg: #f7f7f7;
  --about-bg: #2a2a29;
  --focus-border: #555555;

  /* Добавленные переменные для карточек и формы */
  --shadow-card: 0 12px 32px rgba(0,0,0,0.06);
  --form-border: #e0e0de;
}

/* ── FLOATING NAV ── */
.s-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  white-space: nowrap;
}
.s-nav__logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.s-nav__links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.s-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  cursor: pointer;
}
.s-nav__link:hover { opacity: 1; }
.s-nav__theme-btn {
  font-family: 'TildaSans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: var(--theme-btn-bg);
  color: var(--theme-btn-text);
  transition: opacity 0.2s, background 0.3s, color 0.3s;
  flex-shrink: 0;
}
.s-nav__theme-btn:hover { opacity: 0.85; }

/* ── HERO ── */
.s-hero {
  min-height: 100vh;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 80px 60px 120px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.s-hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding-right: 40px;
}
.s-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.s-hero__label::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.s-hero__title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.0;
  color: var(--text);
  letter-spacing: -0.02em;
}
.s-hero__title span { color: var(--accent); }
.s-hero__descr {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 420px;
}
.s-hero__btn {
  display: inline-block;
  font-family: 'TildaSans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 20px 48px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #ffffff;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: flex-start;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.s-hero__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,65,26,0.35);
}
.s-hero__right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-hero__img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

/* ── SECTION WRAPPER ── */
.s-section {
  padding: 100px 60px;
  background: var(--bg);
  transition: background 0.3s;
}
.s-section--alt { background: var(--bg2); }
.s-section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 24px;
}
.s-section__label::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent2);
}
.s-section__title {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.s-section__descr {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
}
.s-section__header { margin-bottom: 64px; }
.s-section__header--center { text-align: center; }
.s-section__header--center .s-section__label { justify-content: center; }
.s-section__header--center .s-section__descr { margin: 0 auto; }

/* ── ABOUT BLOCK (814 style) ── */
.s-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  min-height: 480px;
}
.s-about__text {
  background: var(--about-bg);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: background 0.3s;
}
.s-about__title {
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.s-about__body {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
}
.s-about__img {
  background: var(--card-bg2);
  background-image: url('../images/photo-station.jpg');
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

/* ── CARDS GRID (490 style + Анимация) ── */
.s-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.s-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  /* Добавлена окантовка */
  border: 1px solid var(--form-border); 
}
.s-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-card);
}
.s-card__icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.s-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.s-card__descr {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── BIG CARDS (Tatneft style + Анимация) ── */
.s-bigcards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.s-bigcard {
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  cursor: default;
  transition: transform 0.3s ease;
}
.s-bigcard:hover { transform: scale(1.02); }
.s-bigcard--photo {
  background-size: cover;
  background-position: center;
}
.s-bigcard--photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  border-radius: 20px;
}
.s-bigcard--green { background: var(--accent2); }
.s-bigcard--red { background: var(--accent); }

/* ── LIST (508 style) ── */
.s-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}
.s-list__item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--divider);
}
.s-list__item:first-child { border-top: 1px solid var(--divider); }
.s-list__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  background-color: var(--accent);
  -webkit-mask-image: url('../images/icon-check.svg');
  mask-image: url('../images/icon-check.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.s-list__text {}
.s-list__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.s-list__descr {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── CONTACTS + FORM (Обновленный дизайн блоков) ── */
.s-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; 
  align-items: start;
}
.s-contacts__info { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  position: sticky; 
  top: 80px; /* Приподняли блок при скролле */
}
.s-contacts__email {
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
  transition: color 0.2s;
}
.s-contacts__email:hover { color: var(--accent); }
.s-contacts__phone:hover { color: var(--accent); }
.s-contacts__phone {
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.s-contacts__city {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ── LEGAL REQUISITES ── */
.s-requisites {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  background: var(--card-bg2);
  border-radius: 16px;
  margin-bottom: 24px;
}
.s-requisites__row {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}
.s-requisites__row b {
  color: var(--text);
  font-weight: 700;
}
.s-requisites__row a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.s-requisites__row a:hover {
  color: var(--accent);
}

/* Обновленная форма */
.s-form { 
  display: flex; 
  flex-direction: column; 
  gap: 16px;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--form-border);
  box-shadow: var(--shadow-card);
  transition: background 0.3s, border-color 0.3s;
}
.s-form .t-input {
  width: 100%;
  background: var(--input-bg) !important;
  border: 1.5px solid var(--input-border) !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  font-family: 'TildaSans', Arial, sans-serif !important;
  font-size: 15px !important;
  color: var(--input-text) !important;
  outline: none;
  transition: border-color 0.2s, background 0.3s;
}
.s-form .t-input:focus { border-color: var(--focus-border) !important; outline: none !important; }
.s-form textarea.t-input { height: 110px !important; resize: vertical; }
.s-form__submit {
  font-family: 'TildaSans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: var(--submit-bg);
  color: var(--submit-text);
  transition: opacity 0.2s, transform 0.2s, background 0.3s;
  align-self: flex-start;
  margin-top: 8px;
}
.s-form__submit:hover { opacity: 0.88; transform: translateY(-1px); }
.s-form__submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.s-form__submit:disabled:hover { opacity: 0.4; transform: none; }
.s-form__consent {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 10px;
}
.s-form__consent a {
  color: var(--text-muted);
  text-decoration: underline;
  transition: color 0.2s;
}
.s-form__consent a:hover { color: var(--accent); }
.s-form__checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.s-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.s-form__check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}
.s-form__check a {
  color: var(--text-muted);
  text-decoration: underline;
  transition: color 0.2s;
}
.s-form__check a:hover { color: var(--accent); }
#spiros-consent-error {
  color: var(--accent);
  font-size: 13px;
  margin-top: -2px;
}

/* ── CONSENT MODAL ── */
.s-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.s-modal-overlay.open { display: flex; }
.s-modal {
  background: var(--card-bg);
  border: 1.5px solid var(--divider);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  padding: 28px 28px 0;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), var(--shadow-card);
  display: flex;
  flex-direction: column;
}
@media (min-width: 960px) {
  .s-modal { max-width: 820px; }
}
.s-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg2);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.s-modal__close:hover { opacity: 0.8; }
.s-modal__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  padding-right: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
  flex-shrink: 0;
}
.s-modal__body {
  font-family: 'Times New Roman', Times, serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-line;
  overflow-y: auto;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--divider);
  border-radius: 14px;
  background: var(--card-bg2);
}
.s-modal__body::-webkit-scrollbar { width: 6px; }
.s-modal__body::-webkit-scrollbar-track { background: transparent; }
.s-modal__body::-webkit-scrollbar-thumb { background: var(--form-border); border-radius: 10px; }
.s-form__success {
  display: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'TildaSans', Arial, sans-serif;
}
.s-form__validation {
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  background: #e40011;
  color: #ffffff;
  font-family: 'TildaSans', Arial, sans-serif;
  margin-bottom: 4px;
}
.s-form__error {
  display: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  background: #e40009;
  color: #fff;
  font-family: 'TildaSans', Arial, sans-serif;
}


/* ── PHONE FIELD STYLING ── */
.t-input-group_ph .t-input-block {
  padding: 0 !important;
}
.t-input-phonemask__wrap {
  background: var(--input-bg) !important;
  border: 1.5px solid var(--input-border) !important;
  border-radius: 12px !important;
  padding: 0 20px !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: border-color 0.2s, background 0.3s !important;
  box-sizing: border-box !important;
}
.t-input-phonemask__wrap:focus-within {
  border-color: var(--focus-border) !important;
}
.t-input-phonemask__select {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}
.t-input-phonemask__select-code {
  font-family: 'TildaSans', Arial, sans-serif !important;
  font-size: 15px !important;
  margin: 0 !important;
}
.t-input-phonemask__select-triangle {
  margin-left: 2px !important;
}
.t-input-phonemask__wrap .t-input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.t-input-phonemask {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: 'TildaSans', Arial, sans-serif !important;
  font-size: 15px !important;
  color: var(--input-text) !important;
  height: 52px !important;
  box-shadow: none !important;
}

/* ── PHONE MASK THEME ── */
body[data-spiros-theme="dark"] .t-input-phonemask__wrap { background-color: #333332 !important; color: #fff !important; }
body[data-spiros-theme="dark"] .t-input-phonemask__select-code { color: #fff !important; }
body[data-spiros-theme="dark"] .t-input-phonemask { color: #fff !important; }
body[data-spiros-theme="dark"] .t-input-phonemask__select-triangle { border-top-color: #fff !important; }
body[data-spiros-theme="dark"] .t-input-phonemask__options-wrap { background-color: #333332 !important; border-color: #555 !important; color: #fff !important; }
body[data-spiros-theme="dark"] .t-input-phonemask__options-item { color: #fff !important; }
body[data-spiros-theme="dark"] .t-input-phonemask__options-item:hover,
body[data-spiros-theme="dark"] .t-input-phonemask__options-item_chosen { background-color: #555 !important; }
body[data-spiros-theme="dark"] .t-input-phonemask__options-code { color: #fff !important; }
body[data-spiros-theme="light"] .t-input-phonemask__wrap { background-color: #fff !important; color: #1c1c1b !important; }
body[data-spiros-theme="light"] .t-input-phonemask__select-code { color: #1c1c1b !important; }
body[data-spiros-theme="light"] .t-input-phonemask { color: #1c1c1b !important; }
body[data-spiros-theme="light"] .t-input-phonemask__select-triangle { border-top-color: #9a9a9a !important; }
body[data-spiros-theme="light"] .t-input-phonemask__options-wrap { background-color: #fff !important; color: #1c1c1b !important; }
body[data-spiros-theme="light"] .t-input-phonemask__options-item { color: #1c1c1b !important; }

/* ── FOOTER ── */
.s-footer {
  padding: 0;
  background: var(--footer-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--divider);
  transition: background 0.3s;
  overflow: hidden;
}
.s-footer__logo { width: 100%; height: auto; object-fit: cover; display: block; }
.s-footer__legal {
  padding: 20px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.s-footer__legal-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.s-footer__legal-link:hover { color: var(--text); }
.s-footer__legal-sep { color: var(--text-muted); font-size: 13px; }
.s-footer__copyright {
  padding: 10px 24px 24px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
/* Отступ, чтобы плавающая нижняя навигация (.s-nav) не перекрывала копирайт и ссылки */
.s-footer { padding-bottom: 110px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .s-hero { grid-template-columns: 1fr; padding: 80px 24px 100px; min-height: auto; }
  .s-hero__left { padding-right: 0; }
  .s-hero__right { display: none; }
  .s-section { padding: 60px 24px; }
  .s-about { grid-template-columns: 1fr; }
  .s-about__img { min-height: 260px; }
  .s-cards { grid-template-columns: 1fr; }
  .s-bigcards { grid-template-columns: 1fr; }
  .s-bigcard { min-height: 240px; }
  .s-bigcard--photo { min-height: 240px; width: 100%; }
  .s-contacts { grid-template-columns: 1fr; gap: 40px; }
  .s-contacts__info { position: static; } /* Отключаем sticky на мобилках */
  .s-form { padding: 32px 24px; }
  .s-nav { padding: 12px 20px; gap: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
  .s-nav__links { display: none; }
  .s-footer { padding: 0 0 90px; }
  .s-footer__logo { width: 100%; height: auto; display: block; }
}

/* ── MOBILE BURGER ── */
.s-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.s-nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: background 0.3s, transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.25s ease;
  transform-origin: center;
}
.s-nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.s-nav__burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.s-nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.s-nav__mobile {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  z-index: 999;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.23,1,0.32,1), transform 0.28s cubic-bezier(0.23,1,0.32,1);
}
.s-nav__mobile.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.s-nav__mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  padding: 10px 4px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: opacity 0.2s;
}
.s-nav__mobile a:last-child { border-bottom: none; }
.s-nav__mobile a:hover { opacity: 0.7; }
@media (max-width: 960px) {
  .s-nav__links { display: none; }
  .s-nav__burger { display: flex; }
}

/* ── LEGAL PAGES (privacy.html / consent-transfer.html) ── */
.s-legal {
  padding: 140px 24px 160px;
  min-height: 100vh;
}
.s-legal__container {
  max-width: 800px;
  margin: 0 auto;
}
.s-legal__back {
  display: inline-block;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.s-legal__back:hover { color: var(--accent); }
.s-legal__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
}
.s-legal__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.s-legal__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--submit-bg);
  color: var(--submit-text);
  text-decoration: none;
  margin-bottom: 40px;
  transition: opacity 0.2s, transform 0.2s;
}
.s-legal__download:hover { opacity: 0.88; transform: translateY(-1px); }
.s-legal__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-line;
}
.s-legal__body p { margin-bottom: 16px; }

/* ── COOKIE BANNER ── */
.s-cookie {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1500;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  padding: 18px 32px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.s-cookie.open { display: flex; }
.s-cookie__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--nav-text);
  max-width: 720px;
  margin: 0;
}
.s-cookie__text a {
  color: var(--nav-text);
  text-decoration: underline;
}
.s-cookie__btn {
  font-family: 'TildaSans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #ffffff;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.s-cookie__btn:hover { opacity: 0.88; }
@media (max-width: 960px) {
  .s-cookie { padding: 16px 20px; justify-content: flex-start; }
  .s-cookie__text { font-size: 12px; }
}
