/* ===========================
   ЧТПУП «Кибо» — металлообработка
   =========================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f5f8;
  --ink: #141a23;
  --ink-soft: #5b6471;
  --dark: #11151c;
  --dark-2: #0d1117;
  --accent: #f97316;
  --accent-2: #fb923c;
  --accent-dark: #ea580c;
  --line: #e4e8ef;
  --radius: 16px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

section[id] { scroll-margin-top: 84px; }

/* ---------- Типографика ---------- */

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }

.overline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  font-weight: 600;
}
.overline::before { content: ""; width: 36px; height: 2px; background: var(--accent); }

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }

.section__head { max-width: 740px; margin-bottom: 56px; }
.section__head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 3.6vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.015em;
}
.section__sub { margin-top: 16px; color: var(--ink-soft); font-size: 16.5px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn--lg { padding: 16px 32px; font-size: 15.5px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 4px 12px -8px rgba(0, 0, 0, 0.55); }
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 7px 18px -10px rgba(0, 0, 0, 0.6); }

.btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.7); box-shadow: 0 7px 18px -10px rgba(0, 0, 0, 0.5); }

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  padding: 18px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  padding: 10px 0;
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header__inner { display: flex; align-items: center; gap: 36px; }

.logo { display: flex; align-items: center; gap: 11px; color: #fff; }
.logo svg { width: 42px; height: 42px; color: var(--accent); flex: none; }
.logo__text b {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.logo__text span {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.6);
}

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

.header__contacts { display: flex; align-items: center; gap: 18px; }
.header__phone { color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; }
.header__phone:hover { color: var(--accent-2); }

/* Кнопка «позвонить» на мобильных */
.header__call {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  place-items: center;
  transition: background 0.25s, border-color 0.25s;
}
.header__call svg { width: 20px; height: 20px; }
.header__call:active, .header__call:hover { background: var(--accent); border-color: var(--accent); }

/* Бургер */
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; z-index: 70; }
.burger span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(340px, 88vw);
  background: #0e1218;
  z-index: 60;
  padding: 96px 30px 32px;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu > a {
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu > a:hover { color: var(--accent-2); }
.mobile-menu__footer { margin-top: auto; display: grid; gap: 16px; }
.mobile-menu__phone { color: #fff; font-weight: 600; font-size: 18px; }

/* ---------- Главный экран ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background:
    linear-gradient(102deg, rgba(9, 12, 17, 0.95) 10%, rgba(9, 12, 17, 0.66) 52%, rgba(9, 12, 17, 0.3) 100%),
    url("images/hero.jpg") center 30% / cover no-repeat;
  padding-top: 120px;
}

.hero__content { max-width: 780px; padding: 48px 0 24px; }

.hero h1 {
  margin-top: 18px;
  font-size: clamp(42px, 5.8vw, 76px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.04;
}

.hero__lead {
  margin-top: 24px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__chips { margin-top: 38px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 9px 17px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 30px 0 40px;
  margin-top: 36px;
}
.stat b {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
}
.stat b .suffix { color: var(--accent-2); }
.stat small { display: block; margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, 0.62); line-height: 1.45; }

/* ---------- Услуги ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 26px;
}

.svc {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: transform 0.35s, box-shadow 0.35s;
}
.svc:hover { box-shadow: var(--shadow-lg); }

.svc__media { aspect-ratio: 16 / 10; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.svc:hover .svc__media img { transform: scale(1.06); }

.svc__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 44px 26px 28px; }

.svc__icon {
  position: absolute;
  top: -28px;
  left: 26px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 22px -6px rgba(249, 115, 22, 0.55);
}
.svc__icon svg { width: 30px; height: 30px; }

.svc h3 { font-size: 21px; text-transform: uppercase; letter-spacing: 0.02em; }
.svc p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }

.svc ul { margin-top: 16px; display: grid; gap: 9px; }
.svc li { position: relative; padding-left: 26px; font-size: 14.5px; font-weight: 500; }
.svc li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 13px; height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.svc__link {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
}
.svc__link span { transition: transform 0.25s; }
.svc__link:hover { color: var(--accent-dark); }
.svc__link:hover span { transform: translateX(5px); }

/* ---------- О компании ---------- */

.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__media { position: relative; }
.about__main {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.about__detail {
  position: absolute;
  right: -24px;
  bottom: -36px;
  width: 45%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}
.about__badge {
  position: absolute;
  top: -24px;
  left: -24px;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 16px 32px -10px rgba(249, 115, 22, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
}
.about__badge b { font-family: var(--font-head); font-size: 42px; font-weight: 700; line-height: 1; }
.about__badge small { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.4; opacity: 0.95; }

.about__content h2 { margin-top: 14px; font-size: clamp(28px, 3vw, 38px); text-transform: uppercase; }
.about__content p { margin-top: 18px; color: var(--ink-soft); font-size: 15.5px; }

.about__checklist { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.about__checklist li { position: relative; padding-left: 28px; font-size: 14.5px; font-weight: 500; }
.about__checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.materials { margin-top: 30px; }
.materials__label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 12px;
}
.materials__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 7px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink);
}

/* ---------- CTA ---------- */

.cta {
  padding: 100px 0;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(10, 13, 18, 0.86), rgba(10, 13, 18, 0.86)),
    url("images/cta-bg.jpg") center / cover no-repeat;
}
.cta h2 { font-size: clamp(30px, 3.8vw, 46px); text-transform: uppercase; }
.cta p { margin: 18px auto 0; max-width: 640px; color: rgba(255, 255, 255, 0.82); font-size: 16.5px; }
.cta__actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Галерея ---------- */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 18px;
}
.gal {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}
.gal:hover { box-shadow: var(--shadow-lg); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gal:hover img { transform: scale(1.07); }
.gal figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 42px 18px 14px;
  background: linear-gradient(transparent, rgba(10, 13, 18, 0.85));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Как мы работаем ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 18px;
}
@media (min-width: 1101px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { padding: 26px 20px; }
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.step:hover { box-shadow: var(--shadow-lg); }
.step__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.step h3 { margin-top: 16px; font-size: 18px; text-transform: uppercase; letter-spacing: 0.03em; }
.step p { margin-top: 9px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Преимущества ---------- */

.adv__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 24px;
}
.adv {
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.adv:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow-lg); }
.adv__icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.13);
  color: var(--accent);
}
.adv__icon svg { width: 27px; height: 27px; }
.adv h3 { margin-top: 20px; font-size: 18.5px; text-transform: uppercase; letter-spacing: 0.02em; }
.adv p { margin-top: 9px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Вакансии ---------- */

.section--dark { background: var(--dark); }
.section--dark .section__head h2 { color: #fff; }
.section--dark .section__sub { color: rgba(255, 255, 255, 0.7); }
.section--dark .section__sub a { color: var(--accent-2); font-weight: 600; }
.section--dark .section__sub a:hover { color: var(--accent); }

.jobs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}
.job {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.job:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.06); box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.72); }
.job h3 { color: #fff; font-size: 19px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.3; }
.job__note { margin-top: 9px; color: rgba(255, 255, 255, 0.62); font-size: 14.5px; }
.job__link {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 14.5px;
}
.job__link span { transition: transform 0.25s; }
.job__link:hover { color: var(--accent); }
.job__link:hover span { transform: translateX(5px); }

/* ---------- Контакты ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field--row { grid-template-columns: 1fr 1fr; gap: 16px; }
.field--row > div { display: grid; gap: 7px; }

.field label { font-size: 13.5px; font-weight: 600; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa3af; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.file {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1.5px dashed #cfd6e0;
  border-radius: 11px;
  color: var(--ink-soft);
  font-size: 14.5px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: border-color 0.25s, color 0.25s;
}
.file:hover { border-color: var(--accent); color: var(--ink); }
.file svg { width: 21px; height: 21px; flex: none; }

.contact-form__note { margin-top: 14px; text-align: center; font-size: 12.5px; color: #9aa3af; }

.form-success { display: none; text-align: center; padding: 48px 12px; color: var(--ink); }
.form-success.visible { display: block; }
.form-success svg { width: 68px; height: 68px; color: var(--accent); margin: 0 auto 22px; }
.form-success h3 { font-size: 24px; text-transform: uppercase; }
.form-success p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

.contact-info {
  background: var(--dark);
  color: #fff;
  border-radius: 18px;
  padding: 36px;
  align-self: start;
}
.contact-info h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px; }

.crow { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.crow:last-child { border-bottom: 0; padding-bottom: 4px; }
.crow__icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-2);
}
.crow__icon svg { width: 22px; height: 22px; }
.crow b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.crow span, .crow a { display: block; color: rgba(255, 255, 255, 0.72); font-size: 14.5px; line-height: 1.55; }
.crow a:hover { color: var(--accent-2); }

.contact__map { grid-column: 1 / -1; }
.contact__map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

/* ---------- Подвал ---------- */

.footer { background: var(--dark-2); color: rgba(255, 255, 255, 0.72); padding-top: 64px; }

.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }

.logo--footer { margin-bottom: 18px; }
.footer__col > p { font-size: 14.5px; line-height: 1.7; max-width: 340px; }

.footer__col h4 {
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col li, .footer__col li a { font-size: 14.5px; color: rgba(255, 255, 255, 0.66); }
.footer__col li a:hover { color: var(--accent-2); }

.footer__bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
}
.footer__bottom a { color: rgba(255, 255, 255, 0.45); }
.footer__bottom a:hover { color: var(--accent-2); }

/* ---------- Модальное окно вакансии ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 10, 14, 0.8);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal__card {
  position: relative;
  width: min(480px, 100%);
  max-height: 90dvh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 30px 28px;
}
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 17px;
}
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.modal__title { font-size: 22px; text-transform: uppercase; margin-bottom: 18px; padding-right: 40px; }

.field select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14); }

/* ---------- Анимации появления ---------- */

:is(.svc, .gal, .step, .adv, .job),
.btn,
button,
.header__call,
.file {
  transition: all 200ms ease-out;
  transform-origin: center;
}

@media (hover: hover) {
  :is(.svc, .gal, .step, .adv, .job):hover,
  .btn:hover,
  button:not(.btn):hover,
  .header__call:hover,
  .file:hover {
    scale: 1.015;
  }

  button:not(.btn):hover {
    filter: drop-shadow(0 5px 10px rgba(16, 24, 40, 0.2));
  }

  .header__call:hover,
  .file:hover {
    box-shadow: 0 12px 24px -14px rgba(16, 24, 40, 0.45);
  }
}

:is(.svc, .gal, .step, .adv, .job):active,
.btn:active,
button:not(.btn):active,
.header__call:active,
.file:active {
  scale: 0.985;
}

:is(.svc, .gal, .step, .adv):active {
  box-shadow: 0 8px 18px -12px rgba(16, 24, 40, 0.24);
}

.job:active {
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.55);
}

.btn:active,
.header__call:active,
.file:active {
  box-shadow: 0 5px 12px -8px rgba(16, 24, 40, 0.3);
}

.btn--accent:active {
  box-shadow: 0 2px 8px -6px rgba(0, 0, 0, 0.5);
}

button:not(.btn):active {
  filter: drop-shadow(0 2px 4px rgba(16, 24, 40, 0.16));
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition-property: opacity, transform, scale, box-shadow, background, border-color, filter;
  transition-duration: 0.7s, 0.7s, 200ms, 200ms, 200ms, 200ms, 200ms;
  transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1), cubic-bezier(0.2, 0.7, 0.2, 1), ease-out, ease-out, ease-out, ease-out, ease-out;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s, 0s, 0s;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  :is(.svc, .gal, .step, .adv, .job),
  .btn, button, .header__call, .file { scale: 1 !important; transition: none; }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1320px) {
  .header__contacts .btn { display: none; }
}

@media (max-width: 1100px) {
  .about { grid-template-columns: 1fr; gap: 64px; }
  .about__media { max-width: 640px; }
  .about__detail { right: 0; }
}

@media (max-width: 1100px) {
  .nav, .header__contacts { display: none; }
  .burger { display: flex; }
  .header__call { display: grid; margin-left: auto; }
}

@media (max-width: 1000px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .container { width: min(1200px, 100% - 36px); }
  .section__head { margin-bottom: 40px; }
  .hero {
    padding-top: 96px;
    /* лёгкая версия фона: телефону не нужен файл на 1600px */
    background:
      linear-gradient(180deg, rgba(9, 12, 17, 0.9) 0%, rgba(9, 12, 17, 0.72) 55%, rgba(9, 12, 17, 0.85) 100%),
      url("images/hero-mobile.jpg") center 30% / cover no-repeat;
  }
  .hero__content { padding-top: 24px; }
  .hero h1 { font-size: clamp(30px, 9.4vw, 42px); }
  .hero__lead { font-size: 16px; }
  .cta { padding: 80px 0; }
  /* 16px в полях ввода — iOS Safari не приближает страницу при фокусе */
  .field input, .field textarea, .field select { font-size: 16px; }
  .modal__card { padding: 24px 18px; }
  .field--row { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact-form, .contact-info { padding: 28px 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__checklist { grid-template-columns: 1fr; }
  .about__badge { left: 12px; top: -20px; padding: 14px 18px; }
  .about__badge b { font-size: 34px; }
  .about__detail { width: 52%; bottom: -28px; }
  .contact__map iframe { height: 320px; }
}

/* Тачскрин: hover-сдвиги не «залипают» после тапа */
@media (hover: none) {
  .svc:hover .svc__media img, .gal:hover img { transform: none; }
}

/* Крупнее тач-цели для текстовых ссылок */
@media (max-width: 720px) {
  .svc__link, .job__link { padding-block: 10px; }
  .footer__col li a { display: inline-block; padding-block: 5px; }
  .crow a { padding-block: 3px; }
  .footer__bottom a { display: inline-block; padding: 8px 0; }
}

@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .hero__actions, .cta__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .hero__stats { gap: 18px; padding-bottom: 32px; }
  .stat small { font-size: 12.5px; }
  .gal { aspect-ratio: 16 / 10; }
  .svc__body { padding: 40px 20px 24px; }
  .svc__icon { left: 20px; }
  .step { padding: 24px 20px; }
  .adv { padding: 24px 20px; }
  .job { padding: 24px 20px; }
}
