:root {
  --black: #000;
  --ink: #151515;
  --muted: #5f5f5f;
  --line: #d8d8d8;
  --paper: #fff;
  --soft: #efefef;
  --accent: #bf292e;
  --accent-dark: #961d22;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Oswald", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 100;
  background: var(--black);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.header-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 390px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px 0 27px;
  border-bottom: 1px solid var(--accent);
}

.brand img {
  width: 365px;
  transform: translate(38px, 10px);
}

.header-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.contact-line {
  display: grid;
  grid-template-columns: 36px minmax(150px, max-content);
  gap: 12px;
  align-items: center;
  font-size: 23px;
  font-weight: 300;
  line-height: 1.3;
}

.contact-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.contact-line-address .contact-icon {
  align-self: center;
}

.address-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.address-link:hover,
.address-link:focus-visible {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.header-contacts .btn {
  min-height: 60px;
  padding: 0 34px;
  font-size: 19px;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  color: #000;
}

.btn-ghost {
  color: #fff;
  border: 2px solid #fff;
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: #fff;
  color: #000;
}

.btn-wide {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  margin: 7px 0;
  background: #fff;
}

.site-nav {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-title {
  min-width: max-content;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.nav-links a {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.hero {
  min-height: clamp(540px, 68svh, 760px);
  display: grid;
  align-items: start;
  color: #fff;
  background-image: linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.22)), var(--bg);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(46px, 5vw, 70px) 0 84px;
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 300;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.95;
  font-weight: 300;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: #fff;
}

.hero ul {
  max-width: 850px;
  margin: 0;
  padding-left: 24px;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 300;
  line-height: 1.35;
}

.hero-actions {
  margin-top: 34px;
  display: none;
}

.metal-cards,
.about-section,
.services-section,
.advantages-section {
  padding: 75px 0;
}

.metal-cards-compact {
  padding-bottom: 24px;
}

.metal-cards-compact .section-heading {
  margin-bottom: 0;
}

.metal-cards-compact + .about-section {
  padding-top: 24px;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 300;
  text-transform: uppercase;
}

.section-heading p {
  margin: 22px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.45;
}

.section-heading-light h2,
.section-heading-light p {
  color: #fff;
}

.metal-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metal-card {
  min-height: 260px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  padding: 28px 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-align: center;
  background: #fff;
}

.metal-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.metal-card h3 {
  margin: 0;
  color: var(--accent);
  font-size: 20px;
  line-height: 1.24;
  font-weight: 400;
}

.metal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 52px;
  align-items: center;
}

.about-section .split {
  align-items: start;
}

.about-image {
  min-height: 560px;
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.about-copy h2 {
  margin: 0 0 26px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 300;
  text-transform: uppercase;
}

.about-copy p {
  margin: 0 0 18px;
  color: #222;
  font-size: clamp(21px, 1.6vw, 24px);
  font-weight: 300;
  line-height: 1.48;
}

.about-copy strong {
  color: var(--accent);
  font-weight: 500;
}

.cover-cta {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.9)), var(--bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cover-content {
  max-width: 860px;
}

.cover-content h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 300;
}

.cover-content p {
  margin: 0 0 32px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  line-height: 1.28;
}

.engineer-phone-btn {
  min-height: 74px;
  padding: 0 42px;
  border-width: 3px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
}

.services-section {
  background: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #d4d4d4;
  border: 1px solid #d4d4d4;
}

.service-item {
  min-height: 310px;
  padding: 34px 30px;
  background: var(--soft);
}

.service-number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 500;
}

.service-item h3 {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 400;
  text-transform: uppercase;
}

.service-item p {
  margin: 0;
  color: #2c2c2c;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
}

.process-section {
  color: #fff;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}

.process-overlay {
  padding: 86px 0;
  background: rgba(0, 0, 0, 0.82);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 70px;
  align-items: center;
}

.process-copy h2 {
  margin: 0 0 26px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 300;
  text-transform: uppercase;
}

.process-copy p {
  margin: 0 0 30px;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.46;
}

.benefit-list {
  display: grid;
  gap: 26px;
}

.benefit {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
}

.checkmark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.benefit h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 400;
}

.benefit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.advantage-card {
  min-height: 230px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.advantage-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.advantage-card h3 {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 400;
}

.advantage-card p {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
}

.quote-section {
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 78px 0 28px;
  color: #fff;
  background-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.9)), var(--bg);
  background-size: cover;
  background-position: center;
}

.quote-content {
  max-width: 980px;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quote-form input,
.quote-form button {
  width: 100%;
}

.quote-form button {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  min-height: 54px;
  width: 100%;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 15px;
  background: transparent;
  color: #fff;
  outline: 0;
}

textarea {
  min-height: 112px;
  padding-top: 14px;
  resize: vertical;
}

select {
  background: #fff;
  color: #000;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.form-note,
.form-status {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 300;
  text-align: center;
}

.form-status {
  color: #fff;
  font-size: 16px;
}

.lead-form button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.site-footer {
  padding: 14px 0 42px;
  background: var(--black);
  color: #fff;
}

.footer-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-logo img {
  width: min(340px, 78vw);
  margin: 0 auto;
  display: block;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}

.footer-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.round-link {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--accent);
  color: #fff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.modal.is-open {
  display: grid;
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  overflow: auto;
  padding: 44px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.modal-panel h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.16;
}

.modal-panel > p {
  margin: 0 0 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.modal .lead-form {
  display: grid;
  gap: 16px;
}

.modal label {
  display: grid;
  gap: 8px;
  font-size: 16px;
  font-weight: 300;
}

.modal input:not([type="file"]),
.modal textarea {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.modal input::placeholder,
.modal textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.modal input[type="file"] {
  min-height: auto;
  padding: 14px;
  border-style: dashed;
}

@media (max-width: 1080px) {
  .header-shell {
    grid-template-columns: 320px 1fr auto;
  }

  .brand img {
    width: 300px;
    transform: translate(24px, 7px);
  }

  .header-contacts {
    gap: 16px;
  }

  .contact-line {
    font-size: 20px;
  }

  .header-contacts .btn {
    min-height: 56px;
    padding: 0 24px;
    font-size: 17px;
  }

  .nav-links a {
    font-size: 20px;
  }

  .metal-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .header-shell {
    grid-template-columns: 270px 1fr auto;
  }

  .brand img {
    width: 250px;
    transform: translate(18px, 5px);
  }

  .header-contacts .contact-line {
    display: none;
  }

  .site-nav {
    align-items: center;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: center;
  }

  .split,
  .process-layout {
    grid-template-columns: 1fr;
  }

  .about-image,
  .about-image img {
    min-height: 380px;
  }

  .about-copy p {
    font-size: 21px;
    line-height: 1.5;
  }

  .cover-cta,
  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 760px) {
  .container,
  .header-shell,
  .site-nav,
  .footer-shell,
  .hero-inner {
    width: min(100% - 28px, var(--max));
  }

  .header-shell {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 22px 0 18px;
  }

  .header-contacts {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
  }

  .menu-open .site-nav {
    display: flex;
  }

  .nav-title {
    font-size: 18px;
  }

  .nav-links {
    display: grid;
    width: 100%;
    gap: 12px;
    text-align: center;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 38px 0 62px;
  }

  .hero ul {
    font-size: 20px;
  }

  .hero-actions {
    display: block;
  }

  .metal-cards,
  .about-section,
  .services-section,
  .advantages-section {
    padding: 56px 0;
  }

  .metal-cards-compact {
    padding-bottom: 18px;
  }

  .metal-cards-compact .section-heading {
    margin-bottom: 0;
  }

  .metal-cards-compact + .about-section {
    padding-top: 20px;
  }

  .about-copy p {
    font-size: 19px;
    line-height: 1.5;
  }

  .metal-card-grid,
  .service-grid,
  .advantage-grid,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: auto;
  }

  .advantage-card {
    grid-template-columns: 72px 1fr;
    padding: 22px;
  }

  .advantage-card img {
    width: 72px;
    height: 72px;
  }

  .process-overlay {
    padding: 62px 0;
  }

  .quote-section {
    padding: 58px 0 24px;
  }

  .modal-panel {
    padding: 38px 22px 24px;
  }
}

@media (max-width: 460px) {
  .brand img {
    width: 230px;
    transform: translate(12px, 5px);
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-kicker {
    font-size: 22px;
  }

  .btn {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
  }

  .engineer-phone-btn {
    min-height: 66px;
    font-size: 27px;
  }

  .advantage-card {
    grid-template-columns: 1fr;
  }

  .to-top {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: 14px;
  }
}
