:root {
  --bg: #0c1118;
  --bg-soft: #121a24;
  --surface: #ffffff;
  --text: #0d1420;
  --text-soft: #5a6677;
  --brand: #1fb6d9;
  --brand-dark: #0d8eac;
  --border: #dce3ea;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 16, 23, 0.12);
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #f4f7fb;
  line-height: 1.5;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
li,
a,
summary {
  overflow-wrap: anywhere;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section-lead {
  margin: 0;
  color: var(--text-soft);
  max-width: 72ch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(32, 44, 58, 0.84);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid rgba(170, 198, 213, 0.3);
}

.site-header__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  justify-content: flex-start;
  width: min(1680px, calc(100% - 0.35rem));
  padding-inline: 0 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: -0.95rem;
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: auto;
  max-height: 66px;
  max-width: min(380px, 66vw);
  border-radius: 0;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  justify-content: center;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 0.2rem 0;
  opacity: 0.9;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.main-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #35cfff;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.main-nav {
  flex: 1;
  margin-left: 0.35rem;
  margin-right: 0;
}

.main-nav .mobile-nav-logo {
  display: none !important;
}

.main-nav .mobile-nav-logo::before {
  display: none;
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
  opacity: 1;
  color: #8de8ff;
}

.main-nav a[aria-current="page"]::before,
.main-nav a:hover::before {
  transform: scaleX(1);
  opacity: 1;
}

.dropdown {
  position: relative;
}

.dropdown > a::after {
  content: "▾";
  margin-left: 0.3rem;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 250px;
  padding: 0.6rem;
  display: none;
}

.dropdown {
  display: inline-flex;
  align-items: center;
}

.dropdown-link::after {
  content: "";
}

.dropdown-toggle {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0 0.2rem;
}

.dropdown-menu a {
  display: block;
  color: var(--text);
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.is-open .dropdown-menu {
  display: block;
}

.header-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  margin-left: 0.08rem;
  margin-right: -0.35rem;
}

.header-links-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 58px;
  margin-left: 0;
  padding: 0.4rem 0.82rem;
  border: 1px solid rgba(178, 211, 228, 0.42);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow: 0 6px 20px rgba(7, 15, 24, 0.18);
  backdrop-filter: blur(6px);
}

.header-links-box a {
  color: #e8fbff;
  text-decoration: none;
  font-size: 0.69rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 0.05rem 0.1rem;
  border-radius: 6px;
  transition: background 0.18s ease, color 0.18s ease;
}

.header-links-box a:hover {
  color: #8de8ff;
  background: rgba(141, 232, 255, 0.14);
}

.social-card {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.35rem;
  margin-left: 1.05rem;
  margin-right: 0;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(170, 198, 213, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.social-top-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.social-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.social-bar a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(173, 203, 219, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}

.social-bar a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.social-bar img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.social-contacts {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}

.social-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #d8f6ff;
  text-decoration: none;
  font-size: 0.66rem;
  line-height: 1.08;
  white-space: nowrap;
}

.social-contacts a img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.social-contacts a:hover {
  color: #8de8ff;
}

.social-cta {
  color: #d8f6ff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  align-self: center;
}

.social-cta:hover {
  color: #8de8ff;
}

.hero {
  background: #000;
  color: #fff;
  padding: 0;
}

.hero__grid {
  display: block;
}

.hero h1 {
  margin: 0 0 0.75rem;
  line-height: 1.14;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero p {
  margin: 0 0 1rem;
  color: #dce8f5;
}

.hero-video {
  border-radius: 0;
  overflow: hidden;
  border: 0;
}

.hero-video video {
  width: 100vw;
  height: 78vh;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.site-footer {
  background: linear-gradient(180deg, #0b1622, #0b141f 55%, #0a1119);
  color: #d9e3ef;
  margin-top: 2rem;
  border-top: 1px solid rgba(120, 157, 183, 0.28);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: 1.1rem;
  padding: 2rem 0 1.2rem;
}

.site-footer__brand {
  display: grid;
  align-content: start;
  gap: 0.72rem;
}

.site-footer__logo {
  display: inline-flex;
  width: fit-content;
}

.site-footer__logo img {
  width: min(260px, 100%);
  height: auto;
  object-fit: contain;
}

.site-footer__desc {
  margin: 0;
  color: #c3d3e3;
  font-size: 0.88rem;
  line-height: 1.55;
}

.site-footer__title {
  margin: 0 0 0.62rem;
  color: #f1f8ff;
  font-size: 1.02rem;
}

.site-footer__links {
  display: grid;
  gap: 0.42rem;
}

.site-footer__links a {
  color: #d6e4f1;
  font-size: 0.88rem;
  line-height: 1.3;
}

.site-footer__contact-list {
  display: block;
}

.site-footer__contact-item {
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #d6e4f1;
  font-size: 0.88rem;
  line-height: 1.38;
}

.site-footer__contact-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer__contact-list a {
  color: #eaf7ff;
  font-weight: 600;
}

.site-footer__telegram {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 0.62rem 0.92rem;
  background: linear-gradient(145deg, #1b5f8d, #2385b8);
  border: 1px solid rgba(152, 217, 246, 0.42);
  color: #ecf8ff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.site-footer__telegram:hover {
  background: linear-gradient(145deg, #2072a9, #2f9ad0);
}

.site-footer__telegram-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(168, 198, 217, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
}

.site-footer__social img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.site-footer__disclaimer {
  border-top: 1px solid rgba(209, 222, 235, 0.2);
  padding: 0.72rem 0 0.42rem;
  color: #afbecc;
  font-size: 0.76rem;
  line-height: 1.35;
}

.site-footer a {
  color: #d9e3ef;
  text-decoration: none;
}

.site-footer a:hover {
  color: #8de8ff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(217, 227, 239, 0.16);
  padding: 0.72rem 0 1.3rem;
  font-size: 0.82rem;
  color: #afbbc8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.credit-badge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  background: #0b1825;
  color: #e7f8ff;
  border: 1px solid rgba(141, 232, 255, 0.45);
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

.floating-consult-notice {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 95;
  width: min(320px, calc(100vw - 28px));
  border-radius: 14px;
  border: 1px solid rgba(160, 203, 225, 0.45);
  background: linear-gradient(160deg, rgba(22, 48, 74, 0.96), rgba(31, 67, 99, 0.96));
  color: #edf8ff;
  box-shadow: 0 16px 34px rgba(8, 18, 29, 0.26);
  backdrop-filter: blur(5px);
  padding: 0.82rem 0.82rem 0.8rem;
  transform: translateX(115%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  text-align: center;
  transform-origin: 88% 12%;
}

.floating-consult-notice.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.floating-consult-notice__close {
  position: absolute;
  top: 0.34rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  color: #bfe8fb;
  font-size: 1.05rem;
  cursor: pointer;
}

.floating-consult-notice__title {
  margin: 0 0 0.22rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.floating-consult-notice__text {
  margin: 0 0 0.58rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #d5ecf8;
}

.floating-consult-notice__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  color: #072033;
  background: #8de8ff;
  margin-inline: auto;
}

.floating-consult-notice__link:hover {
  background: #a2eeff;
}

.floating-consult-notice.is-ringing {
  animation: noticeBell 0.52s ease-in-out infinite;
}

@keyframes noticeBell {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  15% {
    transform: translateX(0) rotate(-2.2deg);
  }
  30% {
    transform: translateX(0) rotate(2.2deg);
  }
  45% {
    transform: translateX(0) rotate(-1.4deg);
  }
  60% {
    transform: translateX(0) rotate(1.4deg);
  }
  75% {
    transform: translateX(0) rotate(-0.8deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

@media (max-width: 1400px) {
  .site-header__inner {
    min-height: 84px;
    gap: 0.65rem;
    width: min(1680px, calc(100% - 1rem));
  }

  .main-nav ul {
    gap: 0.95rem;
  }

  .main-nav a {
    font-size: 0.93rem;
  }
}

@media (max-width: 1000px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    justify-content: space-between;
    gap: 0.5rem;
  }

  .main-nav {
    margin-left: 0;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .brand img {
    max-height: 34px;
    max-width: min(168px, 46vw);
  }

  .brand {
    margin-left: 0.32rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: min(84vw, 340px);
    height: 100vh;
    background: #1f2c3a;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    padding: 1rem;
    overflow-y: auto;
    z-index: 92;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 0.75rem 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .main-nav .mobile-nav-logo {
    width: fit-content;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(167, 196, 216, 0.35);
  }

  .main-nav.is-open .mobile-nav-logo {
    display: inline-flex !important;
  }

  .main-nav .mobile-nav-logo img {
    width: auto;
    height: auto;
    max-height: 40px;
    max-width: min(210px, 70vw);
    object-fit: contain;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.1rem 0 0.4rem 0.8rem;
    min-width: auto;
  }

  .dropdown-menu a {
    color: #dbe8f6;
    padding: 0.4rem 0;
  }

  .dropdown.is-open .dropdown-menu {
    display: block;
  }

  .header-cta-group {
    display: none;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__contact-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    max-height: 18px;
  }

  .site-footer__telegram-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    max-height: 18px;
  }

  .site-footer__social a {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }

  .site-footer__social img {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
  }

  .floating-consult-notice {
    right: 10px;
    bottom: 12px;
    width: min(320px, calc(100vw - 20px));
  }
}
