/* ============================================================
   style.css — основные стили (mobile-first)
   ============================================================ */

/* ---------- Переменные ---------- */
:root {
  /* Фирменные цвета */
  --orange:        #FF6600;
  --orange-dark:   #E25A00;
  --orange-light:  #FCA31B;
  --dark:          #585858;
  --gray:          #767676;
  --gray-light:    #AAAAAA;

  --white:         #FFFFFF;
  --bg:            #F6F6F7;
  --bg-soft:       #EFEFF1;
  --line:          #E4E4E6;

  /* Шрифты */
  --font-title: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Размеры */
  --container-w: 1200px;
  --header-h:    64px;
  --radius:      18px;
  --radius-sm:   12px;

  /* Тени */
  --shadow-sm: 0 4px 16px rgba(88, 88, 88, 0.08);
  --shadow-md: 0 16px 40px rgba(88, 88, 88, 0.12);

  /* Прочее */
  --tr: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --section-pad: clamp(56px, 8vw, 110px);
}

/* ---------- База ---------- */
html {
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--tr), color var(--tr), border-color var(--tr),
              transform var(--tr), box-shadow var(--tr);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.28);
}
.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 102, 0, 0.36);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 17px 32px;
  font-size: 1rem;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr), box-shadow var(--tr);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(88, 88, 88, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

/* Логотип */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--dark);
  flex-shrink: 0;
}

.logo__mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.logo__accent { color: var(--orange); }

/* Кнопка CTA в шапке (по умолчанию скрыта на мобильных) */
.header__cta { display: none; }

/* Бургер */
.burger {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr), top var(--tr);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Навигация — мобильная выезжающая панель */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 95;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  padding: calc(var(--header-h) + 24px) 28px 32px;
  background: var(--white);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.nav.is-open { transform: translateX(0); }

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__link {
  display: block;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray);
  border-bottom: 1px solid var(--line);
  transition: color var(--tr);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--orange);
}

/* Оверлей под мобильным меню */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(48, 48, 48, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tr), visibility var(--tr);
}
.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 64px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(150deg, #3D3D3D 0%, #4E4E4E 45%, #585858 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 88% 8%, rgba(255, 102, 0, 0.38), transparent 62%),
    radial-gradient(620px 520px at 2% 92%, rgba(252, 163, 27, 0.24), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 102, 0, 0.16);
  border: 1px solid rgba(255, 102, 0, 0.45);
  color: var(--orange-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__title span { color: var(--orange-light); }

.hero__subtitle {
  max-width: 620px;
  margin-bottom: 32px;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.hero__actions .btn { width: 100%; }

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

.hero__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}
.hero__feature svg {
  flex: 0 0 auto;
  color: var(--orange-light);
}

/* ---------- Общие секции ---------- */
.section {
  padding: var(--section-pad) 0;
}

.section--soft { background: var(--bg); }

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section__tag {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 102, 0, 0.1);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__title {
  font-family: var(--font-title);
  font-size: clamp(1.55rem, 4.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1rem;
  color: var(--gray);
}

.section--dark .section__tag {
  background: rgba(255, 102, 0, 0.18);
  color: var(--orange-light);
}
.section--dark .section__title { color: var(--white); }
.section--dark .section__desc  { color: rgba(255, 255, 255, 0.72); }

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.about__photo {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(140deg, var(--orange-light), var(--orange));
  box-shadow: var(--shadow-md);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--gray);
}

.about__text p:last-of-type { margin-bottom: 24px; }

.about__list {
  display: grid;
  gap: 14px;
}

.about__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--dark);
}

.about__item svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--orange);
}

/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.step {
  position: relative;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}

.step::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--tr);
}

.step:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.step:hover::before { transform: scaleY(1); }

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--orange-light), var(--orange));
  box-shadow: 0 8px 18px rgba(255, 102, 0, 0.25);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 800;
}

.step__title {
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.step__text {
  font-size: 0.94rem;
  color: var(--gray);
}

/* ---------- CALENDAR ---------- */
.calendar__box {
  padding: clamp(14px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.app-planerka-embed {
  width: 100%;
  min-height: 600px;
}

/* ---------- REQUEST / PRICING ---------- */
.request__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.request__info .about__list { margin-bottom: 28px; }

.request__btn { width: 100%; }

/* Карточка с расценками */
.pricing {
  padding: clamp(22px, 4vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pricing__title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pricing__list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.pricing__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid transparent;
  transition: border-color var(--tr), background var(--tr);
}

.pricing__item:hover {
  border-color: var(--orange);
  background: rgba(255, 102, 0, 0.05);
}

.pricing__duration {
  font-size: 0.95rem;
  color: var(--gray);
}

.pricing__price {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--orange);
  white-space: nowrap;
}

.pricing__note {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--gray);
}


/* ---------- CONTACTS ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--tr), border-color var(--tr), transform var(--tr);
}

.contact-card:hover {
  background: rgba(255, 102, 0, 0.14);
  border-color: rgba(255, 102, 0, 0.45);
  transform: translateY(-3px);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(255, 102, 0, 0.16);
  color: var(--orange-light);
}

.contact-card__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.contact-card__value {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  word-break: break-word;
}

/* ---------- CONTACTS: Шапка и QR ---------- */
.contacts__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.contacts__head .section__head {
  margin-bottom: 0; /* Убираем нижний отступ у текста, так как отступ уже есть у контейнера */
}

.contacts__qr {
  display: flex;
  justify-content: flex-start;
}

.contacts__qr img {
  display: block;
  width: 140px;
  height: 140px;
  background: #FFFFFF; /* Обязательно белый фон для считывания */
  padding: 8px;        /* Отступы внутри белого квадрата */
  border-radius: 16px; /* Скругление углов плашки */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); /* Тень для объема на темном фоне */
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 40px 0;
  background: #2F2F2F;
  color: rgba(255, 255, 255, 0.6);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.footer__logo {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
}
.footer__logo span { color: var(--orange-light); }

.footer__copy { font-size: 0.84rem; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 0.84rem;
}
.footer__links a { transition: color var(--tr); }
.footer__links a:hover { color: var(--orange-light); }

/* ---------- Кнопка «Наверх» ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 102, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--tr), visibility var(--tr), transform var(--tr), background var(--tr);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
}

/* ---------- Анимация появления ---------- */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}