:root {
  --bg: #0b0f17;
  --bg-soft: #121826;
  --text: #e6edf7;
  --muted: #a8b3c7;
  --brand: #f18a1a;
  --brand-dark: #cf6e08;
  --card: #151e2e;
  --line: #2a3549;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0a0e16 0%, #0f1522 100%);
  line-height: 1.5;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(11, 15, 23, 0.88);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo__image {
  display: block;
  width: clamp(120px, 12vw, 165px);
  height: auto;
}

.logo--footer .logo__image {
  width: clamp(130px, 13vw, 170px);
}

.nav {
  display: flex;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  border: 1px solid #2a3549;
  background: #111a2a;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.menu-toggle__line {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #e8effc;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}

.menu-toggle__line:nth-child(1) {
  top: 12px;
}

.menu-toggle__line:nth-child(2) {
  top: 19px;
}

.menu-toggle__line:nth-child(3) {
  top: 26px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.nav a,
.phone {
  color: #c0ccdf;
  text-decoration: none;
  font-weight: 500;
}

.hero {
  position: relative;
  padding: 5rem 0 3.5rem;
  background-image: linear-gradient(
      90deg,
      rgba(7, 10, 16, 0.88) 0%,
      rgba(7, 10, 16, 0.76) 45%,
      rgba(7, 10, 16, 0.7) 100%
    ),
    url("./assets/hero-rebar-new.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-bottom: 1px solid #2b384e;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #5e421f;
  background: #2a1f14;
  color: #ffc17b;
  font-weight: 600;
  font-size: 0.9rem;
}

h1 {
  margin: 0.9rem 0;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1.1;
}

.hero__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__cta {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: none;
  border-radius: 0.75rem;
  padding: 0.8rem 1.1rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--ghost {
  background: #111a2a;
  color: #d2ddf0;
  border: 1px solid var(--line);
}

.hero__facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: #b6c3da;
}

.hero__facts li::before {
  content: "•";
  color: var(--brand);
  margin-right: 0.45rem;
}

.hero__request {
  margin-top: 1.2rem;
}

.form--hero {
  grid-template-columns: 1fr 1fr;
}

.form--hero input[name="comment"],
.form--hero .file-field,
.form--hero .btn {
  grid-column: 1 / -1;
}

.file-field {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px dashed #3a4b68;
  border-radius: 0.7rem;
  background: #0f1726;
}

.file-field__label {
  color: #c5d1e6;
  font-size: 0.9rem;
  font-weight: 600;
}

.file-field input[type="file"] {
  width: 100%;
  color: #a8b3c7;
  font: inherit;
  border: none;
  background: transparent;
  padding: 0;
}

.file-field input[type="file"]::file-selector-button {
  margin-right: 0.7rem;
  border: 1px solid #2f3d56;
  border-radius: 0.45rem;
  background: #111a2a;
  color: #e8effc;
  padding: 0.4rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.hero__info {
  background: rgba(18, 24, 38, 0.82);
  backdrop-filter: blur(4px);
}

.hero__info h3 {
  margin: 0.2rem 0 0.6rem;
}

.hero__info p {
  color: #c5d1e6;
}

.hero__info ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.hero__info-label {
  margin: 0;
  color: #ffc98f;
  font-size: 0.88rem;
  font-weight: 600;
}

.quote-card,
.card,
.delivery__panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.quote-card h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

input {
  width: 100%;
  border: 1px solid #34435d;
  background: #0f1726;
  color: #e8effb;
  border-radius: 0.7rem;
  padding: 0.75rem 0.8rem;
  font: inherit;
}

input::placeholder {
  color: #8793a9;
}

input:focus {
  outline: 2px solid #f9a66d;
  border-color: transparent;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.section {
  padding: 3.5rem 0;
}

.section__head {
  margin-bottom: 1.4rem;
}

.section__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card h3,
.benefit h3,
.delivery__panel h3 {
  margin-top: 0;
}

.card__image {
  width: 100%;
  border-radius: 0.7rem;
  margin-bottom: 0.8rem;
  border: 1px solid #33425b;
}

.card ul,
.delivery ul,
.delivery ol {
  margin: 0;
  padding-left: 1.1rem;
}

.section--dark {
  background: var(--bg);
  color: #e8eef9;
}

.section--dark .section__head h2 {
  color: #fff;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.benefit {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  padding: 1rem;
}

.vacancies {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
}

.vacancy-card {
  background: rgba(255, 255, 255, 0.05);
}

.vacancy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.vacancy-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  padding-bottom: 0.45rem;
}

.vacancy-list span {
  color: #d9e3f5;
}

.vacancy-list strong {
  color: #ffbf72;
  white-space: nowrap;
}

.hr-card {
  background: rgba(255, 255, 255, 0.07);
}

.hr-card__image {
  width: 100%;
  border-radius: 0.7rem;
  margin-bottom: 0.8rem;
  border: 1px solid #33425b;
}

.hr-card h3 {
  margin-top: 0;
}

.hr-contacts {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.hr-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid #2f3d56;
  background: #111a2a;
  color: #e8effc;
  font-weight: 600;
  text-decoration: none;
}

.hr-contact-link:hover {
  border-color: #f18a1a;
  color: #ffc98f;
}

.delivery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.delivery__image {
  width: 100%;
  border-radius: 0.85rem;
  margin-bottom: 0.9rem;
  border: 1px solid #33425b;
}

.section--accent {
  background: linear-gradient(135deg, #1a2333, #111a2a);
  border-top: 1px solid #2b384e;
  border-bottom: 1px solid #2b384e;
}

.request {
  display: grid;
  gap: 1rem;
}

.form--row {
  grid-template-columns: 1fr 1fr 1fr auto;
}

.form--row .file-field {
  grid-column: 1 / -1;
}

.footer {
  background: #090d14;
  color: #aab7cd;
  padding-top: 1.1rem;
}

.footer a {
  color: #e8effc;
}

.footer__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
}

.footer__contacts p {
  margin: 0.1rem 0;
  font-size: 0.9rem;
  word-break: break-word;
}

.footer__social {
  justify-self: end;
}

.footer__icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  border: 1px solid #2a3549;
  background: #111a2a;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.icon-link:hover {
  transform: translateY(-1px);
  border-color: #f18a1a;
  background: #1a263a;
}

.icon-link svg {
  width: 19px;
  height: 19px;
  fill: #e8effc;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  margin-top: 0.8rem;
  padding: 0.55rem 0 0.8rem;
}

.footer__bottom small {
  font-size: 0.82rem;
  color: #8f9db4;
}

@media (max-width: 980px) {
  .hero__grid,
  .cards,
  .benefits,
  .delivery,
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .form--row {
    grid-template-columns: 1fr 1fr;
  }

  .form--hero {
    grid-template-columns: 1fr;
  }

  .vacancies {
    grid-template-columns: 1fr;
  }

  .hero {
    background-size: cover;
  }
}

@media (max-width: 720px) {
  .header__inner {
    flex-wrap: wrap;
    padding: 0.8rem 0;
    row-gap: 0.6rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .phone {
    order: 3;
    width: 100%;
    text-align: center;
    padding: 0.4rem 0;
    border: 1px solid #2a3549;
    border-radius: 0.45rem;
    background: #101827;
  }

  .nav {
    order: 4;
    width: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.1rem;
  }

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

  .nav a {
    display: block;
    text-align: center;
    padding: 0.45rem 0.35rem;
    border: 1px solid #2a3549;
    border-radius: 0.45rem;
    background: #101827;
    font-size: 0.92rem;
  }

  .hero__grid,
  .cards,
  .benefits,
  .delivery,
  .footer__grid,
  .form--row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
    background-position: 72% center;
  }

  .vacancy-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .vacancy-list strong {
    white-space: normal;
  }

  .logo__image {
    width: clamp(108px, 30vw, 138px);
  }

  .footer__contacts p {
    font-size: 0.88rem;
  }
}
