/* =========================================
   SNOWDRILL ANGLERS — GLOBAL STYLES
   ========================================= */

/* ---------- RESET ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.sda-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.5;
  background: radial-gradient(circle at top left, #161f2b 0%, #050910 45%, #020308 100%);
  color: #f3f6fb;
  overflow-x: hidden;
}

/* ---------- THEME TOKENS ---------- */

:root {
  --sda-bg-main: #040811;
  --sda-bg-soft: #0b1723;
  --sda-bg-glow: #102131;

  --sda-ice-soft: #dfeafe;
  --sda-ice-bright: #f5fbff;

  --sda-accent-black: #000000;     /* акцент по ТЗ */
  --sda-accent-ice: #42e8ff;

  --sda-border-soft: rgba(223, 234, 254, 0.16);
  --sda-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);

  --sda-radius-xl: 32px;
  --sda-radius-lg: 24px;
  --sda-radius-md: 16px;
  --sda-radius-pill: 999px;

  --sda-transition-fast: 150ms ease-out;
  --sda-transition-med: 220ms ease-out;
  --sda-transition-slow: 380ms ease-out;
}

/* ---------- LAYOUT UTILS ---------- */

.sda-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sda-main {
  padding-top: 96px; /* под фиксированный хедер */
}

.sda-section {
  position: relative;
  padding: 72px 0;
}

/* легкий шум по бокам, чтобы страница не казалась плоской */
.sda-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% -10%, rgba(66, 232, 255, 0.16), transparent 60%),
    radial-gradient(circle at 90% 110%, rgba(0, 0, 0, 0.4), transparent 55%);
  opacity: 0.25;
  mix-blend-mode: screen;
  z-index: -1;
}

/* ---------- TYPOGRAPHY ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.03em;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.6rem;
}

p {
  margin: 0 0 0.75em;
}

.sda-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.9rem;
  border-radius: var(--sda-radius-pill);
  border: 1px solid rgba(223, 234, 254, 0.5);
  background: radial-gradient(circle at left, rgba(66, 232, 255, 0.24), transparent 65%);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sda-ice-bright);
}

/* ---------- IMAGES ---------- */

.sda-img {
  display: block;
  width: 100%;
  max-width: 350px; /* по ТЗ: не больше 350px */
  height: auto;
  border-radius: var(--sda-radius-md);
  border: 1px solid rgba(223, 234, 254, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  object-fit: cover;
}

/* ---------- BUTTONS ---------- */

.sda-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--sda-radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--sda-transition-fast),
    box-shadow var(--sda-transition-fast),
    background var(--sda-transition-fast),
    border-color var(--sda-transition-fast),
    color var(--sda-transition-fast);
  will-change: transform, box-shadow;
}

/* CTA: тёмная кнопка с 3D-эффектом */
.sda-btn--primary {
  background: linear-gradient(135deg, var(--sda-accent-black), #171b23);
  color: var(--sda-ice-bright);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.sda-btn--primary:hover {
  transform: translateY(-3px) rotate3d(1, 0, 0, 6deg);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.95);
}

/* Кнопка с обводкой (для форм и вторичных действий) */
.sda-btn--outline {
  background: transparent;
  border-color: rgba(223, 234, 254, 0.6);
  color: var(--sda-ice-soft);
}

.sda-btn--outline:hover {
  background: radial-gradient(circle at top, rgba(66, 232, 255, 0.14), transparent 70%);
  border-color: rgba(223, 234, 254, 0.9);
}

/* ---------- HEADER & NAV DESKTOP ---------- */

.sda-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  background: rgba(4, 8, 17, 0.72); /* полупрозрачный фон */
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(223, 234, 254, 0.16);
  transition:
    background var(--sda-transition-med),
    border-color var(--sda-transition-med),
    box-shadow var(--sda-transition-med),
    transform var(--sda-transition-med);
}

.sda-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.sda-header--scrolled {
  background: rgba(3, 7, 15, 0.95);
  border-bottom-color: rgba(223, 234, 254, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

/* логотип слева, статичный */

.sda-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--sda-ice-bright);
}

.sda-logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  border: 1px solid rgba(223, 234, 254, 0.45);
  background:
    conic-gradient(from 210deg, rgba(66, 232, 255, 0.45), transparent 40%, rgba(223, 234, 254, 0.14), transparent 70%)
    #02040a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}

.sda-logo__text {
  display: flex;
  flex-direction: column;
}

.sda-logo__title {
  font-size: 1.05rem;
}

.sda-logo__tagline {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* навигация десктоп */

.sda-nav {
  display: flex;
  align-items: center;
}

.sda-nav__list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sda-nav__item {
  position: relative;
}

.sda-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--sda-ice-soft);
  transition:
    color var(--sda-transition-fast),
    transform var(--sda-transition-fast);
}

.sda-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.22rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sda-accent-black), var(--sda-accent-ice));
  transition: width var(--sda-transition-med);
}

.sda-nav__link:hover {
  color: var(--sda-ice-bright);
  transform: translateY(-1px);
}

.sda-nav__link:hover::after,
.sda-nav__link--active::after {
  width: 100%;
}

/* кнопка вместо <a> для дропдауна */

.sda-nav__link--button {
  border: none;
  background: transparent;
  cursor: pointer;
}

.sda-nav__caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--sda-ice-soft);
  border-bottom: 2px solid var(--sda-ice-soft);
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--sda-transition-med);
}

/* выпадающее меню снизу (десктоп) */

.sda-nav__dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 12px;
  min-width: 220px;
  padding: 10px;
  border-radius: 18px;
  background: radial-gradient(circle at top, #111f30, #050910);
  border: 1px solid rgba(223, 234, 254, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity var(--sda-transition-med),
    transform var(--sda-transition-med);
}

.sda-nav__dropdown-link {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--sda-ice-soft);
  transition:
    background var(--sda-transition-fast),
    color var(--sda-transition-fast),
    transform var(--sda-transition-fast);
}

.sda-nav__dropdown-link:hover {
  background: rgba(223, 234, 254, 0.12);
  color: var(--sda-ice-bright);
  transform: translateX(3px);
}

/* открытый дропдаун */

.sda-nav__item--open .sda-nav__dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sda-nav__item--open .sda-nav__caret {
  transform: rotate(225deg) translateY(1px);
}

/* ---------- NAV TOGGLE (BURGER) ---------- */

.sda-nav-toggle {
  display: none;
  position: relative;
  z-index: 50;
  width: 44px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(223, 234, 254, 0.35);
  background: radial-gradient(circle at top, #151f2b, #050a12);
  cursor: pointer;
  padding: 0;
  display: none; /* включится только в медиа-запросе */
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75);
  transition:
    box-shadow var(--sda-transition-med),
    transform var(--sda-transition-med),
    border-color var(--sda-transition-med),
    background var(--sda-transition-med);
}

.sda-nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(223, 234, 254, 0.7);
  background: radial-gradient(circle at top, #1c2836, #050a12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9);
}

.sda-nav-toggle__bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(223, 234, 254, 0.2),
    #ffffff,
    rgba(223, 234, 254, 0.9)
  );
  box-shadow: 0 0 6px rgba(223, 234, 254, 0.9);
  transition:
    transform var(--sda-transition-fast),
    opacity var(--sda-transition-fast);
}

.sda-nav-toggle__bar + .sda-nav-toggle__bar {
  margin-top: 4px;
}

/* открытое состояние — чистый крестик */

.sda-header--nav-open .sda-nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.sda-header--nav-open .sda-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.sda-header--nav-open .sda-nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- FOOTER ---------- */

.sda-footer {
  margin-top: 40px;
  background: linear-gradient(135deg, #050910 0%, #0b1927 45%, #0a2738 100%);
  border-top: 1px solid rgba(223, 234, 254, 0.18);
}

.sda-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  padding: 32px 20px 28px;
}

.sda-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sda-footer__title {
  font-size: 1.1rem;
  font-weight: 700;
}

.sda-footer__text {
  font-size: 0.9rem;
  color: rgba(243, 246, 251, 0.8);
}

/* структура футера: меню + текст, элементы вертикально */

.sda-footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* вертикально по ТЗ */
  gap: 0.4rem;
}

.sda-footer-nav__link {
  font-size: 0.9rem;
  text-decoration: none;
  color: rgba(243, 246, 251, 0.92);
  transition:
    color var(--sda-transition-fast),
    transform var(--sda-transition-fast);
}

.sda-footer-nav__link:hover {
  color: var(--sda-accent-ice);
  transform: translateX(2px);
}

.sda-footer__meta {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: rgba(243, 246, 251, 0.78);
}

/* ---------- SCROLL REVEAL ---------- */

.sda-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--sda-transition-slow),
    transform var(--sda-transition-slow);
}

.sda-reveal.sda-is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* ===== 0–800px — мобильные (включая 320px) ===== */

@media (max-width: 800px) {
  .sda-header__inner {
    padding-inline: 16px;
  }

  .sda-nav-toggle {
    display: inline-flex;
  }

  /* мобильное меню — «ледяная карточка» */
  .sda-nav {
    position: fixed;
    inset: 70px 16px auto;
    border-radius: 28px;
    background: radial-gradient(circle at top left, #141f30, #050910 60%);
    border: 1px solid rgba(223, 234, 254, 0.35);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.95);
    transform: translateY(-22px);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition:
      opacity var(--sda-transition-med),
      transform var(--sda-transition-med);
  }

  .sda-nav::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 10px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      var(--sda-accent-black),
      var(--sda-accent-ice)
    );
    opacity: 0.9;
  }

  .sda-header--nav-open .sda-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .sda-nav__list {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 22px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .sda-nav__item {
    padding: 6px 0;
    border-radius: 16px;
    transition:
      background var(--sda-transition-fast),
      transform var(--sda-transition-fast);
  }

  .sda-nav__item:hover {
    background: radial-gradient(circle at left, rgba(66, 232, 255, 0.18), transparent 70%);
    transform: translateX(2px);
  }

  .sda-nav__link,
  .sda-nav__link--button {
    width: 100%;
    justify-content: space-between;
    font-size: 1rem;
  }

  /* дропдаун внутри мобильного меню */
  .sda-nav__dropdown {
    position: static;
    margin-top: 6px;
    padding: 8px 10px 6px;
    border-radius: 14px;
    border: 1px solid rgba(223, 234, 254, 0.25);
    background: radial-gradient(circle at top, #121f30, #050910);
    box-shadow: inset 0 0 0 1px rgba(5, 9, 16, 0.9);
    opacity: 0;
    transform: translateY(-6px);
  }

  .sda-nav__item--open .sda-nav__dropdown {
    opacity: 1;
    transform: translateY(0);
  }

  .sda-nav__dropdown-link {
    padding: 0.4rem 0.3rem;
    font-size: 0.92rem;
  }

  .sda-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .sda-section {
    padding: 56px 0;
  }
}

/* ===== 801–1365px — планшеты и небольшие десктопы ===== */

@media (min-width: 801px) and (max-width: 1365px) {
  .sda-shell {
    max-width: 1120px;
  }

  .sda-section {
    padding: 64px 0;
  }
}
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body.sda-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Times New Roman", Times, serif;
  background: radial-gradient(circle at top left, #161f2b 0%, #050910 45%, #020308 100%);
  color: #f3f6fb;
  max-width: 100%;
  overflow-x: hidden;
}
/* =========================================
   LOCAL GOOGLE FONT: TINOS (TTF)
   ========================================= */

@font-face {
  font-family: "Tinos";
  src: url("../fonts/Tinos-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tinos";
  src: url("../fonts/Tinos-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
body.sda-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Tinos", "Times New Roman", Times, serif; /* реальный Google Fonts */
  font-size: 18px;  /* базовый текст, заголовки увеличены отдельно */
  line-height: 1.5;
  background: radial-gradient(circle at top left, #161f2b 0%, #050910 45%, #020308 100%);
  color: #f3f6fb;
  overflow-x: hidden;
  max-width: 100%;
}
/* =========================================
   GLOBAL MOBILE IMAGES FIX
   ========================================= */

@media (max-width: 800px) {
  /* центрируем любые фигуры/контейнеры с картинками */
  .sda-section figure,
  .sda-section [class*="__image"] {
    display: flex;
    justify-content: center;
  }

  /* делаем сами изображения крупнее, но не больше 320px */
  .sda-section figure .sda-img,
  .sda-section [class*="__image"] .sda-img {
    width: 100%;
    max-width: 320px; /* < 350px как по ТЗ */
    height: auto;
  }
}
