/* Rivet Studio — стили сайта.
   Все стили только в этом файле: политика безопасности (CSP) запрещает
   встроенные стили и скрипты, поэтому атрибут style="" в HTML не работает. */

/* ---------- Шрифты (лежат на нашем домене, лицензия OFL — см. fonts/) ---------- */

@font-face {
  font-family: "Sofia Sans XCond";
  src: url("../fonts/sofia-sans-xcond-800-cyrillic.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans XCond";
  src: url("../fonts/sofia-sans-xcond-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-400-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-600-cyrillic.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Расширенная латиница Golos — нужна ради знака ₽ (U+20BD).
   Браузер скачивает эти файлы, только если такие символы есть на странице.
   В Sofia Sans знака ₽ нет, поэтому в крупных ценах он набран Golos (класс .rub). */
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-600-latin-ext.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Токены: цвета взяты из материалов цеха ---------- */

:root {
  --zinc: #ECEFF0;          /* оцинковка — фон страницы */
  --sheet: #FAFBFB;         /* лист — подложки */
  --white: #FFFFFF;
  --steel: #1E2A31;         /* окалина — основной текст */
  --graphite: #56636B;      /* графит — второстепенный текст */
  --line: rgba(30, 42, 49, .16);
  --signal: #F5A800;        /* сигнальный жёлтый, RAL 1003 — только главные кнопки */
  --signal-deep: #DD9700;
  --signal-tint: #FFF3D1;
  --grid-minor: rgba(196, 116, 52, .09);   /* миллиметровка */
  --grid-major: rgba(196, 116, 52, .2);

  /* Заклёпка: шляпка с бликом */
  --rivet: radial-gradient(circle at 40% 36%, #FFFFFF 0 1.2px, #BCC4C8 2.4px, #6F7B82 4.6px, rgba(111, 123, 130, 0) 5.2px);

  --font-display: "Sofia Sans XCond", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --font-text: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;

  color-scheme: light;
}

/* ---------- База ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--zinc);
  color: var(--steel);
  font: 400 1.125rem/1.55 var(--font-text);
  font-kerning: normal;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus, var(--steel));
  outline-offset: 3px;
}

svg {
  display: block;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--steel);
  color: var(--white);
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .7em 1.2em;
  border-radius: 6px;
  font: 600 1rem/1.2 var(--font-text);
  text-decoration: none;
}

.btn__icon {
  width: 1.3em;
  height: 1.3em;
  flex: none;
}

.btn--signal {
  background: var(--signal);
  color: var(--steel);
  box-shadow: inset 0 -3px 0 rgba(30, 42, 49, .2);
}

.btn--signal:hover {
  background: var(--signal-deep);
}

.btn--signal:active {
  box-shadow: inset 0 2px 0 rgba(30, 42, 49, .2);
}

/* Кнопка в шапке — спокойная: жёлтая на экране только одна, главная */
.btn--outline {
  background: transparent;
  color: var(--steel);
  box-shadow: inset 0 0 0 2px var(--steel);
}

.btn--outline:hover {
  background: var(--white);
}

.btn--large {
  width: 100%;
  min-height: 60px;
  padding-inline: 1em;
  font-size: 1.1875rem;
}

@media (min-width: 560px) {
  .btn--large {
    width: auto;
    padding-inline: 1.6em;
  }
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--zinc);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  min-height: 68px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--steel);
  text-decoration: none;
}

.logo__mark {
  width: 30px;
  height: 30px;
}

/* Название латиницей и по-русски (закон о русском языке): одинаковый шрифт,
   размер и цвет, две строки, чтобы шапка не ломалась на узком телефоне */
.logo__word {
  font: 800 1.875rem/1 var(--font-display);
  letter-spacing: .01em;
}

.logo__word > span {
  display: block;
  white-space: nowrap;
}

.site-header .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: 12px;
  white-space: nowrap;
  font-size: 1rem;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.btn__label-long {
  display: none;
}

@media (min-width: 560px) {
  .btn__label-long {
    display: inline;
  }

  .btn__label-short {
    display: none;
  }
}

@media (min-width: 1200px) {
  .site-nav {
    display: block;
    margin-left: auto;
  }
}

/* ---------- Первый экран ---------- */

.hero {
  padding-block: clamp(28px, 6vw, 80px) clamp(48px, 8vw, 112px);
}

.hero__inner {
  display: grid;
  gap: 48px;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__text {
  container-type: inline-size;
}

.hero__title {
  margin: 0 0 .32em;
  font-family: var(--font-display);
  font-weight: 800;
  /* Размер считается от ширины колонки, чтобы «металлоконструкций» всегда помещалось */
  font-size: clamp(2.5rem, 12.4vw, 6.75rem);
  font-size: clamp(2.5rem, 14.2cqi, 6.75rem);
  hyphens: manual;
  line-height: .93;
  letter-spacing: -.005em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 32em;
  margin: 0 0 28px;
  font-size: clamp(1.125rem, .9rem + .9vw, 1.3125rem);
  line-height: 1.5;
}

.hero__actions {
  margin-bottom: 20px;
}

.hero__note {
  margin: 12px 0 0;
  color: var(--graphite);
  font-size: 1rem;
}

.hero__phone {
  margin: 0;
  font-size: 1rem;
}

/* Область нажатия 44 px по высоте; отрицательный отступ сохраняет высоту строки */
.hero__phone a {
  display: inline-block;
  margin-block: -12px;
  padding-block: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Списки с «заклёпками» вместо маркеров.
   Заклёпка стоит на уровне первой строки, даже если текст переносится. */
.rivet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rivet-list li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: .42em;
  background: var(--rivet);
}

.rivet-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1000px) {
  .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: center;
  }
}

/* ---------- Переписка: табличка на заклёпках поверх миллиметровки ---------- */

.chat {
  width: 100%;
  max-width: 480px;
  margin: 0;
  justify-self: center;
}

@media (min-width: 1000px) {
  .chat {
    justify-self: end;
  }
}

.chat__plate {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 24px 30px;
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
  background-position: -1px -1px;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -24px rgba(30, 42, 49, .45);
}

/* Четыре заклёпки по углам таблички */
.chat__plate::before,
.plate::before {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background-image: var(--rivet), var(--rivet), var(--rivet), var(--rivet);
  background-position: left top, right top, left bottom, right bottom;
  background-size: 12px 12px;
  background-repeat: no-repeat;
}

.msg {
  max-width: 88%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.45;
}

.msg--in {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.msg--out {
  align-self: flex-end;
  background: var(--signal-tint);
  border: 1px solid rgba(221, 151, 0, .4);
  border-bottom-right-radius: 4px;
}

.msg__text {
  margin: 0;
}

/* Превью ссылки, как в мессенджере: полоска слева, адрес, заголовок, картинка */
.link-card {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 10px 12px 12px;
  background: var(--white);
  border-left: 3px solid var(--signal);
  border-radius: 4px;
}

.link-card__site {
  color: var(--graphite);
  font-size: .875rem;
}

.link-card__title {
  font-weight: 600;
  line-height: 1.3;
}

.link-card__desc {
  color: var(--graphite);
  font-size: .9375rem;
  line-height: 1.35;
}

.link-card__drawing {
  width: 100%;
  height: auto;
  margin-top: 10px;
  color: var(--steel);
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 10px 10px;
  border-radius: 2px;
}

.drawing__main {
  stroke-width: 2;
}

.drawing__truss {
  stroke-width: 1.2;
}

.drawing__ground {
  stroke-width: 1.2;
  stroke-dasharray: 10 4 2 4;
  color: var(--graphite);
}

.drawing__dim {
  stroke: var(--graphite);
  stroke-width: 1;
}

.drawing__label {
  fill: var(--graphite);
  font: 400 13px var(--font-text);
}

.chat figcaption {
  margin-top: 14px;
  color: var(--graphite);
  font-size: .9375rem;
  line-height: 1.45;
}

/* Одно движение на странице: переписка «проигрывается» при загрузке.
   Кто попросил систему убрать анимации, увидит всё сразу. */
@media (prefers-reduced-motion: no-preference) {
  .msg {
    animation: msg-in .5s cubic-bezier(.2, .7, .3, 1) both;
  }

  .msg--1 {
    animation-delay: .5s;
  }

  .msg--2 {
    animation-delay: 1.4s;
  }

  .msg--3 {
    animation-delay: 2.6s;
  }
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Разделы: общий каркас ---------- */

.section {
  padding-block: clamp(56px, 9vw, 112px);
}

/* Чередование фонов: оцинковка → лист → оцинковка… */
.section--sheet {
  background: var(--sheet);
  border-block: 1px solid var(--line);
}

/* Тёмная полоса «окалина» — одна на странице, для призыва прислать фото */
.section--steel {
  --focus: var(--signal);
  background: var(--steel);
  color: var(--zinc);
}

.section__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section__title {
  max-width: 20ch;
  margin: 0 0 .35em;
  font: 800 clamp(2.25rem, 1.6rem + 3.2vw, 4rem)/.95 var(--font-display);
  letter-spacing: -.005em;
  text-wrap: balance;
}

/* Заголовок без вводного абзаца под ним */
.section__title--spaced {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section__lead {
  max-width: 36em;
  margin: 0 0 clamp(32px, 5vw, 56px);
  font-size: clamp(1.125rem, 1rem + .4vw, 1.25rem);
}

/* Заголовки внутри разделов — один размер на всю страницу */
.benefit__title,
.plate__title,
.project__title,
.step__title,
.term__title {
  margin: 0 0 8px;
  font: 600 1.25rem/1.3 var(--font-text);
}

/* ---------- 2. Что даёт сайт ---------- */

.benefits {
  display: grid;
  column-gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  padding-block: 22px 28px;
  border-top: 2px solid var(--steel);
}

.benefit p {
  margin: 0;
}

@media (min-width: 760px) {
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Табличка на заклёпках (заклёпки — общее правило выше, у .chat__plate) */
.plate {
  position: relative;
  padding: 34px 30px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.plate__title {
  margin-bottom: 16px;
}

.plate--benefits {
  margin-top: clamp(24px, 4vw, 40px);
}

/* На широком экране список в табличке — в две колонки */
@media (min-width: 760px) {
  .plate--benefits .rivet-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}

/* ---------- 3. Примеры ---------- */

.projects {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 680px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.project__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
}

.project__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 22px 22px;
}

.project__badge {
  margin: 0 0 4px;
  padding: 1px 10px;
  border: 1.5px solid var(--steel);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
}

/* «Демо» и пакет — в одну строку, при нехватке места переносятся */
.project__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 4px;
}

.project__tags .project__badge {
  margin: 0;
}

/* ссылка на пакет в разделе цен; область нажатия 44 px по высоте,
   отрицательный отступ сохраняет расстояния в карточке */
.project__package {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -10px;
  font-size: .875rem;
  font-weight: 600;
}

/* состав пакета — одна строка под ссылкой на пакет */
.project__package-note {
  margin: -4px 0 4px;
  color: var(--graphite);
  font-size: .875rem;
}

.project__title {
  margin: 0;
}

.project__desc {
  margin: 0;
  color: var(--graphite);
  font-size: 1rem;
}

.project__link,
.project__soon {
  margin-top: auto;
  padding-top: 10px;
}

.project__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
}

/* вторая ссылка (страница вида работ) — сразу под «Открыть сайт» */
.project__link + .project__link {
  margin-top: 0;
  padding-top: 0;
}

.project__soon {
  margin-bottom: 0;
  color: var(--graphite);
  font-size: 1rem;
}

/* ---------- 4. Пакеты и цены ---------- */

.packages {
  display: grid;
  gap: 24px;
}

@media (min-width: 820px) {
  .packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.package,
.service {
  padding: 26px 28px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--steel);
  border-radius: 3px;
}

.package__name {
  margin: 0;
  font: 600 1.375rem/1.2 var(--font-text);
}

.package__price {
  margin: 8px 0 4px;
  font: 800 clamp(2.75rem, 2.2rem + 2.4vw, 3.75rem)/1 var(--font-display);
  white-space: nowrap;
}

/* Знак рубля в крупной цене: в заголовочном шрифте его нет, берём Golos */
.rub {
  font-family: var(--font-text);
  font-size: .78em;
  font-weight: 600;
}

.package__per {
  color: var(--graphite);
  font: 400 1.125rem/1 var(--font-text);
}

.package__term {
  margin: 0 0 20px;
  color: var(--graphite);
  font-size: 1rem;
}

.service {
  display: grid;
  gap: 8px 48px;
  margin-top: 24px;
  border-top-color: var(--graphite);
}

@media (min-width: 820px) {
  .service {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.service__year {
  margin: 0 0 12px;
  font-weight: 600;
}

.service .package__term {
  margin-bottom: 8px;
}

.service__label {
  margin: 16px 0 10px;
  font: 600 1rem/1.3 var(--font-text);
}

.service__label:first-child {
  margin-top: 6px;
}

.service__excluded {
  margin: 0;
}

/* Без обслуживания — спокойная строка, без рамки пакета */
.on-demand {
  margin-top: 24px;
  padding: 22px 28px 24px;
  background: var(--zinc);
  border-left: 4px solid var(--graphite);
}

.on-demand p {
  max-width: 48em;
  margin: 6px 0 0;
}

/* Выгода для компаний: самозанятый — без НДФЛ и взносов у заказчика */
.packages__business {
  max-width: 48em;
  margin: 20px 0 0;
  padding: 18px 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--steel);
  border-radius: 3px;
}

.packages__business strong {
  font-weight: 600;
}

.packages__note {
  margin: 24px 0 0;
  color: var(--graphite);
  font-size: 1rem;
}

/* ---------- 5. Как проходит работа ---------- */

/* Это настоящая последовательность, поэтому шаги пронумерованы */
.steps {
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 16px;
  padding-block: 20px 24px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  grid-row: 1 / span 2;
  color: var(--steel);
  font: 800 3rem/.9 var(--font-display);
}

.step__title {
  margin-bottom: 6px;
}

.step p {
  margin: 0;
}

.terms {
  display: grid;
  gap: 28px 48px;
  margin-top: clamp(40px, 6vw, 64px);
}

@media (min-width: 760px) {
  .terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.term {
  padding-top: 20px;
  border-top: 2px solid var(--steel);
}

.term p {
  margin: 0;
}

/* ---------- 6. Демо до оплаты ---------- */

.demo {
  max-width: calc(860px + 2 * var(--gutter));
}

.section--steel .section__title {
  color: var(--white);
}

.demo__text {
  max-width: 36em;
  margin: 0 0 28px;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
}

.demo__note {
  margin: 14px 0 0;
  color: #B9C3C8;
  font-size: 1rem;
}

/* ---------- 7. Частые вопросы ---------- */

.faq {
  max-width: 860px;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__question {
  position: relative;
  display: block;
  padding: 18px 52px 18px 0;
  font: 600 1.1875rem/1.35 var(--font-text);
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

/* Плюс, который превращается в минус, когда ответ открыт */
.faq__question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background:
    linear-gradient(var(--steel), var(--steel)) center / 20px 2.5px no-repeat,
    linear-gradient(var(--steel), var(--steel)) center / 2.5px 20px no-repeat;
}

.faq__item[open] > .faq__question::after {
  background: linear-gradient(var(--steel), var(--steel)) center / 20px 2.5px no-repeat;
}

.faq__answer {
  max-width: 40em;
  padding-bottom: 22px;
}

.faq__answer p {
  margin: 0 0 12px;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* ---------- 8. Контакты ---------- */

.contacts {
  display: grid;
  gap: 32px 64px;
}

@media (min-width: 960px) {
  .contacts {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .contacts__owner {
    grid-column: 1 / -1;
  }
}

.contacts__intro .section__lead {
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 2px 16px;
  min-height: 72px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
}

.contact:hover {
  border-color: var(--steel);
}

.contact__icon {
  grid-row: 1 / span 3;
  width: 28px;
  height: 28px;
}

.contact__label,
.contact__hint {
  color: var(--graphite);
  font-size: .9375rem;
}

.contact__value {
  font: 600 clamp(1.1875rem, 1rem + .8vw, 1.375rem)/1.25 var(--font-text);
  overflow-wrap: anywhere;
}

/* Telegram — главный способ связи, поэтому жёлтый */
.contact--main {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: inset 0 -3px 0 rgba(30, 42, 49, .2);
}

.contact--main:hover {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
}

.contact--main .contact__label {
  color: var(--steel);
}

.contacts__owner {
  max-width: 48em;
  margin: 0;
  color: var(--graphite);
}

/* ---------- Подвал ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 32px var(--gutter) 40px;
  color: var(--graphite);
  font-size: .9375rem;
}

.site-footer p {
  margin: 0 0 6px;
}

/* ---------- Страница 404 ---------- */

.not-found {
  min-height: 60vh;
}
