/* Пиллар-Сталь — pillar.therebro.ru */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/unbounded-latin.woff2") format("woff2");
  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: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  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;
}

/* Токены: navy — основа, сталь — рёбра профнастила, оранжевый — только действия */
:root {
  --navy: #0d2444;
  --ink: #0a1a30;
  --steel: #23446f;
  --steel-light: #35598a;
  --steel-dark: #16335a;
  --orange: #f28c28;
  --orange-2: #d9741a;
  --paper: #f3f5f8;
  --paper-2: #e6ebf2;
  --white: #ffffff;
  --text: #172033;
  --muted: #5b6880;
  --muted-2: #8390a5;
  --rule: #d9e0ea;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Unbounded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --pad-x: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 20px; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.container { width: min(1160px, 100% - var(--pad-x) * 2); margin: 0 auto; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; text-wrap: pretty; }
.lead { color: var(--muted); font-size: 17px; text-wrap: pretty; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rib-strip {
  height: 14px;
  background-image: repeating-linear-gradient(90deg,
    var(--paper-2) 0 26px, var(--white) 26px 34px, #cfd8e3 34px 40px, var(--paper-2) 40px 52px);
}
.rib-strip-dark {
  background-image: repeating-linear-gradient(90deg,
    var(--steel-dark) 0 26px, var(--steel) 26px 34px, var(--ink) 34px 40px, var(--steel-dark) 40px 52px);
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 17px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 18px; }
.btn-sm { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: rgba(255,255,255,.75); }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--white);
}
.header .container { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; }
.logo-text > span { color: var(--orange); }
.logo-text small { display: block; margin-top: 5px; font-family: var(--font); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6); }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--white); }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--white); text-decoration: none; }
.header-phone-num { font-weight: 800; font-size: 18px; }
.header-phone-note { font-size: 12px; color: rgba(255,255,255,.6); }

/* Первый экран: текст слева, лист профнастила с биркой цен справа */
.hero { background: var(--navy); color: var(--white); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; }
.hero-sub { margin-top: 22px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: rgba(255,255,255,.82); max-width: 560px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-terms { display: flex; flex-direction: column; gap: 10px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-terms li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.88); }
.hero-terms .ico { color: var(--orange); stroke-width: 2.4; }

.hero-plate { position: relative; padding: 0 0 140px 0; }
.plate { position: relative; margin: 0; aspect-ratio: 5 / 4; border-radius: 6px; overflow: hidden; background: var(--steel-dark); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.plate figcaption {
  position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 4px;
  background: rgba(13,36,68,.82); color: var(--white); font-size: 13px; font-weight: 700;
}
.tag {
  position: absolute; right: -28px; bottom: 0; width: min(100%, 300px);
  background: var(--white); color: var(--text);
  border-radius: 6px; padding: 20px 22px 16px;
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.tag::before {
  /* заклёпка, которой бирка «прибита» к листу */
  content: ""; position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--steel-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.tag-title { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.tag li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 600; }
.tag li:first-child { border-top: 0; }
.tag b { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.tag b small { font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--muted); }
.tag p { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted-2); }

/* Услуги: линованный список вместо карточек */
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--navy); }
.service { display: flex; flex-direction: column; padding: 28px 0 30px; border-bottom: 1px solid var(--rule); }
.service .ico { width: 30px; height: 30px; color: var(--orange-2); }
.service h3 { margin-top: 18px; }
.service p { margin-top: 10px; font-size: 16px; color: var(--muted); flex-grow: 1; text-wrap: pretty; }
.service .from { margin-top: 18px; font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--navy); }
.service .from small { font-family: var(--font); font-weight: 600; color: var(--muted); font-size: 15px; }

/* Цены */
.prices { background: var(--paper); }
.prices-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.prices-intro .lead { margin-top: 14px; }
.prices-intro .aside { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); text-wrap: pretty; }
.prices-intro .aside b { color: var(--navy); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.price-table th { padding-top: 0; padding-bottom: 12px; border-bottom: 2px solid var(--navy); font-size: 14px; font-weight: 700; color: var(--muted); }
.price-table th:last-child, .price-table td:last-child { text-align: right; white-space: nowrap; padding-right: 0; }
.price-table td { font-size: 18px; font-weight: 700; }
.price-table td small { display: block; font-size: 14px; font-weight: 400; color: var(--muted-2); margin-top: 3px; }
.price-table td:last-child small { display: inline; font-weight: 700; }
.price-table td b { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--navy); }
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 28px; background: var(--navy); color: var(--white); border-radius: 6px; padding: 22px 26px;
}
.banner b { display: block; font-size: 18px; font-weight: 800; }
.banner p { margin-top: 4px; font-size: 15px; color: rgba(255,255,255,.72); }

/* Этапы: одна линия с номерами, потому что это действительно последовательность */
.steps-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps-line li { position: relative; padding-top: 22px; border-top: 3px solid var(--rule); }
.steps-line li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -17px; left: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-family: var(--font-display); font-size: 14px; font-weight: 800; line-height: 32px; text-align: center;
}
.steps-line h3 { font-size: 19px; }
.steps-line p { margin-top: 10px; font-size: 15px; color: var(--muted); text-wrap: pretty; }

/* Почему я: тёмная полоса, простые колонки */
.why { background: var(--navy); color: var(--white); }
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.why .lead { margin-top: 16px; color: rgba(255,255,255,.75); }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.why-list li { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.why-list .ico { width: 30px; height: 30px; color: var(--orange); }
.why-list h3 { margin-top: 14px; font-size: 18px; }
.why-list p { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.72); text-wrap: pretty; }

/* Работы: две широкие колонки, подпись под фото как на бирке */
.works { background: var(--white); }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.works-grid figure { margin: 0; }
.works-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.works-grid figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.works-tall img { object-position: center 42%; }

/* Портрет мастера в блоке «Почему я» */
.why-photo { margin: 28px 0 0; max-width: 300px; }
.why-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 6px; background: var(--steel-dark); }
.why-photo figcaption { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.65); }

/* Контакты */
.contacts { background: var(--white); }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 24px; height: 24px; color: var(--orange-2); margin-top: 4px; }
.contact-list b { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.contact-list a { display: inline-block; font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--navy); text-decoration: none; }
.contact-list a:hover { color: var(--orange-2); }
.contact-list .strong { display: block; font-size: 20px; font-weight: 800; color: var(--navy); }
.contact-list small { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.map { display: flex; flex-direction: column; gap: 10px; }
.map iframe { width: 100%; height: 400px; border: 0; border-radius: 6px; background: var(--paper-2); }
.map-link { font-size: 15px; font-weight: 700; color: var(--orange-2); text-decoration: none; align-self: flex-start; }
.map-link:hover { text-decoration: underline; }

/* Подвал */
.footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: 14px; }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding: 32px 0 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand svg { width: 24px; height: 24px; }
.footer-brand b { color: var(--white); }
.footer-phone { color: var(--white); font-weight: 800; text-decoration: none; }
.requisites { flex-basis: 100%; color: rgba(255,255,255,.45); font-size: 13px; }

/* Закреплённая кнопка звонка на телефоне */
.call-bar {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  min-height: 56px; padding: 0 16px; font-size: 18px; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* Адаптив */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-plate { max-width: 520px; padding-bottom: 120px; }
  .tag { right: 0; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .prices-grid, .why-grid, .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 80px; }
  .header .container { min-height: 64px; gap: 12px; }
  .header-phone { display: none; }
  .header-call { margin-left: auto; min-height: 44px; padding: 0 14px; font-size: 14px; gap: 8px; }
  .header-call .ico { width: 18px; height: 18px; }
  .logo svg { width: 32px; height: 32px; }
  .logo { gap: 10px; }
  .logo-text { font-size: 18px; }
  .logo-text small { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-cta .btn { width: 100%; }
  .hero-plate { padding-bottom: 0; }
  .plate { aspect-ratio: 16 / 10; border-radius: 6px 6px 0 0; box-shadow: none; }
  .tag { position: relative; right: auto; bottom: auto; width: 100%; border-radius: 0 0 6px 6px; padding: 18px 18px 14px; }
  .tag li { padding: 10px 0; font-size: 15px; }
  .tag b { font-size: 17px; }
  .service-list { grid-template-columns: 1fr; gap: 0; }
  .service { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 16px; padding: 22px 0; }
  .service .ico { grid-row: 1 / 4; margin-top: 2px; }
  .service h3 { margin-top: 0; font-size: 17px; }
  .service p { margin-top: 6px; font-size: 15px; }
  .service .from { margin-top: 10px; font-size: 14px; }
  .price-table th, .price-table td { padding: 14px 8px 14px 0; }
  .price-table td { font-size: 16px; }
  .price-table td small { font-size: 13px; }
  .price-table td b { font-size: 16px; }
  .banner { flex-direction: column; align-items: stretch; padding: 20px; }
  .banner .btn { width: 100%; }
  .steps-line { grid-template-columns: 1fr; gap: 36px; }
  .works-grid { grid-template-columns: 1fr; gap: 22px; }
  .why-list { grid-template-columns: 1fr; gap: 24px; }
  .why-photo { max-width: 100%; }
  .why-photo img { aspect-ratio: 4 / 3; }
  .contact-list a { font-size: 20px; }
  .contact-list .strong { font-size: 17px; }
  .map iframe { height: 240px; }
  .footer .container { flex-direction: column; align-items: flex-start; }
  .call-bar { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
