
    @font-face {
      font-family: "Vazirmatn";
      src: url("fonts/Vazirmatn-Regular.woff2?v=9943fb1e2601fbfe") format("woff2");
      font-weight: 400;
      font-display: swap;
    }
    @font-face {
      font-family: "Vazirmatn";
      src: url("fonts/Vazirmatn-Medium.woff2?v=9943fb1e2601fbfe") format("woff2");
      font-weight: 500;
      font-display: swap;
    }
    @font-face {
      font-family: "Vazirmatn";
      src: url("fonts/Vazirmatn-SemiBold.woff2?v=9943fb1e2601fbfe") format("woff2");
      font-weight: 600;
      font-display: swap;
    }
    @font-face {
      font-family: "Vazirmatn";
      src: url("fonts/Vazirmatn-Bold.woff2?v=9943fb1e2601fbfe") format("woff2");
      font-weight: 700;
      font-display: swap;
    }
    :root {
      --gold: #D2AE6D;
      --gold-deep: #9A7138;
      --gold-2: #E8CE99;
      --black: #0D0C0A;
      --ink: #1B1712;
      --cream: #F5F0E6;
      --paper: #FFFDF7;
      --muted: #7A6E60;
      --line: #E4D8C5;
      --wood: #3C291D;
      --sage: #667064;
      --shadow: 0 18px 50px rgba(12, 9, 5, .2);
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      min-height: 100vh;
      font-family: "Vazirmatn", Tahoma, sans-serif;
      background:
        radial-gradient(circle at 15% 10%, rgba(210,174,109,.16), transparent 28rem),
        linear-gradient(145deg, #2B241C, #17130F 72%);
      color: var(--ink);
    }
    button, input, textarea, select { font-family: inherit; }
    .page { max-width: 500px; margin: 0 auto; padding: 1rem 1rem 2.5rem; }
    h1.doc { color: var(--cream); font-size: 1.15rem; margin: 0 0 0.3rem; }
    .lead { color: #C9BBA8; font-size: 0.82rem; line-height: 1.7; margin: 0 0 0.8rem; }
    .lead a { color: var(--gold-2); }
    .flows { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
    .flows button {
      font: inherit;
      border: 1px solid #5A4E40;
      background: #3A3228;
      color: var(--cream);
      border-radius: 999px;
      padding: 0.22rem 0.7rem;
      cursor: pointer;
    }
    .flows button.on { background: var(--gold); color: var(--black); border-color: var(--gold); }
    .now { color: #A89884; font-size: 0.75rem; margin: 0 0 0.8rem; }
    .phone {
      width: 390px;
      max-width: 100%;
      height: 780px;
      margin: 0 auto;
      background: var(--cream);
      border: 3px solid #1A1612;
      border-radius: 32px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: 0 16px 0 #1A1612, var(--shadow);
    }
    .status {
      min-height: calc(26px + env(safe-area-inset-top));
      padding: env(safe-area-inset-top) 16px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.68rem;
      color: #C9BBA8;
      background: var(--black);
      flex-shrink: 0;
    }
    #statusName { max-width: 68%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .stage { flex: 1; position: relative; overflow: hidden; background: var(--cream); }
    .screen {
      display: none;
      position: absolute;
      inset: 0;
      flex-direction: column;
      overflow: auto;
      overscroll-behavior: contain;
      background: var(--cream);
    }
    .screen.on { display: flex; }
    .screen > * { flex-shrink: 0; }
    .screen { scrollbar-width: none; }
    .screen::-webkit-scrollbar { display: none; }
    .screen::-webkit-scrollbar-track { background: transparent; }
    .screen::-webkit-scrollbar-thumb { background: #8F806E; border-radius: 999px; }
    .tabbar {
      min-height: calc(60px + env(safe-area-inset-bottom));
      padding-bottom: env(safe-area-inset-bottom);
      display: none;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      background: var(--black);
      flex-shrink: 0;
    }
    .tabbar.show { display: grid; }
    .tabbar button {
      font: inherit;
      border: 0;
      background: none;
      color: #8A8074;
      font-size: 0.6rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      cursor: pointer;
    }
    .tabbar button.on { color: var(--gold); }
    .tabbar i {
      width: 20px;
      height: 20px;
      display: grid;
      place-items: center;
    }
    .tabbar i svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .top {
      display: grid;
      grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
      align-items: center;
      padding: 10px 14px;
      background: var(--black);
      color: var(--cream);
      flex-shrink: 0;
    }
    .top > :first-child { justify-self: start; }
    .top > :last-child { justify-self: end; }
    .top.light {
      background: var(--cream);
      color: var(--ink);
      border-bottom: 1px solid var(--line);
    }
    .top img.logo { height: 28px; }
    .ham {
      width: 40px;
      height: 40px;
      position: relative;
      cursor: pointer;
      background: linear-gradient(currentColor, currentColor) center / 22px 1.6px no-repeat;
    }
    .ham::before, .ham::after {
      content: "";
      position: absolute;
      left: 9px;
      width: 22px;
      border-top: 1.6px solid currentColor;
    }
    .ham::before { top: 12px; }
    .ham::after { top: 27px; }
    .back { min-height: 40px; padding: 0 4px; display: inline-flex; align-items: center; font-size: 0.82rem; color: var(--gold); cursor: pointer; font-weight: 500; }
    .stories {
      display: flex;
      gap: 12px;
      padding: 12px 14px 10px;
      background: var(--black);
      overflow-x: auto;
      overflow-y: hidden;
      flex-shrink: 0;
    }
    .story { width: 58px; text-align: center; color: #D8CBB8; font-size: 0.6rem; cursor: pointer; flex-shrink: 0; }
    .story img {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--gold);
      display: block;
      margin-bottom: 4px;
    }
    .hero {
      position: relative;
      min-height: 280px;
      cursor: pointer;
      flex-shrink: 0;
    }
    .hero img, .ph img, .gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
    #home .hero > img { object-position: center 72%; }
    .hero .veil {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(17,17,17,.82), rgba(17,17,17,.15));
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 16px;
      color: #fff;
    }
    .hero .veil strong { font-size: 1.38rem; line-height: 1.55; font-weight: 700; max-width: 18rem; }
    .hero .veil span { font-size: 0.78rem; color: #E8D7B8; }
    .eyebrow { color: var(--gold-2); font-size: .65rem; letter-spacing: .02em; margin-bottom: 5px; }
    .cta, .ghost {
      margin: 0 14px 10px;
      height: 46px;
      display: flex;
      align-items: center;
      justify-content: center;
      font: inherit;
      font-weight: 700;
      font-size: 0.9rem;
      border-radius: 14px;
      cursor: pointer;
      border: 0;
      text-decoration: none;
    }
    .cta { background: var(--gold); color: var(--black); }
    .ghost { background: transparent; color: var(--ink); border: 1.4px solid var(--ink); }
    .ghost.gold { color: var(--gold); border-color: var(--gold); }
    .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 14px 10px; }
    .row .cta, .row .ghost { margin: 0; }
    h3.sec {
      margin: 14px 16px 8px;
      font-size: 0.92rem;
      font-weight: 700;
    }
    .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 14px; }
    .card { cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
    @media (hover: hover) and (pointer: fine) {
      .card:hover { transform: translateY(-2px); }
    }
    .card .ph {
      height: 118px;
      border-radius: 14px;
      overflow: hidden;
      background: #DDD4C6;
    }
    .card .t { font-size: 0.8rem; font-weight: 700; margin-top: 6px; }
    .card .s { font-size: 0.7rem; color: var(--gold-deep); font-weight: 600; }
    .banner {
      margin: 0 14px 12px;
      height: 88px;
      border-radius: 14px;
      overflow: hidden;
      position: relative;
      cursor: pointer;
    }
    .banner img { width: 100%; height: 100%; object-fit: cover; }
    .banner span {
      position: absolute;
      inset: 0;
      background: rgba(17,17,17,.45);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.88rem;
    }
    .pills { display: flex; gap: 6px; padding: 10px 14px 6px; }
    .pill {
      border: 1px solid var(--line);
      background: var(--paper);
      border-radius: 999px;
      min-height: 38px;
      padding: 7px 13px;
      font: inherit;
      font-size: 0.72rem;
      cursor: pointer;
    }
    .pill.on { background: var(--black); color: var(--gold); border-color: var(--black); }
    .search {
      margin: 10px 14px 0;
      height: 44px;
      border: 1px solid var(--line);
      background: var(--paper);
      border-radius: 12px;
      display: flex;
      align-items: center;
      padding: 0 12px;
      color: var(--muted);
      font-size: 0.8rem;
      cursor: pointer;
    }
    .spec { margin: 0 14px 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); font-size: 0.78rem; }
    .spec div { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); }
    .spec div:last-child { border-bottom: 0; }
    .price { margin: 4px 16px 12px; font-weight: 700; font-size: 1.05rem; color: var(--gold); }
    .field {
      width: calc(100% - 28px);
      margin: 0 14px 8px;
      min-height: 42px;
      border: 1px solid var(--line);
      background: var(--paper);
      border-radius: 12px;
      display: flex;
      align-items: center;
      padding: 8px 12px;
      color: var(--muted);
      font-size: 0.82rem;
      font-family: inherit;
      outline: none;
      resize: vertical;
    }
    input.field, textarea.field { color: var(--ink); }
    .field::placeholder { color: var(--muted); opacity: 1; }
    input.field:focus, textarea.field:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(210,174,109,.16); }
    .ui-form { display: flex; flex-direction: column; }
    .form-label { margin: 6px 16px 5px; color: var(--ink); font-size: .7rem; font-weight: 600; }
    .note { margin: 8px 16px 12px; font-size: 0.74rem; color: var(--muted); line-height: 1.7; }
    .list button {
      display: block;
      width: calc(100% - 28px);
      margin: 0 14px;
      padding: 13px 0;
      border: 0;
      border-bottom: 1px solid var(--line);
      background: none;
      font: inherit;
      text-align: right;
      cursor: pointer;
    }
    .gal { height: auto; aspect-ratio: 16 / 9; background: #DDD4C6; position: relative; overflow: hidden; }
    #product .gal { background: #17130F; touch-action: pan-y; user-select: none; }
    #product .gal img { object-fit: contain; -webkit-user-drag: none; }
    #story .gal { aspect-ratio: auto; min-height: 420px; }
    .gallery-nav {
      position: absolute;
      z-index: 2;
      top: 50%;
      transform: translateY(-50%);
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255,255,255,.45);
      border-radius: 50%;
      background: rgba(13,12,10,.66);
      color: #fff;
      font: inherit;
      font-size: 1.2rem;
      cursor: pointer;
      backdrop-filter: blur(6px);
    }
    .gallery-nav.prev { right: 12px; }
    .gallery-nav.next { left: 12px; }
    .gallery-nav[hidden] { display: none; }
    .dots { display: flex; gap: 6px; justify-content: center; padding: 10px 0 4px; }
    .dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; position: relative; cursor: pointer; }
    .dots button::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #D4C8B6; inset: 0; margin: auto; }
    .dots button.on::after { background: var(--gold); transform: scale(1.25); }
    .table-wrap { width: 100%; overflow-x: auto; padding: 0 12px 12px; }
    table.desk { min-width: 100%; width: 100%; margin: 8px 0; border-collapse: collapse; table-layout: fixed; font-size: 0.61rem; }
    table.desk th, table.desk td { padding: 6px 2px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
    table.desk th:nth-child(1) { width: 16%; }
    table.desk th:nth-child(2), table.desk th:nth-child(3) { width: 27%; }
    table.desk th:nth-child(4), table.desk th:nth-child(5) { width: 15%; text-align: center; }
    table.desk td:nth-child(4), table.desk td:nth-child(5) { text-align: center; }
    table.desk th { color: var(--muted); font-weight: 500; }
    .mark, .ico-edit { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; padding: 0; border-radius: 10px; }
    .ico-edit { cursor: pointer; }
    .ico-edit:hover, .ico-edit:focus-visible { background: rgba(210,174,109,.16); }
    .mark svg, .ico-edit svg { width: 15px; height: 15px; }
    .screen.as-partner table.desk th:last-child,
    .screen.as-partner table.desk td:last-child { display: none; }
    .close-x {
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 3;
      width: 44px;
      height: 44px;
      border: 0;
      border-radius: 50%;
      background: rgba(17,17,17,.55);
      color: #fff;
      font-size: 1.35rem;
      line-height: 1;
      cursor: pointer;
      font-family: inherit;
    }
    .screen.dark .gal { position: relative; }
    .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 14px 0; }
    .filters .search { margin: 0; min-width: 0; width: 100%; }
    .price-line {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin: 14px 16px 6px;
    }
    .price-line strong { font-size: 0.86rem; }
    .price-line .cur { font-size: 0.7rem; color: var(--muted); }
    .center { padding: 36px 18px 12px; text-align: center; }
    .center h3 { margin: 10px 0 6px; }
    .center p { margin: 0 0 8px; color: var(--muted); font-size: 0.8rem; }
    .mfa-icons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 24px; }
    .mfa-ico {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--line);
      background: var(--paper);
      border-radius: 16px;
      padding: 18px 8px;
      font: inherit;
      cursor: pointer;
    }
    .mfa-ico svg { width: 44px; height: 44px; }
    .mfa-ico span { font-size: 0.68rem; color: var(--muted); }
    .code { justify-content: center; text-align: center; letter-spacing: 0.35em; color: var(--ink); font-size: 1.1rem; }
    .map {
      min-height: 160px;
      margin: 12px 14px;
      border-radius: 14px;
      overflow: hidden;
      background:
        linear-gradient(135deg, rgba(210,174,109,.1), rgba(255,253,247,.86)),
        repeating-linear-gradient(45deg, #E4D8C5 0 1px, transparent 1px 28px),
        var(--paper);
      position: relative;
    }
    .map-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink); text-decoration: none; text-align: center; padding: 20px; }
    .map-pin { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--black); font-size: 1.15rem; box-shadow: 0 8px 22px rgba(154,113,56,.25); }
    .map-link strong { font-size: .82rem; }
    .map-link span { color: var(--muted); font-size: .68rem; }
    .dark { background: var(--black); color: var(--cream); }
    .dark .note { color: #C9BBA8; }
    .dark .ghost { color: var(--cream); border-color: rgba(255,255,255,.55); }

    .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 16px;
      margin: 20px 16px 10px;
    }
    .section-head h3 { margin: 0; font-size: 1rem; }
    .section-head button {
      border: 0;
      min-height: 36px;
      padding: 6px;
      background: none;
      color: var(--gold-deep);
      font: inherit;
      font-size: .7rem;
      cursor: pointer;
    }
    .search-input {
      width: calc(100% - 28px);
      margin: 10px 14px 0;
      height: 44px;
      border: 1px solid var(--line);
      background: var(--paper);
      border-radius: 12px;
      padding: 0 12px;
      color: var(--ink);
      font: inherit;
      font-size: .8rem;
      outline: none;
    }
    .search-input:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(210,174,109,.18); }
    .list button small { display: block; margin-top: 4px; color: var(--muted); font-size: .62rem; font-weight: 400; }
    .faq-list { padding: 8px 14px 14px; }
    .faq-list details { border-bottom: 1px solid var(--line); }
    .faq-list summary { list-style: none; padding: 15px 0 15px 28px; font-size: .78rem; font-weight: 600; cursor: pointer; position: relative; }
    .faq-list summary::-webkit-details-marker { display: none; }
    .faq-list summary::before { content: "+"; position: absolute; left: 4px; color: var(--gold-deep); font-size: 1.1rem; }
    .faq-list details[open] summary::before { content: "−"; }
    .faq-list p { margin: -4px 0 14px; color: var(--muted); font-size: .7rem; line-height: 1.9; }
    .category-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      padding: 0 14px 8px;
    }
    .category-card {
      position: relative;
      min-height: 118px;
      border: 0;
      border-radius: 16px;
      overflow: hidden;
      background: var(--black);
      color: #fff;
      cursor: pointer;
      padding: 0;
    }
    .category-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .76; }
    .category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,12,10,.86), transparent 70%); }
    .category-card span { position: absolute; z-index: 1; right: 10px; bottom: 9px; font-size: .72rem; font-weight: 700; }

    .editorial {
      margin: 14px;
      padding: 20px 18px;
      border-radius: 20px;
      background: var(--wood);
      color: var(--cream);
      position: relative;
      overflow: hidden;
    }
    .editorial::before {
      content: "ج";
      position: absolute;
      left: -8px;
      top: -42px;
      font-size: 9rem;
      font-weight: 700;
      color: rgba(210,174,109,.09);
    }
    .editorial small { color: var(--gold-2); }
    .editorial h2 { font-size: 1.22rem; line-height: 1.65; margin: 5px 0 8px; max-width: 18rem; }
    .editorial p { margin: 0; color: #D8CCBC; font-size: .72rem; line-height: 1.85; max-width: 20rem; }

    .process-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      padding: 0 14px 10px;
      counter-reset: step;
    }
    .process-step {
      min-height: 110px;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 13px;
      background: rgba(255,253,247,.72);
      counter-increment: step;
    }
    .process-step::before {
      content: "۰" counter(step);
      display: block;
      color: var(--gold-deep);
      font-size: .65rem;
      font-weight: 700;
      margin-bottom: 10px;
    }
    .process-step strong { display: block; font-size: .78rem; margin-bottom: 3px; }
    .process-step span { color: var(--muted); font-size: .65rem; line-height: 1.7; }

    .project-feature {
      position: relative;
      min-height: 210px;
      margin: 0 14px 12px;
      border-radius: 20px;
      overflow: hidden;
      cursor: pointer;
    }
    .project-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .project-feature div {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 16px;
      color: #fff;
      background: linear-gradient(to top, rgba(13,12,10,.88), rgba(13,12,10,.08));
    }
    .project-feature small { color: var(--gold-2); }
    .project-feature strong { font-size: 1rem; margin-top: 3px; }

    .material-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      padding: 0 14px 10px;
    }
    .material-card {
      min-height: 92px;
      border-radius: 16px;
      padding: 12px 9px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      color: #fff;
      font-size: .7rem;
      font-weight: 700;
    }
    .material-card:nth-child(1) { background: linear-gradient(145deg, #B18957, #4E3322); }
    .material-card:nth-child(2) { background: linear-gradient(145deg, #E9E0D3, #968675); color: var(--ink); }
    .material-card:nth-child(3) { background: linear-gradient(145deg, #7D877A, #394139); }
    .material-card span { font-size: .58rem; opacity: .82; font-weight: 400; margin-top: 3px; }

    .trust-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      margin: 10px 14px 14px;
      background: var(--line);
      border: 1px solid var(--line);
      border-radius: 18px;
      overflow: hidden;
    }
    .trust-item { background: var(--paper); padding: 14px 8px; text-align: center; }
    .trust-item strong { display: block; color: var(--gold-deep); font-size: .84rem; }
    .trust-item span { color: var(--muted); font-size: .58rem; }

    .showroom-card {
      margin: 0 14px 12px;
      padding: 18px;
      border-radius: 20px;
      background: var(--black);
      color: var(--cream);
    }
    .showroom-card small { color: var(--gold-2); }
    .showroom-card h3 { margin: 5px 0; font-size: 1rem; }
    .showroom-card p { margin: 0 0 12px; color: #BFB3A4; font-size: .68rem; line-height: 1.7; }
    .showroom-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .showroom-actions button { min-height: 42px; border-radius: 12px; border: 1px solid var(--gold); font: inherit; font-size: .7rem; cursor: pointer; }
    .showroom-actions button:first-child { background: var(--gold); color: var(--black); }
    .showroom-actions button:last-child { background: transparent; color: var(--gold-2); }

    .mini-footer {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 4px;
      padding: 14px 14px 22px;
      border-top: 1px solid var(--line);
    }
    .mini-footer button { min-height: 40px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .62rem; cursor: pointer; }

    .article-cover { height: 190px; margin: 12px 14px; border-radius: 18px; overflow: hidden; }
    .article-cover img { width: 100%; height: 100%; object-fit: cover; }
    .article-body { margin: 0 16px 20px; font-size: .76rem; line-height: 2; color: #4B4035; }
    .archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px; }
    .archive-card { border: 0; background: var(--paper); border-radius: 16px; overflow: hidden; padding: 0; text-align: right; cursor: pointer; }
    .archive-card img { width: 100%; height: 125px; object-fit: cover; display: block; }
    .archive-card span { display: block; padding: 9px 10px 2px; font-size: .72rem; font-weight: 700; }
    .archive-card small { display: block; padding: 0 10px 10px; color: var(--muted); font-size: .58rem; }
    .policy-card { margin: 12px 14px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
    .policy-card h3 { margin: 0 0 8px; font-size: .88rem; }
    .policy-card p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.9; }
    .sms-table-wrap { overflow-x: auto; padding: 0 10px 18px; }
    .sms-table { width: 100%; border-collapse: collapse; font-size: .66rem; }
    .sms-table th, .sms-table td { padding: 9px 7px; border-bottom: 1px solid var(--line); text-align: right; }
    .sms-table th { color: var(--muted); }
    .sms-table thead { display: none; }
    .sms-table, .sms-table tbody, .sms-table tr, .sms-table td { display: block; }
    .sms-table tr { margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
    .sms-table td { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; }
    .sms-table td::before { color: var(--muted); flex-shrink: 0; }
    .sms-table td:nth-child(1)::before { content: "زمان"; }
    .sms-table td:nth-child(2)::before { content: "رویداد"; }
    .sms-table td:nth-child(3)::before { content: "گیرنده"; }
    .sms-table td:nth-child(4)::before { content: "وضعیت"; }
    .badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #E2E9DF; color: #43523F; }
    [hidden] { display: none !important; }
    :focus-visible { outline: 3px solid rgba(210,174,109,.6); outline-offset: 2px; }

    @media (min-width: 860px) {
      .page { max-width: 1180px; padding: 1.5rem 2rem 3rem; }
      h1.doc, .lead, .flows, .now { max-width: 1080px; margin-right: auto; margin-left: auto; }
      .phone {
        width: 100%;
        height: min(850px, calc(100vh - 180px));
        min-height: 720px;
        border-radius: 24px;
        display: grid;
        grid-template-rows: auto auto 1fr;
        box-shadow: 0 18px 0 #1A1612, 0 34px 80px rgba(0,0,0,.34);
      }
      .status { grid-row: 1; padding-left: 24px; padding-right: 24px; }
      .tabbar { grid-row: 2; min-height: 62px; padding: 0 20%; border-bottom: 1px solid #2D271F; }
      .tabbar button { flex-direction: row; font-size: .74rem; gap: 8px; }
      .tabbar i { width: 18px; height: 18px; }
      .stage { grid-row: 3; }
      .top { min-height: 66px; padding: 12px 28px; }
      .top img.logo { height: 38px; }
      .stories { padding: 14px 28px 12px; gap: 18px; justify-content: center; }
      .story { width: 68px; font-size: .68rem; }
      .story img { width: 68px; height: 68px; }
      #home .hero { min-height: 420px; }
      #home .hero .veil { padding: 34px; }
      #home .hero .veil strong { font-size: 2rem; max-width: 28rem; }
      #home .hero .veil span { font-size: .9rem; }
      .section-head { margin: 32px 34px 14px; }
      .section-head h3 { font-size: 1.2rem; }
      .category-grid, .cards, .process-grid, .material-grid { padding-left: 32px; padding-right: 32px; }
      .category-grid { gap: 14px; }
      .category-card { min-height: 210px; }
      .category-card span { right: 18px; bottom: 16px; font-size: .9rem; }
      #home .cards, #catalog .cards { grid-template-columns: repeat(4, 1fr); gap: 16px; }
      .card .ph { height: 190px; }
      .card .t { font-size: .9rem; }
      .card .s { font-size: .76rem; }
      .editorial { margin: 24px 32px; padding: 36px; }
      .editorial h2 { font-size: 1.65rem; max-width: 34rem; }
      .editorial p { font-size: .78rem; max-width: 36rem; }
      .process-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
      .process-step { min-height: 145px; padding: 20px; }
      .project-feature { min-height: 380px; margin: 0 32px 20px; }
      .project-feature div { padding: 30px; }
      .project-feature strong { font-size: 1.45rem; }
      .material-grid { gap: 14px; }
      .material-card { min-height: 150px; padding: 20px; font-size: .9rem; }
      .trust-grid, .showroom-card, .mini-footer, .banner { margin-left: 32px; margin-right: 32px; }
      .showroom-card { padding: 28px; }
      .showroom-card h3 { font-size: 1.3rem; }
      #catalog .search { margin-left: 32px; margin-right: 32px; }
      #catalog .pills { padding-left: 32px; padding-right: 32px; }
      #product { padding-bottom: 20px; }
      .screen { scrollbar-width: thin; scrollbar-color: #8F806E transparent; scrollbar-gutter: stable; }
      .screen::-webkit-scrollbar { display: block; width: 6px; }
      #product .gal { height: auto; aspect-ratio: 16 / 9; margin: 22px 32px 0; border-radius: 20px; overflow: hidden; }
      #product .spec, #product .note, #product .price, #product .cta, #product .row, #product h3 { max-width: 720px; width: calc(100% - 64px); margin-left: auto; margin-right: auto; }
      .archive-grid { grid-template-columns: repeat(4, 1fr); padding: 18px 32px; }
      .archive-card img { height: 190px; }
      .article-cover, .article-body, .policy-card { max-width: 820px; width: calc(100% - 64px); margin-left: auto; margin-right: auto; }
      .article-cover { height: 360px; }
      .map { height: 260px; margin-left: 32px; margin-right: 32px; }
      .ui-form, #contact .contact-actions, #contact > h3.sec, #visit > .note, #campaign .campaign-form { max-width: 720px; width: calc(100% - 64px); margin-left: auto; margin-right: auto; }
      .search-input { max-width: 820px; margin-left: auto; margin-right: auto; }
      .table-wrap { padding-left: 28px; padding-right: 28px; }
      table.desk { table-layout: auto; font-size: .72rem; }
      .sms-table { min-width: 620px; display: table; }
      .sms-table thead { display: table-header-group; }
      .sms-table tbody { display: table-row-group; }
      .sms-table tr { display: table-row; margin: 0; padding: 0; border: 0; background: transparent; }
      .sms-table td { display: table-cell; padding: 9px 7px; }
      .sms-table td::before { display: none; }
    }

    body.app-only {
      min-height: 100dvh;
      overflow: hidden;
      background: var(--black);
    }
    .app-only .page {
      width: 100%;
      max-width: none;
      height: 100dvh;
      margin: 0;
      padding: 0;
    }
    .app-only .doc,
    .app-only .lead,
    .app-only .flows,
    .app-only .now { display: none; }
    .app-only .phone {
      width: 100%;
      max-width: none;
      height: 100dvh;
      min-height: 0;
      margin: 0;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }
  
/* Public API-backed pages share the existing Jahantab palette and local fonts. */
.connected-site .phone { display: flex !important; flex-direction: column; }
.connected-site .site-header { flex: 0 0 auto; gap: 1rem; order: 0; }
.connected-site .stage { order: 1; min-height: 0; }
.connected-site .tabbar { order: 2; padding-inline: 1rem; gap: .5rem; }
.connected-site .tabbar a { display: flex; align-items: center; justify-content: center; min-height: 56px; text-decoration: none; color: #cabba7; font-size: .8rem; }
.connected-site .tabbar a.on { color: var(--gold-2); border-top: 2px solid var(--gold); }
.site-header select { min-height: 44px; color: var(--cream); background: #211b15; border: 1px solid #6f5e46; border-radius: .5rem; max-width: 8rem; padding: .4rem; }
.menu-toggle { font-size: 1.8rem; min-width: 44px; text-decoration: none; color: var(--gold); }
.connected-site .page-title { font-size: clamp(1.3rem, 3vw, 2rem); margin: 1.5rem; line-height: 1.8; }
.connected-site a.card, .connected-site a.story { text-decoration: none; color: inherit; }
.connected-site .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.connected-site .card { display: block; min-width: 0; min-height: 0; overflow-wrap: anywhere; }
.connected-site .card .ph {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: 42vh;
  overflow: hidden;
  border-radius: 14px;
  background: #DDD4C6;
}
.connected-site .card .ph img, .connected-site .card .ph video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.connected-site .cta, .connected-site .ghost { text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; line-height: 1.2; min-height: 44px; height: auto; padding: 10px 16px; cursor: pointer; }
.connected-site .cta:disabled { opacity: .55; cursor: wait; }
.connected-site .rich-text { margin: 1rem 1.5rem; line-height: 2; overflow-wrap: anywhere; }
.rich-text img, .rich-text video { max-width: 100%; height: auto; border-radius: .6rem; }
.rich-text a { color: #75521f; text-decoration: underline; }
.rich-text figure { margin: 1rem 0; }
.rich-text p, .rich-text li { line-height: 2; }
.no-media { min-height: 100px; display: grid; place-items: center; background: #e9e0d1; color: #645746; font-size: .8rem; }
.catalog-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 1.5rem 1rem; }
.catalog-filters input, .catalog-filters select { flex: 1 1 12rem; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: .5rem; padding: .6rem; background: var(--paper); color: var(--ink); }
.catalog-filters .cta { margin: 0; width: auto; flex: 0 0 auto; }
.pagination, .gallery-controls { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1rem; }
.pagination .ghost, .gallery-controls .ghost { margin: 0; width: auto; padding: .5rem 1rem; }
.menu-link { display: block; padding: 1rem; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.public-gallery { margin: 1rem 1.5rem; touch-action: pan-y; }
.gallery-media img, .gallery-media video { display: block; width: 100%; max-height: 65vh; object-fit: contain; background: #e9e0d1; border-radius: .8rem; }
.story-media { width: calc(100% - 3rem); max-height: 70vh; object-fit: contain; margin: 1rem 1.5rem; }
.public-comments { margin: 1.5rem; }
.public-comments .ui-form { max-width: none; width: 100%; margin: 0; }
.public-form .field { width: 100%; margin: .3rem 0; }
.public-field { margin-bottom: 1rem; }
.public-field label { display: block; line-height: 1.8; }
button.shamsi-date-value { width: 100%; text-align: start; cursor: pointer; color: var(--ink); }
.shamsi-pop { margin-top: .4rem; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.shamsi-pop[hidden] { display: none; }
.shamsi-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.shamsi-nav .ghost { width: auto; margin: 0; padding: .4rem .7rem; }
.shamsi-week, .shamsi-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .2rem; }
.shamsi-week span, .shamsi-days button { text-align: center; font-size: .78rem; }
.shamsi-days button { border: 0; background: transparent; min-height: 36px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.shamsi-days button[aria-pressed="true"] { background: var(--gold); color: var(--black); }
.shamsi-days .shamsi-pad { visibility: hidden; }
.field-error, .form-status { color: #a12626; line-height: 1.8; }
.field-error:empty, .form-status:empty { display: none; }
.field[aria-invalid="true"] { border: 2px solid #a12626; }
.honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.api-section { margin: 1.5rem 0; }
.api-section > div > h2, .api-section > div > p, .api-section > div > small { margin-inline: 1.5rem; }
.api-feature { margin: 0 0 1.5rem; position: relative; background: var(--black); color: var(--cream); }
.api-feature > img { width: 100%; max-height: 580px; object-fit: cover; display: block; }
.api-feature-text { padding: 1.5rem; line-height: 1.9; }
.api-feature-text .rich-text { margin: 0; }
.api-feature .cards { color: var(--ink); padding-bottom: 1rem; }
.api-section > img, .process-step img { max-width: 100%; max-height: 200px; object-fit: cover; }
.connected-site :focus-visible { outline: 3px solid #996e2f; outline-offset: 3px; }
.connected-site .price del { display: block; font-size: .85rem; color: var(--muted); }
.skip-link { position: fixed; z-index: 100; top: -100px; inset-inline-start: 1rem; background: white; padding: 1rem; color: black; }
.skip-link:focus { top: env(safe-area-inset-top, 0px); }
[dir="ltr"] .connected-site .back { transform: none; }
@media (min-width: 900px) {
  .connected-site .tabbar { order: 1; padding-inline: 20%; }
  .connected-site .stage { order: 2; }
  .connected-site .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .connected-site .screen > .rich-text, .public-comments, .public-gallery { max-width: 900px; width: calc(100% - 4rem); margin-inline: auto; }
  .api-feature-text { max-width: 1000px; margin: auto; padding: 2rem; }
}
.video-thumbnail { display: grid; place-items: center; min-height: 68px; background: #382c20; color: #e8ce99; font-size: 1.7rem; border-radius: .7rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; inset-inline-start: 0; top: 0; }
.honey input { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; pointer-events: none; }
.connected-site img.article-cover { display: block; width: calc(100% - 3rem); max-width: 900px; height: auto; aspect-ratio: 16 / 9; max-height: min(420px, 45vh); object-fit: cover; object-position: center; margin-inline: auto; background: #e9e0d1; }
.connected-site .public-form { padding: 1rem 1.5rem; }
.connected-site .public-comments .public-form { padding-inline: 0; }

/* Live site: keep the same palette, but fix overflow, contrast, tap size and RTL type. */
.connected-site { --muted: #64584C; --gold-text: #6E4C1F; }
.connected-site .site-header {
  min-width: 0;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  padding-bottom: 8px;
  padding-inline: max(10px, env(safe-area-inset-right, 0px));
}
.connected-site .site-header > * { min-width: 0; }
.connected-site .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}
.connected-site .brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 44px;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
}
.connected-site .brand-link .logo { height: 40px; width: auto; }
.connected-site .brand-name { color: #E8CE99; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.connected-site .site-header select { max-width: 6.75rem; font-size: 1rem; }
.connected-site .tabbar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.connected-site .tabbar a {
  min-width: 0;
  min-height: 48px;
  padding: 6px 2px;
  font-size: clamp(.7rem, 3vw, .8rem);
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}
.connected-site .screen > * { min-width: 0; max-width: 100%; }
.connected-site .screen { padding-bottom: 12px; }
.connected-site .stories { color: #F3E6D0; }
.connected-site a.story {
  width: 76px;
  color: #F3E6D0;
  font-size: .75rem;
  line-height: 1.35;
}
.connected-site .story img,
.connected-site .story-archive-mark {
  width: 58px;
  height: 58px;
  margin-inline: auto;
}
.connected-site .story-archive-mark {
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: #E8CE99;
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.connected-site .story > span:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.connected-site .api-feature > img,
.connected-site .api-feature > video {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: min(68vh, 520px);
  object-fit: cover;
  background: #17130f;
}
.connected-site .card > img,
.connected-site .card > video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: 42vh;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  min-height: 0;
}
.connected-site .cta,
.connected-site .ghost {
  height: auto;
  min-height: 44px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.connected-site .ghost.on-dark,
.connected-site .api-feature .ghost,
.connected-site .api-feature .rich-text a {
  color: #F3E6D0;
  border-color: #D2AE6D;
  background: transparent;
}
.connected-site .api-feature .rich-text,
.connected-site .api-feature .rich-text p { color: #F6F0E6; }
.connected-site .api-feature .rich-text a { border: 0; text-decoration-thickness: 1px; }
.connected-site .price,
.connected-site .card .s,
.connected-site .back,
.connected-site .step-index,
.connected-site .trust-item strong { color: var(--gold-text); }
.connected-site .note,
.connected-site .card .s,
.connected-site .card .t { font-size: .85rem; line-height: 1.55; }
.connected-site .back {
  margin: 8px 16px 0;
  min-height: 44px;
  padding: 8px 2px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
}
.connected-site .pills { flex-wrap: wrap; }
.connected-site .pill { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; font-size: .8rem; padding-block: 8px; }
.connected-site .field,
.connected-site .search-input,
.connected-site .catalog-filters input,
.connected-site .catalog-filters select { min-height: 44px; font-size: 1rem; }
.connected-site textarea.field { min-height: 7.5rem; }
.connected-site .public-field label,
.connected-site .form-label { font-size: .85rem; }
.connected-site .policy-card .ghost,
.connected-site .policy-card .cta { margin: 0 0 8px; width: 100%; }
.contact-place { display: flex; flex-direction: column; align-items: center; gap: .2rem; margin: .85rem 0; text-align: center; }
.contact-place h3 { margin: 0; font-size: 1rem; }
.contact-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: .35rem 0 .2rem;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--ink);
}
.contact-icons, .story-messengers { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: .45rem 0 .8rem; }
.contact-icon, .story-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.contact-icon svg, .story-messenger svg { width: 22px; height: 22px; }
.contact-icon[data-contact="phone"] { color: var(--gold-deep); border-color: var(--gold); }
.contact-icon[data-contact="email"] { color: var(--wood); }
.contact-icon[data-messenger="whatsapp"], .story-messenger[data-messenger="whatsapp"] { color: #075E54; border-color: rgba(7, 94, 84, .4); background: rgba(7, 94, 84, .08); }
.contact-icon[data-messenger="telegram"], .story-messenger[data-messenger="telegram"] { color: #26A5E4; border-color: rgba(38, 165, 228, .45); background: rgba(38, 165, 228, .08); }
.contact-icon[data-messenger="rubika"], .story-messenger[data-messenger="rubika"] { color: #794387; border-color: rgba(121, 67, 135, .4); background: rgba(121, 67, 135, .08); }
.contact-icon[data-messenger="bale"], .story-messenger[data-messenger="bale"] { color: #0A8F6A; border-color: rgba(12, 188, 141, .5); background: rgba(12, 188, 141, .12); }
.contact-neshan, .contact-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: auto;
  min-height: 36px;
  margin-top: .25rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-deep);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
}
.contact-neshan .pin-icon { width: 16px; height: 16px; flex: none; }
.connected-site .process-step::before { content: none; }
.connected-site .step-index { display: block; margin-bottom: 8px; font-size: .85rem; font-weight: 700; }
.connected-site .process-step p,
.connected-site .process-step span { font-size: .8rem; line-height: 1.7; }
.connected-site .material-grid,
.connected-site .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.connected-site .material-card { min-height: 108px; font-size: .85rem; overflow-wrap: anywhere; }
.connected-site .material-card span { font-size: .75rem; line-height: 1.5; opacity: 1; }
.connected-site .material-card:nth-child(1) span,
.connected-site .material-card:nth-child(3) span { color: #F7F1E6; }
.connected-site .material-card:nth-child(2) span { color: #3A3128; }
.connected-site .trust-item { overflow-wrap: anywhere; padding: 16px 8px; }
.connected-site .trust-item span { font-size: .75rem; color: var(--muted); }
.connected-site .showroom-actions a,
.connected-site .showroom-card .showroom-primary,
.connected-site .showroom-card .showroom-secondary {
  min-height: 44px;
  height: auto;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--gold);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.connected-site .showroom-primary { background: var(--gold); color: var(--black); }
.connected-site .showroom-secondary { background: transparent; color: #E8CE99; }
.connected-site .showroom-card .rich-text { margin: 0 0 12px; color: #E7DDD0; }
.connected-site .showroom-card .rich-text p { color: #E7DDD0; font-size: .85rem; max-width: none; }
.connected-site .showroom-card .rich-text a { color: #E8CE99; }
.connected-site .editorial { overflow-wrap: anywhere; }
.connected-site .editorial h2 { max-width: none; font-size: clamp(1.15rem, 4.4vw, 1.7rem); }
.connected-site .editorial .rich-text { margin: 0; }
.connected-site .editorial .rich-text,
.connected-site .editorial .rich-text p { margin: 0; color: #F3E6D0; font-size: .9rem; max-width: none; line-height: 1.85; }
.connected-site .editorial .rich-text a { color: #E8CE99; }
.connected-site .editorial::before { font-size: clamp(4.5rem, 20vw, 9rem); pointer-events: none; }
.connected-site a.project-feature { color: #fff; text-decoration: none; display: block; }
.connected-site .project-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 10px;
  min-height: 44px;
  padding: 8px 14px;
  line-height: 1.2;
  border-radius: 12px;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
}
.connected-site .rich-text h2,
.connected-site .rich-text h3,
.connected-site .rich-text h4 { margin: 1.15rem 0 .4rem; line-height: 1.7; }
.connected-site .rich-text > strong { display: block; margin: .85rem 0 .25rem; }
.connected-site .rich-text p { margin: .35rem 0 .8rem; }
.connected-site .menu-link { min-height: 44px; display: flex; align-items: center; line-height: 1.2; }
.connected-site .gallery-controls .ghost { min-width: 44px; }
@media (max-width: 359px) {
  .connected-site .brand-name { font-size: .92rem; }
  .connected-site .brand-link .logo { height: 34px; }
  .connected-site .material-grid { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .connected-site .api-feature > img,
  .connected-site .api-feature > video { aspect-ratio: 16 / 9; max-height: 560px; }
  .connected-site img.article-cover { aspect-ratio: 21 / 9; max-height: min(420px, 45vh); }
  .connected-site .card > img,
  .connected-site .card > video { height: auto; aspect-ratio: 3 / 2; max-height: 42vh; }
}

/* Full-screen story viewer. Hit zones use physical left/right, including in RTL. */
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 7, 6, .94);
  overflow: hidden;
  color: #f6f1e8;
}
.story-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  background: #14110e;
  overflow: hidden;
  touch-action: none;
}
.story-stage, .story-stage img, .story-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #14110e;
}
.story-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.story-progress {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 52px;
  z-index: 3;
  display: flex;
  gap: 4px;
}
.story-progress i { flex: 1; height: 3px; border-radius: 99px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-progress b { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left center; }
.story-close, .story-unmute, .story-hint, .story-messenger, .story-product {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.story-close {
  position: absolute;
  z-index: 4;
  top: calc(18px + env(safe-area-inset-top, 0px));
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}
.story-unmute {
  position: absolute;
  z-index: 4;
  top: calc(22px + env(safe-area-inset-top, 0px));
  left: 12px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(0,0,0,.45);
}
.story-hit {
  position: absolute;
  top: 18%;
  bottom: 22%;
  z-index: 2;
  width: 32%;
  border: 0;
  background: transparent;
  color: transparent;
}
.story-hit-prev { left: 0; }
.story-hit-next { right: 0; }
.story-caption {
  position: absolute;
  z-index: 3;
  left: 16px;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  text-shadow: 0 1px 8px rgba(0,0,0,.85);
}
.story-caption h2 { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.story-caption p { margin: .25rem 0 0; line-height: 1.6; }
.story-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(0,0,0,.45);
  white-space: nowrap;
}
.story-chevron {
  width: .55rem;
  height: .55rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg);
}
.story-sheet {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: .6rem;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: #f6f1e8;
  color: #241c14;
  border-radius: 16px 16px 0 0;
}
.story-sheet p { margin: 0; text-align: center; }
.story-product {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
  color: #241c14;
  border: 1px solid #d9cbb8;
}
.story-toast {
  position: absolute;
  z-index: 6;
  left: 16px;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.8);
  text-align: center;
}
@media (min-width: 800px) {
  .story-frame {
    height: min(92dvh, 960px);
    width: calc(min(92dvh, 960px) * 9 / 16);
    max-width: calc(100% - 48px);
    border-radius: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-viewer, .story-frame, .story-sheet, .story-progress b { transition: none; animation: none; }
}
