@font-face {
  font-family: Roboto;
  src: url("assets/roboto-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: Roboto;
  src: url("assets/roboto-latin.woff2") format("woff2");
  font-weight: 400 900;
  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;
}

:root {
  color-scheme: light;
  /* Elementor menu and buttons, and the contact page's requisites panel. */
  --blue: #26317f;
  --button: #3047b4;
  --button-dark: #1b2a78;
  --orange: #f99f24;
  --nav-orange: #f7aa3b;
  --ink: #1d2330;
  --muted: #475569;
  --line: #d9deee;
  --steel: #141414;
  --nav-height: 68px;
  --gutter: clamp(16px, 4vw, 58px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-height) + 16px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--steel) url("assets/psk-steel.webp") center top / max(100%, 920px) auto repeat-y;
  font: 16px/1.55 Roboto, Arial, sans-serif;
}
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid #046bd2; outline-offset: 3px; }
.wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.header { background: #fff; }
.header-inner {
  width: min(1480px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
  padding-block: 24px 28px;
  text-align: center;
}
.brand-link { display: block; width: min(100%, 610px); margin-inline: auto; }
.logo { width: 100%; height: auto; }
.brand p { margin-top: 12px; }
.brand p, .header-contacts p { color: #334155; }
.header-contacts { display: grid; justify-items: center; gap: 10px; }
.phone { font-size: 23px; font-weight: 800; line-height: 1.2; text-decoration: none; }
.phone:hover { text-decoration: underline; }
.socials { display: flex; gap: 6px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 5px;
}
.socials a:not(.max) img { filter: invert(1); }
.socials .whatsapp { background: #25d366; }
.socials .telegram { background: #2ca5e0; }
.socials .vk { background: #45668e; }
.socials .max { background: #69727d; }

.main-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #fff 0%, var(--nav-orange) 100%);
  box-shadow: 0 1px 0 #0003;
}
.nav-inner {
  min-height: var(--nav-height);
  display: grid;
  place-items: center;
}
.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
}
.main-nav li + li::before {
  content: "";
  border-left: 1px solid #77490f;
  height: 13px;
  display: inline-block;
  vertical-align: middle;
}
.main-nav a {
  display: inline-block;
  padding: 11px 17px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}
.main-nav a:hover { text-decoration: underline; }
.main-nav [aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-toggle { display: none; }

.page-heading {
  padding-block: 21px 18px;
  text-align: center;
  color: var(--blue);
  background: linear-gradient(180deg, var(--nav-orange), #fff);
}
h1 { font-size: clamp(23px, 3vw, 40px); font-weight: 700; line-height: 1.12; text-transform: uppercase; }
.page-heading p { margin-top: 5px; font-size: 14px; color: var(--ink); }
.hero, .project, .estimate-inner { padding-block: clamp(24px, 4vw, 53px); }
.hero-inner, .project-card, .estimate-inner { display: grid; align-items: center; }
.hero-inner, .project-card, .section-heading, form {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 10px;
}
.hero-inner {
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  overflow: hidden;
}
.hero-copy, .project-copy { padding: clamp(22px, 3.5vw, 50px); }
h2 {
  color: var(--blue);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.18;
}
.hero-intro { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 370px; margin-top: 14px; }
.hero-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 11px 18px; }
.text-link { font-size: 15px; font-weight: 600; }
.button, .nav-toggle {
  min-height: 44px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--button);
  color: #fff;
  text-decoration: none;
  font: 800 14px/1.3 Roboto, Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}
.button { display: inline-flex; align-items: center; justify-content: center; }
.button:hover, .nav-toggle:hover { background: var(--button-dark); }
.button:disabled { opacity: .65; cursor: default; }
.hero-note { color: var(--muted); margin-top: 11px; font-size: 13px; }
.hero-image { align-self: stretch; display: flex; flex-direction: column; background: #f6f7fb; }
.hero-image img { width: 100%; flex: 1; min-height: 0; aspect-ratio: 1.75; object-fit: cover; }
.hero-image figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}
.hero-image figcaption span { font-weight: 600; }

.project { padding-top: 0; }
.section-heading { padding: 18px 24px; margin-bottom: 16px; text-align: center; }
.section-heading h2 { font-size: clamp(23px, 2.4vw, 32px); text-transform: uppercase; }
.section-heading p { color: var(--muted); margin-top: 4px; }
.project-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; }
.project-card > img { width: 100%; height: 100%; object-fit: cover; }
.example-tag { color: var(--muted); font-size: 13px; border-left: 3px solid var(--orange); padding-left: 10px; }
h3 { color: var(--blue); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.12; margin: 12px 0 9px; }
.project-copy > p { color: var(--muted); }
dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
dt, .caption { font-size: 13px; color: var(--muted); }
dd { color: var(--blue); font-size: 21px; font-weight: 700; }
.caption { margin-top: 10px; }

.estimate { background: #f6f7fb; border-block: 1px solid var(--line); }
.estimate-inner {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(22px, 6vw, 82px);
}
.estimate-copy > p { max-width: 380px; color: var(--muted); margin-top: 13px; }
.estimate-copy .form-note { border-left: 3px solid var(--orange); padding-left: 12px; font-size: 14px; color: var(--ink); }
form { padding: clamp(15px, 3vw, 32px); min-width: 0; }
.form-row, .dimensions { display: grid; gap: 12px; }
.form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.dimensions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label, legend { font-weight: 600; font-size: 14px; }
fieldset { margin: 16px 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 6px; padding: 0; color: var(--blue); }
input, select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  border: 1px solid #a3aec8;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font: 16px Roboto, Arial, sans-serif;
}
input::placeholder { color: #59677d; }
.attachment { display: block; border: 1px dashed #8e9bb8; border-radius: 5px; background: #f6f7fb; padding: 11px; }
.attachment span, .attachment small { color: var(--muted); font-weight: 400; font-size: 13px; }
.attachment input { background: transparent; border: 0; padding: 0; font-size: 14px; }
::file-selector-button { min-height: 40px; margin-right: 9px; border: 1px solid #a3aec8; border-radius: 5px; background: white; padding: 5px 9px; color: var(--blue); font: inherit; cursor: pointer; }
.attachment small { display: block; }
form .button { margin-top: 14px; }
.status { color: var(--blue); font-size: 14px; }
.status:not(:empty) { margin-top: 9px; }

.footer { color: #f4f6fb; text-align: center; }
.footer-inner { padding-block: 25px; font-size: 14px; }
.footer-inner p + p { margin-top: 5px; }
.footer a { color: #ffbb60; margin-inline: 8px; }

@media (max-width: 820px) {
  :root { --nav-height: 58px; }
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 15px;
    padding-block: 14px 17px;
  }
  .brand-link { width: min(100%, 350px); }
  .brand p { max-width: 360px; font-size: 14px; margin: 5px auto 0; }
  .header-contacts { gap: 6px; }
  .header-contacts p { font-size: 14px; }
  .nav-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    background: var(--button-dark);
  }
  .nav-toggle:hover { background: var(--button); }
  .menu-icon {
    width: 18px;
    height: 12px;
    border-block: 2px solid currentColor;
    display: grid;
    align-items: center;
  }
  .menu-icon::after { content: ""; border-top: 2px solid currentColor; }
  .main-nav:has(.nav-toggle[hidden]) { position: static; }
  .main-nav ul { display: grid; justify-content: stretch; }
  .nav-toggle:not([hidden])[aria-expanded="false"] + ul { display: none; }
  .nav-toggle[aria-expanded="true"] + ul {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    max-height: calc(100vh - var(--nav-height));
    overflow: auto;
    background: #fff;
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 8px 20px #0003;
  }
  .main-nav li + li::before { display: none; }
  .main-nav a { width: 100%; padding: 11px var(--gutter); font-size: 15px; }
  .main-nav a:focus-visible { outline-offset: -4px; }
  .main-nav li + li { border-top: 1px solid var(--line); }
  .hero-inner, .project-card, .estimate-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-image img { aspect-ratio: 1.65; }
  .project-card > img { height: auto; aspect-ratio: 1.85; }
}

@media (max-width: 500px) {
  .header-inner { gap: 11px; padding-block: 12px; }
  .brand-link { width: min(100%, 320px); }
  .phone { font-size: 21px; }
  .hero { padding-top: 16px; }
  .page-heading { padding-block: 14px 12px; }
  .hero-copy, .project-copy { padding: 17px; }
  .hero-intro { margin-top: 9px; }
  .hero-actions { margin-top: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .dimensions { gap: 7px; }
  .dimensions label { font-size: 13px; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .nav-toggle { transition: background-color 160ms ease-out; }
  .brand, .header-contacts { animation: appear 360ms ease-out both; --enter-y: -6px; }
  .header-contacts { animation-delay: 55ms; }
  .hero-copy { animation: appear 400ms 85ms ease-out both; --enter-y: 8px; }
  .hero-image { animation: appear 440ms 140ms ease-out both; --enter-scale: .99; }
  .entered { animation: appear 360ms ease-out both; --enter-y: 6px; }
}

@keyframes appear {
  from { opacity: .84; transform: translateY(var(--enter-y, 0)) scale(var(--enter-scale, 1)); }
  to { opacity: 1; transform: none; }
}
