/* ======================================= */
/*            ОБЩИЕ СТИЛИ САЙТА            */
/*  Сброс отступов, базовые настройки     */
/* ======================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ======================================= */
/*          ФИРМЕННЫЕ ЦВЕТА САЙТА          */
/*  Все ключевые цвета собраны в одном     */
/*  месте для быстрой настройки дизайна    */
/* ======================================= */
:root {
  --bg-main: #0d0d0f;
  --bg-soft: #0f1013;
  --panel: #17181d;
  --panel-strong: #121317;
  --panel-card: #18191d;
  --text-main: #ffffff;
  --text-soft: #b7b7be;
  --text-muted: #9f9fa9;
  --accent: #C30010;
  --accent-dark: #8f000c;
  --accent-hover: #ff0019;
  --accent-soft: rgba(195, 0, 16, 0.12);
  --accent-border: rgba(195, 0, 16, 0.48);
  --accent-glow: rgba(195, 0, 16, 0.24);
  --accent-glow-strong: rgba(195, 0, 16, 0.36);
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-family: 'Montserrat', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ======================================= */
/*              КОНТЕЙНЕР САЙТА            */
/*  Ограничение ширины и центрирование    */
/* ======================================= */
.container {
  width: min(92%, 1280px);
  margin: 0 auto;
}

.section-narrow {
  max-width: 900px;
}

/* ======================================= */
/*               ШАПКА САЙТА               */
/* ======================================= */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(11, 11, 14, 0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 82px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
}

/* ======================================= */
/*             НАВИГАЦИОННОЕ МЕНЮ          */
/* ======================================= */
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  position: relative;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #fff;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.shop-link {
  color: var(--accent);
  font-weight: 700;
}

/* ======================================= */
/*               БУРГЕР МЕНЮ               */
/* ======================================= */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: #fff;
  transition: 0.3s ease;
}

/* ======================================= */
/*             ПЕРВЫЙ ЭКРАН HERO           */
/* ======================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 138px 0 88px;
  background:
    radial-gradient(circle at top right, rgba(195, 0, 16, 0.20), transparent 35%),
    linear-gradient(rgba(6, 6, 8, 0.68), rgba(6, 6, 8, 0.88)),
    url('https://images.unsplash.com/photo-1605559424843-9e4c228bf1c9?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
}

.hero-content-box {
  background: rgba(14,14,16,0.62);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 34px 70px rgba(0,0,0,0.42);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(195, 0, 16, 0.22);
  color: #ffe0e4;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 700px;
  color: #c9c9cf;
  font-size: clamp(16px, 2.2vw, 20px);
  margin-bottom: 28px;
}

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

.hero-points {
  list-style: none;
  display: grid;
  gap: 10px;
  color: #dedee4;
  margin-bottom: 28px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-points i {
  color: var(--accent);
}

/* ======================================= */
/*                КНОПКИ                   */
/* ======================================= */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(195, 0, 16, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px rgba(195, 0, 16, 0.34);
}

.btn-outline {
  border: 1px solid rgba(211, 19, 36, 0.55);
  color: #f3cdd1;
  background: rgba(255,255,255,0.02);
}

.btn-outline:hover {
  background: rgba(211, 19, 36, 0.14);
  color: #fff;
}

/* ======================================= */
/*            СОЦИАЛЬНЫЕ ИКОНКИ            */
/* ======================================= */
.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-social a {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-social a:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0,0,0,0.45);
}

.instagram { background: linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7); }
.telegram { background: #229ED9; }
.whatsapp { background: #25D366; }

/* ======================================= */
/*             СЕКЦИИ САЙТА                */
/* ======================================= */
section {
  padding: 110px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

#about,
#contact {
  background: #0f1013;
}

/* ======================================= */
/*           ЗАГОЛОВКИ СЕКЦИЙ              */
/* ======================================= */
.section-title {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 26px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-text {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 16px;
  color: #b7b7be;
  font-size: 17px;
}

/* ======================================= */
/*             БЛОК ДОВЕРИЯ                */
/*  Единая красная палитра через :root     */
/* ======================================= */
#advantages .trust-stats,
#advantages .trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

#advantages .trust-stats {
  margin-bottom: 26px;
}

#advantages .trust-stat,
#advantages .trust-card {
  height: 100%;
}

#advantages .trust-stat strong {
  display: block;
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text-main);
}

#advantages .trust-stat span,
#advantages .trust-card p {
  margin: 0;
  line-height: 1.65;
  color: var(--text-soft);
}

#advantages .trust-card {
  display: flex;
  flex-direction: column;
}

#advantages .trust-card .service-title-wrap {
  margin-bottom: 14px;
}

#advantages .trust-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

@media (max-width: 992px) {
  #advantages .trust-stats,
  #advantages .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #advantages .trust-stats,
  #advantages .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================= */
/*            СЕТКА КАРТОЧЕК               */
/* ======================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

/* ======================================= */
/*             КАРТОЧКА УСЛУГИ             */
/* ======================================= */
.card {
  background: linear-gradient(180deg, #18191d, #121317);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  height: 100%;
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: 0 20px 42px rgba(195, 0, 16, 0.14);
}

.card.highlight {
  border-color: rgba(195, 0, 16, 0.44);
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.card.is-open {
  transform: translateY(-8px);
  border-color: rgba(195, 0, 16, 0.74);
  background: linear-gradient(180deg, #1c1d22, #14151a);
  box-shadow: 0 24px 54px rgba(195, 0, 16, 0.24);
}

/* ======================================= */
/*         АНИМАЦИЯ КРАСНОГО СВЕЧЕНИЯ      */
/* ======================================= */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 14px 30px rgba(195, 0, 16, 0.10), 0 0 0 rgba(195, 0, 16, 0);
  }
  50% {
    box-shadow: 0 18px 38px rgba(195, 0, 16, 0.18), 0 0 26px rgba(211,19,36,0.10);
  }
}

/* ======================================= */
/*        РАСКРЫВАЮЩИЕСЯ УСЛУГИ            */
/* ======================================= */
.service-accordion {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-accordion summary {
  list-style: none;
  cursor: pointer;
}

.service-accordion summary::-webkit-details-marker {
  display: none;
}

.service-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.service-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
}

.service-summary-top h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.service-summary-top > i {
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.35s ease;
  margin-top: 5px;
}

.service-accordion[open] .service-summary-top > i {
  transform: rotate(180deg);
}

.service-preview {
  color: #b9b9c0;
  font-size: 14px;
  margin: 0;
  min-height: 64px;
}

.service-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s ease, opacity 0.42s ease, margin-top 0.42s ease;
  opacity: 0;
  margin-top: 0;
}

.service-accordion[open] .service-content {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
}

.service-content-inner {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.service-list li {
  position: relative;
  padding-left: 18px;
  color: #dfdfe4;
  font-size: 14px;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ======================================= */
/*        КНОПКА ЗАПИСИ В КАРТОЧКЕ         */
/* ======================================= */
.service-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(195, 0, 16, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  margin-top: auto;
  opacity: 0.96;
}

.service-accordion[open] .service-action {
  box-shadow: 0 16px 30px rgba(195, 0, 16, 0.30);
}

.service-action:hover {
  transform: translateY(-2px);
}

.service-note {
  margin-top: 30px;
  text-align: center;
  color: #9f9fa9;
  font-size: 15px;
}

/* ======================================= */
/*           БЛОК ПРИЗЫВА (CTA)            */
/* ======================================= */
.cta {
  background: linear-gradient(90deg, #15161a, #101116);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 10px;
}

.cta p {
  color: #b7b7be;
  max-width: 620px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ======================================= */
/*              ФОРМА ЗАПИСИ               */
/* ======================================= */
.form-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 38px rgba(0,0,0,0.16);
}

.form-lead {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--text-soft);
}

form {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  color: #d7d7dd;
  font-weight: 600;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

input,
textarea,
select {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--panel);
  color: #fff;
  font-size: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9f9fa9;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(195, 0, 16, 0.52);
  box-shadow: 0 0 0 4px rgba(195, 0, 16, 0.14);
  outline: none;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form-protection {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #b7b7be;
  font-size: 14px;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.consent-check a {
  color: var(--accent);
  text-decoration: underline;
}

.privacy-note {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: -6px;
}

.form-status {
  min-height: 26px;
  font-weight: 600;
  text-align: center;
}

/* ======================================= */
/*              КОНТАКТЫ                   */
/* ======================================= */
.contact-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
}

.contact-info {
  display: grid;
  gap: 18px;
  text-align: center;
  color: #b7b7be;
}

.contact-info a {
  color: var(--accent);
}

/* ======================================= */
/*                ПОДВАЛ                   */
/* ======================================= */
footer {
  padding: 36px 0 110px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #7f7f88;
  font-size: 14px;
}

/* ======================================= */
/*        ЛИПКАЯ МОБИЛЬНАЯ ПАНЕЛЬ          */
/* ======================================= */
.mobile-sticky-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(15,16,19,0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 1100;
  box-shadow: 0 18px 34px rgba(0,0,0,0.28);
}

.mobile-sticky-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
  border-radius: 16px;
  font-size: 12px;
  color: #f3f3f5;
  background: rgba(255,255,255,0.03);
}

.mobile-sticky-bar i {
  font-size: 18px;
  color: var(--accent);
}

/* ======================================= */
/*            МОБИЛЬНАЯ АДАПТАЦИЯ          */
/* ======================================= */
@media (max-width: 1100px) {
  .trust-stats,
  .trust-grid,
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  }

@media (max-width: 768px) {
  .header-inner {
    min-height: 74px;
  }

  .burger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,12,0.96);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  nav.active {
    max-height: 430px;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  nav a::after {
    display: none;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-content-box {
    padding: 24px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-stats,
  .trust-grid,
  .cards,
  .input-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  .service-preview {
    min-height: auto;
  }

  .cta-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .form-card,
  .contact-card {
    padding: 24px;
  }

  .hero-stat strong,
  .trust-stat strong {
    font-size: 24px;
  }

  .mobile-sticky-bar {
    display: grid;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero-social a {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .mobile-sticky-bar span {
    font-size: 11px;
  }
}

.mobile-sticky-bar a.primary-mobile-action {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 12px 24px rgba(195,0,16,0.24);
}

.mobile-sticky-bar a.primary-mobile-action i,
.mobile-sticky-bar a.primary-mobile-action span {
  color: #fff;
}
