/* Базовые настройки */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-main: #020817;
  --bg-dark: #020617;
  --bg-soft: #07101f;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --white: #ffffff;
  --radius-pill: 999px;
  --radius-lg: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

/* Общая раскладка */

.page {
  display: flex;
}

/* Правая фиксированная панель */

.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 90px;
  background: rgba(15, 23, 42, 0.9);
  border-left: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  z-index: 20;
  backdrop-filter: blur(14px);
 	color: var(--text-main);
}

.sidebar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar__logo-img {
  width: 46px;
  height: auto;
}

.sidebar__contacts {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.sidebar__phone,
.sidebar__mail {
  text-decoration: none;
  color: inherit;
}

.sidebar__phone:hover,
.sidebar__mail:hover {
  color: var(--accent);
}

.sidebar__divider {
  font-size: 12px;
}

.sidebar__socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.sidebar__icon:hover {
  border-color: var(--accent);
}

.sidebar__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Основной контент */

.content {
  width: 100%;
  margin-right: 90px; /* под ширину sidebar */
}

/* HERO */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 64px 7vw;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.4)),
    url("img/hero.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero__inner {
  max-width: 720px;
}

/* надпись "маркетинговое агентство роста" без рамки */
.hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  line-height: 1.02;
  text-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.hero__title-line {
  display: inline-block;
  font-size: clamp(46px, 5.8vw, 64px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__tagline {
  margin: 18px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #f9fafb;
  text-shadow: 0 10px 28px rgba(15, 23, 42, 0.95);
}

.hero__subtitle {
  font-size: 15px;
  color: #e5e7eb;
  max-width: 520px;
  margin: 0 0 26px;
  text-shadow: 0 8px 24px rgba(15, 23, 42, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.hero__meta-item {
  min-width: 140px;
}

.hero__meta-label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #f9fafb;
  text-shadow: 0 8px 20px rgba(15, 23, 42, 0.9);
}

.hero__meta-text {
  font-size: 13px;
  color: #d1d5db;
  text-shadow: 0 6px 18px rgba(15, 23, 42, 0.9);
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #020617;
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.5);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(56, 189, 248, 0.7);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(148, 163, 184, 0.9);
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.7);
}

/* Общие стили секций */

.section {
  padding: 80px 7vw;
  background: #020617;
}

.section__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.section__inner--wide {
  max-width: 1160px;
}

.section__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 40px;
  align-items: flex-start;
}

.section__col--label {
  max-width: 340px;
}

.section__kicker {
  margin-top: 18px;
  font-size: 16px;
  color: #d1d5db;
  line-height: 1.6;
}

.section__title {
  font-size: 30px;
  margin: 0 0 20px;
  font-weight: 700;
}

.section__title--accent {
  font-family: "Playfair Display", serif;
  font-size: 34px;
}

.section__text {
  max-width: 640px;
  color: #e5e7eb;
  line-height: 1.7;
  font-size: 16px;
}

/* Бейдж */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-main);
}

/* Фоны секций */

.section--dark {
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.7), rgba(15, 23, 42, 0.9)),
    url("img/about-bg.jpg") center / cover no-repeat;
}

.section--routes {
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.55), rgba(15, 23, 42, 0.78)),
    url("img/routes-bg.jpg") center / cover no-repeat;
}

.section--soft {
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.7), rgba(15, 23, 42, 0.9)),
    url("img/benefits-bg.jpg") center / cover no-repeat;
}

.section--industries {
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.7), rgba(15, 23, 42, 0.9)),
    url("img/industries-bg.jpg") center / cover no-repeat;
}

.section--form {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.9)),
    url("img/form-bg.jpg") center / cover no-repeat;
}

/* Заголовки секций */

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading--light .section-heading__text {
  color: #e5e7eb;
}

.section-heading__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-heading__title {
  margin: 14px 0;
  font-size: 30px;
  font-family: "Playfair Display", serif;
}

.section-heading__text {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* О нас — шаги */

.about-steps {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.about-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
}

.about-step__number {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.about-step__title {
  margin: 0 0 4px;
  font-size: 16px;
}

.about-step__text {
  margin: 0;
  font-size: 14px;
  color: #d1d5db;
}

/* МАРШРУТ — вертикальная линия и карточки */

.route-map {
  position: relative;
  margin-top: 32px;
  padding-left: 130px; /* больше отступ, чтобы слева уместились слова */
}

.route-map__line {
  position: absolute;
  left: 65px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.8), rgba(56, 189, 248, 0.2));
  opacity: 0.9;
}

.route-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.route-step:last-child {
  margin-bottom: 0;
}

/* блок с точкой, номером, словом "старт/маршрут/..." */
.route-step__marker {
  position: relative;
  width: 100px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.route-step__dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: #020617;
  margin: 0 auto 4px;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.route-step__step {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.route-step__caption {
  margin-top: 2px;
  white-space: nowrap; /* не переносить слова, чтобы они были целиком */
}

.route-step__card {
  position: relative;
  flex: 1;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.7));
  border-radius: 10px;
  padding: 16px 22px 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.route-step__card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.16), transparent 65%);
  opacity: 0.8;
  pointer-events: none;
}

.route-step__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 6px;
}

.route-step__name {
  font-size: 17px;
  font-weight: 600;
}

.route-step__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.route-step__text {
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.route-step__list {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.route-step__list li + li {
  margin-top: 3px;
}

.route-step__link {
  font-size: 13px;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px dashed rgba(56, 189, 248, 0.8);
  padding-bottom: 1px;
}

/* hover для маршрутов */

.route-step__card:hover {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 26px 80px rgba(15, 23, 42, 1);
  transform: translateY(-3px);
  transition: all 0.18s ease;
}

/* Преимущества */

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.benefit {
  position: relative;
  background: rgba(2, 6, 23, 0.94);
  border-radius: 10px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.benefit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.benefit__number {
  position: absolute;
  right: 10px;
  top: -8px;
  font-size: 54px;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.38);
  pointer-events: none;
}

.benefit__title {
  margin: 0 0 6px;
  font-size: 16px;
}

.benefit__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.benefit:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.9);
  background: rgba(2, 6, 23, 0.98);
}

.benefit:hover::before {
  opacity: 1;
}

/* Ниши */

.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 26px;
}

.industry {
  position: relative;
  padding: 18px 18px 20px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 55%),
    rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.9);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

/* большая полупрозрачная цифра справа */
.industry::before {
  content: attr(data-number);
  position: absolute;
  right: 10px;
  top: -18px;
  font-size: 70px;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.18);
  pointer-events: none;
}

.industry__title {
  margin: 0 0 6px;
  font-size: 16px;
}

.industry__text {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.industry:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.95);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.26), transparent 55%),
    rgba(2, 6, 23, 0.98);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 1);
}

/* Форма */

.brief-form {
  background: rgba(248, 250, 252, 0.96);
  border-radius: 16px;
  padding: 32px 28px 28px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  color: #0f172a;
}

.brief-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 13px;
  color: #6b7280;
}

.field__input {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  padding: 10px 12px;
  background: #f9fafb;
  color: #111827;
  font: inherit;
  outline: none;
}

.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.field__input--textarea {
  min-height: 80px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 20px;
}

.checkbox input {
  width: 16px;
  height: 16px;
}

/* Футер */

.footer {
  padding: 24px 7vw 32px;
  background: var(--bg-dark);
}

.footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer__inner a {
  color: var(--accent);
  text-decoration: none;
}

/* Анимации появления */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптив */

@media (min-width: 768px) {
  .industries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section__inner--split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  }
}

@media (max-width: 1024px) {
  .section__inner--split {
    grid-template-columns: 1fr;
  }

  .section__col--label {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .content {
    margin-right: 0;
  }

  .section,
  .hero,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brief-form__grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    max-width: 100%;
  }

  /* чуть меньше отступы и ширина маркеров на мобильных */
  .route-map {
    padding-left: 100px;
  }

  .route-map__line {
    left: 55px;
  }

  .route-step__marker {
    width: 90px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero__title-line {
    font-size: 34px;
    letter-spacing: 0.12em;
  }

  .section-heading__title {
    font-size: 24px;
  }

  .section__title--accent {
    font-size: 26px;
  }
}
