/* =====================================================================
   ELBRUS LTD — стили сайта
   Тёмно-синий + оранжевый акцент, промышленный характер.
   ===================================================================== */

:root {
  --navy-900: #061225;
  --navy-800: #0A192F;
  --navy-700: #112742;
  --navy-600: #1B3A5C;
  --accent:   #FF8C00;
  --accent-600:#E57A00;
  --accent-100:#FFF1DE;
  --ink:      #1C2432;
  --muted:    #64748B;
  --line:     #E3E8EF;
  --surface:  #FFFFFF;
  --surface-2:#F5F7FA;
  --radius:   14px;
  --radius-sm:10px;
  --shadow:   0 4px 24px rgba(6, 18, 37, .08);
  --shadow-lg:0 18px 48px rgba(6, 18, 37, .16);
  --container-pad: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Manrope', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }

a { color: var(--navy-700); }
a:hover { color: var(--accent-600); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------
   КНОПКИ
   --------------------------------------------------------------- */
.btn { font-weight: 700; border-radius: 999px; padding: .65rem 1.5rem; transition: .2s ease; }
.btn-lg { padding: .9rem 2.2rem; font-size: 1.02rem; }
.btn-sm { padding: .45rem 1.1rem; font-size: .87rem; }

.btn-accent {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #14202F;
  box-shadow: 0 6px 18px rgba(255, 140, 0, .28);
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--accent-600); border-color: var(--accent-600);
  color: #14202F; transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 140, 0, .34);
}

.btn-outline-light { border-width: 2px; border-radius: 999px; font-weight: 700; }

.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.32);
  color: rgba(255,255,255,.9);
  background: transparent;
  border-radius: 999px;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------------------------------------------------------------
   ШАПКА
   --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--navy-800);
  box-shadow: 0 2px 20px rgba(6,18,37,.25);
}

.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.62);
  font-size: .84rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-note { letter-spacing: .01em; }
.topbar-contacts { display: flex; align-items: center; gap: 20px; }
.topbar-mail { color: rgba(255,255,255,.7); text-decoration: none; }
.topbar-mail:hover { color: var(--accent); }

.phone-group { display: inline-flex; align-items: center; gap: 8px; }
.phone-link {
  color: #fff; text-decoration: none; font-weight: 700;
  font-size: .95rem; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.phone-link:hover { color: var(--accent); }

.msg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  transition: .18s ease;
}
.msg:hover { transform: translateY(-1px); }
.msg-svg { width: 16px; height: 16px; display: block; }

/* Telegram — фирменный голубой, MAX — сине-фиолетовый градиент.
   Так две иконки рядом не сливаются и узнаются с первого взгляда. */
.msg-tg  { color: #38B0E3; background: rgba(56,176,227,.14); }
.msg-tg:hover  { background: #38B0E3; color: #fff; }

.msg-max { color: #8E7CFF; background: rgba(142,124,255,.16); }
.msg-max:hover { background: linear-gradient(135deg, #4C6FFF 0%, #A45CFF 100%); color: #fff; }
.msg-max .msg-svg { width: 17px; height: 17px; }

.main-nav { padding: 12px 0; background: transparent; }

.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-brand img { height: 46px; width: auto; }
.brand-text {
  font-size: 1.6rem; font-weight: 800; color: #fff;
  line-height: 1; letter-spacing: .06em;
}

.main-nav .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-weight: 600; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .05em;
  padding: .5rem .9rem !important;
  position: relative;
}
.main-nav .nav-link::after {
  content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .25rem;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform .22s ease;
}
.main-nav .nav-link:hover { color: #fff !important; }
.main-nav .nav-link:hover::after { transform: scaleX(1); }

.navbar-toggler {
  border: 1.5px solid rgba(255,255,255,.4);
  padding: .35rem .6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.mobile-contacts {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 14px; padding-top: 14px;
  display: flex; flex-direction: column; gap: 10px;
}

/* ---------------------------------------------------------------
   ПЕРВЫЙ ЭКРАН
   --------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  padding: 110px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 80% 0%, rgba(255,140,0,.22) 0%, transparent 58%),
    radial-gradient(70% 90% at 0% 100%, rgba(27,58,92,.85) 0%, transparent 60%),
    linear-gradient(160deg, #0A192F 0%, #061225 55%, #0d2039 100%);
}
/* Тонкая техническая сетка поверх градиента — даёт «промышленную» фактуру */
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}
/* Диагональная «отсечка» снизу — переход к белой секции */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 30%, 100% 100%);
  opacity: .06;
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }

.hero-kicker {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(255,140,0,.45);
  border-radius: 999px; padding: 5px 16px; margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(1.9rem, 6.2vw, 4.4rem);
  text-transform: uppercase;
  margin-bottom: 22px;
  overflow-wrap: anywhere;   /* длинные слова не вылезают за экран телефона */
  hyphens: auto;
}
.hero-title span {
  color: transparent;
  background: linear-gradient(100deg, var(--accent) 0%, #FFC26B 100%);
  -webkit-background-clip: text; background-clip: text;
}

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: rgba(255,255,255,.82);
  max-width: 660px; margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero-facts {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong {
  font-size: 1.35rem; color: var(--accent); font-weight: 800; letter-spacing: -.01em;
}
.hero-facts span { font-size: .85rem; color: rgba(255,255,255,.66); line-height: 1.4; }

/* ---------------------------------------------------------------
   СЕКЦИИ
   --------------------------------------------------------------- */
.section { padding: 84px 0; }
.section-dark { background: var(--navy-800); color: #fff; }
.section-form { background: var(--surface-2); }

.section-kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 6px;
}
.section-dark .section-title { color: #fff; }

/* Карточки категорий */
.cat-card {
  display: block; height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: .25s ease;
  position: relative;
}
.cat-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .25s ease;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: inherit;
}
.cat-card:hover::before { transform: scaleY(1); }

.cat-card-body { padding: 34px 32px; }
.cat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 16px;
  background: var(--accent-100); color: var(--accent-600);
  margin-bottom: 18px;
}
.cat-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.cat-card p { color: var(--muted); margin-bottom: 16px; }

.cat-tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tags li {
  font-size: .8rem; font-weight: 600;
  background: var(--surface-2); color: var(--navy-700);
  border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 999px;
}
.cat-link { font-weight: 700; color: var(--accent-600); }

/* Преимущества */
.feature {
  border-left: 2px solid rgba(255,255,255,.14);
  padding: 4px 0 4px 20px; height: 100%;
}
.feature-num {
  display: block; font-size: .8rem; font-weight: 800;
  color: var(--accent); letter-spacing: .14em; margin-bottom: 10px;
}
.feature h4 { font-size: 1.1rem; color: #fff; margin-bottom: 8px; }
.feature p { color: rgba(255,255,255,.66); font-size: .93rem; margin: 0; }

/* Услуги */
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px; height: 100%;
  transition: .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card h4 { font-size: 1.12rem; margin-bottom: 10px; }
.service-card h4::before {
  content: ''; display: block; width: 34px; height: 3px;
  background: var(--accent); border-radius: 3px; margin-bottom: 14px;
}
.service-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------------------------------------------------------------
   ФОРМА
   --------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 46px 44px;
  border-top: 4px solid var(--accent);
}

.form-label { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.req { color: var(--accent-600); }

.form-control, .form-select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .72rem .95rem;
  font-size: .98rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,140,0,.14);
}
.form-control.is-invalid { border-color: #DC3545; }

.captcha-input { max-width: 150px; font-weight: 700; letter-spacing: .06em; }

.form-hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* Honeypot: поле должно быть невидимо для человека,
   но остаться в DOM, чтобы бот его нашёл и заполнил */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------------------------------------------------------------
   ПОЛОСА CTA
   --------------------------------------------------------------- */
.cta-strip {
  background: linear-gradient(100deg, var(--accent) 0%, #FFA83D 100%);
  color: #14202F;
  padding: 44px 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.cta-inner h3 { font-size: 1.55rem; margin-bottom: 4px; }
.cta-inner p { margin: 0; font-weight: 500; opacity: .85; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-buttons .btn { font-weight: 800; }

/* ---------------------------------------------------------------
   СТРАНИЦЫ ГАЛЕРЕЙ
   --------------------------------------------------------------- */
.page-head {
  background: var(--navy-800);
  color: #fff;
  padding: 58px 0 62px;
}
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.page-head p { color: rgba(255,255,255,.75); max-width: 660px; margin-bottom: 24px; }

.crumbs { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; }

.section-gallery { padding-top: 48px; }

.gallery-item {
  position: relative; margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #0d1626;
  border: 1px solid var(--line);
}
.gallery-item a { display: block; height: 100%; }
.gallery-media {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease, opacity .3s ease;
  cursor: zoom-in; display: block;
}
.gallery-item:hover .gallery-media { transform: scale(1.06); opacity: .88; }
video.gallery-media { object-fit: contain; background: #000; cursor: default; }

.gallery-pager { margin-top: 38px; }
.gallery-pager ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.gallery-pager a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  text-decoration: none; font-weight: 700; color: var(--navy-700);
  transition: .18s ease;
}
.gallery-pager a:hover { border-color: var(--accent); color: var(--accent-600); }
.gallery-pager a.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* Лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(4, 10, 20, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 60px;
}
.lightbox[hidden] { display: none; }
.lb-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  width: 48px; height: 48px; font-size: 1.9rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: .18s ease;
}
.lightbox button:hover { background: var(--accent); color: #14202F; }
.lb-close { top: 18px; right: 18px; font-size: 1.7rem; }
.lb-prev  { left: 14px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.72); font-size: .9rem; letter-spacing: .04em;
}

/* ---------------------------------------------------------------
   СТРАНИЦА «СПАСИБО»
   --------------------------------------------------------------- */
.thanks-section { padding: 110px 0; }
.thanks-check {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent-100); color: var(--accent-600);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 26px;
}
.thanks-section h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.thanks-contacts { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.thanks-contacts .phone-link { color: var(--navy-800); font-size: 1.15rem; }
.thanks-contacts .msg { width: 30px; height: 30px; }

/* ---------------------------------------------------------------
   ПОДВАЛ
   --------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.66);
  padding: 62px 0 26px;
  margin-top: auto;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand span { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: .06em; }
.footer-text { font-size: .93rem; max-width: 380px; }
.footer-docs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.footer-title {
  color: #fff; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; margin-bottom: 16px;
}
.footer-phone { margin-bottom: 12px; }
.footer-link { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-link:hover { color: var(--accent); }

.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--accent); padding-left: 4px; transition: .18s ease; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 42px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: .85rem; color: rgba(255,255,255,.45);
}

/* Кнопка «наверх» */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1040;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--accent); color: #14202F; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(255,140,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-600); }

/* ---------------------------------------------------------------
   АДАПТИВ
   --------------------------------------------------------------- */
@media (max-width: 991.98px) {
  html { scroll-padding-top: 74px; }
  .brand-text { font-size: 1.3rem; }
  .navbar-brand img { height: 40px; }
  .hero { padding: 66px 0 60px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section { padding: 60px 0; }
  .form-card { padding: 30px 22px; }
  .navbar-collapse { padding-bottom: 12px; }
  .main-nav .nav-link { padding: .55rem .2rem !important; }
  .main-nav .nav-item .btn { margin-top: 10px; display: inline-block; }
  .lightbox { padding: 20px 8px; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
  .lightbox button { width: 40px; height: 40px; }
}

@media (max-width: 575.98px) {
  .hero-title { letter-spacing: -.035em; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .cat-card-body { padding: 26px 22px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-buttons .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .thanks-section { padding: 66px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Печать: убираем лишнее */
@media print {
  .site-header, .to-top, .cta-strip, .gallery-pager, .site-footer .footer-docs { display: none !important; }
  body { color: #000; }
}

/* ---------------------------------------------------------------------
   Добавлено при разделении сайта на тематические поддомены (26.08.2026)
   --------------------------------------------------------------------- */

/* Подзаголовок секции — строка пояснения под большим заголовком */
.section-lead {
  color: var(--muted);
  max-width: 720px;
  margin: -6px 0 0;
}

/* Текущий раздел в меню: подчёркивание уже не «выезжает» при наведении,
   а стоит на месте — видно, на каком из сайтов группы человек находится */
.main-nav .nav-link.is-current { color: #fff !important; }
.main-nav .nav-link.is-current::after { transform: scaleX(1); }
