/* === ЭТАЛОН страницы услуги металлообработки ===
       После согласования копируем структуру на остальные услуги,
       меняя тексты, фото и data-service в форме. */
    :root {
      --bg: #FCFAF6; --green: #0F5432; --green-d: #0C3624; --gold: #C4A35A;
      --ink: #1A2420; --muted: #5A635C; --line: #E4DDD0; --soft: #EAF4EE; --white: #fff;
      --font-head: "Unbounded", system-ui, sans-serif;
      --font-body: "Manrope", system-ui, sans-serif;
      --r: 4px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    button, input, textarea, select { font: inherit; }
    .wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
    .kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
    .sec { font-family: var(--font-head); font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; letter-spacing: -.03em; color: var(--green-d); line-height: 1.15; margin-bottom: 12px; width: 100%; }
    .lead { font-size: 16px; color: var(--muted); max-width: 42em; }
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      padding: 12px 18px; border-radius: var(--r); border: 1px solid transparent;
      font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
      cursor: pointer; transition: transform .25s ease, background .25s ease;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn.gold { background: var(--gold); color: var(--green-d); }
    .btn.green { background: var(--green); color: #fff; }
    .btn.ghost { background: transparent; color: #fff; border-color: rgba(196,163,90,.75); }
    .btn.outline { background: transparent; color: var(--green-d); border-color: var(--gold); }

    .top {
      position: sticky; top: 0; z-index: 50;
      background: rgba(252,250,246,.92); backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
    }
    .top-inner { display: flex; align-items: center; gap: 18px; padding: 12px 0; position: relative; }
    .logo { height: 40px; width: auto; flex-shrink: 0; }
    .nav {
      display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px;
      position: absolute; left: 50%; transform: translateX(-50%);
      font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-d);
      max-width: min(720px, calc(100% - 360px));
    }
    .nav a.is-active, .nav a:hover, .nav summary:hover, .nav details.is-active > summary { color: var(--gold); }
    .nav details { position: relative; }
    .nav summary { list-style: none; cursor: pointer; }
    .nav summary::-webkit-details-marker { display: none; }
    .nav .drop {
      position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px;
      background: var(--white, #fff); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15,84,50,.12);
      padding: 10px; display: none; z-index: 20;
    }
    .nav details[open] .drop { display: grid; gap: 2px; }
    .nav .drop a { display: block; padding: 8px 10px; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; color: var(--green-d); }
    .nav .drop a:hover { background: var(--soft, #EAF4EE); color: var(--gold); }
    .top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
    .top-phone { font-size: 13px; font-weight: 700; color: var(--green); white-space: nowrap; }
    .menu-btn {
      display: none; border: 1px solid var(--line); background: #fff;
      padding: 8px 10px; border-radius: var(--r); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    }

    .crumbs { padding: 14px 0 0; font-size: 12px; color: var(--muted); }
    .crumbs a:hover { color: var(--gold); }
    .crumbs span { margin: 0 6px; opacity: .45; }

    /* HERO */
    .ahero { padding: 18px 0 0; }
    .ahero-stage {
      position: relative; min-height: min(54vh, 500px); overflow: hidden;
      border: 1px solid rgba(196,163,90,.45);
    }
    .ahero-stage > img {
      position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
      filter: brightness(.7) contrast(1.05);
    }
    .ahero-stage::after {
      content: ""; position: absolute; inset: 0;
      background: linear-gradient(105deg, rgba(12,54,36,.9) 0%, rgba(12,54,36,.5) 50%, rgba(12,54,36,.18) 100%);
    }
    .ahero-copy {
      position: relative; z-index: 1; max-width: 36em;
      padding: clamp(36px, 6vw, 64px) clamp(22px, 4vw, 48px); color: #fff;
    }
    .ahero-copy .kicker { color: var(--gold); }
    .ahero-copy h1 {
      font-family: var(--font-head); font-size: clamp(28px, 4.5vw, 46px);
      font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px;
    }
    .ahero-copy p { font-size: 16px; color: rgba(255,255,255,.88); margin-bottom: 22px; }
    .ahero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

    /* INTRO */
    .intro { padding: clamp(48px, 7vw, 72px) 0; background: #fff; border-bottom: 1px solid var(--line); }
    .intro-grid {
      display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start;
    }
    .intro-visual {
      position: relative; min-height: 320px; border: 1px solid var(--gold); overflow: hidden;
    }
    .intro-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
    .intro-visual .cap {
      position: absolute; left: 12px; bottom: 12px; right: 12px;
      padding: 10px 12px; background: rgba(12,54,36,.9); color: var(--gold);
      font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    }
    .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
    .chip {
      font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
      padding: 8px 12px; border: 1px solid var(--gold); color: var(--green-d); background: var(--bg);
    }
    .intro-copy p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
    .intro-copy .accent { color: var(--green-d); font-weight: 700; }
    .intro-copy .accent-gold {
      color: var(--green-d); font-weight: 700;
      background: linear-gradient(180deg, transparent 62%, rgba(196,163,90,.35) 62%);
    }

    /* BENEFITS */
    .benefits {
      padding: clamp(48px, 7vw, 72px) 0;
      background: linear-gradient(180deg, var(--bg), #F3EFE6 45%, var(--bg));
    }
    .ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
    .ben {
      padding: 22px 20px; background: rgba(255,255,255,.85); border: 1px solid var(--line);
      min-height: 160px; display: flex; flex-direction: column;
      transition: transform .3s ease, border-color .3s ease;
    }
    .ben:hover { transform: translateY(-3px); border-color: rgba(196,163,90,.7); }
    .ben .n {
      font-family: var(--font-head); font-size: 28px; font-weight: 700; line-height: 1;
      color: transparent; -webkit-text-stroke: 1.2px rgba(15,84,50,.28); margin-bottom: 12px;
    }
    .ben h3 { font-family: var(--font-head); font-size: 16px; color: var(--green-d); margin-bottom: 8px; letter-spacing: -.02em; }
    .ben p { font-size: 13px; color: var(--muted); flex: 1; }
    .ben--wide {
      grid-column: span 1;
      background: linear-gradient(135deg, rgba(12,54,36,.97), rgba(15,84,50,.9));
      border-color: rgba(196,163,90,.45); color: #fff;
    }
    .ben--wide .n { -webkit-text-stroke-color: rgba(196,163,90,.5); }
    .ben--wide h3 { color: #fff; }
    .ben--wide p { color: rgba(255,255,255,.8); }

    /* WORK TYPES */
    .works { padding: clamp(48px, 7vw, 72px) 0; background: #fff; border-block: 1px solid var(--line); }
    .works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
    .work {
      display: flex; gap: 14px; align-items: flex-start;
      padding: 16px 18px; border: 1px solid var(--line); background: var(--bg);
      border-left: 3px solid var(--gold);
    }
    .work i {
      font-style: normal; font-family: var(--font-head); font-size: 13px; color: var(--gold);
      font-weight: 700; min-width: 1.8em;
    }
    .work span { font-size: 14px; color: var(--green-d); font-weight: 600; line-height: 1.35; }

    /* CASES / WHEN */
    .cases { padding: clamp(48px, 7vw, 72px) 0; background: var(--green-d); color: #fff; }
    .cases .sec { color: #fff; }
    .cases .lead { color: rgba(255,255,255,.75); }
    .case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
    .case {
      padding: 22px 20px; border: 1px solid rgba(196,163,90,.4); background: rgba(255,255,255,.04);
    }
    .case h3 { font-family: var(--font-head); font-size: 17px; color: #fff; margin-bottom: 8px; letter-spacing: -.02em; }
    .case p { font-size: 14px; color: rgba(255,255,255,.78); }

    /* GALLERY */
    .gallery { padding: clamp(48px, 7vw, 72px) 0; }
    .gal-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 24px; }
    .gal-grid figure {
      margin: 0; overflow: hidden; border: 1px solid var(--line); background: #fff;
      position: relative; min-height: 260px;
    }
    .gal-grid img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
    .gal-grid figcaption {
      position: absolute; left: 12px; bottom: 12px; right: 12px;
      padding: 10px 12px; background: rgba(12,54,36,.88); color: var(--gold);
      font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    }

    /* RELATED */
    .related { padding: 0 0 clamp(48px, 7vw, 64px); }
    .rel-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
    .rel-row a {
      padding: 10px 14px; border: 1px solid var(--line); background: #fff;
      font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-d);
    }
    .rel-row a:hover { border-color: var(--gold); color: var(--gold); }

    /* FORM */
    .lead-form { background: linear-gradient(180deg, var(--bg), #fff); padding: clamp(48px, 7vw, 72px) 0; border-top: 1px solid var(--line); }
    .form-shell {
      display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start;
      padding: 8px; border: 1px solid var(--gold); background: #fff;
      box-shadow: 0 0 0 8px rgba(196,163,90,.08);
    }
    .form-intro { padding: 28px; background: var(--green-d); color: #fff; min-height: 100%; display: flex; flex-direction: column; }
    .form-intro .sec { color: #fff; }
    .form-intro p { color: rgba(255,255,255,.88); margin-bottom: 18px; font-size: 17px; }
    .form-intro .facts { font-size: 14px; line-height: 1.8; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(196,163,90,.35); }
    .form-intro a { color: var(--gold); font-weight: 700; }
    .form-logo { height: 44px; width: auto; margin-bottom: 18px; }
    .form-fields { padding: 24px 20px 20px; display: grid; gap: 14px; }
    .field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
    .field input, .field textarea, .field select {
      width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); border-radius: var(--r);
    }
    .field textarea { min-height: 96px; resize: vertical; }
    .check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); }
    .check a { color: var(--green); font-weight: 700; }
    .form-note { font-size: 11px; color: var(--muted); }

    footer { background: var(--green-d); color: rgba(255,255,255,.75); padding: 40px 0 28px; }
    .foot-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
    .foot-grid h4 { color: var(--gold); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
    .foot-grid a { display: block; font-size: 13px; margin-bottom: 6px; }
    .foot-grid a:hover { color: #fff; }
    .foot-logo { height: 36px; width: auto; display: block; margin-bottom: 12px; }
    .foot-req { font-size: 12px; line-height: 1.55; margin-top: 10px; color: rgba(255,255,255,.62); }
    .foot-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
    .foot-legal a { display: inline; margin: 0; }
    .foot-legal a:hover { color: #fff; }

    .foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; }
    .mock-badge { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

    @media (max-width: 980px) {
      .nav { display: none; }
      .nav.open {
        display: flex; position: absolute; left: 0; right: 0; top: 100%; transform: none;
        max-width: none; background: var(--bg); border-bottom: 1px solid var(--line);
        padding: 16px 20px 20px; flex-direction: column; align-items: flex-start; gap: 12px;
      }
      .menu-btn { display: inline-flex; }
      .intro-grid, .ben-grid, .works-grid, .case-grid, .gal-grid, .form-shell, .foot-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .top-phone { display: none; }
      .intro-grid, .ben-grid, .works-grid, .case-grid, .gal-grid, .form-shell, .foot-grid { grid-template-columns: 1fr; }
      .intro-visual { min-height: 220px; }
    }
