/* ========= БАЗА ========= */

:root {
  --color-bg: #f3f4f6;
  --color-header: #202a54;
  --color-header-scrolled: #ffffff;
  --color-text-main: #111827;
  --color-text-muted: #4b5563;
  --color-accent: #2563eb;
  --color-accent-dark: #1d4ed8;
  --color-card-bg: #ffffff;
  --color-border-soft: #e5e7eb;
  --radius-card: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Контейнер и страница */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========= ШАПКА ========= */

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.main-header__top {
  width: 100%;
}

.main-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}

.main-header__logo img {
  max-height: 64px;
  height: auto;
}

.main-header__nav {
  margin-left: auto;
}

.main-header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.main-header__nav-list a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
}

.main-header__nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #facc15;
  transition: width 0.2s ease;
}

.main-header__nav-list a:hover::after,
.main-header__nav-list a:focus-visible::after {
  width: 100%;
}

/* Состояние при скролле */

.main-header--scrolled {
  background: var(--color-header-scrolled);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.25);
}

.main-header--scrolled .main-header__nav-list a {
  color: #111827;
}

.main-header--scrolled .nav-toggle span {
  background: #111827;
}

/* Кнопка-бургер */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span + span {
  margin-top: 4px;
}

/* ========= HERO ========= */

.hero {
  padding: 32px 0 40px;
  background: radial-gradient(circle at top left, #e3f2ff 0, #f5f7fb 45%, #ffffff 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.hero__text h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
}

.hero__lead {
  margin: 0 0 20px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__subnote {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.hero__media {
  display: flex;
  justify-content: center;
}

.hero__image {
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

/* ========= Секции ========= */

.section {
  padding: 40px 0;
}

.section--intro {
  padding-top: 32px;
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section__inner--with-image {
  align-items: stretch;
}

.section__text {
  flex: 1 1 0;
}

.section__image-wrapper {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section__image {
  border-radius: 24px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.2);
}

/* ========= ТЕКСТ ========= */

.text-block p {
  margin: 0 0 12px;
  color: var(--color-text-main);
}

.text-block p:last-child {
  margin-bottom: 0;
}

/* ========= КАРТОЧКИ ========= */

.section--parts {
  background: #eef2ff;
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  padding: 22px 22px 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
}

.card__title {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.card--focus {
  border-color: #bfdbfe;
  background: radial-gradient(circle at top left, #e0edff 0, #ffffff 55%);
}

/* Списки */

.list {
  margin: 0 0 12px;
  padding-left: 20px;
}

.list li {
  margin-bottom: 4px;
  color: var(--color-text-main);
}

.list li:last-child {
  margin-bottom: 0;
}

/* Раскрывающаяся часть второй карточки */

.card__more {
  display: none;
  margin-top: 8px;
}

.card--expanded .card__more {
  display: block;
}

/* Кнопка раскрытия: серая, жирная, подчёркнутая + «иконка» через символы ▼/▲ */

.card__toggle {
  margin-top: 10px;
  align-self: flex-start;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: #6b7280; /* серый */
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ========= СПИСОК-ЧЕК ========= */

.list--check {
  list-style: none;
  padding-left: 0;
}

.list--check li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
}

.list--check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.9rem;
  color: #16a34a;
}

/* ========= КНОПКИ ========= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.55);
}

.btn--wide {
  min-width: 220px;
}

.btn--large {
  min-width: 240px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* ========= БЛОК ЗАКАЗА ========= */

.section--result {
  background: #ffffff;
}

.order-block {
  margin-top: 28px;
  padding: 22px 22px 20px;
  border-radius: var(--radius-card);
  background: radial-gradient(circle at top left, #e0f2fe 0, #ffffff 60%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  justify-content: space-between;
}

.order-block__price {
  margin: 0;
  font-size: 1.2rem;
}

/* ========= ПОДВАЛ ========= */

.footer {
  padding: 20px 0 24px;
  background: #0b1120;
  color: #e5e7eb;
}

.footer__inner {
  display: flex;
  justify-content: center;
}

.footer__text {
  margin: 0;
  font-size: 0.85rem;
}

/* ========= АДАПТИВ ========= */

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .section__inner {
    flex-direction: row;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 24px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__media {
    order: -1;
  }

  /* Хедер: бургер и выпадающее меню */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .main-header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-header);
    display: none;
  }

  .main-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 18px 12px;
    gap: 10px;
  }

  .main-header--menu-open .main-header__nav {
    display: block;
  }

  .section__inner--with-image {
    flex-direction: column;
  }
}

@media (max-width: 600px) {

  .hero__text h1 {
    font-size: 1.8rem;
  }

  .order-block {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--wide,
  .btn--large {
    width: 100%;
    justify-content: center;
  }

  .main-header__logo img {
    max-height: 52px;
  }
}
