
    :root {
      --bg: #f3f5f8;
      --bg-2: #eef2f7;
      --card: rgba(255,255,255,.72);
      --card-strong: rgba(255,255,255,.82);
      --line: rgba(103,118,144,.18);
      --line-strong: rgba(214,31,44,.22);
      --text: #1f2430;
      --muted: #616a7d;
      --accent: #d61f2c;
      --accent-soft: rgba(214,31,44,.08);
      --shadow: 0 24px 60px rgba(32,44,74,.14);
      --radius: 28px;
      --radius-sm: 18px;
      --max: 1260px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Inter, Arial, Helvetica, sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at left top, rgba(110,143,204,.35) 0%, rgba(110,143,204,0) 26%),
        radial-gradient(circle at right top, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 28%),
        linear-gradient(180deg, #eef2f8 0%, #f7f8fb 100%);
    }

    a { color: inherit; text-decoration: none; }
    .container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(20px);
      background: rgba(244,247,251,.72);
      border-bottom: 1px solid rgba(103,118,144,.12);
    }

    .topbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      min-height: 78px;
    }

    .logo { display: flex; align-items: center; gap: 0; min-width: 0; }
    .logo-mark {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      font-weight: 800;
      color: #fff;
      background: linear-gradient(135deg, #0f1727 0%, #273247 78%, #d61f2c 100%);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
    }
    .logo-text > div { font-weight: 800; letter-spacing: -.02em; }
    .logo-text small { display: block; margin-top: 2px; color: var(--muted); }

    .nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-weight: 600; }
    .nav a:hover { color: var(--text); }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 16px;
      white-space: nowrap;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .header-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 0 18px;
      border-radius: 999px;
      font-size: 15px;
      font-weight: 800;
      letter-spacing: -.02em;
      color: #1b2a44;
      background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(234,238,244,.92) 100%);
      border: 1px solid rgba(31,36,48,.08);
      box-shadow: 0 10px 26px rgba(20,32,51,.10), inset 0 1px 0 rgba(255,255,255,.92);
      transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    }
    .header-link:hover {
      opacity: 1;
      transform: translateY(-1px);
      box-shadow: 0 14px 30px rgba(20,32,51,.14), inset 0 1px 0 rgba(255,255,255,.96);
    }
    .header-link--telegram {
      color: #fff;
      background: linear-gradient(135deg, #d61f2c 0%, #ba1724 100%);
      border-color: transparent;
      box-shadow: 0 14px 30px rgba(214,31,44,.24);
    }
    .header-link--telegram:hover {
      box-shadow: 0 18px 34px rgba(214,31,44,.26);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 0 18px;
      border-radius: 14px;
      font-weight: 700;
      border: 1px solid transparent;
      transition: .18s ease;
      white-space: nowrap;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn-primary {
      color: #fff;
      background: linear-gradient(135deg, #d61f2c 0%, #ba1724 100%);
      box-shadow: 0 14px 30px rgba(214,31,44,.22);
    }
    .btn-secondary {
      background: rgba(255,255,255,.62);
      border-color: var(--line);
      color: var(--text);
    }
    .btn-accent {
      background: linear-gradient(135deg, #d6591f 0%, #ba1724 100%);
    }

    .hero { padding: 0 0 30px; }
    .hero-frame { width: 100%; }
    .hero-shell {
      width: 100%;
      overflow: hidden;
      position: relative;
      background-image:
        linear-gradient(90deg, rgba(8,12,18,.44) 0%, rgba(8,12,18,.28) 34%, rgba(8,12,18,.18) 100%),
        linear-gradient(180deg, rgba(8,12,18,.08) 0%, rgba(8,12,18,.16) 100%),
        url("../images/site/hero-main.jpg");
      background-size: cover;
      background-position: center center;
      border-top: 1px solid rgba(255,255,255,.32);
      border-bottom: 1px solid rgba(255,255,255,.28);
      box-shadow: var(--shadow);
    }
    .hero-shell::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%),
        radial-gradient(circle at 20% 24%, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 34%),
        radial-gradient(circle at 82% 74%, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 30%);
      backdrop-filter: blur(2px);
      pointer-events: none;
    }
    .hero-inner {
      position: relative;
      z-index: 1;
      width: min(calc(100% - 40px), var(--max));
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
      gap: 34px;
      padding: 28px 0;
      align-items: stretch;
    }
    .hero-empty {
      min-height: 100%;
    }
    .hero-copy {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 560px;
      padding: 30px;
      border-radius: 30px;
      background: linear-gradient(180deg, rgba(248,250,253,.80) 0%, rgba(234,239,247,.60) 100%);
      border: 1px solid rgba(255,255,255,.58);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.60), 0 18px 40px rgba(9,14,24,.14);
      backdrop-filter: blur(16px);
    }

    .hero-copy.hero-copy-plain {
      min-height: 560px;
      padding: 22px 24px 22px 22px;
      border-radius: 30px;
      background: transparent;
      border: none;
      box-shadow: none;
      backdrop-filter: none;
      color: #fff;
      justify-content: flex-start;
      gap: 18px;
      transform: translateX(-18px);
    }
    .hero-copy.hero-copy-plain h1 {
      color: #fff;
      max-width: 11ch;
      text-shadow: 0 8px 24px rgba(0,0,0,.34);
    }
    .hero-copy.hero-copy-plain .lead {
      color: rgba(255,255,255,.90);
      max-width: 58ch;
      text-shadow: 0 4px 18px rgba(0,0,0,.24);
    }
    .hero-copy.hero-copy-plain .hero-stats span {
      background: rgba(255,255,255,.12);
      border-color: rgba(255,255,255,.18);
      color: #fff;
      box-shadow: none;
      backdrop-filter: blur(10px);
    }
    .hero-copy.hero-copy-plain .btn-secondary {
      background: rgba(255,255,255,.14);
      color: #fff;
      border-color: rgba(255,255,255,.22);
      box-shadow: none;
    }
    .hero-copy.hero-copy-plain .btn-secondary:hover {
      background: rgba(255,255,255,.20);
      border-color: rgba(255,255,255,.32);
    }
    @media (max-width: 980px) {
      .hero-copy.hero-copy-plain {
        min-height: auto;
        padding: 16px 18px;
      }
      .hero-bottom {
        margin-top: 20px;
        align-items: center;
      }
      .hero-stats {
        display: grid;
        grid-template-columns: 1fr;
        width: min(100%, 560px);
      }
      .hero-stats span {
        width: 100%;
        justify-content: flex-start;
      }
    }
    @media (max-width: 1180px) {
      .hero-stats {
        flex-wrap: wrap;
      }
    }

    @media (max-width: 1080px) {
      .topbar-inner {
        min-height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
      }
      .nav {
        order: 3;
        width: 100%;
        justify-content: center;
      }
      .header-actions {
        margin-left: auto;
      }
    }
    @media (max-width: 640px) {
      .header-actions {
        width: 100%;
        justify-content: flex-start;
      }
      .header-link {
        min-height: 44px;
      }
    }
    .eyebrow-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: max-content;
      padding: 10px 14px;
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(63,69,82,.62) 0%, rgba(41,47,60,.70) 100%);
      border: 1px solid rgba(255,255,255,.18);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 12px 28px rgba(15,23,42,.18);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      font-size: 13px;
      line-height: 1;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #f3f5f8;
      font-weight: 800;
      margin-bottom: 16px;
    }
    .hero-copy h1 {
      margin: 0 0 18px;
      font-size: clamp(44px, 6vw, 78px);
      line-height: .94;
      letter-spacing: -.05em;
      max-width: 10.5ch;
    }
    .hero-copy .lead {
      margin: 0;
      max-width: 63ch;
      color: var(--muted);
      font-size: 18px;
      line-height: 1.62;
    }

    .hero-bottom {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      margin-top: 26px;
      max-width: 100%;
      width: 100%;
    }

    .hero-stats {
      display: flex;
      flex-wrap: wrap;
      align-items: stretch;
      gap: 10px;
      margin: 0;
      width: auto;
      justify-content: center;
    }
    .hero-stats span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 14px;
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(63,69,82,.62) 0%, rgba(41,47,60,.70) 100%);
      border: 1px solid rgba(255,255,255,.18);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 28px rgba(15,23,42,.18);
      backdrop-filter: blur(14px);
      font-size: 14px;
      font-weight: 700;
    }
    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 0;
    }
    .hero-actions .btn {
      min-height: 52px;
      padding: 0 22px;
      border-radius: 16px;
      font-size: 16px;
      box-shadow: 0 18px 34px rgba(214,31,44,.26);
    }

    .hero-models {
      width: 100%;
      font-family: Inter, Arial, Helvetica, sans-serif;
      max-width: 720px;
      justify-self: center;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: clamp(16px, 3vw, 24px);
      border-radius: clamp(16px, 2vw, 28px);
      background: linear-gradient(180deg, rgba(63,69,82,.62) 0%, rgba(41,47,60,.70) 100%);
      border: 1px solid rgba(255,255,255,.18);
      backdrop-filter: blur(14px);
      box-shadow: 0 22px 44px rgba(15,23,42,.24);
      color: #fff;
      height: fit-content;
      min-height: auto;
      margin: auto;
    }

    .hero-models-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: clamp(8px, 2vw, 16px);
      margin-bottom: clamp(8px, 1.5vw, 14px);
    }

    .hero-models-head h2 {
      margin: 0;
      font-family: Inter, Arial, Helvetica, sans-serif;
      font-size: clamp(16px, 2.5vw, 20px);
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: 0;
    }

    .hero-models > p {
      margin: 0 0 clamp(12px, 2vw, 16px);
      color: rgba(255,255,255,.74);
      font-family: Inter, Arial, Helvetica, sans-serif;
      font-size: clamp(13px, 2vw, 15px);
      font-weight: 400;
      line-height: 1.5;
    }

    .hero-models-columns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(8px, 2vw, 16px);
      margin-top: clamp(4px, 1vw, 8px);
    }

    .hero-models-group h3 {
      margin: clamp(-2px, -0.5vw, -4px) 0 clamp(6px, 1.5vw, 8px);
      padding-left: 4px;
      font-family: Inter, Arial, Helvetica, sans-serif;
      font-size: clamp(10px, 2vw, 12px);
      font-weight: 700;
      line-height: 1;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: rgba(255,255,255,.84);
    }

    .hero-models-list {
      display: grid;
      gap: clamp(6px, 1.5vw, 10px);
    }

    .hero-models-list a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 0;
      padding: clamp(8px, 2vw, 12px) clamp(10px, 2vw, 14px);
      border-radius: clamp(8px, 1.5vw, 14px);
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.08);
      color: #f4f7fb;
      font-family: Inter, Arial, Helvetica, sans-serif;
      font-size: clamp(12px, 2vw, 14px);
      font-weight: 600;
      line-height: 1.35;
      transition: .18s ease;
    }

    .hero-models-list a::after {
      content: "→";
      color: rgba(255,255,255,.8);
      margin-left: clamp(8px, 2vw, 14px);
      flex: 0 0 auto;
    }

    .hero-models-list a:hover {
      transform: translateY(-1px);
      background: rgba(255,255,255,.14);
      border-color: rgba(255,255,255,.22);
    }

    .hero-models-link--disabled {
      color: rgba(255,255,255,.4);
      cursor: not-allowed;
      opacity: 0.6;
    }

    .hero-models-link--disabled::after {
      color: rgba(255,255,255,.3);
    }

    .hero-models-link--disabled:hover {
      transform: none;
      background: rgba(255,255,255,.08);
      border-color: rgba(255,255,255,.08);
    }

    .hero-models-note {
      margin-top: clamp(12px, 2vw, 16px);
      font-family: Inter, Arial, Helvetica, sans-serif;
      font-size: clamp(11px, 2vw, 13px);
      font-weight: 400;
      line-height: 1.4;
      color: rgba(255,255,255,.68);
    }
    .hero-models-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 14px;
    }
    .hero-models-head h2 {
      margin: 0;
      font-family: Inter, Arial, Helvetica, sans-serif;
      font-size: 22px;
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: 0;
    }
    .hero-models-badge {
      width: 48px;
      height: 48px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.18);
      font-family: Inter, Arial, Helvetica, sans-serif;
      font-size: 14px;
      font-weight: 700;
      flex: 0 0 auto;
    }
    .hero-models > p {
      margin: 0 0 16px;
      color: rgba(255,255,255,.74);
      font-family: Inter, Arial, Helvetica, sans-serif;
      font-size: 13px;
      font-weight: 400;
      line-height: 1.5;
    }
    .hero-models-columns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 4px;
    }
    .hero-models-group h3 {
      margin: -2px 0 8px;
      padding-left: 4px;
      font-family: Inter, Arial, Helvetica, sans-serif;
      font-size: 16px;
      font-weight: 700;
      line-height: 1;
      letter-spacing: .045em;
      text-transform: uppercase;
      color: rgba(255,255,255,.84);
    }
    .hero-models-list {
      display: grid;
      gap: 10px;
    }
    .hero-models-list a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 0;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.08);
      color: #fff;
      font-family: Inter, Arial, Helvetica, sans-serif;
      font-size: 14px;
      font-weight: 600;
      line-height: 1.35;
      transition: .18s ease;
    }
    .hero-models-list a::after {
      content: "→";
      color: rgba(255,255,255,.8);
      margin-left: 14px;
      flex: 0 0 auto;
    }
    .hero-models-list a:hover {
      transform: translateY(-1px);
      background: rgba(255,255,255,.14);
      border-color: rgba(255,255,255,.22);
    }
    .hero-models-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 0;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.08);
      color: #fff;
      font-family: Inter, Arial, Helvetica, sans-serif;
      font-size: 14px;
      font-weight: 600;
      line-height: 1.35;
      transition: .18s ease;
    }
    .hero-models-link::after {
      content: "→";
      color: rgba(255,255,255,.8);
      margin-left: 14px;
      flex: 0 0 auto;
    }
    .hero-models-link--disabled {
      color: rgba(255,255,255,.4);
      cursor: not-allowed;
      opacity: 0.6;
    }
    .hero-models-link--disabled::after {
      color: rgba(255,255,255,.3);
    }
    .hero-models-link--disabled:hover {
      transform: none;
      background: rgba(255,255,255,.08);
      border-color: rgba(255,255,255,.08);
    }
    .hero-models-note {
      margin-top: 16px;
      font-family: Inter, Arial, Helvetica, sans-serif;
      font-size: 13px;
      font-weight: 400;
      line-height: 1.5;
      color: rgba(255,255,255,.68);
    }

    .hero-models::before {
      content: "";
      display: block;
      width: 84px;
      height: 4px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(214,31,44,.96) 0%, rgba(255,255,255,.28) 100%);
      margin-bottom: 14px;
      box-shadow: 0 8px 18px rgba(214,31,44,.22);
    }

    @media (max-width: 980px) {
      .hero-copy.hero-copy-plain,
      .hero-models {
        transform: none;
      }
    }

    .section { padding: 26px 0; }
    .section-heading {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 22px;
      margin-bottom: 22px;
    }
    .section-heading .eyebrow {
      margin-bottom: 8px;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .09em;
      color: #8c1320;
      font-weight: 800;
    }
    .section-heading h2 {
      margin: 0;
      font-size: clamp(30px, 4vw, 52px);
      line-height: .98;
      letter-spacing: -.04em;
      max-width: 12ch;
    }
    .section-heading p {
      margin: 0;
      max-width: 58ch;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.6;
    }

    .grid-3, .grid-4, .reviews-grid, .seo-grid, .contacts-grid { display: grid; gap: 18px; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .reviews-grid { grid-template-columns: repeat(3, 1fr); }
    .seo-grid { grid-template-columns: 1.04fr .96fr; }
    .contacts-grid { grid-template-columns: 1.08fr .92fr; align-items: stretch; }

    .card {
      border-radius: var(--radius);
      background: var(--card);
      border: 1px solid rgba(255,255,255,.72);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
    }
    .soft-card {
      border-radius: 24px;
      background: linear-gradient(180deg, rgba(255,255,255,.84) 0%, rgba(255,255,255,.66) 100%);
      border: 1px solid rgba(255,255,255,.82);
      box-shadow: 0 18px 40px rgba(36,46,72,.10);
    }

    .service-card { padding: 24px; }
    .service-topline {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      background: var(--accent-soft);
      border: 1px solid rgba(214,31,44,.12);
      color: #8c1320;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .06em;
      text-transform: uppercase;
    }
    .service-card h3 { margin: 16px 0 10px; font-size: 25px; letter-spacing: -.03em; }
    .service-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }
    .service-list { display: grid; gap: 10px; }
    .service-list span {
      display: flex;
      align-items: center;
      min-height: 48px;
      padding: 0 14px;
      border-radius: 14px;
      background: rgba(255,255,255,.56);
      border: 1px solid var(--line);
      font-size: 14px;
      font-weight: 700;
    }

    .model-card { padding: 22px; }
    .model-card h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
    .model-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.55; }
    .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
    .chip {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 700;
      background: rgba(214,31,44,.06);
      border: 1px solid rgba(214,31,44,.10);
      color: #8c1320;
    }

    .seo-card { padding: 26px; }
    .seo-card h3 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.02em; }
    .seo-richtext { display: grid; gap: 14px; }
    .seo-richtext p, .seo-card > p { margin: 0; color: var(--muted); line-height: 1.65; }
    .seo-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
    .seo-tags span {
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(255,255,255,.58);
      border: 1px solid var(--line);
      font-size: 14px;
      font-weight: 700;
    }

    .review { padding: 24px; }
    .review-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
    .review-name { font-weight: 800; }
    .review-model { margin-top: 4px; font-size: 14px; color: var(--muted); }
    .stars { color: var(--accent); letter-spacing: .14em; }
    .review p { margin: 0; color: var(--muted); line-height: 1.65; }

    .cta-box { padding: 30px; }
    .cta-box-gallery { padding: 30px; }
    .cta-box h2 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 56px); line-height: .98; letter-spacing: -.04em; }
    .cta-box p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 17px; max-width: 58ch; }
    .contact-card { padding: 24px; }
    .contact-list { display: grid; gap: 12px; margin-top: 16px; }
    .contact-item {
      padding: 14px 16px;
      border-radius: 16px;
      background: rgba(255,255,255,.56);
      border: 1px solid var(--line);
    }
    .contact-item span { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
    .legal-box {
      margin-top: 16px;
      padding: 14px 16px;
      border-radius: 16px;
      background: rgba(214,31,44,.06);
      border: 1px solid rgba(214,31,44,.12);
      font-weight: 700;
    }

    .footer { padding: 18px 0 40px; color: var(--muted); }
    .footer-inner {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding-top: 18px;
      border-top: 1px solid rgba(103,118,144,.14);
      font-size: 14px;
    }

    @media (max-width: 1180px) {
      .hero-inner,
      .seo-grid,
      .contacts-grid,
      .grid-3,
      .grid-4,
      .reviews-grid {
        grid-template-columns: 1fr 1fr;
      }
      .hero-inner,
      .seo-grid,
      .contacts-grid {
        grid-template-columns: 1fr;
      }
      .hero-copy,
      .hero-models { min-height: auto; }
    }

    @media (max-width: 860px) {
      .nav { display: none; }
      .header-actions .btn-secondary { display: none; }
      .grid-3,
      .grid-4,
      .reviews-grid,
      .hero-models-columns { grid-template-columns: 1fr; }
      .section-heading { flex-direction: column; align-items: flex-start; }
      .hero-inner { width: min(calc(100% - 24px), var(--max)); padding: 16px 0; gap: 16px; }
      .hero-shell { background-position: 58% center; }
      .hero-copy,
      .hero-models,
      .service-card,
      .model-card,
      .seo-card,
      .review,
      .cta-box,
      .contact-card { padding: 20px; }
      .hero-copy h1 { max-width: 12ch; font-size: clamp(34px, 11vw, 50px); }
      .hero-copy .lead { font-size: 16px; }
      .topbar-inner { min-height: 68px; }
      .footer-inner { flex-direction: column; align-items: flex-start; }
    }

    .tech-seo-section {
      padding: 0 0 34px;
    }
    .tech-seo-card {
      position: relative;
      overflow: hidden;
      border-radius: 30px;
      padding: 28px;
      min-height: 100%;
      background:
        linear-gradient(180deg, rgba(247,249,252,.86) 0%, rgba(240,244,250,.82) 100%);
      border: 1px solid rgba(152,167,193,.26);
      box-shadow: 0 18px 36px rgba(36,46,72,.11);
      color: var(--text);
    }
    .tech-seo-card::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 5px;
      background: linear-gradient(180deg, #d61f2c 0%, rgba(214,31,44,.18) 100%);
    }
    .tech-seo-badge {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 0 12px;
      border-radius: 999px;
      background: rgba(31,36,48,.04);
      border: 1px solid rgba(103,118,144,.14);
      color: #44506a;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      margin-bottom: 16px;
    }
    .tech-seo-card h3 {
      margin: 0 0 12px;
      font-size: clamp(24px, 2.45vw, 32px);
      line-height: 1.02;
      letter-spacing: -.04em;
      white-space: nowrap;
    }
    .tech-seo-richtext {
      display: grid;
      gap: 14px;
      max-width: none;
    }
    .tech-seo-richtext p {
      margin: 0;
      line-height: 1.7;
      font-size: 16px;
      color: #495368;
      letter-spacing: 0;
    }
    .tech-seo-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
    }
    .tech-seo-tags span {
      display: inline-flex;
      align-items: center;
      min-height: 36px;
      padding: 0 12px;
      border-radius: 999px;
      background: rgba(255,255,255,.76);
      border: 1px solid rgba(103,118,144,.18);
      color: var(--text);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0;
    }

    @media (max-width: 980px) {
      .tech-seo-card h3 {
        white-space: normal;
      }
    }



    .footer-premium-final {
      padding: 18px 0 0;
      color: #f4f7fb;
    }
    .footer-premium-shell {
      position: relative;
      overflow: hidden;
      width: 100%;
      padding: 42px 0 28px;
      color: #f4f7fb;
      background:
        radial-gradient(circle at top right, rgba(214,31,44,.18) 0%, rgba(214,31,44,0) 26%),
        linear-gradient(135deg, #0f1726 0%, #142033 42%, #1a2435 100%);
      border-top: 1px solid rgba(255,255,255,.08);
      box-shadow: 0 -12px 32px rgba(9,14,24,.10);
    }
    .footer-premium-shell::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 1px;
      background: rgba(255,255,255,.14);
      pointer-events: none;
    }
    .footer-premium-shell > * {
      position: relative;
      z-index: 1;
    }
    .footer-premium-shell a {
      color: inherit;
      text-decoration: none;
    }
    .footer-premium-inner {
      width: min(calc(100% - 40px), 1120px);
      margin: 0 auto;
    }
    .premium-statement-wrap {
      max-width: 920px;
      margin: 0 auto;
      text-align: center;
    }
    .premium-statement-title {
      margin: 0 auto;
      max-width: none;
      font-size: clamp(26px, 3vw, 42px);
      line-height: 1.08;
      letter-spacing: -.04em;
      font-weight: 800;
      white-space: nowrap;
    }
    .premium-statement-meta {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      margin-top: 14px;
      font-size: 13px;
      line-height: 1.5;
      font-weight: 700;
      color: rgba(244,247,251,.74);
    }
    .premium-statement-text {
      margin: 18px auto 0;
      max-width: 760px;
      font-size: 16px;
      line-height: 1.75;
      color: rgba(223,231,242,.84);
    }
    .premium-accent-line-final {
      width: 196px;
      height: 3px;
      margin: 16px auto 0;
      border-radius: 999px;
      background: linear-gradient(90deg, #d61f2c 0%, rgba(214,31,44,0) 100%);
    }
    .premium-footer-bottom-row {
      display: grid;
      grid-template-columns: max-content max-content;
      align-items: center;
      justify-content: center;
      gap: 28px 72px;
      width: min(940px, 100%);
      margin: 28px auto 0;
    }
    .premium-footer-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      justify-self: end;
      align-items: center;
      gap: 12px;
      margin-top: 0;
    }
    .premium-footer-btn,
    .premium-footer-btn-ghost {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 0 20px;
      border-radius: 999px;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 16px;
      font-style: normal;
      font-weight: 800;
      letter-spacing: -.02em;
      transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    }
    .premium-footer-btn:hover,
    .premium-footer-btn-ghost:hover {
      transform: translateY(-1px);
    }
    .premium-footer-btn {
      color: #fff;
      background: linear-gradient(135deg, #d61f2c 0%, #ba1724 100%);
      box-shadow: 0 14px 30px rgba(214,31,44,.24);
    }
    .premium-footer-btn-ghost {
      color: #f4f7fb;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.14);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    }
    .premium-footer-contacts {
      display: grid;
      gap: 14px;
      width: min(540px, 100%);
      justify-self: start;
      margin-top: 0;
      margin-left: 0;
      padding-left: 0;
      text-align: left;
    }
    .premium-contact-row-right {
      display: grid;
      grid-template-columns: 112px minmax(0, 1fr);
      align-items: baseline;
      gap: 10px;
    }
    .premium-contact-row-right .premium-contact-label {
      font-size: 12px;
      line-height: 1.2;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(244,247,251,.58);
      white-space: nowrap;
      padding-left: 0;
      text-align: right;
    }
    .premium-contact-row-right .premium-contact-value {
      position: relative;
      padding-left: 20px;
      margin-left: 0;
      border-left: 0;
    }
    .premium-contact-row-right .premium-contact-value::before {
      content: "";
      position: absolute;
      left: 0;
      top: 2px;
      width: 2px;
      height: calc(100% - 4px);
      border-radius: 999px;
      background: linear-gradient(180deg, #d61f2c 0%, rgba(214,31,44,0) 100%);
    }
    .premium-contact-row-right .premium-contact-value,
    .premium-contact-row-right .premium-contact-value a,
    .premium-contact-row-right .premium-contact-value div {
      display: block;
      font-size: 18px;
      line-height: 1.45;
      color: #f4f7fb;
      font-weight: 700;
      text-decoration: none;
    }
    .footer-divider-premium-final {
      height: 1px;
      margin: 28px 0 0;
      background: rgba(255,255,255,.10);
    }
    .premium-legal-final {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px 18px;
      padding-top: 18px;
      font-size: 13px;
      color: rgba(244,247,251,.72);
    }
    @media (max-width: 900px) {
      .footer-premium-shell {
        padding: 30px 0 24px;
      }
      .footer-premium-inner {
        width: min(calc(100% - 28px), 1120px);
      }
      .premium-footer-bottom-row {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 22px;
      }
      .premium-footer-actions {
        justify-content: center;
        justify-self: center;
      }
      .premium-footer-contacts {
        width: 100%;
        justify-self: stretch;
        margin-left: 0;
        padding-left: 0;
      }
      .premium-contact-row-right {
        grid-template-columns: 1fr;
        gap: 6px;
      }
      .premium-contact-row-right .premium-contact-label {
        padding-left: 0;
        text-align: left;
      }
      .premium-contact-row-right .premium-contact-value {
        padding-left: 16px;
        margin-left: 0;
        border-left: 0;
      }
    }

    @media (max-width: 640px) {
      .premium-statement-title {
        max-width: none;
        white-space: normal;
      }
      .premium-footer-actions {
        flex-direction: column;
      }
      .premium-footer-btn,
      .premium-footer-btn-ghost {
        width: 100%;
      }
      .premium-legal-final {
        justify-content: flex-start;
      }
    }

  

    .models-compact-section {
      padding: 8px 0 34px;
    }
    .models-compact-shell {
      position: relative;
      overflow: hidden;
      padding: 28px;
      border-radius: 34px;
      border: 1px solid rgba(98,115,142,.14);
      background: rgba(255,255,255,.72);
      box-shadow: 0 22px 54px rgba(28,40,64,.08);
      backdrop-filter: blur(16px);
    }
    .models-compact-shell::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 5px;
      background: linear-gradient(180deg, rgba(217,31,47,1) 0%, rgba(217,31,47,.55) 54%, rgba(217,31,47,0) 100%);
    }
    .models-compact-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 24px;
    }
    .models-compact-badge {
      display: inline-flex;
      align-items: center;
      min-height: 38px;
      padding: 0 14px;
      border-radius: 999px;
      background: rgba(255,255,255,.84);
      border: 1px solid rgba(98,115,142,.14);
      color: #55637d;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .models-compact-title {
      margin: 14px 0 0;
      font-size: clamp(28px, 3.2vw, 40px);
      line-height: 1.04;
      letter-spacing: -.04em;
      color: #182133;
    }
    .models-compact-note {
      max-width: 420px;
      color: #65718a;
      font-size: 15px;
      line-height: 1.7;
      text-align: right;
    }
    .models-compact-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: 18px;
    }
    .models-compact-card {
      position: relative;
      display: grid;
      grid-template-columns: 296px minmax(0, 1fr);
      min-height: 220px;
      overflow: hidden;
      border-radius: 26px;
      background: rgba(255,255,255,.90);
      border: 1px solid rgba(98,115,142,.12);
      box-shadow: 0 16px 40px rgba(28,38,60,.08);
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .models-compact-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 20px 48px rgba(28,38,60,.10);
    }
    .models-compact-card::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 4px;
      border-radius: 26px 0 0 26px;
      background: linear-gradient(180deg, rgba(217,31,47,1) 0%, rgba(217,31,47,.52) 56%, rgba(217,31,47,0) 100%);
      z-index: 2;
    }
    .models-compact-media {
      min-height: 220px;
      background: #dfe6ef 64% center / cover no-repeat;
    }
    .models-compact-body {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 14px;
      padding: 18px 18px 18px 22px;
      min-width: 0;
    }
    .models-compact-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .models-compact-brand {
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 0 12px;
      border-radius: 999px;
      background: rgba(217,31,47,.08);
      color: #c51d2b;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .models-compact-more {
      font-size: 13px;
      font-weight: 700;
      color: #52627e;
      white-space: nowrap;
    }
    .models-compact-body h3 {
      margin: 0;
      font-size: 24px;
      line-height: 1.12;
      letter-spacing: -.03em;
      color: #182133;
      max-width: 12ch;
    }
    .models-compact-main {
      display: flex;
      align-items: center;
      min-height: 0;
      padding-right: 8px;
    }
    .models-compact-footline {
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(98,115,142,.12);
    }
    .models-compact-caption {
      font-size: 14px;
      font-weight: 700;
      color: #52627e;
      letter-spacing: -.01em;
    }
    .models-compact-arrow {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 52px;
      height: 36px;
      padding: 0 14px;
      border-radius: 999px;
      background: linear-gradient(135deg, #d61f2c 0%, #ba1724 100%);
      border: 1px solid rgba(255,255,255,.10);
      color: #fff;
      font-size: 17px;
      font-weight: 800;
      line-height: 1;
      letter-spacing: 0;
      box-shadow: 0 10px 24px rgba(214,31,44,.18);
      flex: 0 0 auto;
      transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    }
    .models-compact-card:hover .models-compact-arrow {
      transform: translateX(2px);
      box-shadow: 0 14px 28px rgba(214,31,44,.22);
      filter: saturate(1.03);
    }
    @media (max-width: 1180px) {
      .models-compact-card { grid-template-columns: 270px minmax(0,1fr); }
    }
    @media (max-width: 980px) {
      .models-compact-head {
        align-items: start;
        flex-direction: column;
      }
      .models-compact-note { text-align: left; max-width: none; }
      .models-compact-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 720px) {
      .models-compact-section { padding: 0 0 24px; }
      .models-compact-shell { padding: 18px; border-radius: 26px; }
      .models-compact-title { font-size: clamp(24px, 8vw, 34px); }
      .models-compact-card {
        grid-template-columns: 1fr;
        min-height: 0;
      }
      .models-compact-card::before {
        width: 100%;
        height: 4px;
        inset: 0 0 auto;
        border-radius: 26px 26px 0 0;
        background: linear-gradient(90deg, rgba(217,31,47,1) 0%, rgba(217,31,47,.52) 56%, rgba(217,31,47,0) 100%);
      }
      .models-compact-media {
        min-height: 220px;
        background-position: center center;
      }
      .models-compact-body {
        padding: 16px 16px 18px;
      }
      .models-compact-body h3 { max-width: none; }
    }

    .models-compact-load-more {
      display: flex;
      justify-content: center;
      margin-top: 32px;
    }

    .models-compact-load-more .btn-secondary {
      min-height: 48px;
      padding: 0 32px;
      border-radius: 16px;
      font-size: 15px;
      font-weight: 600;
      border: 2px solid var(--line);
      background: rgba(255,255,255,.72);
      backdrop-filter: blur(10px);
      transition: all .18s ease;
    }

    .models-compact-load-more .btn-secondary:hover:not(:disabled) {
      background: rgba(255,255,255,.88);
      border-color: var(--accent);
      transform: translateY(-1px);
      box-shadow: 0 8px 20px rgba(28,38,60,.08);
    }

    .models-compact-load-more .btn-secondary:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    @media (max-width: 720px) {
      .models-compact-load-more {
        margin-top: 24px;
      }
      
      .models-compact-load-more .btn-secondary {
        width: 100%;
        max-width: 280px;
      }
    }

  

    .premium-columns-section{
      padding: 28px 0 28px;
    }
    .premium-columns-shell{
      position: relative;
      overflow: hidden;
      width: min(calc(100% - 40px), var(--max));
      margin: 0 auto;
      display: grid;
      gap: 24px;
      padding: 30px;
      border-radius: 32px;
      color: #f4f7fb;
      background:
        radial-gradient(circle at top right, rgba(214,31,44,.18) 0%, rgba(214,31,44,0) 26%),
        linear-gradient(135deg, #0f1726 0%, #142033 42%, #1a2435 100%);
      border: 1px solid rgba(255,255,255,.08);
      box-shadow: 0 20px 48px rgba(15,23,42,.22);
    }
    .premium-columns-shell::before{
      content:"";
      position:absolute;
      inset:0 0 auto 0;
      height:1px;
      background: rgba(255,255,255,.14);
      pointer-events:none;
    }
    .premium-columns-shell > *{
      position: relative;
      z-index: 1;
    }
    .premium-columns-header{
      display:grid;
      gap:10px;
      max-width: 860px;
    }
    .premium-columns-kicker{
      display:inline-flex;
      align-items:center;
      width:fit-content;
      min-height:34px;
      padding:0 14px;
      border-radius:999px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.14);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
      color: rgba(244,247,251,.88);
      font-size:12px;
      font-weight:800;
      letter-spacing:.16em;
      text-transform: uppercase;
    }
    .premium-columns-title{
      margin:0;
      font-size: clamp(28px, 3vw, 42px);
      line-height:1.02;
      letter-spacing:-.04em;
      color:#f4f7fb;
    }
    .premium-columns-lead{
      margin:0;
      max-width:760px;
      color: rgba(223,231,242,.84);
      font-size: 16px;
      line-height:1.72;
    }
    .premium-columns-grid{
      display:grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: 18px;
    }
    .premium-column-card{
      position:relative;
      overflow:hidden;
      padding: 24px 24px 24px 26px;
      border-radius: 28px;
      background: linear-gradient(180deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,.02) 100%);
      border: 1px solid rgba(255,255,255,.08);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    .premium-column-card::before{
      content:"";
      position:absolute;
      inset:0 0 auto 0;
      height:1px;
      background: rgba(255,255,255,.14);
      pointer-events:none;
    }
    .premium-column-card::after{
      content:"";
      position:absolute;
      inset:24px auto 24px 0;
      width:5px;
      border-radius:0 999px 999px 0;
      background: linear-gradient(180deg, #d61f2c 0%, rgba(214,31,44,.16) 100%);
      box-shadow: 0 0 26px rgba(214,31,44,.24);
      pointer-events:none;
    }
    .premium-column-bar{
      width: 112px;
      height: 3px;
      margin: 0 0 18px 12px;
      border-radius:999px;
      background: linear-gradient(90deg, #d61f2c 0%, rgba(214,31,44,0) 100%);
    }
    .premium-column-head{
      display:grid;
      gap: 8px;
      margin: 0 0 18px;
      padding-left: 12px;
    }
    .premium-column-name{
      margin:0;
      font-size: clamp(24px, 2vw, 30px);
      line-height:1;
      letter-spacing:-.04em;
      font-weight:800;
      color:#f4f7fb;
    }
    .premium-column-sub{
      color: rgba(244,247,251,.62);
      font-size: 14px;
      line-height:1.5;
      font-weight:700;
    }
    .premium-column-list{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px 18px;
      padding-left: 12px;
    }
    .premium-column-link{
      display:block;
      padding: 0 0 10px;
      border-bottom:1px solid rgba(255,255,255,.08);
      color:#f4f7fb;
      font-size:15px;
      font-weight:700;
      letter-spacing:-.01em;
      transition: color .18s ease, border-color .18s ease, transform .18s ease, text-shadow .18s ease;
    }
    .premium-column-link:hover{
      color:#fff;
      border-color: rgba(214,31,44,.58);
      transform: translateX(2px);
      text-shadow: 0 0 18px rgba(214,31,44,.18);
    }
    .premium-column-link--disabled{
      color: rgba(244,247,251,.4);
      cursor: not-allowed;
      opacity: 0.6;
    }
    .premium-column-link--disabled:hover{
      color: rgba(244,247,251,.4);
      border-color: rgba(255,255,255,.08);
      transform: none;
      text-shadow: none;
    }
    .premium-column-mark{
      position:absolute;
      right:-10px;
      bottom:6px;
      z-index:0;
      pointer-events:none;
      font-size: clamp(82px, 12vw, 160px);
      line-height:.8;
      font-weight:900;
      letter-spacing:-.08em;
      text-transform:uppercase;
      color: rgba(214,31,44,.075);
      text-shadow: 0 0 28px rgba(214,31,44,.04);
      transform: rotate(-8deg);
      user-select:none;
      white-space:nowrap;
    }
    .premium-column-card > *:not(.premium-column-mark){
      position:relative;
      z-index:1;
    }
    @media (max-width: 980px){
      .premium-columns-grid{
        grid-template-columns: 1fr;
      }
    }
    @media (max-width: 640px){
      .premium-columns-section{
        padding:18px 0 22px;
      }
      .premium-columns-shell{
        width:min(calc(100% - 24px), var(--max));
        padding: 22px;
        border-radius: 24px;
      }
      .premium-column-card{
        padding: 20px 18px 20px 22px;
        border-radius: 22px;
      }
      .premium-column-list{
        grid-template-columns: 1fr;
        gap: 10px;
      }
      .premium-column-head,
      .premium-column-bar,
      .premium-column-list{
        padding-left: 10px;
        margin-left: 0;
      }
      .premium-column-mark{
        right:-2px;
        bottom:10px;
        font-size: clamp(72px, 24vw, 128px);
      }
    }


/* ===== Added project structure styles ===== */
.nav a.is-active,
.nav a:hover { color: var(--text); }

.models-compact-media {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.models-compact-media--toyota-rav4 { background-image: url("../images/models/toyota-rav4/hero.jpg"); }
.models-compact-media--toyota-highlander { background-image: url("../images/models/toyota-highlander/hero.jpg"); }
.models-compact-media--toyota-land-cruiser-300 { background-image: url("../images/models/toyota-land-cruiser-300/hero.jpg"); }
.models-compact-media--toyota-land-cruiser-150 { background-image: url("../images/models/toyota-land-cruiser-150/hero.jpg"); }
.models-compact-media--toyota-sequoia { background-image: url("../images/models/toyota-sequoia/hero.jpg"); }
.models-compact-media--toyota-crown { background-image: url("../images/models/toyota-crown/hero.jpg"); }

.page-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 40px auto 72px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.78) 100%);
  border: 1px solid rgba(103,118,144,.14);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-hero::before {
 content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 5px;
      background: linear-gradient(180deg, rgba(217,31,47,1) 0%, rgba(217,31,47,.55) 54%, rgba(217,31,47,0) 100%);
}

.page-copy,
.page-visual { position: relative; z-index: 1; margin: auto; }

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(214,31,44,.18);
  background: rgba(214,31,44,.06);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.page-title {
  margin: 18px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: .96;
  letter-spacing: -.04em;
}

.page-lead {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(31,36,48,.06);
  border: 1px solid rgba(103,118,144,.14);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-figure {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #0f1727;
  box-shadow: 0 24px 50px rgba(15,23,39,.22);
  /* min-height: 100%; */
}

.page-figure img,
.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.detail-card,
.gallery-card,
.cta-box {
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(103,118,144,.14);
  box-shadow: 0 18px 36px rgba(32,44,74,.10);
}

.gallery-card-media::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 4px;
      border-radius: 26px 0 0 26px;
      background: linear-gradient(180deg, rgba(217,31,47,1) 0%, rgba(217,31,47,.52) 56%, rgba(217,31,47,0) 100%);
      z-index: 2;
    }

.cta-box-gallery {
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(103,118,144,.14);
  box-shadow: 0 18px 36px rgba(32,44,74,.10);
}

.detail-card {
  padding: 22px;
}

.detail-card h2,
.section-title,
.cta-box h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.detail-card p,
.gallery-caption,
.cta-box p,
.page-section-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-section {
  margin-top: 26px;
}

.page-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card figure { margin: 0; }
.gallery-card-media {
  aspect-ratio: 4 / 3;
  background: #101725;
  position: relative;
  overflow: hidden;
}

.gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-link:hover {
  transform: scale(1.05);
}

.gallery-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Модальное окно для изображений */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  /* color: #fff; */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Стили для placeholder если нет hero изображения */
.page-figure-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a3f5f 0%, #1e3a8f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 12px;
  min-height: 200px;
}

.placeholder-text {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.placeholder-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.gallery-card-body {
  padding: 18px;
}

.cta-box {
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-box-gallery {
  padding: 26px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.page-mini-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.footer .premium-legal-final [data-current-year]::before { content: "© "; }

@media (max-width: 1080px) {
  .page-hero { grid-template-columns: 1fr; }
  .detail-grid,
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .page-shell { width: min(calc(100% - 24px), var(--max)); margin: 20px auto 54px; }
  .page-hero { padding: 18px; border-radius: 24px; }
  .page-title { font-size: clamp(30px, 10vw, 42px); }
  .detail-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .cta-box,
  .page-section-head { align-items: flex-start; flex-direction: column; }
}
