/* ФОНИКО — общие стили сайта. Палитра и шрифты — по brand/FONIKO_brend_dlya_II.md, не менять без сверки с брендбуком. */

:root {
  --black: #0F0F0F;
  --orange: #FF6B1A;
  --orange-dark: #E85A0C;
  --cream: #F3EDE2;
  --white: #FFFFFF;
  --ink: #1C1C1A;
  --text: #23221F;
  --text-secondary: #45423D;
  --text-muted: #6E6A63;
  --trace-dark: #8E3E12;
  --trace-light: #DCCBB0;

  --font-head: "Unbounded", sans-serif;
  --font-body: "Arimo", sans-serif;

  --container: 1120px;
  --radius-s: 8px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section-title {
  margin-bottom: 12px;
}

.section-lede {
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 40px;
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.form-section h1,
.form-section h2,
.form-section h3 {
  color: var(--white);
}

.section--dark .section-lede {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Кнопки и плашки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-dark);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--white);
}

.btn--block {
  width: 100%;
}

.pill {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

.pill--outline {
  background: transparent;
  border: 1.5px solid var(--orange);
  color: var(--orange-dark);
}

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.header__logo {
  display: block;
  width: 132px;
  height: auto;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  opacity: 0.85;
}

.header__nav a:hover,
.header__nav a[aria-current="page"] {
  opacity: 1;
  color: var(--orange);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header__burger {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

/* ---------- Герой ---------- */

.hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__logo {
  width: min(420px, 80vw);
  height: auto;
  margin-bottom: 40px;
}

.hero__text {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.35;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero__traces {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__traces img {
  position: absolute;
}

.hero__traces .t-tr {
  top: 0;
  right: 0;
  width: 260px;
}

.hero__traces .t-br {
  bottom: 0;
  right: 0;
  width: 220px;
}

/* ---------- Шапка внутренних страниц ---------- */

.page-intro {
  position: relative;
  overflow: hidden;
}

.page-intro .container {
  position: relative;
  z-index: 2;
}

.page-intro__traces {
  display: none;
}

@media (min-width: 1000px) {
  .page-intro__traces {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    width: 240px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
  }
}

/* ---------- Доверие / цифры ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust__item {
  text-align: left;
}

.trust__number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--orange-dark);
  display: block;
  margin-bottom: 6px;
}

.trust__label {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---------- Карточки услуг ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-s);
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(15, 15, 15, 0.06);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 0;
}

.card__link {
  display: inline-block;
  margin-top: 40px;
}

/* ---------- Как работаем (шаги) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 0;
}

/* ---------- Прайс ---------- */

.price-group {
  margin-bottom: 48px;
}

.price-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.price-group h3::before {
  content: "";
  width: 6px;
  height: 24px;
  background: var(--orange);
  border-radius: 3px;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.service-list li {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(28, 28, 26, 0.08);
  font-size: 15px;
}

.service-list li:last-child {
  border-bottom: none;
}

/* ---------- Форма заявки ---------- */

.form-section {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.form-wrap__text .section-lede {
  color: rgba(255, 255, 255, 0.72);
}

.form-card {
  background: var(--cream);
  border-radius: var(--radius-s);
  padding: 32px;
  color: var(--text);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(28, 28, 26, 0.15);
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  color: var(--text);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.consent input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}

.consent a {
  color: var(--orange-dark);
  text-decoration: underline;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  display: none;
}

.form-status--ok {
  color: #3f7a3f;
}

.form-status--err {
  color: #b23c1a;
}

/* ---------- Контакты ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-item {
  margin-bottom: 24px;
}

.contact-item__label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-item p,
.contact-item a {
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
  margin: 0;
}

.map-frame {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius-s);
}

/* ---------- О нас ---------- */

.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.about-point {
  background: var(--white);
  border-radius: var(--radius-s);
  padding: 24px;
}

.about-point h3 {
  font-size: 17px;
}

.about-point p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 0;
}

/* ---------- Футер ---------- */

.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
  position: relative;
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.footer__logo {
  width: 150px;
  height: auto;
  margin-bottom: 16px;
}

.footer__col-title {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.footer__col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 10px;
}

.footer__badge {
  display: block;
  border: 0;
  margin-top: 16px;
}

.footer__hours {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin: 0;
}

.footer__col a:hover {
  color: var(--orange);
}

.footer__bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.45);
}

.footer__traces {
  /* Узор из дорожек здесь неизбежно наезжал на колонку контактов футера
     или на текст блока "Оставить заявку" при разной ширине экрана —
     фирменную графику оставили только в hero, где она точно не мешает тексту. */
  display: none;
}

.footer__traces img {
  position: absolute;
  top: 8px;
  right: 0;
  width: 280px;
}

/* ---------- Плавающая кнопка звонка (моб.) ---------- */

.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--black);
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 8px;
}

.sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
}

/* ---------- Адаптив ---------- */

@media (max-width: 860px) {
  .header__nav,
  .header__phone {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header.is-open .header__nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 24px 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header.is-open .header__phone {
    display: block;
  }

  .trust,
  .cards,
  .steps,
  .about-points,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .form-wrap,
  .footer__top {
    grid-template-columns: 1fr;
  }

  .sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 58px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 48px 0;
  }
}
