/*
Theme Name: AP Fire & Safety Solutions
Author: WaldperlachFabi Media
Description: Maßgeschneidertes, responsives Onepage-Theme für AP Fire & Safety Solutions mit bearbeitbaren Startseiteninhalten im WordPress-Customizer.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ap-fire-safety
*/

:root {
      --ink: #0b1115;
      --ink-soft: #172027;
      --paper: #f4f5f3;
      --white: #ffffff;
      --muted: #647078;
      --line: rgba(11, 17, 21, .12);
      --red: #e3222e;
      --red-dark: #b81420;
      --red-pale: #fff0f1;
      --success: #b9f48a;
      --radius-sm: 12px;
      --radius: 22px;
      --radius-lg: 34px;
      --shadow: 0 24px 70px rgba(6, 13, 18, .13);
      --container: min(1180px, calc(100vw - 48px));
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: var(--white);
      font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }
    html.menu-open, body.menu-open { overflow: hidden; }
    img { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    button, input, textarea { font: inherit; }
    button { cursor: pointer; }
    ::selection { color: var(--white); background: var(--red); }

    .skip-link {
      position: fixed;
      z-index: 999;
      left: 18px;
      top: 12px;
      padding: 10px 16px;
      border-radius: 10px;
      color: var(--white);
      background: var(--ink);
      transform: translateY(-150%);
      transition: transform .2s ease;
    }
    .skip-link:focus { transform: translateY(0); }
    .container { width: var(--container); margin-inline: auto; }
    section[id] { scroll-margin-top: 88px; }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 18px;
      color: var(--red);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .14em;
      line-height: 1.2;
      text-transform: uppercase;
    }
    .eyebrow::before {
      width: 30px;
      height: 2px;
      background: currentColor;
      content: "";
    }

    .section-head {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(300px, .75fr);
      gap: 90px;
      align-items: end;
      margin-bottom: 50px;
    }
    .section-head h2 {
      max-width: 720px;
      margin: 0;
      font-size: clamp(38px, 5vw, 64px);
      font-weight: 720;
      letter-spacing: -.045em;
      line-height: 1.04;
    }
    .section-head p:last-child {
      margin: 0 0 6px;
      color: var(--muted);
      font-size: 18px;
    }

    .btn {
      display: inline-flex;
      min-height: 54px;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 0 23px;
      border: 1px solid transparent;
      border-radius: 999px;
      font-size: 15px;
      font-weight: 760;
      letter-spacing: -.01em;
      transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn:focus-visible, .nav-link:focus-visible, .nav-list a:focus-visible, .menu-toggle:focus-visible, .contact-link:focus-visible {
      outline: 3px solid rgba(227, 34, 46, .3);
      outline-offset: 4px;
    }
    .btn-red {
      color: var(--white);
      background: var(--red);
      box-shadow: 0 12px 30px rgba(227, 34, 46, .25);
    }
    .btn-red:hover { background: var(--red-dark); box-shadow: 0 16px 36px rgba(227, 34, 46, .32); }
    .btn-light { color: var(--ink); background: var(--white); }
    .btn-light:hover { color: var(--red); }
    .btn-ghost { border-color: rgba(255,255,255,.25); color: var(--white); background: transparent; }
    .btn-ghost:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
    .arrow-icon {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 2;
      transition: transform .2s ease;
    }
    .btn:hover .arrow-icon { transform: translateX(4px); }

    .site-header {
      position: sticky;
      z-index: 50;
      top: 0;
      border-bottom: 1px solid rgba(11,17,21,.08);
      background: rgba(255,255,255,.94);
      box-shadow: 0 5px 22px rgba(11,17,21,.035);
      backdrop-filter: blur(18px);
    }
    .admin-bar .site-header { top: 32px; }
    .nav {
      display: flex;
      min-height: 82px;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
    }
    .brand { display: inline-flex; flex: 0 1 auto; align-items: center; }
    .brand a { display: inline-flex; align-items: center; }
    .brand img { width: 250px; height: auto; }
    .nav-menu { display: flex; align-items: center; gap: 30px; }
    .nav-list { display: contents; margin: 0; padding: 0; list-style: none; }
    .nav-list li { display: contents; }
    .nav-link, .nav-list a { position: relative; color: #38434a; font-size: 14px; font-weight: 690; }
    .nav-link::after, .nav-list a::after {
      position: absolute;
      right: 0;
      bottom: -8px;
      left: 0;
      height: 2px;
      background: var(--red);
      content: "";
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .22s ease;
    }
    .nav-link:hover, .nav-list a:hover { color: var(--ink); }
    .nav-link:hover::after, .nav-list a:hover::after { transform: scaleX(1); }
    .nav .btn { min-height: 46px; padding-inline: 19px; }
    .menu-toggle {
      display: none;
      width: 46px;
      height: 46px;
      align-items: center;
      justify-content: center;
      border: 0;
      border-radius: 50%;
      color: var(--white);
      background: var(--ink);
    }
    .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
      display: block;
      width: 19px;
      height: 2px;
      background: currentColor;
      transition: transform .2s ease, opacity .2s ease;
    }
    .menu-toggle span { position: relative; }
    .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 0; content: ""; }
    .menu-toggle span::before { top: -6px; }
    .menu-toggle span::after { top: 6px; }
    .menu-open .menu-toggle span { background: transparent; }
    .menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
    .menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

    .hero {
      position: relative;
      min-height: 720px;
      overflow: hidden;
      color: var(--white);
      background: var(--ink);
    }
    .hero::before {
      position: absolute;
      inset: 0;
      background: none;
      content: "";
      transform: scale(1.01);
    }
    .hero { --hero-photo: url("assets/images/hero-smoke-detector.webp"); }
    .hero::before {
      background:
        linear-gradient(90deg, rgba(8,14,18,.98) 0%, rgba(8,14,18,.94) 40%, rgba(8,14,18,.46) 72%, rgba(8,14,18,.28) 100%),
        linear-gradient(0deg, rgba(8,14,18,.74), transparent 50%),
        var(--hero-photo) right bottom / cover no-repeat;
    }
    .hero::after {
      position: absolute;
      inset: 0;
      opacity: .045;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
      content: "";
      pointer-events: none;
    }
    .hero-inner {
      position: relative;
      z-index: 2;
      display: flex;
      min-height: 720px;
      align-items: center;
      padding: 76px 0 86px;
    }
    .hero-copy { width: min(710px, 67%); }
    .hero .eyebrow { color: #ff5a63; }
    .hero h1 {
      margin: 0;
      font-size: clamp(52px, 6.2vw, 84px);
      font-weight: 720;
      letter-spacing: -.055em;
      line-height: .98;
      text-wrap: balance;
    }
    .hero h1 span { color: #ff4f59; }
    .hero-lead {
      max-width: 650px;
      margin: 28px 0 33px;
      color: rgba(255,255,255,.74);
      font-size: clamp(18px, 2vw, 21px);
      line-height: 1.55;
    }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .hero-facts {
      display: flex;
      flex-wrap: wrap;
      gap: 32px;
      margin: 50px 0 0;
      padding: 28px 0 0;
      border-top: 1px solid rgba(255,255,255,.17);
      list-style: none;
    }
    .hero-facts li { min-width: 125px; }
    .hero-facts strong { display: block; color: var(--white); font-size: 18px; font-weight: 760; }
    .hero-facts span { color: rgba(255,255,255,.56); font-size: 13px; }
    .trust-strip { border-bottom: 1px solid var(--line); background: var(--white); }
    .trust-inner {
      display: grid;
      grid-template-columns: 180px 1fr;
      min-height: 132px;
      align-items: center;
      gap: 34px;
    }
    .trust-title { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; line-height: 1.45; text-transform: uppercase; }
    .logo-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; align-items: center; }
    .logo-row a { display: flex; min-width: 0; align-items: center; justify-content: center; }
    .logo-row img {
      width: 100%;
      max-height: 42px;
      object-fit: contain;
      filter: grayscale(1);
      opacity: .6;
      transition: filter .2s ease, opacity .2s ease, transform .2s ease;
    }
    .logo-row img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.04); }

    .services { padding: 120px 0 130px; background: var(--paper); }
    .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .service-card {
      position: relative;
      min-height: 285px;
      overflow: hidden;
      padding: 30px;
      border: 1px solid rgba(11,17,21,.08);
      border-radius: var(--radius);
      background: var(--white);
      transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }
    .service-card:hover { transform: translateY(-7px); border-color: rgba(227,34,46,.22); box-shadow: 0 25px 55px rgba(11,17,21,.1); }
    .service-card::after {
      position: absolute;
      right: -54px;
      bottom: -72px;
      width: 180px;
      height: 180px;
      border: 28px solid var(--red-pale);
      border-radius: 50%;
      content: "";
      transition: transform .35s ease;
    }
    .service-card:hover::after { transform: scale(1.14); }
    .service-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
    .service-icon {
      display: inline-flex;
      width: 52px;
      height: 52px;
      align-items: center;
      justify-content: center;
      border-radius: 15px;
      color: var(--red);
      background: var(--red-pale);
    }
    .service-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
    .service-no { color: #a3abb0; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
    .service-card h3 { margin: 38px 0 12px; font-size: 24px; letter-spacing: -.025em; line-height: 1.18; }
    .service-card p { position: relative; z-index: 2; margin: 0; color: var(--muted); font-size: 15px; }
    .service-cta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
      margin-top: 35px;
      padding-top: 28px;
      border-top: 1px solid var(--line);
    }
    .service-cta p { margin: 0; color: var(--muted); font-size: 16px; }
    .service-cta strong { color: var(--ink); }

    .process { padding: 110px 0 120px; color: var(--white); background: var(--ink); }
    .process .section-head { margin-bottom: 65px; }
    .process .section-head p:last-child { color: rgba(255,255,255,.59); }
    .process-steps { display: grid; grid-template-columns: repeat(4, 1fr); }
    .process-step { position: relative; min-height: 230px; padding: 32px 27px 0; border-left: 1px solid rgba(255,255,255,.13); }
    .process-step:last-child { border-right: 1px solid rgba(255,255,255,.13); }
    .process-step::before { position: absolute; top: 0; left: -1px; width: 38px; height: 3px; background: var(--red); content: ""; }
    .process-step span { display: block; margin-bottom: 48px; color: #ff5a63; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
    .process-step h3 { margin: 0 0 11px; font-size: 22px; letter-spacing: -.02em; }
    .process-step p { margin: 0; color: rgba(255,255,255,.55); font-size: 14px; }

    .projects { padding: 124px 0 132px; }
    .project-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
    .project-card {
      position: relative;
      min-height: 520px;
      overflow: hidden;
      border-radius: var(--radius-lg);
      color: var(--white);
      background: var(--ink);
      isolation: isolate;
    }
    .project-card::before {
      position: absolute;
      z-index: -2;
      inset: 0;
      background-position: center;
      background-size: cover;
      background-image: var(--project-image);
      content: "";
      transition: transform .7s cubic-bezier(.2,.7,.2,1);
    }
    .project-card::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(7,12,15,.07) 30%, rgba(7,12,15,.94) 100%); content: ""; }
    .project-card:hover::before { transform: scale(1.055); }
    .project-content { position: absolute; right: 0; bottom: 0; left: 0; padding: 36px; }
    .project-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; color: rgba(255,255,255,.64); font-size: 12px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
    .project-meta::before { width: 22px; height: 2px; background: var(--red); content: ""; }
    .project-card h3 { max-width: 580px; margin: 0 0 13px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.05; }
    .project-card p { max-width: 570px; margin: 0; color: rgba(255,255,255,.7); font-size: 15px; }

    .project-gallery { padding: 118px 0 126px; color: var(--white); background: var(--ink); }
    .project-gallery .section-head p:last-child { color: rgba(255,255,255,.58); }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      grid-template-rows: repeat(4, 180px);
      gap: 14px;
    }
    .gallery-item { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius); background: #202a30; }
    .gallery-item:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; }
    .gallery-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 3; }
    .gallery-item:nth-child(3) { grid-column: 1 / 5; grid-row: 3 / 5; }
    .gallery-item:nth-child(4) { grid-column: 5 / 9; grid-row: 3 / 5; }
    .gallery-item:nth-child(5) { grid-column: 9 / 13; grid-row: 3 / 4; }
    .gallery-item:nth-child(6) { grid-column: 9 / 13; grid-row: 4 / 5; }
    .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
    .gallery-item:hover img { transform: scale(1.045); }
    .gallery-item::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.11); border-radius: inherit; content: ""; pointer-events: none; }

    .about { padding: 120px 0; background: var(--paper); }
    .team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .person-card {
      display: flex;
      min-height: 460px;
      flex-direction: column;
      padding: 38px;
      border: 1px solid rgba(11,17,21,.08);
      border-radius: var(--radius-lg);
      background: var(--white);
      box-shadow: 0 18px 45px rgba(11,17,21,.055);
    }
    .person-header { display: flex; align-items: center; gap: 25px; }
    .person-photo { flex: 0 0 180px; width: 180px; height: 180px; overflow: hidden; border: 6px solid var(--paper); border-radius: 50%; background: #d9ddde; }
    .person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
    .person-card:first-child .person-photo img { object-position: center center; }
    .person-card h3 { margin: 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.035em; line-height: 1.05; }
    .person-copy { margin: 30px 0 25px; color: var(--muted); font-size: 16px; }
    .person-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
    .person-facts li { padding: 9px 13px; border-radius: 999px; color: #3d484f; background: var(--paper); font-size: 12px; font-weight: 690; }
    .team-quote { margin: 38px 0 0; text-align: center; font-size: 22px; font-weight: 730; letter-spacing: -.02em; }
    .team-quote span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 570; letter-spacing: .02em; }

    .certificates { padding: 90px 0; border-bottom: 1px solid var(--line); }
    .quality-panel {
      display: grid;
      grid-template-columns: .82fr 1.18fr;
      gap: 80px;
      align-items: center;
      padding: 64px;
      border-radius: var(--radius-lg);
      background: var(--paper);
    }
    .certificate-intro h2 { margin: 0 0 16px; font-size: clamp(36px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.04; }
    .certificate-intro p { max-width: 430px; margin: 0; color: var(--muted); font-size: 16px; }
    .certificate-list { border-top: 1px solid var(--line); }
    .certificate-item {
      display: grid;
      grid-template-columns: 46px 1fr;
      gap: 18px;
      align-items: center;
      padding: 24px 0;
      border-bottom: 1px solid var(--line);
    }
    .certificate-check {
      display: inline-flex;
      width: 42px;
      height: 42px;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      color: var(--white);
      background: var(--red);
      font-size: 15px;
      font-weight: 900;
    }
    .certificate-item span { display: block; margin-bottom: 3px; color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
    .certificate-item strong { display: block; font-size: 18px; letter-spacing: -.015em; line-height: 1.3; }

    .contact { padding: 120px 0; }
    .contact-panel {
      position: relative;
      overflow: hidden;
      padding: 76px;
      border-radius: 38px;
      color: var(--white);
      background: var(--ink);
    }
    .contact-panel::before { position: absolute; top: -140px; right: -80px; width: 420px; height: 420px; border: 70px solid rgba(227,34,46,.18); border-radius: 50%; content: ""; }
    .contact-panel::after { position: absolute; right: 150px; bottom: -160px; width: 310px; height: 310px; border-radius: 50%; background: rgba(227,34,46,.14); content: ""; }
    .contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: end; }
    .contact-copy h2 { max-width: 700px; margin: 0 0 23px; font-size: clamp(42px, 5.5vw, 70px); letter-spacing: -.05em; line-height: 1; }
    .contact-copy p { max-width: 620px; margin: 0; color: rgba(255,255,255,.64); font-size: 18px; }
    .contact-options { display: grid; gap: 10px; }
    .contact-link { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 18px 13px 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.055); transition: background .2s ease, border-color .2s ease; }
    .contact-link:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }
    .contact-link > span:first-child { min-width: 0; }
    .contact-link small { display: block; color: rgba(255,255,255,.45); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
    .contact-link strong { display: block; overflow-wrap: anywhere; font-size: 16px; }
    .contact-arrow { display: inline-flex; flex: 0 0 38px; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; color: var(--white); background: var(--red); }
    .contact-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

    footer { padding: 54px 0 30px; background: var(--paper); }
    .footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 60px; padding-bottom: 45px; }
    .footer-brand img { width: min(250px, 100%); height: auto; margin-bottom: 19px; }
    .footer-brand p { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; }
    .footer-col h2 { margin: 0 0 17px; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
    .footer-col a { display: block; width: fit-content; margin: 8px 0; color: var(--muted); font-size: 14px; }
    .footer-col a:hover { color: var(--red); }
    .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-top: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
    .legal { display: flex; flex-wrap: wrap; gap: 18px; }
    .legal a:hover { color: var(--ink); }

    .content-page { min-height: 60vh; padding: 105px 0 120px; background: var(--paper); }
    .content-shell { max-width: 940px; }
    .content-heading { margin-bottom: 42px; }
    .content-heading h1, .error-page h1 { margin: 0; font-size: clamp(40px, 6vw, 68px); letter-spacing: -.045em; line-height: 1.03; }
    .archive-description { max-width: 720px; color: var(--muted); }
    .post-list { display: grid; gap: 20px; }
    .post-card, .page-article, .comments-area {
      padding: clamp(28px, 5vw, 56px);
      border: 1px solid rgba(11,17,21,.08);
      border-radius: var(--radius);
      background: var(--white);
      box-shadow: 0 16px 45px rgba(11,17,21,.055);
    }
    .post-card h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
    .post-meta { margin: 0 0 12px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
    .entry-summary, .entry-content { color: #303b42; }
    .entry-content { font-size: 17px; }
    .entry-content > *:first-child { margin-top: 0; }
    .entry-content > *:last-child { margin-bottom: 0; }
    .entry-content h2, .entry-content h3 { margin-top: 1.8em; letter-spacing: -.025em; line-height: 1.2; }
    .entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
    .entry-content img, .featured-image img { width: 100%; height: auto; border-radius: var(--radius-sm); }
    .featured-image { margin-bottom: 35px; }
    .text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--red); font-weight: 760; }
    .text-link .arrow-icon { width: 16px; height: 16px; }
    .navigation, .post-navigation { margin-top: 34px; }
    .nav-links, .post-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
    .nav-links a, .post-navigation a { color: var(--red); font-weight: 700; }
    .comments-area { margin-top: 32px; }
    .comment-list { padding-left: 24px; }
    .comment-list li { margin-bottom: 24px; }
    .comment-form label { display: block; margin-bottom: 6px; font-weight: 700; }
    .comment-form input:not([type="submit"]), .comment-form textarea, .search-form input[type="search"] {
      width: 100%;
      padding: 13px 15px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--white);
    }
    .comment-form input[type="submit"], .search-form input[type="submit"] {
      min-height: 48px;
      padding: 0 20px;
      border: 0;
      border-radius: 999px;
      color: var(--white);
      background: var(--red);
      font-weight: 750;
    }
    .error-page { text-align: center; }
    .error-page > p:not(.eyebrow) { margin: 24px auto 30px; color: var(--muted); }
    .error-page .eyebrow { justify-content: center; }
    .wp-caption, .gallery-caption { max-width: 100%; color: var(--muted); font-size: 13px; }
    .alignwide { width: min(1120px, 100%); max-width: none; margin-right: auto; margin-left: auto; }
    .alignleft { float: left; margin: 0 24px 18px 0; }
    .alignright { float: right; margin: 0 0 18px 24px; }
    .aligncenter { display: block; margin-right: auto; margin-left: auto; }

    .reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
    .reveal.is-visible { opacity: 1; transform: none; }

    @media (max-width: 1060px) {
      .hero-copy { width: 75%; }
      .logo-row { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
      .trust-inner { min-height: 166px; }
      .service-grid { grid-template-columns: repeat(2, 1fr); }
      .process-steps { grid-template-columns: repeat(2, 1fr); gap: 45px 0; }
      .process-step:nth-child(2) { border-right: 1px solid rgba(255,255,255,.13); }
      .person-photo { flex-basis: 150px; width: 150px; height: 150px; }
      .quality-panel { grid-template-columns: 1fr; gap: 42px; }
      .contact-grid { gap: 45px; }
    }

    @media (max-width: 820px) {
      :root { --container: min(100% - 34px, 700px); }
      .site-header {
        background: var(--white);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
      }
      .nav { min-height: 74px; }
      .brand, .menu-toggle { position: relative; z-index: 2; }
      .brand img { width: 205px; }
      .menu-toggle { display: inline-flex; flex: 0 0 46px; }
      .nav-menu {
        position: fixed;
        z-index: 1;
        top: 74px;
        right: 0;
        left: 0;
        display: flex;
        width: 100%;
        height: calc(100vh - 74px);
        height: calc(100dvh - 74px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 30px max(24px, env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: var(--white);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
      }
      .menu-open .nav-menu {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: none;
        transition-delay: 0s;
      }
      .nav-link, .nav-list a { padding: 17px 4px; border-bottom: 1px solid var(--line); font-size: 20px; }
      .nav-link::after, .nav-list a::after { display: none; }
      .nav-menu .btn { margin-top: 24px; min-height: 54px; }
      .hero, .hero-inner { min-height: 670px; }
      .hero::before { background: linear-gradient(90deg, rgba(8,14,18,.96), rgba(8,14,18,.70)), var(--hero-photo) 78% center / cover no-repeat; }
      .hero-copy { width: 100%; }
      .hero h1 { max-width: 650px; }
      .hero-facts { gap: 20px; }
      .section-head { grid-template-columns: 1fr; gap: 22px; }
      .trust-inner { grid-template-columns: 1fr; gap: 25px; padding: 35px 0; }
      .logo-row { grid-template-columns: repeat(3, 1fr); }
      .services, .projects, .project-gallery, .about, .contact { padding: 90px 0; }
      .project-grid { grid-template-columns: 1fr; }
      .project-card { min-height: 460px; }
      .team-grid { grid-template-columns: 1fr; }
      .contact-panel { padding: 50px 35px; }
      .contact-grid { grid-template-columns: 1fr; }
      .footer-main { grid-template-columns: 1fr 1fr; }
      .footer-brand { grid-column: 1 / -1; }
    }

    @media (max-width: 580px) {
      .hero, .hero-inner { min-height: 690px; }
      .hero-inner { align-items: flex-end; padding: 74px 0 58px; }
      .hero h1 { font-size: clamp(43px, 13vw, 59px); }
      .hero-lead { margin: 23px 0 27px; font-size: 17px; }
      .hero-actions { display: grid; }
      .hero-actions .btn { width: 100%; }
      .hero-facts { margin-top: 36px; padding-top: 22px; }
      .hero-facts li { min-width: calc(50% - 12px); }
      .section-head h2 { font-size: 39px; }
      .section-head p:last-child { font-size: 16px; }
      .logo-row { grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
      .logo-row img { max-height: 34px; }
      .service-grid { grid-template-columns: 1fr; }
      .service-card { min-height: 305px; }
      .service-cta { align-items: flex-start; flex-direction: column; }
      .process { padding: 80px 0 90px; }
      .process-steps { grid-template-columns: 1fr; gap: 35px 0; }
      .process-step, .process-step:nth-child(2), .process-step:last-child { min-height: auto; padding-bottom: 24px; border-right: 0; }
      .process-step span { margin-bottom: 23px; }
      .project-card { min-height: 440px; }
      .project-content { padding: 28px; }
      .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
      .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; }
      .gallery-item:nth-child(1), .gallery-item:nth-child(5) { grid-column: 1 / -1; }
      .person-card { min-height: 0; padding: 28px; }
      .person-header { align-items: flex-start; flex-direction: column; gap: 20px; }
      .person-photo { flex-basis: 150px; width: 150px; height: 150px; }
      .quality-panel { padding: 38px 25px; }
      .contact-panel { width: calc(100% + 14px); margin-left: -7px; padding: 42px 25px; border-radius: 28px; }
      .contact-copy h2 { font-size: 41px; }
      .contact-link strong { font-size: 14px; }
      .footer-main { grid-template-columns: 1fr; gap: 30px; }
      .footer-brand { grid-column: auto; }
      .footer-bottom { align-items: flex-start; flex-direction: column; }
      .content-page { padding: 72px 0 84px; }
      .post-card, .page-article, .comments-area { padding: 26px 22px; }
    }

    @media (max-width: 420px) {
      :root { --container: min(100% - 28px, 700px); }
      .nav { min-height: 70px; }
      .brand img { width: 176px; }
      .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        padding: 24px max(18px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
      }
      .hero, .hero-inner { min-height: 660px; }
      .hero-inner { padding: 70px 0 44px; }
      .hero::before { background-position: 76% center; }
      .hero .eyebrow { font-size: 10px; letter-spacing: .1em; }
      .hero h1 { font-size: clamp(38px, 12vw, 49px); }
      .hero-lead { margin: 20px 0 24px; font-size: 16px; }
      .hero-facts { gap: 16px 10px; margin-top: 30px; padding-top: 20px; }
      .hero-facts li { min-width: calc(50% - 8px); }
      .section-head h2 { font-size: 34px; }
      .services, .projects, .project-gallery, .about, .contact { padding: 72px 0; }
      .project-card { min-height: 390px; }
      .project-content { padding: 24px; }
      .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 245px; }
      .gallery-item:nth-child(n) { grid-column: 1; }
      .person-card { padding: 24px; }
      .quality-panel { padding: 32px 20px; }
      .certificate-item { grid-template-columns: 36px 1fr; gap: 14px; }
      .certificate-check { width: 36px; height: 36px; }
      .certificate-item strong { font-size: 16px; }
      .contact-panel { width: 100%; margin-left: 0; padding: 36px 20px; }
      .contact-copy h2 { font-size: 35px; }
      .contact-link { gap: 12px; padding-inline: 15px; }
      .contact-link strong { font-size: 13px; }
      .contact-arrow { flex-basis: 34px; width: 34px; height: 34px; }
      footer { padding-top: 44px; }
      .footer-brand img { width: min(220px, 100%); }
      .legal { gap: 12px 16px; }
    }

    @media (min-width: 783px) and (max-width: 820px) {
      .admin-bar .nav-menu {
        top: 106px;
        height: calc(100vh - 106px);
        height: calc(100dvh - 106px);
      }
    }

    @media (max-width: 782px) {
      .admin-bar .site-header { top: 46px; }
      .admin-bar .nav-menu {
        top: 120px;
        height: calc(100vh - 120px);
        height: calc(100dvh - 120px);
      }
    }

    @media (max-width: 420px) {
      .admin-bar .nav-menu {
        top: 116px;
        height: calc(100vh - 116px);
        height: calc(100dvh - 116px);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
      .reveal { opacity: 1; transform: none; }
    }
