/* ============================================================
   Форвард-плюс — металлообработка в Санкт-Петербурге
   Минималистичная индустриальная тема
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --ink: #14181D;
  --ink-2: #4E5866;
  --line: #E4E8EC;
  --accent: #EA580C;
  --accent-strong: #C2410C;
  --accent-soft: #FDEDE3;
  --dark: #14181D;
  --dark-line: rgba(255, 255, 255, 0.14);
  --dark-text: rgba(255, 255, 255, 0.72);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; }

[hidden] { display: none !important; }

::selection { background: rgba(234, 88, 12, 0.22); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, label:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Иконки ---------- */

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: transparent;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost-dark {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}
.btn--ghost-dark:hover {
  border-color: #C6CCD2;
  background: var(--bg-soft);
}

.btn--sm { padding: 10px 18px; font-size: 0.88rem; }
.btn--wide { width: 100%; padding: 15px 26px; }

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* ---------- Шапка ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: #fff;
  background: transparent;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 26px rgba(20, 24, 29, 0.07);
}

body.nav-open .site-header {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-mark {
  width: 25px;
  height: 25px;
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.main-nav a {
  font-size: 0.92rem;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.main-nav a:hover {
  opacity: 1;
  color: var(--accent);
}

.site-header.is-scrolled .main-nav a:hover { color: var(--accent-strong); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone .icon { width: 16px; height: 16px; color: var(--accent); }

.header-phone:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s;
}

body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
body.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Мобильное меню ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--dark);
  color: #fff;
  padding: 120px 28px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.mobile-menu nav a {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 12px 0;
  text-decoration: none;
}

.mobile-menu nav a:hover { color: var(--accent); }

.mobile-menu-contacts {
  border-top: 1px solid var(--dark-line);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-contacts a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu-contacts p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.mobile-menu-contacts .btn { margin-top: 10px; }

body.no-scroll { overflow: hidden; }

/* ---------- Герой ---------- */

.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 176px 0 92px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 420px at 78% 12%, rgba(234, 88, 12, 0.16), transparent 65%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero-gear {
  position: absolute;
  top: 30px;
  right: -130px;
  width: 580px;
  height: 580px;
  fill: none;
  stroke: #fff;
  opacity: 0.07;
  animation: hero-spin 90s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes hero-spin { to { transform: rotate(360deg); } }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.62);
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 20px 0 20px;
  max-width: 830px;
  font-size: clamp(2.15rem, 4.8vw, 3.55rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.hero-lead {
  max-width: 640px;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.7;
  color: var(--dark-text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 68px;
  padding-top: 44px;
  border-top: 1px solid var(--dark-line);
}

.stat-num {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat-num span { color: #fff; }

.stat-label {
  margin-top: 7px;
  max-width: 190px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Секции ---------- */

.section { padding: 96px 0; }

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

.section-head {
  max-width: 780px;
  margin-bottom: 48px;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.section-lead {
  margin-top: 16px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- О компании ---------- */

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-cols p {
  margin-bottom: 16px;
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.about-cols p:last-child { margin-bottom: 0; }

.about-cols strong { color: var(--ink); }

/* ---------- Возможности ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cap-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cap-card:hover {
  transform: translateY(-3px);
  border-color: #D8DDE2;
  box-shadow: 0 14px 30px rgba(20, 24, 29, 0.07);
}

.cap-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.cap-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cap-card p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- Услуги ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  border-top: 1px solid var(--line);
}

.svc-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.svc-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.svc-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  flex-shrink: 0;
}

.svc-ic .icon { width: 20px; height: 20px; }

.svc-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.svc-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: #A6AFB9;
  font-variant-numeric: tabular-nums;
}

.svc-top h3 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.svc-desc {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.svc-spec {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.svc-spec .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #8A939E;
}

.svc-spec b { color: var(--ink); font-weight: 600; }

.svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 0;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--accent-strong);
  cursor: pointer;
}

.svc-cta .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

.svc-cta:hover { color: var(--accent); }
.svc-cta:hover .icon { transform: translateX(3px); }

/* ---------- Вакансии ---------- */

.vac-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vac-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.vac-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.vac-card > p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.vac-req {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.vac-req .icon {
  width: 17px;
  height: 17px;
  color: var(--accent-strong);
}

.vac-card .btn { margin-top: 22px; }

/* ---------- Контакты ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.contact-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7A838E;
}

.contact-label .icon {
  width: 17px;
  height: 17px;
  color: var(--accent-strong);
}

.contact-value {
  font-size: 1.02rem;
  line-height: 1.65;
}

.contact-value + .contact-value { margin-top: 10px; }

.contact-value a {
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid #D9DEE3;
  transition: color 0.2s, border-color 0.2s;
}

.contact-value a:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.contact-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
}

.contact-link:hover { text-decoration: underline; }

.contact-note {
  margin-top: 8px;
  font-size: 0.84rem;
  color: #8A939E;
}

/* ---------- Форма заявки ---------- */

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.lead-text {
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.lead-points { margin-top: 26px; }

.lead-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 13px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.lead-points .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent-strong);
}

.lead-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.lead-contacts a,
.lead-contacts p {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  text-decoration: none;
}

.lead-contacts .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
}

.lead-contacts a:hover { color: var(--accent-strong); }

.lead-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.84rem;
  font-weight: 600;
}

.req { color: var(--accent-strong); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D5DAE0;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder,
.field textarea::placeholder { color: #9AA3AD; }

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #B42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.13);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.file-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1.5px dashed #CBD2D9;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.file-drop:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: #FFFBF8;
}

.file-drop .icon {
  width: 19px;
  height: 19px;
  color: var(--accent-strong);
}

.visually-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.field-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #8A939E;
}

.field-note a { color: var(--accent-strong); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}

.consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-error {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #FEE4E2;
  color: #B42318;
  font-size: 0.88rem;
}

.lead-form .btn--wide { margin-top: 18px; }

.form-note {
  margin-top: 12px;
  font-size: 0.82rem;
  text-align: center;
  color: #8A939E;
}

.form-success {
  padding: 42px 20px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.success-icon .icon { width: 30px; height: 30px; }

.form-success h3 {
  font-size: 1.3rem;
  font-weight: 750;
}

.form-success p {
  margin: 12px 0 26px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- Подвал ---------- */

.site-footer {
  background: var(--dark);
  color: var(--dark-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
  padding-top: 70px;
  padding-bottom: 50px;
}

.logo--footer { color: #fff; }

.footer-tagline {
  margin-top: 16px;
  max-width: 300px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-seo {
  margin-top: 12px;
  max-width: 340px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}

.footer-title {
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.site-footer nav a,
.site-footer > .container > div > a,
.site-footer > .container > div > p {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer > .container > div > a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  padding-bottom: 26px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Мобильная панель действий ---------- */

.mobile-cta { display: none; }

/* ---------- Адаптивность ---------- */

@media (max-width: 1100px) {
  .header-phone { display: none; }
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .lead-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 34px; }
  .hero { padding: 140px 0 70px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; margin-top: 48px; padding-top: 36px; }
  .hero-gear { right: -200px; top: 60px; }
  .about-cols { grid-template-columns: 1fr; gap: 0; }
  .cap-grid { grid-template-columns: 1fr; }
  .vac-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .lead-form-wrap { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 54px; padding-bottom: 40px; }
  .mobile-cta {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { flex: 1; padding: 13px 12px; }
  .site-footer { padding-bottom: 76px; }
}

/* ============================================================
   Многостраничная версия: подстраницы, галерея, контакты
   ============================================================ */

/* ---------- Герой подстраницы ---------- */

.page-hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 150px 0 72px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 360px at 82% 8%, rgba(234, 88, 12, 0.15), transparent 65%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-hero-lead {
  max-width: 700px;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.7;
  color: var(--dark-text);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover { color: var(--accent); }

.kicker {
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
}

/* Активный пункт меню */
.main-nav a[aria-current="page"],
.mobile-menu nav a[aria-current="page"] {
  opacity: 1;
  color: var(--accent);
  font-weight: 650;
}

/* ---------- CTA-полоса на подстраницах ---------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.cta-band h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -0.015em;
}

.cta-band p {
  margin-top: 10px;
  max-width: 560px;
  color: var(--ink-2);
  line-height: 1.65;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------- Фильтр работ ---------- */

.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.chip {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.chip.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

/* ---------- Галерея работ ---------- */

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

.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: 0 18px 40px rgba(20, 24, 29, 0.1);
}

.work-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.work-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s;
}

.work-card:hover .work-cover img { transform: scale(1.04); }

.work-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 24, 29, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
}

.work-badge .icon { width: 15px; height: 15px; }

.work-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px 22px 22px;
}

.work-tag {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.work-body h3 {
  margin-top: 14px;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.work-body > p {
  margin-top: 9px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.work-meta span {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.work-meta b {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.work-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--accent-strong);
  cursor: pointer;
  transition: gap 0.2s, color 0.2s;
}

.work-more .icon { width: 18px; height: 18px; }

.work-more:hover { gap: 12px; color: var(--accent); }

.work-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ---------- Лайтбокс ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 84px 30px;
  background: rgba(10, 12, 15, 0.93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lb-figure {
  max-width: min(940px, 100%);
  margin: 0;
}

.lb-figure img {
  width: 100%;
  max-height: 64vh;
  object-fit: contain;
  border-radius: 12px;
  background: #0c0e11;
}

.lb-figure figcaption { margin-top: 16px; color: #fff; }

.lb-caption-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lb-counter {
  font-size: 0.84rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.lb-figure h3 {
  margin-top: 10px;
  font-size: 1.08rem;
  font-weight: 750;
}

.lb-figure figcaption p {
  margin-top: 5px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.66);
}

.lb-nav,
.lb-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lb-nav:hover,
.lb-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.lb-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.lb-thumb {
  width: 68px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.lb-thumb:hover { opacity: 1; }

.lb-thumb.is-current {
  border-color: var(--accent);
  opacity: 1;
}

/* ---------- Страница контактов ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.c-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.c-main {
  margin-top: 8px;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.45;
}

a.c-main { text-decoration: none; transition: color 0.2s; }
a.c-main:hover { color: var(--accent-strong); }

.c-note {
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  align-self: flex-start;
}

.social-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(20, 24, 29, 0.07);
}

.social-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.social-name { font-size: 0.92rem; font-weight: 650; }

/* Карта */

.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(20, 24, 29, 0.08);
}

.map-wrap iframe { display: block; }

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Реквизиты */

.req-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.req-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 750;
  letter-spacing: -0.015em;
}

.req-head .section-lead a { color: var(--accent-strong); }

.req-table {
  width: 100%;
  border-collapse: collapse;
}

.req-table th,
.req-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.req-table tr:last-child th,
.req-table tr:last-child td { border-bottom: 0; }

.req-table th {
  width: 32%;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
}

.req-table td {
  font-size: 0.95rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* ---------- Политика конфиденциальности ---------- */

.policy {
  max-width: 800px;
}

.policy h2 {
  margin: 36px 0 12px;
  font-size: 1.24rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.policy h2:first-child { margin-top: 0; }

.policy p {
  margin-bottom: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

.policy ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}

.policy li {
  margin-bottom: 7px;
  color: var(--ink-2);
  line-height: 1.6;
}

.policy li::marker { color: var(--accent); }

.policy a { color: var(--accent-strong); }

/* ---------- Подвал: строка копирайта ---------- */

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}

.footer-bottom a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--accent); }

/* ---------- Адаптивность новых блоков ---------- */

@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .page-hero { padding: 128px 0 60px; }
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .req-layout { grid-template-columns: 1fr; gap: 28px; }
  .lightbox { padding: 20px 76px 26px; }
}

@media (max-width: 760px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
  .work-filter { margin-bottom: 28px; }
  .lb-figure img { max-height: 52vh; }
  .lb-nav { width: 42px; height: 42px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-thumbs { display: none; }
}

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .req-table th, .req-table td { padding: 10px 12px; }
  .req-table th { width: 40%; }
  .lightbox { padding: 16px 10px 22px; }
  .map-wrap iframe { height: 320px; }
}

/* ---------- Доступность: уменьшенное движение ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-gear { animation: none; }
  .btn, .cap-card, .svc-cta .icon, .work-card, .work-cover img, .chip { transition: none; }
}

/* ============================================================
   Страница вакансий (vakansii.html)
   ============================================================ */

/* Список вакансий */

.vac-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vac-card-page {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.vac-card-page:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: 0 18px 40px rgba(20, 24, 29, 0.1);
}

.vac-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vac-card-page h2 {
  margin-top: 16px;
  font-size: 1.32rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.vac-card-page > p {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
  flex-grow: 1;
}

.vac-card-page .work-meta { margin-top: 20px; }

.vac-salary {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--accent-strong);
}

.vac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.vac-actions .btn { flex: 1 1 auto; }

/* Блок «не нашли вакансию» */

.vac-open {
  margin-top: 24px;
  padding: 24px 28px;
  background: #fff;
  border: 1px dashed #CDD4DB;
  border-radius: var(--radius);
}

.vac-open h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.vac-open p {
  margin-top: 8px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.vac-open a {
  font-weight: 650;
  color: var(--accent-strong);
  text-decoration: none;
}

.vac-open a:hover { text-decoration: underline; }

/* Подробный просмотр вакансии */

.vac-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.vac-back:hover { color: var(--accent-strong); }

.vac-back .icon { width: 17px; height: 17px; }

.vac-detail-head { max-width: 780px; margin-top: 12px; }

.vac-detail-head h2 {
  margin-top: 16px;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.vac-detail-head h2:focus { outline: none; }

.vac-detail-lead {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.vac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.vac-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}

.vac-chips .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-strong);
}

.vac-salary-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--accent-soft);
}

.vac-salary-block b {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent-strong);
}

.vac-salary-block span {
  font-size: 0.88rem;
  color: var(--ink-2);
}

.vac-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.vac-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.vac-block h3 {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.vac-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.vac-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.vac-list .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-strong);
}

/* CTA внутри подробного просмотра */

.vac-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 40px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
}

.vac-cta h3 {
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.vac-cta p {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--dark-text);
}

.vac-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Адаптивность страницы вакансий */

@media (max-width: 980px) {
  .vac-page-grid { grid-template-columns: 1fr; }
  .vac-blocks { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .vac-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .vac-card-page { padding: 22px; }
  .vac-actions .btn { width: 100%; }
  .vac-open { padding: 20px; }
  .vac-cta-actions { width: 100%; }
  .vac-cta-actions .btn { width: 100%; }
}
