/* =============================================
   УСЛУГИ — общие стили для всех страниц раздела
============================================= */

/* ---- Active nav ---- */
.nav__link--active {
  color: var(--white) !important;
  font-weight: 700;
}
.nav__link--active::after {
  transform: scaleX(1) !important;
}

/* ============================================
   PAGE HERO
============================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue-mid) 55%, var(--blue-light) 100%);
  padding: 100px 0 80px;
}

.page-hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.page-hero__bg-shape--1 {
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.06);
  top: -200px; right: -100px;
}

.page-hero__bg-shape--2 {
  width: 400px; height: 400px;
  background: rgba(120,189,232,0.2);
  bottom: -150px; left: -100px;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-hero__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
}

.page-hero__title span { color: var(--blue-light); }

.page-hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 580px;
}

.page-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   SECTION HELPERS
============================================ */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header .section-desc {
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================
   FEATURE CARDS (4 в ряд)
============================================ */
.features {
  padding: 72px 0;
  background: var(--bg);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.features__grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 2px 16px rgba(0,105,170,0.07);
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card__icon svg { stroke: var(--blue-dark); }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   STEPS (как мы работаем)
============================================ */
.steps {
  padding: 72px 0;
  background: var(--white);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
  counter-reset: steps;
}

.steps__grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.steps__grid--4col .step:nth-child(4n)::after {
  display: none;
}

.step {
  position: relative;
  padding: 0 24px 0 0;
  counter-increment: steps;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: 0;
  width: 24px;
  height: 2px;
  background: var(--blue-pale);
}

/* Иконка шага */
.step__icon {
  position: relative;
  width: 56px; height: 56px;
  background: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.step__icon svg { stroke: var(--white); }

.step__badge {
  position: absolute;
  top: -5px; right: -5px;
  width: 20px; height: 20px;
  background: var(--blue-light);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  line-height: 1;
}

/* Заголовок шага (для аккордеона) */
.step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.step__head h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.step__arrow {
  display: none;
  flex-shrink: 0;
  stroke: var(--blue-dark);
  transition: transform 0.25s;
}

.step.is-open .step__arrow {
  transform: rotate(180deg);
}

.step__body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   TWO-COL (текст + визуал)
============================================ */
.two-col {
  padding: 80px 0;
}

.two-col--bg { background: var(--bg); }

.two-col__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.two-col__inner--reverse { direction: rtl; }
.two-col__inner--reverse > * { direction: ltr; }

.two-col__text .section-label,
.two-col__text .section-title { text-align: left; }

.two-col__text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.two-col__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.two-col__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.two-col__list li svg {
  flex-shrink: 0;
  margin-top: 1px;
  stroke: var(--blue-dark);
}

.two-col__visual {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue-mid) 50%, var(--blue-light) 100%);
}

.two-col__visual-shape {
  position: absolute;
  border-radius: 50%;
}

.two-col__visual-shape--1 {
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.06);
  top: -200px; right: -150px;
}

.two-col__visual-shape--2 {
  width: 300px; height: 300px;
  background: rgba(120,189,232,0.2);
  bottom: -100px; left: -80px;
}

.two-col__emblem {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.two-col__emblem img {
  max-width: 260px;
  filter: brightness(0) invert(1);
  opacity: 0.18;
}

/* ============================================
   METHOD CARDS (2 в ряд, сравнение)
============================================ */
.methods {
  padding: 72px 0;
  background: var(--white);
}

.methods__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.method-card {
  border-radius: var(--radius-lg);
  border: 2px solid rgba(0,105,170,0.12);
  padding: 36px 32px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.method-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.method-card--featured {
  border-color: var(--blue-dark);
  background: var(--bg);
}

.method-card__icon {
  width: 56px; height: 56px;
  background: var(--blue-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.method-card--featured .method-card__icon {
  background: var(--blue-dark);
}

.method-card--featured .method-card__icon svg { stroke: var(--white); }
.method-card__icon svg { stroke: var(--blue-dark); }

.method-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.method-card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.method-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.method-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}

.method-card__list li svg { flex-shrink: 0; margin-top: 1px; stroke: var(--blue-dark); }

.method-card__tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-pale);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #005a93 0%, var(--blue-mid) 55%, var(--blue-light) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section__shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-section__shape--1 {
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.05);
  top: -250px; right: -150px;
}

.cta-section__shape--2 {
  width: 400px; height: 400px;
  background: rgba(120,189,232,0.15);
  bottom: -180px; left: -100px;
}

.cta-section__inner { position: relative; z-index: 1; }

.cta-section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
}

.cta-section__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   SERVIS — VIDEOS
============================================ */
.servis-videos {
  padding: 80px 0;
  background: var(--white);
}

.videos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-placeholder {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue-mid) 60%, var(--blue-light) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s;
}

.video-placeholder:hover { opacity: 0.9; }

/* iframe YouTube */
.video-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.video-placeholder__play svg {
  width: 56px;
  height: 56px;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.video-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

/* ============================================
   SERVIS — ФОРМА ЗАЯВКИ
============================================ */
.servis-form {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #005a93 0%, var(--blue-mid) 55%, var(--blue-light) 100%);
  padding: 96px 0;
}

.servis-form__shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.servis-form__shape--1 {
  width: 700px; height: 700px;
  background: rgba(255,255,255,0.05);
  top: -300px; right: -180px;
}

.servis-form__shape--2 {
  width: 450px; height: 450px;
  background: rgba(120,189,232,0.12);
  bottom: -200px; left: -120px;
}

.servis-form__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.servis-form__text .section-title {
  color: var(--white);
  margin-bottom: 20px;
}

.servis-form__text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 28px;
}

.servis-form__promises {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.servis-form__promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

.servis-form__promises li svg {
  flex-shrink: 0;
  stroke: var(--blue-light);
}

/* Форма */
.servis-form__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,105,170,0.2);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(0,105,170,0.1);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230069AA' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 88px; }

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}


/* ============================================
   CONTACTS PAGE
============================================ */
.contacts-section {
  padding: 80px 0 100px;
  background: var(--bg);
}

.contacts-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

/* Карточки */
.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0, 105, 170, 0.07);
  border: 1px solid rgba(0, 105, 170, 0.08);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card__icon svg {
  stroke: var(--blue-dark);
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-card__body h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.contact-card__body a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
  line-height: 1.5;
}

.contact-card__body a:hover {
  color: var(--blue-dark);
}

.contact-card__body p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

/* Карта */
.contacts-map {
  position: sticky;
  top: calc(var(--header-h) + 36px + 24px);
}

.map-placeholder {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 105, 170, 0.08);
  box-shadow: 0 2px 12px rgba(0, 105, 170, 0.07);
}

/* Заглушка — убрать когда будет iframe */
.map-placeholder__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}

.map-placeholder__inner svg {
  stroke: var(--blue-pale);
}

.map-placeholder__inner p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
}

.map-placeholder__inner span {
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.3);
}

/* iframe от Яндекс Карт */
.contacts-map iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}


/* ============================================
   COMPANY STATS (о компании — цифры)
============================================ */
.company-stats {
  background: var(--white);
  padding: 52px 0;
  border-bottom: 1px solid rgba(0, 105, 170, 0.08);
}

.company-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.company-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(0, 105, 170, 0.1);
}

.company-stat:last-child {
  border-right: none;
}

.company-stat__num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.company-stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================
   REQUISITES (реквизиты)
============================================ */
.requisites {
  padding: 80px 0;
  background: var(--white);
}

.requisites__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.requisites__heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-pale);
}

.requisites__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.requisites__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0, 105, 170, 0.06);
  font-size: 0.9rem;
  line-height: 1.4;
}

.requisites__list li span:first-child {
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 140px;
}

.requisites__list li span:last-child {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.requisites__divider {
  height: 16px;
  border: none !important;
}


/* ============================================
   АДАПТИВ
============================================ */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .two-col__inner { gap: 48px; }
  .requisites__grid { gap: 32px; }
}

@media (max-width: 768px) {
  .page-hero { padding: 64px 0 56px; }
  .features__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps__grid { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
  .two-col__inner,
  .two-col__inner--reverse { grid-template-columns: 1fr; direction: ltr; }
  .two-col__visual { height: 260px; }
  .methods__grid { grid-template-columns: 1fr; }
  .company-stats__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .company-stat { border-right: none; padding: 16px; background: var(--bg); border-radius: var(--radius); }
  .requisites__grid { grid-template-columns: 1fr; }
  .requisites__list li { flex-direction: column; gap: 4px; }
  .requisites__list li span:last-child { text-align: left; }
  .contacts-layout { grid-template-columns: 1fr; }
  .contacts-map { position: static; }
  .map-placeholder,
  .contacts-map iframe { height: 360px; }
  .videos__grid { grid-template-columns: 1fr 1fr; }
  .servis-form__inner { grid-template-columns: 1fr; gap: 48px; }
  .servis-form__form { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .features__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .page-hero__actions { flex-direction: column; }
  .page-hero__actions .btn { width: 100%; justify-content: center; }
  .cta-section__actions { flex-direction: column; align-items: center; }
  .videos__grid { grid-template-columns: 1fr; }
}
