/* ==========================
   LOCAL GOOGLE FONTS
   ========================== */

@font-face {
  font-family: "IceLens Display";
  src: url("../fonts/Sora-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IceLens Display";
  src: url("../fonts/Sora-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "IceLens Sans";
  src: url("../fonts/IBM-Plex-Sans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IceLens Sans";
  src: url("../fonts/IBM-Plex-Sans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Глобальные шрифты проекта */

:root {
  --ils-font-sans: "IceLens Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --ils-font-display: "IceLens Display", system-ui, sans-serif;
}

body {
  font-family: var(--ils-font-sans);
}

h1,
h2,
h3,
h4 {
  font-family: var(--ils-font-display);
  letter-spacing: 0.03em;
}

/* GLOBAL RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ils-body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  color: #e5f0ff;
  overflow-x: hidden;
}

/* COLOR THEME: deep ice, cyan, violet, amber accents */
:root {
  --ils-bg-deep: #020617;
  --ils-bg-elevated: #02081f;
  --ils-bg-panel: rgba(10, 22, 52, 0.88);
  --ils-ice-cyan: #67e8f9;
  --ils-ice-cyan-soft: rgba(103, 232, 249, 0.2);
  --ils-violet: #a855f7;
  --ils-violet-soft: rgba(168, 85, 247, 0.25);
  --ils-amber: #fbbf24;
  --ils-amber-soft: rgba(251, 191, 36, 0.28);
  --ils-text-main: #e5f0ff;
  --ils-text-muted: #94a3b8;
  --ils-border-soft: rgba(148, 163, 184, 0.4);
  --ils-glass: rgba(15, 23, 42, 0.85);
  --ils-radius-lg: 24px;
  --ils-radius-xl: 32px;
  --ils-shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.9);
  --ils-header-height: 76px;
}

/* LAYOUT */
.ils-shell {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* HEADER */
.ils-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  height: var(--ils-header-height);
  backdrop-filter: blur(22px);
  background: radial-gradient(
      circle at top left,
      rgba(103, 232, 249, 0.16),
      transparent 58%
    ),
    linear-gradient(
      to right,
      rgba(15, 23, 42, 0.96),
      rgba(2, 6, 23, 0.98),
      rgba(15, 23, 42, 0.96)
    );
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.ils-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.ils-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.ils-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #67e8f9, #1e293b);
  color: #020617;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  box-shadow: 0 0 22px rgba(103, 232, 249, 0.7);
}

.ils-logo-mark--small {
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
}

.ils-logo-text {
  color: #e5f0ff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ils-nav {
  display: block;
}

.ils-nav-list {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ils-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.2rem;
  font-size: 0.92rem;
  color: var(--ils-text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.ils-nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  background: linear-gradient(90deg, var(--ils-ice-cyan), var(--ils-violet));
}

.ils-nav-link:hover {
  color: var(--ils-ice-cyan);
}

.ils-nav-link:hover::after,
.ils-nav-link--active::after {
  transform: scaleX(1);
}

.ils-nav-link--active {
  color: #f9fafb;
}

/* BURGER — круг с подсветкой и плавной анимацией */
.ils-burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background:
    radial-gradient(circle at 30% 0, rgba(103, 232, 249, 0.25), transparent 55%),
    rgba(15, 23, 42, 0.96);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    transform 0.18s ease;
  box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.0);
}

/* внутреннее кольцо */
.ils-burger::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: inset 0 0 12px rgba(15, 23, 42, 0.9);
  pointer-events: none;
}

/* сами полоски */
.ils-burger-line {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2.2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #e5f0ff,
    #cbd5f5
  );
  transform-origin: center;
  transform: translateX(-50%);
  transition:
    transform 0.22s ease,
    top 0.22s ease,
    opacity 0.18s ease,
    background 0.22s ease;
}

/* верх / середина / низ */
.ils-burger-line:nth-child(1) {
  top: 15px;
}
.ils-burger-line:nth-child(2) {
  top: 21px;
}
.ils-burger-line:nth-child(3) {
  top: 27px;
}

/* hover-эффект */
.ils-burger:hover {
  transform: translateY(-1px);
  border-color: var(--ils-ice-cyan);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.55);
}

/* состояние «открыто» — превращаемся в крестик */
.ils-burger.is-open {
  background:
    radial-gradient(circle at 30% 0, rgba(251, 191, 36, 0.25), transparent 55%),
    rgba(15, 23, 42, 0.98);
  border-color: var(--ils-amber);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.55);
}

.ils-burger.is-open .ils-burger-line:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(42deg);
}

.ils-burger.is-open .ils-burger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0.2);
}

.ils-burger.is-open .ils-burger-line:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-42deg);
}

/* NAV DRAWER */
.ils-nav-drawer {
  position: fixed;
  inset-inline: 0;
  top: var(--ils-header-height);
  max-height: 0;
  overflow: hidden;
  background: radial-gradient(
      circle at top,
      rgba(103, 232, 249, 0.12),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  transition: max-height 0.3s ease;
  z-index: 35;
}

.ils-nav-drawer.is-open {
  max-height: 260px;
}

.ils-nav-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.5rem 1.25rem;
  gap: 0.35rem;
}

.ils-nav-drawer-link {
  padding: 0.55rem 0.1rem;
  text-decoration: none;
  color: var(--ils-text-muted);
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.ils-nav-drawer-link:last-child {
  border-bottom: none;
}

.ils-nav-drawer-link:hover {
  color: var(--ils-ice-cyan);
  padding-left: 0.25rem;
}

.ils-nav-drawer-link--active {
  color: #f9fafb;
}

/* MAIN & COMMON ELEMENTS */
.ils-main {
  padding-top: calc(var(--ils-header-height) + 1.5rem);
}

/* BUTTONS */
.ils-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.ils-btn-primary {
  background: linear-gradient(
    135deg,
    var(--ils-ice-cyan),
    var(--ils-violet),
    var(--ils-amber)
  );
  color: #020617;
  box-shadow: 0 0 32px rgba(103, 232, 249, 0.7);
}

.ils-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 42px rgba(168, 85, 247, 0.9);
}

.ils-btn-ghost {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--ils-text-main);
}

.ils-btn-ghost:hover {
  border-color: var(--ils-ice-cyan);
  box-shadow: 0 0 26px rgba(103, 232, 249, 0.5);
}

/* SECTIONS */
.ils-section {
  position: relative;
  padding-block: 4rem;
}

/* FOOTER */
.ils-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(
      circle at bottom,
      rgba(168, 85, 247, 0.18),
      transparent 60%
    ),
    rgba(2, 6, 23, 0.98);
}

.ils-footer-inner {
  padding-block: 2.5rem 2.8rem;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: flex-start;
}

.ils-footer-text {
  margin: 1rem 0 0;
  max-width: 26rem;
  color: var(--ils-text-muted);
  font-size: 0.9rem;
}

.ils-footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.ils-footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #cbd5f5;
}

.ils-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ils-footer-links a {
  font-size: 0.9rem;
  color: var(--ils-text-muted);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.ils-footer-links a:hover {
  color: var(--ils-ice-cyan);
  padding-left: 0.2rem;
}

.ils-footer-meta {
  grid-column: 1 / -1;
  margin: 0;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.85);
}

/* REVEAL ANIMATION */
.js-ils-reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* BASIC IMAGE CONSTRAINT */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ils-img,
.ils-hero-img {
  max-width: 350px; /* требование: не больше 350px */
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .ils-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .ils-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ils-nav {
    display: none;
  }

  .ils-burger {
    display: inline-flex;
  }

  .ils-footer-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .ils-footer-inner {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .ils-shell {
    padding-inline: 1.05rem;
  }

  .ils-footer-inner {
    padding-block: 2rem 2.4rem;
  }
}
/* ================================
   GLOBAL FOOTER
   ================================ */

.ils-footer {
  margin-top: 3rem;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 60%),
    linear-gradient(to bottom, #020617, #000814 65%, #00010a 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--ils-text-main);
}

/* тонкая "саундлайн" с пульсацией над футером */
.ils-footer-soundline {
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  padding-top: 0.55rem;
  padding-bottom: 0.45rem;
}

.ils-footer-soundline-inner {
  max-width: 480px;
  margin: 0 auto;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.16), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  overflow: hidden;
}

.ils-footer-pulse {
  flex: 1 1 auto;
  height: 2px;
  margin-inline: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.2),
    rgba(148, 163, 184, 0.9),
    rgba(148, 163, 184, 0.2)
  );
  transform-origin: center;
  animation: ils-footer-pulse 2.2s ease-in-out infinite;
}

.ils-footer-pulse:nth-child(2) {
  animation-delay: 0.3s;
}

.ils-footer-pulse:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes ils-footer-pulse {
  0%,
  100% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
  40% {
    transform: scaleY(1.5);
    opacity: 1;
  }
}

/* основной блок футера */

.ils-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 2.4rem;
  padding-top: 2.4rem;
  padding-bottom: 2.2rem;
}

.ils-footer-brand {
  max-width: 22rem;
}

.ils-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.ils-footer-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #020617;
  background: radial-gradient(circle at 30% 30%, var(--ils-ice-cyan), var(--ils-amber));
  box-shadow: 0 0 20px rgba(103, 232, 249, 0.8);
}

.ils-footer-logo-text {
  font-size: 1.05rem;
  font-weight: 500;
}

.ils-footer-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ils-text-muted);
}

/* навигация в футере */

.ils-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.ils-footer-column {
  min-width: 0;
}

.ils-footer-heading {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.ils-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ils-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--ils-text-main);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.05rem;
}

.ils-footer-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
  transform: scale(0);
  transition: transform 0.18s ease, background 0.18s ease;
}

.ils-footer-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 0;
  bottom: -2px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(103, 232, 249, 0.8),
    transparent
  );
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.ils-footer-link:hover,
.ils-footer-link:focus-visible {
  color: var(--ils-ice-cyan);
}

.ils-footer-link:hover::before,
.ils-footer-link:focus-visible::before {
  transform: scale(1);
  background: var(--ils-ice-cyan);
}

.ils-footer-link:hover::after,
.ils-footer-link:focus-visible::after {
  transform: scaleX(1);
}

/* нижняя плашка с копирайтом */

.ils-footer-meta {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at bottom, rgba(15, 23, 42, 0.95), #020617);
}

.ils-footer-meta-inner {
  padding-top: 0.9rem;
  padding-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  align-items: center;
  justify-content: space-between;
}

.ils-footer-copy,
.ils-footer-copy-note {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
}

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

@media (max-width: 1024px) {
  .ils-footer-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
    gap: 2rem;
  }

  .ils-footer-nav {
    gap: 1.1rem;
  }
}

@media (max-width: 768px) {
  .ils-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .ils-footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ils-footer-meta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .ils-footer {
    margin-top: 2.4rem;
  }

  .ils-footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .ils-footer-soundline-inner {
    max-width: 320px;
  }
}
/* =========================================
   ICE LENS STORIES – GLOBAL TYPOGRAPHY
   ========================================= */

/* Базовый текст по всему сайту */
body,
.ils-body {
  font-family: var(--ils-font-sans);
  font-weight: 400;
}

/* Заголовки всех уровней */
h1,
h2,
h3,
h4,
.ils-section-title,
.ils-hero-title,
.ils-legal-title {
  font-family: var(--ils-font-display);
  letter-spacing: 0.03em;
}

/* Маленькие заголовки / подписи / kicker’ы */
.ils-kicker,
.ils-nav-link,
.ils-footer-heading,
.ils-footer-logo-text,
.ils-btn,
.ils-badge,
.ils-tag,
.ils-legal-label {
  font-family: var(--ils-font-sans);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Обычный текст секций и карточек */
.ils-section-text,
.ils-hero-text,
.ils-card-text,
.ils-meta,
.ils-footer-desc,
.ils-footer-copy,
.ils-footer-copy-note,
.ils-legal-text,
.ils-legal-list,
.ils-legal-aside-list {
  font-family: var(--ils-font-sans);
  font-weight: 400;
}

/* Цифры / моно-элементы (если где-то подсвечены значения глубины, времени и т.п.) */
.ils-mono,
.ils-depth-label,
.ils-time-label {
  font-family: var(--ils-font-sans);
  font-weight: 500;
  letter-spacing: 0.08em;
}
/* Глобальные правила для всех изображений сайта */
.ils-img {
  display: block;
  width: 100%;
  max-width: 350px;          /* ограничение по ширине */
  height: auto;
  object-fit: cover;         /* аккуратное кадрирование внутри блока */
}
/* Любые figure-контейнеры с картинками: обрезаем всё лишнее */
[class*="-figure"] {
  overflow: hidden;
}

/* Для карточек-контейнеров с картинками – на всякий случай тоже */
[class*="-card"] img.ils-img {
  display: block;
}
/* раньше было так:
.ils-footer-brand {
  ...
}
*/

/* теперь общий стиль для всех вариантов бренд-колонки футера */
.ils-footer-brand,
.ils-footer-brand-rigs,
.ils-footer-brand-logbook,
.ils-footer-brand-legal 
.ils-footer-brand-legals {
  flex: 1 1 260px;
  max-width: 380px;
  margin-bottom: 1.5rem;
}
