/*
================================================================
ГЛАВНЫЙ ФАЙЛ СТИЛЕЙ
----------------------------------------------------------------
Почти все цвета сайта собраны в переменных ниже.
Это сделано специально, чтобы клиент мог быстро изменить дизайн.

Например:
--color-accent: #ff6b35;
замените на:
--color-accent: #2563eb;
и основной акцент сайта станет синим.
================================================================
*/

:root {
  /* ОСНОВНЫЕ ЦВЕТА */
  --color-bg: #f6f7f9;            /* общий фон страницы */
  --color-surface: #ffffff;       /* белые карточки */
  --color-dark: #0f172a;          /* тёмный текст и блоки */
  --color-dark-soft: #1e293b;     /* дополнительный тёмный */
  --color-text: #182231;          /* основной текст */
  --color-muted: #667085;         /* вторичный серый текст */

  /* ГЛАВНЫЙ АКЦЕНТНЫЙ ЦВЕТ */
  --color-accent: #f97316;        /* оранжевый */
  --color-accent-dark: #d85b08;   /* тёмно-оранжевый */
  --color-accent-soft: #fff0e6;   /* светло-оранжевый фон */

  /* ЛИНИИ И ТЕНИ */
  --color-border: #e5e7eb;
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.08);
  --shadow-large: 0 30px 80px rgba(15, 23, 42, 0.18);

  /* СКРУГЛЕНИЯ */
  --radius-small: 12px;
  --radius-medium: 20px;
  --radius-large: 32px;

  /* ШИРИНА КОНТЕНТА */
  --container: 1180px;
}

/* БАЗОВЫЕ НАСТРОЙКИ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

/*
================================================================
КНОПКИ
================================================================
*/
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--color-accent);
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.22);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--color-accent-dark);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
}

.button-wide {
  width: 100%;
}

.button-ghost {
  color: var(--color-dark);
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow: none;
}

.button-ghost:hover {
  color: var(--color-dark);
  background: #fff;
}

/*
================================================================
ШАПКА
================================================================
*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 249, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-dark);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--color-dark);
  font-weight: 900;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand-text small {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.phone-label {
  margin-bottom: 3px;
  color: var(--color-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/*
================================================================
ГЛАВНЫЙ ЭКРАН
----------------------------------------------------------------
Чтобы поменять фон главного экрана:
меняйте background у .hero.
================================================================
*/
.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 64px;
  background:
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.18), transparent 32%),
    linear-gradient(180deg, #fbfbfc 0%, #f2f4f7 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  left: -220px;
  top: 40px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow-light {
  color: #fdba74;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--color-dark);
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 0.55em;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: #4b5563;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  color: var(--color-dark);
  font-size: 22px;
}

.hero-stats span {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 13px;
}

/*
================================================================
ПРАВАЯ ДЕКОРАТИВНАЯ ПАНЕЛЬ НА ГЛАВНОМ ЭКРАНЕ
================================================================
*/
.hero-visual {
  position: relative;
  min-height: 510px;
  padding: 32px;
  overflow: hidden;
  border-radius: var(--radius-large);
  background:
    linear-gradient(150deg, #172033 0%, #0f172a 56%, #1f2937 100%);
  box-shadow: var(--shadow-large);
}

.visual-grid {
  position: absolute;
  inset: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transform: rotate(-8deg) scale(1.15);
  opacity: 0.32;
}

.visual-grid span {
  aspect-ratio: 1;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
}

.visual-card {
  position: absolute;
  z-index: 2;
  border-radius: 20px;
}

.visual-card-main {
  left: 32px;
  right: 32px;
  bottom: 32px;
  padding: 26px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.visual-card-main strong {
  display: block;
  margin-top: 14px;
  font-size: 24px;
  line-height: 1.2;
}

.visual-card-main p {
  margin: 12px 0 0;
  color: #cbd5e1;
}

.visual-tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 99px;
  background: var(--color-accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.visual-card-float {
  top: 34px;
  right: 28px;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  color: var(--color-dark);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.visual-card-float span,
.visual-card-float small {
  color: var(--color-muted);
}

.visual-card-float strong {
  margin: 3px 0;
  font-size: 18px;
}

/*
================================================================
ПРЕИМУЩЕСТВА
================================================================
*/
.benefits {
  padding: 28px 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

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

.benefit {
  display: flex;
  gap: 14px;
}

.benefit > span {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 900;
}

.benefit strong {
  display: block;
  color: var(--color-dark);
}

.benefit p {
  margin: 5px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

/*
================================================================
ЗАГОЛОВКИ СЕКЦИЙ
================================================================
*/
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  color: var(--color-dark);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--color-muted);
}

/*
================================================================
КАРТОЧКИ КАТАЛОГА
----------------------------------------------------------------
Фон обычной карточки: .product-card
Фон последней выделенной карточки: .product-card-accent

Чтобы поменять цвет ТОЛЬКО одной карточки, можно добавить ей класс:
.product-blue { background: #eaf2ff; }
================================================================
*/
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 28px;
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow-card);
}

.product-card-accent {
  background:
    linear-gradient(160deg, var(--color-accent-soft), #fff 72%);
  border-color: #fed7aa;
}

.product-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 14px;
  color: #fff;
  background: var(--color-dark);
  font-weight: 900;
}

.product-card-accent .product-icon {
  background: var(--color-accent);
}

.product-type {
  margin-bottom: 8px;
  color: var(--color-accent-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-card h3 {
  margin: 0;
  color: var(--color-dark);
  font-size: 25px;
  line-height: 1.12;
}

.product-card p {
  margin: 16px 0 0;
  color: var(--color-muted);
}

.product-card ul {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.product-card li {
  position: relative;
  padding: 7px 0 7px 18px;
  color: #475467;
  font-size: 14px;
}

.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.product-link {
  margin-top: auto;
  padding: 14px 0 0;
  color: var(--color-dark);
  background: none;
  border: 0;
  border-top: 1px solid var(--color-border);
  text-align: left;
  font-weight: 900;
}

/*
================================================================
СХЕМА РАБОТЫ
================================================================
*/
.process {
  background: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-border);
}

.process-step {
  min-height: 240px;
  padding: 28px;
  background: #fff;
}

.process-step > span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
  border-radius: 50%;
  color: var(--color-dark);
  background: var(--color-accent-soft);
  font-weight: 900;
}

.process-step strong {
  display: block;
  color: var(--color-dark);
  font-size: 18px;
}

.process-step p {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

/*
================================================================
КОНТАКТЫ
----------------------------------------------------------------
Цвет большого контактного окна меняется здесь:
.contact-box { background: ... }
================================================================
*/
.contact-section {
  padding-top: 110px;
}

.contact-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  padding: 52px;
  border-radius: var(--radius-large);
  color: #fff;
  background:
    radial-gradient(circle at 75% 20%, rgba(249, 115, 22, 0.22), transparent 25%),
    var(--color-dark);
}

.contact-copy h2 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.contact-copy > p {
  max-width: 610px;
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.contact-list a,
.contact-list > div {
  padding: 18px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-list span {
  display: block;
  margin-bottom: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.contact-card {
  align-self: center;
  padding: 30px;
  border-radius: 20px;
  color: var(--color-dark);
  background: #fff;
}

.contact-card-label {
  color: var(--color-accent-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-card h3 {
  margin: 8px 0 0;
  font-size: 30px;
}

.contact-card p {
  color: var(--color-muted);
}

.contact-card small {
  display: block;
  margin-top: 13px;
  color: #98a2b3;
  font-size: 11px;
}

/*
================================================================
ПОДВАЛ
================================================================
*/
.site-footer {
  padding: 34px 0 44px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  color: var(--color-muted);
  font-size: 13px;
}

.footer-inner strong {
  color: var(--color-dark);
  font-size: 18px;
}

.footer-inner p {
  margin: 4px 0 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-right a {
  font-weight: 800;
}

/*
================================================================
ПЛАВАЮЩАЯ КНОПКА
================================================================
*/
.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px 0 10px;
  border: 0;
  border-radius: 99px;
  color: #fff;
  background: var(--color-accent);
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.35);
  font-weight: 900;
}

.floating-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-accent);
  background: #fff;
}

/*
================================================================
МОДАЛЬНОЕ ОКНО
----------------------------------------------------------------
Фон самого окна и подложка: см. privacy.css, .site-dialog и ::backdrop
================================================================
*/
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--color-dark);
  background: #f2f4f7;
  font-size: 26px;
}

.site-dialog h2 {
  margin: 0;
  padding-right: 40px;
  color: var(--color-dark);
  font-size: 32px;
  line-height: 1.1;
}

.modal-product {
  margin: 12px 0 24px;
  color: var(--color-muted);
}

.modal-product strong {
  color: var(--color-dark);
}

.site-dialog form {
  display: grid;
  gap: 16px;
}

.site-dialog label span {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.site-dialog input,
.site-dialog textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  color: var(--color-text);
  background: #fff;
  outline: none;
}

.site-dialog input:focus,
.site-dialog textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.form-note {
  margin: 0;
  color: #98a2b3;
  font-size: 11px;
}

.form-status {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  color: #166534;
  background: #dcfce7;
  font-size: 13px;
}

.form-status.is-visible {
  display: block;
}

.modal-call {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.modal-call span {
  color: var(--color-muted);
}

.modal-call a {
  color: var(--color-dark);
  font-weight: 900;
}

/*
================================================================
АДАПТАЦИЯ ПОД ПЛАНШЕТЫ
================================================================
*/
@media (max-width: 980px) {
  .hero-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .benefits-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

/*
================================================================
АДАПТАЦИЯ ПОД ТЕЛЕФОНЫ
================================================================
*/
@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .section {
    padding: 68px 0;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 72px;
  }

  .header-actions .phone-link {
    display: none;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    padding: 54px 0 38px;
  }

  .hero-grid {
    gap: 38px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-visual {
    min-height: 380px;
    padding: 20px;
    border-radius: 24px;
  }

  .visual-card-main {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .visual-card-main strong {
    font-size: 20px;
  }

  .visual-card-float {
    top: 20px;
    right: 20px;
  }

  .benefits-grid,
  .catalog-grid,
  .process-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .contact-box {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .contact-copy h2 {
    font-size: 40px;
  }

  .footer-inner,
  .footer-right {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-contact span:last-child {
    display: none;
  }

  .floating-contact {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }

  .floating-icon {
    width: 38px;
    height: 38px;
  }

  .site-dialog {
    padding: 28px 20px 22px;
  }

  .modal-call {
    flex-direction: column;
    gap: 4px;
  }
}
