/* waterjet.fortezzo.ru — бренд Fortezzo: красный, чёрный, белый. Две темы: по умолчанию системная, переключатель в шапке.
   Шрифты: Russo One (заголовки, капс) + Inter (текст). */
:root {
  --bg: #F3F4F6;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EEF0F3;
  --fg: #111214;
  --muted: #5D6068;
  --line: #D9DCE2;
  --red: #E3001B;
  --red-2: #BF0016;
  --red-ink: #FFFFFF;
  --red-glow: rgba(227, 0, 27, 0.35);
  --hero-img: url("/assets/img/hero-light.webp");
  --shop-img: url("/assets/img/shop-light.webp");
  --hero-fade: rgba(244, 245, 247, 0.92);
  --hero-fade-2: rgba(244, 245, 247, 0.35);
  --ok: #2E8B57;
  --warn: #C27A2C;
  --bad: #C8312B;
  --font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Russo One", "Arial Black", Impact, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --wrap: 1200px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0D; --bg-2: #111114; --surface: #17171B; --surface-2: #1F1F24; --fg: #F3F3F5; --muted: #A2A4AC; --line: #2A2B31;
    --red-glow: rgba(227, 0, 27, 0.5); --hero-img: url("/assets/img/hero-dark-2.webp"); --shop-img: url("/assets/img/shop-dark.webp"); --hero-fade: rgba(11, 11, 13, 0.92); --hero-fade-2: rgba(11, 11, 13, 0.35);
    --ok: #5CC489; --warn: #E09A52; --bad: #F07A72; --shadow: 0 12px 34px rgba(0, 0, 0, 0.55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0D; --bg-2: #111114; --surface: #17171B; --surface-2: #1F1F24; --fg: #F3F3F5; --muted: #A2A4AC; --line: #2A2B31;
  --red-glow: rgba(227, 0, 27, 0.5); --hero-img: url("/assets/img/hero-dark-2.webp"); --shop-img: url("/assets/img/shop-dark.webp"); --hero-fade: rgba(11, 11, 13, 0.92); --hero-fade-2: rgba(11, 11, 13, 0.35);
  --ok: #5CC489; --warn: #E09A52; --bad: #F07A72; --shadow: 0 12px 34px rgba(0, 0, 0, 0.55); color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 56px); }
h2 { font-size: clamp(22px, 2.8vw, 34px); }
h3 { font-size: 15px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.red { color: var(--red); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-red { background: linear-gradient(180deg, #FF2A3F, var(--red) 55%, var(--red-2)); color: var(--red-ink); box-shadow: 0 8px 24px var(--red-glow); }
.btn-red:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-small { padding: 8px 14px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn .arrow { width: 16px; height: 16px; }

/* шапка */
.header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.logo .mark { width: 40px; height: 40px; flex: none; }
.logo .wordmark { display: block; height: 15px; width: auto; }
.logo small { display: block; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { font-size: 13.5px; color: var(--fg); text-decoration: none; opacity: .85; padding-block: 4px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a.on { opacity: 1; border-bottom-color: var(--red); }
.hphone { text-align: right; line-height: 1.2; text-decoration: none; }
.hphone b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; }
.hphone small { font-size: 11.5px; color: var(--red); }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; flex: none; }
.iconbtn:hover { border-color: var(--red); color: var(--red); }
.iconbtn svg { width: 18px; height: 18px; }
.theme .sun, .theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="light"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .theme .sun { display: block; } }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .theme .moon { display: block; } }
.burger { display: none; background: var(--red); color: #fff; border-color: var(--red); }
@media (max-width: 640px) { .logo small { display: none; } .logo .wordmark { height: 14px; } .logo .mark { width: 36px; height: 36px; } }
@media (max-width: 1100px) {
  .nav, .hphone { display: none; }
  .theme { margin-left: auto; }
  .burger { display: inline-grid; }
  .header.open .nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: var(--shadow); }
  .header.open .nav a { padding-block: 10px; border-bottom: 1px solid var(--line); }
}

/* hero */
.hero { position: relative; overflow: hidden; background: var(--bg) var(--hero-img) right center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-fade) 0%, var(--hero-fade) 36%, var(--hero-fade-2) 62%, transparent 100%); pointer-events: none; }
.hero .wrap { position: relative; padding-block: 44px 48px; min-height: 600px; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); align-items: center; }
.emblem { width: 118px; height: 118px; filter: drop-shadow(0 0 18px var(--red-glow)); }
.hero .brand { height: clamp(34px, 4.6vw, 58px); width: auto; margin-top: 20px; }
.hero h1 { color: var(--red); text-shadow: 0 0 24px var(--red-glow); margin-top: 4px; }
.hero .tag { margin-top: 18px; padding-left: 14px; border-left: 4px solid var(--red); font-size: 20px; line-height: 1.3; max-width: 30ch; }
.feats { display: flex; flex-wrap: wrap; margin-top: 26px; }
.feat { display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 0; margin-right: 18px; border-right: 2px solid var(--red); font-family: var(--display); font-size: 12px; text-transform: uppercase; line-height: 1.25; max-width: 190px; }
.feat:last-child { border-right: 0; }
.feat svg { width: 38px; height: 38px; flex: none; color: var(--red); }
.cta-big { display: inline-flex; align-items: center; gap: 16px; margin-top: 28px; padding: 14px 28px 14px 20px; border-radius: 999px; text-decoration: none; color: #fff; background: linear-gradient(180deg, #FF2A3F, var(--red) 50%, #9E0012); box-shadow: 0 10px 30px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.cta-big:hover { filter: brightness(1.08); }
.cta-big svg.ico { width: 34px; height: 34px; flex: none; }
.cta-big b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.cta-big small { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: .9; }
.cta-big .arrow { width: 22px; height: 22px; margin-left: auto; }
.hero .calc-link { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero .calc-link a { color: var(--red); }
@media (max-width: 860px) {
  .hero { background-position: 70% 20%; }
  .hero::before { background: linear-gradient(180deg, var(--hero-fade-2) 0%, var(--hero-fade) 30%, var(--hero-fade) 100%); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 28px 36px; min-height: 0; }
  .emblem { width: 88px; height: 88px; }
  .feat { max-width: none; border-right: 0; padding-right: 0; width: 100%; }
  .cta-big { width: 100%; }
}

/* секции */
section { padding-block: 56px; }
section.alt { background: var(--bg-2); }
@media (max-width: 760px) { section { padding-block: 40px; } }
h2 .red { color: var(--red); }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sub { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.section-head .btn { flex: none; margin-top: 4px; }

/* материалы: квадратные плитки, подписи с разделителями */
.mat-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.mat { text-decoration: none; color: inherit; display: grid; gap: 10px; min-width: 0; }
.mat img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--surface-2); transition: transform .3s; }
.mat:hover img { transform: scale(1.04); }
.mat b { font-weight: 500; font-size: 14px; text-align: center; border-right: 1px solid var(--line); line-height: 1.2; padding-block: 2px; }
.mat:last-child b { border-right: 0; }
@media (max-width: 900px) { .mat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mat:nth-child(4n) b { border-right: 0; } }
@media (max-width: 560px) { .mat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .mat:nth-child(4n) b { border-right: 1px solid var(--line); } .mat:nth-child(3n) b { border-right: 0; } .mat b { font-size: 13px; } }

/* преимущества */
#advantages h2 { margin-bottom: 22px; }
.adv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px 18px; text-align: center; box-shadow: var(--shadow); }
.adv-card svg { width: 46px; height: 46px; color: var(--red); margin-inline: auto; display: block; }
.adv-card b { display: block; font-family: var(--display); font-weight: 400; font-size: 13px; text-transform: uppercase; margin-top: 14px; line-height: 1.3; }
.adv-card p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .adv-card { padding: 18px 12px; } .adv-card svg { width: 38px; height: 38px; } }

/* примеры работ */
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.work { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; text-decoration: none; color: #fff; background: var(--surface-2); display: block; }
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work:hover img { transform: scale(1.04); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 10, 0.8) 100%); }
.work .cap { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; font-size: 13px; line-height: 1.3; }
.work .cap small { display: block; color: #FF4D5E; font-family: var(--display); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
.work:hover { outline: 2px solid var(--red); outline-offset: -2px; }
@media (max-width: 760px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* оборудование: фото слева, текст справа */
.equip { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.equip-photo img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); }
.only-dark, .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="light"] .only-light { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .only-dark { display: block; } }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .only-light { display: block; } }
.checks { display: grid; gap: 10px; margin-top: 20px; margin-bottom: 22px; }
.check-item { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.check-item svg { width: 24px; height: 24px; color: var(--red); flex: none; }
@media (max-width: 860px) { .equip { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* как мы работаем */
#how h2 { margin-bottom: 26px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; text-align: center; padding-inline: 8px; }
.step-head { display: inline-flex; align-items: center; gap: 10px; }
.step .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--display); font-size: 14px; box-shadow: 0 6px 16px var(--red-glow); }
.step .ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); background: var(--surface); }
.step .ico svg { width: 30px; height: 30px; }
.step b { display: block; font-family: var(--display); font-weight: 400; font-size: 15px; text-transform: uppercase; margin-top: 14px; }
.step p { margin-top: 6px; font-size: 13.5px; color: var(--muted); max-width: 26ch; margin-inline: auto; }
.step::after { content: ""; position: absolute; right: -14px; top: 22px; width: 12px; height: 12px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg); }
.step:last-child::after { display: none; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } .step:nth-child(2)::after { display: none; } }
@media (max-width: 420px) { .step::after { display: none; } }

/* заявка: «Нужна гидроабразивная резка?» + форма */
.lead-section { background: var(--bg) var(--hero-img) center / cover no-repeat; position: relative; }
.lead-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-fade) 0%, var(--hero-fade) 55%, var(--hero-fade-2) 100%); pointer-events: none; }
.lead-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lead-card .sub { margin-top: 14px; font-size: 16px; max-width: 36ch; }
.lead-card .cta-big { margin-top: 24px; border: 0; cursor: pointer; font: inherit; }
.form { display: grid; gap: 10px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.field { display: grid; gap: 5px; }
.field label { font-size: 13px; color: var(--muted); }
.lead-card .form input, .lead-card .form select, .lead-card .form textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 11px 12px; }
.lead-card .form input::placeholder, .lead-card .form textarea::placeholder { color: var(--muted); }
.lead-card .drop { border: 1px dashed var(--line); border-radius: 8px; padding: 14px; text-align: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.lead-card .drop:hover, .lead-card .drop.over { border-color: var(--red); color: var(--fg); }
.lead-card .drop b { display: block; color: var(--fg); font-weight: 600; }
.files { display: grid; gap: 4px; font-size: 13px; }
.files div { display: flex; justify-content: space-between; gap: 10px; }
.files button { background: none; border: 0; color: var(--muted); cursor: pointer; }
.consent { font-size: 11.5px; color: var(--muted); }
.consent a { color: var(--muted); }
.form-status { font-size: 14px; min-height: 20px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--bad); }
@media (max-width: 860px) { .lead-card { grid-template-columns: minmax(0, 1fr); gap: 22px; } .lead-section::before { background: var(--hero-fade); } .lead-card .cta-big { width: 100%; } }

/* подвал */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 36px 20px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.2fr 1fr; gap: 28px; align-items: start; }
.fbrand { display: flex; gap: 12px; align-items: center; }
.fbrand > img { width: 64px; height: 64px; flex: none; }
.fbrand .fword { height: 16px; width: auto; }
.fbrand small { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.fnav { display: grid; gap: 8px; font-size: 14px; }
.fnav a { text-decoration: none; color: var(--fg); opacity: .85; }
.fnav a:hover { color: var(--red); opacity: 1; }
.contacts { display: grid; gap: 10px; font-size: 14px; }
.contacts a, .contacts .addr { text-decoration: none; display: flex; gap: 10px; align-items: flex-start; }
.contacts svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 2px; }
.contacts small { display: block; font-size: 12px; color: var(--red); }
.contacts .addr small { color: var(--muted); }
.pills { display: grid; gap: 10px; justify-items: start; }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
.pill:hover { border-color: var(--red); }
.pill i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; }
.pill i svg { width: 17px; height: 17px; }
.pill .arrow { width: 14px; height: 14px; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 14px; font-size: 12px; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* страница текста */
.page { max-width: 760px; padding-block: 44px 72px; }
.page h1 { font-size: 30px; }
.page h2 { font-size: 20px; margin-top: 30px; }
.page p, .page li { margin-top: 12px; color: var(--fg); }
.page ul { padding-left: 20px; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .work img, .mat .pic img { transition: none; } }
