/*
Theme Name: Проф Поставка
Theme URI: https://pf-postavka.ru
Author: Проф Поставка
Description: Кастомная промышленная тема на WordPress и ACF Pro.
Version: 0.1.3
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: prof-postavka
*/

:root {
  --pp-ink: #0b1624;
  --pp-steel: #1e4058;
  --pp-paper: #f2f0ea;
  --pp-orange: #f36b3d;
  --pp-cyan: #72b7c8;
  --pp-line: rgba(11, 22, 36, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-wrap: break-word; }
:focus-visible { outline: 3px solid var(--pp-cyan); outline-offset: 5px; }
.pp-skip { position: fixed; top: -100px; left: 16px; z-index: 99999; padding: 12px 18px; background: var(--pp-paper); color: var(--pp-ink); }
.pp-skip:focus { top: 12px; }
body {
  margin: 0;
  color: var(--pp-ink);
  background: var(--pp-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.pp-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.pp-eyebrow {
  color: var(--pp-orange); font-size: 12px; font-weight: 800; letter-spacing: .13em;
  line-height: 1.2; text-transform: uppercase;
}
.pp-display { font-size: clamp(42px, 6.2vw, 84px); font-weight: 780; letter-spacing: -.055em; line-height: .98; }
.pp-lead { color: rgba(242, 240, 234, .76); font-size: clamp(18px, 2vw, 23px); max-width: 680px; }
.pp-section { padding: 112px 0; }
.pp-section--dark { color: var(--pp-paper); background: var(--pp-ink); }
.pp-section__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.pp-section__title { margin: 0; font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -.045em; line-height: 1.02; }
.pp-section__text { max-width: 520px; color: rgba(11, 22, 36, .67); }
.pp-section--dark .pp-section__text { color: rgba(242, 240, 234, .68); }

.pp-site-header { position: absolute; z-index: 10; inset: 0 0 auto; color: var(--pp-paper); }
.pp-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 24px; }
.pp-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.pp-brand__mark { width: 34px; height: 34px; border: 2px solid currentColor; border-radius: 9px; position: relative; }
.pp-brand__mark::before, .pp-brand__mark::after { content: ""; position: absolute; background: var(--pp-orange); }
.pp-brand__mark::before { width: 16px; height: 2px; left: 7px; top: 9px; box-shadow: 0 7px 0 var(--pp-cyan); }
.pp-brand__mark::after { width: 2px; height: 16px; right: 8px; top: 7px; }
.pp-brand__name { font-size: 14px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.pp-menu { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.pp-menu-toggle { display: none; font: inherit; font-size: 13px; color: inherit; background: transparent; border: 1px solid rgba(242,240,234,.35); padding: 8px 12px; border-radius: 6px; cursor: pointer; align-items: center; gap: 9px; }
.pp-nav a { color: inherit; font-size: 13px; font-weight: 700; text-decoration: none; opacity: .78; }
.pp-nav a:hover, .pp-nav a:focus { opacity: 1; }
.pp-phone { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.pp-phone::before { content: "↗"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--pp-ink); background: var(--pp-orange); }

.pp-hero { position: relative; min-height: 780px; display: flex; align-items: end; overflow: hidden; color: var(--pp-paper); background: var(--pp-ink); }
.pp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 22, 36, .94) 0%, rgba(11, 22, 36, .66) 50%, rgba(11, 22, 36, .22) 100%); pointer-events: none; }
.pp-hero__media { position: absolute; inset: 0; background: radial-gradient(circle at 76% 35%, rgba(114,183,200,.28), transparent 32%), linear-gradient(130deg, #0b1624, #1e4058 52%, #0b1624); }
.pp-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .68; }
.pp-hero__grid { position: relative; z-index: 1; width: 100%; padding: 170px 0 80px; }
.pp-hero__content { max-width: 850px; }
.pp-hero__title { margin: 22px 0 26px; }
.pp-hero__note { display: inline-flex; align-items: center; gap: 12px; margin-top: 54px; color: rgba(242, 240, 234, .75); font-size: 13px; }
.pp-hero__note::before { content: ""; width: 34px; height: 1px; background: var(--pp-orange); }
.pp-hero__aside { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-top: 96px; }
.pp-scroll-hint { color: rgba(242, 240, 234, .54); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.pp-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 15px 22px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.pp-button:hover { transform: translateY(-2px); }
.pp-button--accent { color: var(--pp-ink); background: var(--pp-orange); }
.pp-button--ghost { color: var(--pp-paper); border-color: rgba(242, 240, 234, .35); }

.pp-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pp-directions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pp-card__media { margin: -28px -28px 28px; background: var(--pp-paper); overflow: hidden; }
.pp-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pp-directions-grid .pp-card__icon { margin-bottom: 24px; }
.pp-card__title a { text-decoration: none; }
.pp-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pp-card { min-height: 310px; padding: 28px; border: 1px solid var(--pp-line); background: rgba(255,255,255,.34); }
.pp-card__icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 74px; color: var(--pp-orange); border: 1px solid currentColor; border-radius: 50%; font-size: 21px; }
.pp-card__title { margin: 0 0 12px; font-size: 22px; letter-spacing: -.025em; line-height: 1.05; }
.pp-card__text { margin: 0; color: rgba(11, 22, 36, .64); font-size: 14px; }
.pp-card--dark { color: var(--pp-paper); background: var(--pp-steel); border-color: transparent; }
.pp-card--dark .pp-card__text { color: rgba(242,240,234,.68); }

.pp-object-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pp-object { padding: 28px 0 24px; border-top: 1px solid rgba(242,240,234,.25); }
.pp-object__number { color: var(--pp-orange); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.pp-object__title { margin: 58px 0 10px; font-size: 25px; letter-spacing: -.03em; }
.pp-object__text { margin: 0; color: rgba(242,240,234,.65); font-size: 14px; }

.pp-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pp-process__item { padding-top: 20px; border-top: 2px solid var(--pp-orange); }
.pp-process__number { font-size: 13px; font-weight: 800; }
.pp-process__title { margin: 30px 0 10px; font-size: 23px; letter-spacing: -.02em; }
.pp-process__text { margin: 0; color: rgba(11,22,36,.62); font-size: 14px; }

.pp-page-hero { padding: 220px 0 100px; color: var(--pp-paper); background: var(--pp-ink); }
.pp-page-hero__title { margin: 22px 0 20px; max-width: 860px; }
.pp-page-hero__lead { color: rgba(242,240,234,.72); max-width: 680px; font-size: 20px; }
.pp-richtext { max-width: 760px; font-size: 19px; }
.pp-richtext p { margin: 0 0 1.2em; }
.pp-page-image { margin-top: -42px; position: relative; }
.pp-page-image img { width: 100%; height: auto; }
.pp-richtext + .pp-card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pp-index { padding-top: 86px; }
.pp-index ~ .pp-footer { margin-top: 0; }
body:not(.home):not(.page) .pp-site-header { background: var(--pp-ink); }
.admin-bar .pp-site-header { top: 32px; }
.pp-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pp-stat { padding: 24px; border: 1px solid var(--pp-line); }
.pp-stat__label { color: var(--pp-orange); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.pp-stat__value { margin-top: 38px; font-size: 28px; font-weight: 750; letter-spacing: -.03em; }

.pp-cta { padding: 80px 0; color: var(--pp-ink); background: var(--pp-orange); }
.pp-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.pp-cta h2 { max-width: 750px; margin: 0; font-size: clamp(32px, 4vw, 56px); letter-spacing: -.05em; line-height: .98; }
.pp-cta .pp-button { flex: 0 0 auto; color: var(--pp-paper); background: var(--pp-ink); border-color: var(--pp-ink); }
.pp-footer { padding: 58px 0; color: var(--pp-paper); background: var(--pp-ink); }
.pp-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.pp-footer__label { color: rgba(242,240,234,.48); font-size: 12px; text-transform: uppercase; }
.pp-footer__value { margin-top: 12px; font-size: 15px; }
.pp-footer__value a { color: inherit; text-decoration: none; }
.pp-footer__legal { margin-top: 56px; padding-top: 18px; border-top: 1px solid rgba(242,240,234,.18); color: rgba(242,240,234,.42); font-size: 12px; }

@media (max-width: 900px) {
  .pp-header__inner { flex-wrap: wrap; gap: 14px; padding-block: 18px; }
  .pp-brand { margin-right: auto; }
  .pp-nav { flex-basis: 100%; order: 4; }
  .pp-menu { flex-wrap: wrap; gap: 14px 24px; padding: 12px 0; }
  .pp-js .pp-menu-toggle { display: inline-flex; }
  .pp-js .pp-nav { display: none; }
  .pp-js .pp-nav.is-open { display: block; padding-inline: 16px; background: var(--pp-ink); }
  .pp-card-grid { grid-template-columns: repeat(2, 1fr); }
  .pp-object-grid, .pp-process { grid-template-columns: 1fr; }
  .pp-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .pp-container { width: min(100% - 32px, 1180px); }
  .pp-section { padding: 76px 0; }
  .pp-section__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .pp-header__inner { min-height: 72px; }
  .pp-phone { font-size: 12px; }
  .pp-header__inner { gap: 10px; }
  .pp-brand__name { font-size: 12px; }
  .pp-brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
  .pp-phone::before { font-size: 16px; }
  .pp-hero { min-height: 720px; }
  .pp-hero__grid { padding: 130px 0 52px; }
  .pp-hero__aside, .pp-cta__inner { align-items: flex-start; flex-direction: column; }
  .pp-card-grid, .pp-stat-grid, .pp-footer__grid { grid-template-columns: 1fr; }
  .pp-card { min-height: 250px; }
  .pp-card__icon { margin-bottom: 42px; }
  .pp-page-hero { padding: 150px 0 72px; }
}
@media (max-width: 782px) { .admin-bar .pp-site-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
