/* Кольская кузня — kuznya51.ru */

@font-face { font-family: "Golos"; src: url("../fonts/golos-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; src: url("../fonts/golos-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Golos"; src: url("../fonts/golos-cyrillic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; src: url("../fonts/golos-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Golos"; src: url("../fonts/golos-cyrillic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; src: url("../fonts/golos-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Forge"; src: url("../fonts/fsec-cyrillic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Forge"; src: url("../fonts/fsec-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Forge"; src: url("../fonts/fsec-cyrillic-800.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Forge"; src: url("../fonts/fsec-latin-800.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --frost: #E8EBED;      /* светлая сталь, фон */
  --frost-2: #DCE1E5;
  --ink: #1C232B;        /* графит */
  --steel: #55687A;      /* сталь, второстепенный текст */
  --line: #C3CBD2;
  --straw: #D9B45A;      /* побежалость 220–240 °C */
  --bronze: #A86A2C;     /* 255 °C */
  --purple: #6E3F6E;     /* 270–285 °C */
  --blue: #2B5C8E;       /* 295–300 °C */
  --cta: #8F5521;
  --cta-hover: #6E3F6E;
  --night: #1C232B;
  --on-night: #E8EBED;
  --on-night-dim: #9FB0BF;

  --font-body: "Golos", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Forge", "Arial Narrow", "Roboto Condensed", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.75rem, 7.5vw, 5.75rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: var(--step-3); margin-bottom: 0.6em; }
h3 { font-size: var(--step-2); font-weight: 600; line-height: 1.1; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: var(--frost); padding: 8px 12px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.4em;
  font: 600 var(--step-0)/1 var(--font-body);
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-hover); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--frost); }

/* Шапка */
.site-header { border-bottom: 1px solid var(--line); background: var(--frost); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { text-decoration: none; font-weight: 500; }
.header-nav a:hover { color: var(--cta); }
.header-phone { font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) { .header-nav .nav-link { display: none; } }
@media (max-width: 420px) { .logo__name { font-size: 1.25rem; } .header-phone { font-size: .95rem; } }

/* Первый экран */
.hero { padding: clamp(40px, 8vw, 96px) 0 0; }
.hero h1 { font-size: var(--step-4); max-width: 13ch; }
.hero__lead { font-size: var(--step-1); line-height: 1.45; color: var(--steel); margin: 28px 0 32px; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__terms { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 32px; font-weight: 500; }
.hero__terms li { padding-left: 18px; position: relative; }
.hero__terms li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--bronze); }

/* Полоса побежалости — главный элемент */
.temper { margin: clamp(48px, 7vw, 88px) 0 0; }
.temper__bar {
  height: clamp(56px, 9vw, 96px);
  /* стопы совпадают с центрами шести колонок шкалы (8.3%, 25%, 41.7%, 58.3%, 75%, 91.7%) */
  background: linear-gradient(90deg,
    #EDE3B8 0%, #E9DBA4 8.3%, var(--straw) 25%, var(--bronze) 41.7%,
    var(--purple) 58.3%, var(--blue) 75%, #8D9AA6 91.7%, #8D9AA6 100%);
  transform-origin: left center;
  animation: heat 1.6s cubic-bezier(.2,.7,.2,1) .2s both;
}
@keyframes heat { from { transform: scaleX(0); filter: brightness(1.6) saturate(.4); } to { transform: scaleX(1); filter: none; } }
.temper__scale { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--ink); }
.temper__scale li { border-right: 1px solid var(--line); padding: 10px 10px 0; font-size: var(--step--1); color: var(--steel); line-height: 1.3; }
.temper__scale b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.temper__note { font-size: var(--step--1); color: var(--steel); margin-top: 14px; }
@media (max-width: 640px) {
  .temper__scale { grid-template-columns: repeat(3, 1fr); }
  .temper__scale li:nth-child(n+4) { padding-top: 14px; }
}

/* Секции */
.section { padding: clamp(64px, 9vw, 120px) 0; scroll-margin-top: 68px; }
.section--tight-top { padding-top: 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 48px; align-items: end; margin-bottom: 48px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 0; color: var(--steel); }
@media (max-width: 860px) { .section__head { grid-template-columns: 1fr; } }

/* Услуги: главные три — крупно, остальные — списком */
.services-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.service { padding: 28px 28px 32px 0; }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service h3 { margin-bottom: 14px; }
.service p { color: var(--steel); }
.service ul { margin: 0; padding: 0; list-style: none; }
.service li { padding: 7px 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .services-main { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
}

.services-more { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.services-more > div { border-top: 1px solid var(--ink); padding-top: 16px; }
.services-more h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.services-more p { color: var(--steel); font-size: var(--step--1); margin: 0; }
@media (max-width: 860px) { .services-more { grid-template-columns: 1fr; gap: 24px; } }

/* Работы */
.works { background: var(--frost-2); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; }
.gallery figure:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery figure:nth-child(2), .gallery figure:nth-child(3) { grid-column: span 5; }
.gallery figure:nth-child(n+4) { grid-column: span 4; }
.ph {
  width: 100%; flex: 1 1 auto; min-height: 220px; aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(28,35,43,.05) 14px 15px),
    linear-gradient(160deg, #C9D1D7, #AEB9C2);
  display: flex; align-items: center; justify-content: center;
  color: var(--steel); font-size: var(--step--1);
}
.gallery figure:nth-child(1) .ph { aspect-ratio: auto; }
.gallery figcaption { padding: 10px 0 0; font-size: var(--step--1); }
.gallery figcaption b { font-weight: 600; }
.works__more { margin-top: 32px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph { min-height: 0; }
  .gallery figure:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .gallery figure:nth-child(1), .gallery figure:nth-child(6) { grid-column: span 2; }
  .gallery figure:nth-child(1) .ph { aspect-ratio: 4 / 3; }
}

/* Порядок работы */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; color: var(--bronze); margin-bottom: 12px; }
.steps h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.steps p { color: var(--steel); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* География */
.area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 48px; align-items: start; }
.towns { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.towns li { padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.towns li.home { font-weight: 600; }
.towns small { color: var(--steel); font-size: var(--step--1); margin-left: 6px; }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } }

/* Заявка — полярная ночь */
.order { background: var(--night); color: var(--on-night); }
.order h2 { color: var(--on-night); }
.order .section__head p { color: var(--on-night-dim); }
.order__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--frost);
  border: 2px solid transparent; border-radius: var(--radius);
  padding: 12px 14px; min-height: 52px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--straw); }
.field [aria-invalid="true"] { border-color: #E07A5F; }
.field__error { color: #F0A58F; font-size: var(--step--1); min-height: 1.2em; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: var(--step--1); color: var(--on-night-dim); }
.consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--straw); }
.consent a { color: var(--on-night); }
.form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form__status { margin: 0; }
.form__status.ok { color: var(--straw); }
.form__status.err { color: #F0A58F; }
.order__contacts { border-left: 1px solid #3A4552; padding-left: 32px; }
.order__contacts dl { margin: 0; }
.order__contacts dt { color: var(--on-night-dim); font-size: var(--step--1); margin-top: 20px; }
.order__contacts dt:first-child { margin-top: 0; }
.order__contacts dd { margin: 4px 0 0; font-size: var(--step-1); }
.order__contacts a { color: var(--on-night); }
.order__contacts .big { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); text-decoration: none; }
@media (max-width: 860px) {
  .order__grid { grid-template-columns: 1fr; }
  .order__contacts { border-left: 0; padding-left: 0; border-top: 1px solid #3A4552; padding-top: 32px; }
}
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Подвал */
.site-footer { background: var(--night); color: var(--on-night-dim); border-top: 1px solid #3A4552; padding: 32px 0 40px; font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--on-night); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Юридические страницы */
.doc { padding: 56px 0 96px; }
.doc h1 { font-size: var(--step-3); margin-bottom: 8px; max-width: 22ch; }
.doc h2 { font-size: var(--step-2); margin: 2em 0 .6em; }
.doc .doc__meta { color: var(--steel); margin-bottom: 40px; }
.doc ol, .doc ul { max-width: 68ch; padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc table { border-collapse: collapse; max-width: 68ch; width: 100%; margin-bottom: 1em; }
.doc td { border-top: 1px solid var(--line); padding: 8px 12px 8px 0; vertical-align: top; }
.doc td:first-child { color: var(--steel); width: 40%; }
