/* ==========================================================================
   Hamidi Star LTD — site styles
   Clean product-brand look: white & cool-grey surfaces, pale-blue header,
   navy footer, Hamidi blue accent (from the original site) next to the gold
   logo, silver gradient banners, Montserrat
   (Vazirmatn for Persian). Right-to-left rules are at the end of the file.
   ========================================================================== */

:root {
  --ink: #0f1015;          /* header, footer, dark bands */
  --ink-2: #1a1c23;
  --text: #222;
  --muted: #6e6e73;
  --muted-dark: #a1a1a8;
  --bg: #fff;
  --grey: #f4f8fb;         /* alternate section background */
  --grey-2: #ececf0;
  --accent: #2b77a5;        /* Hamidi blue, deepened so white text / links pass contrast (4.9:1) */
  --accent-2: #1f6390;      /* hover */
  --accent-bright: #3c91c2; /* the original brand blue: underlines, dots, decoration */
  --accent-soft: rgba(60, 145, 194, .1);
  --accent-light: #6db9e6;  /* blue on dark backgrounds */
  --danger: #b4232c;
  --line: #e4e4e8;
  --line-dark: rgba(255, 255, 255, .12);
  --silver: linear-gradient(180deg, #f2f9ff 0%, #dcecf8 100%);
  --shadow: 0 2px 6px rgba(15, 16, 21, .04), 0 12px 32px -12px rgba(15, 16, 21, .16);
  --shadow-lg: 0 4px 10px rgba(15, 16, 21, .05), 0 28px 60px -20px rgba(15, 16, 21, .28);

  --f-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-body: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding-top: var(--header-h);
  font: 400 16px/1.7 var(--f-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .9em 1.6em; border-radius: 999px; border: 0;
  font: 600 .92rem/1 var(--f-body); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
  white-space: nowrap;
}
.btn .ico { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); box-shadow: 0 10px 24px -10px rgba(60, 145, 194, .7); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { padding: .7em 1.2em; font-size: .84rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; font-size: .92rem; color: var(--accent); text-decoration: none;
}
.link-arrow:hover { color: var(--accent-2); }
.link-arrow .ico { width: 1em; transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Header (black; pale in the light theme below) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: var(--ink); color: #fff; transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .5); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { color: inherit; flex: none; }
.brand img { height: 42px; width: auto; }
.nav { margin: 0 auto; }
.nav ul { display: flex; gap: 6px; }
.nav a {
  position: relative; display: block; padding: .5em .8em;
  font-weight: 600; font-size: .86rem; white-space: nowrap; text-decoration: none; color: rgba(255, 255, 255, .78); transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-contact, .nav-langs { display: none; }
.nav-toggle { display: none; }

/* Language switcher */
.lang { position: relative; flex: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: inherit; font-weight: 600; font-size: .8rem; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lang-btn:hover, .lang.is-open .lang-btn { border-color: currentColor; }
.lang-btn .ico { width: 17px; height: 17px; }
.lang-btn .lang-chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.lang.is-open .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 170px; padding: 6px; border-radius: 12px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: .9rem; font-weight: 500; }
.lang-menu a:hover { background: var(--grey); }
.lang-menu a[aria-current] { color: var(--accent); font-weight: 600; }
.lang-menu b { width: 24px; font-size: .72rem; letter-spacing: .06em; color: var(--muted); }

@media (max-width: 1360px) {
  .header-cta { display: none; }
}
@media (max-width: 1180px) {
  .lang { margin-inline-start: auto; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: inherit; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
  .nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: -1; margin: 0; padding: 24px var(--gutter) 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: var(--ink); color: #fff;
    opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease); visibility: hidden;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font: 700 clamp(1.5rem, 7vw, 2.1rem)/1.2 var(--f-display); padding: .45em 0; border-bottom: 1px solid var(--line-dark); color: #fff; }
  .nav a[aria-current="page"] { color: var(--accent); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
  .nav-langs a { font: 600 .9rem var(--f-body); padding: .5em 1em; border: 1px solid var(--line-dark); border-radius: 999px; color: inherit; }
  .nav-langs a[aria-current] { border-color: var(--accent-light); color: var(--accent-light); }
  .nav-contact { display: grid; gap: 12px; color: var(--muted-dark); }
  .nav-contact a { display: flex; align-items: center; gap: 10px; font: 500 .95rem var(--f-body); padding: 0; border: 0; color: var(--muted-dark); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Shared ---------- */
.eyebrow { margin: 0 0 1rem; font: 600 .78rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.hero .eyebrow { color: #fff; }
.dark { position: relative; background: var(--ink); color: #d9d9de; isolation: isolate; }

/* ---------- Hero (full-bleed banner) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(88vh, 820px); display: flex; align-items: center; background: var(--ink); color: #fff; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: kenburns 26s ease-out both; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 12, 20, .86) 0%, rgba(8, 12, 20, .62) 38%, rgba(8, 12, 20, .12) 72%, rgba(8, 12, 20, 0) 100%),
    linear-gradient(0deg, rgba(8, 12, 20, .55) 0%, transparent 35%),
    linear-gradient(180deg, rgba(8, 12, 20, .35) 0%, transparent 18%);
}
.hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: clamp(72px, 11vw, 140px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-copy { max-width: 780px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .7em; padding: .6em 1em; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .72rem; }
.hero .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(60, 145, 194, .3); }
.hero-title { font: 800 clamp(2.1rem, 4.4vw, 3.7rem)/1.1 var(--f-display); letter-spacing: -.025em; margin: .3rem 0 1.3rem; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero-title em, .page-title em, .h2 em { font-style: normal; color: var(--accent); }
.hero-title em { color: #fff; }
.hero-title em { color: #fff; background: linear-gradient(var(--accent-bright), var(--accent-bright)) 0 94% / 100% .09em no-repeat; padding-bottom: .04em; }
.hero-text { font-size: clamp(1rem, 1.3vw, 1.18rem); color: rgba(255, 255, 255, .85); max-width: 33em; text-wrap: pretty; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2rem; }
.hero-modes { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .78); font-size: .85rem; font-weight: 500; }
.hero-modes li { display: inline-flex; align-items: center; gap: .5em; }
.hero-modes .ico { width: 1.2em; height: 1.2em; color: #fff; opacity: .9; }

.ticket {
  flex: none; width: 340px; padding: 18px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
}
.ticket-top { display: flex; justify-content: space-between; align-items: center; color: rgba(255, 255, 255, .8); font-size: .76rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 14px; }
.ticket-dot { width: 8px; height: 8px; border-radius: 50%; background: #2bd47d; animation: ping 2s infinite; }
.ticket-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.ticket-route small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ticket-route strong { font-size: 1.2rem; font-weight: 700; }
.ticket-route > div:last-child { text-align: end; }
.ticket-line { position: relative; height: 28px; }
.ticket-line span { position: absolute; inset: 50% 0 auto; border-top: 2px dashed rgba(255, 255, 255, .35); }
.ticket-mover { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(60, 145, 194, .25); animation: travel 6s var(--ease) infinite; }
.ticket-mover .ico { position: absolute; inset: 5px; width: 18px; height: 18px; color: #fff; opacity: 0; animation: mode-cycle 18s infinite; }
.ticket-mover .ico:nth-child(2) { animation-delay: 6s; }
.ticket-mover .ico:nth-child(3) { animation-delay: 12s; }
.ticket-bottom { text-wrap: balance; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .75); font-size: .82rem; font-weight: 500; line-height: 1.5; }

/* ---------- Mode tiles ("shop by category") ---------- */
.modes { padding: clamp(48px, 6vw, 72px) 0; background: var(--bg); }
.modes-title { text-align: center; font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--f-display); color: var(--ink); margin-bottom: 28px; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mode {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 12px 20px;
  border-radius: 10px; background: var(--grey); text-decoration: none; font-size: .86rem; font-weight: 500; color: var(--text);
  transition: background-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.mode:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-3px); }
.mode-icon { display: grid; place-items: center; width: 64px; height: 64px; color: var(--ink); transition: color .3s, transform .4s var(--ease); }
.mode-icon .ico { width: 42px; height: 42px; stroke-width: 1.4; }
.mode:hover .mode-icon { color: var(--accent); transform: scale(1.06); }

/* ---------- Media frame ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--grey); box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.media:hover img { transform: scale(1.04); }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }
.media--band { aspect-ratio: 3 / 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7.5vw, 96px) 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-lead { color: var(--muted); font-size: 1rem; margin: 14px auto 0; max-width: 40em; }
.section-lead .link-arrow { margin-left: .4em; }
.dark .section-lead { color: var(--muted-dark); }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 .9rem; font: 600 .76rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.kicker--dark { color: var(--accent-light); }
.kicker-ico { width: 20px; height: 20px; }
.h2 { font: 700 clamp(1.75rem, 3.2vw, 2.6rem)/1.18 var(--f-display); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.dark .h2 { color: #fff; }
.dark .h2 em { color: var(--accent-light); }
.h2--sm { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0 0 1em; display: grid; gap: .4em; }
.prose ul li { padding-left: 1.3em; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose h3 { font: 700 1.1rem var(--f-display); margin: 1.4em 0 .5em; color: var(--ink); }
.prose a { color: var(--accent); }
.prose--lg { font-size: 1.05rem; }

/* ---------- Stats ---------- */
.stats { background: var(--grey); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 40px; padding-bottom: 40px; }
.stat { padding: 28px 20px; border-radius: 10px; background: #fff; text-align: center; }
.stat strong { display: block; font: 800 clamp(1.9rem, 3.4vw, 2.7rem)/1 var(--f-display); letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .88rem; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.intro-copy .h2 { margin-bottom: 1.2rem; }
.intro-copy .prose { color: var(--muted); margin-bottom: 1.8rem; }
.promises { display: grid; gap: 10px; margin-bottom: 1.8rem; }
.promises li { display: grid; grid-template-columns: 40px 150px 1fr; align-items: baseline; gap: 12px; padding: 16px 20px; border-radius: 10px; background: var(--grey); }
.promise-n { color: var(--accent); font-weight: 700; font-size: .85rem; }
.promises strong { font-weight: 700; color: var(--ink); }
.promises li > span:last-child { color: var(--muted); font-size: .92rem; }

/* ---------- Image cards (products, proposals) ---------- */
.services-home { background: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: box-shadow .35s, transform .35s var(--ease); }
.project:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--grey); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project-media img { transform: scale(1.05); }
.project figcaption { padding: 20px 22px 24px; }
.project h3 { font: 700 1.05rem/1.3 var(--f-display); color: var(--ink); margin: 10px 0 6px; }
.project p { color: var(--muted); font-size: .9rem; margin: 0; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- CTA (silver gradient panel) ---------- */
.cta { padding: clamp(64px, 8vw, 104px) 0; background: #fff; }
.cta-box {
  display: grid; justify-items: center; gap: 24px; text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); border-radius: 20px; background: var(--silver);
}
.cta .h2 { margin-bottom: .6rem; }
.cta-copy p { margin: 0 auto; font-size: 1.02rem; max-width: 34em; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; }
.cta-actions .btn--dark { background: var(--accent); }
.cta-actions .btn--dark:hover { background: var(--accent-2); }
.cta-phone { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; color: var(--ink); }
.cta-phone .ico { color: var(--accent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); background: var(--silver); text-align: center; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 2px, transparent 2px 10px); -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); opacity: .6; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-title { font: 800 clamp(2rem, 4.6vw, 3.4rem)/1.12 var(--f-display); letter-spacing: -.02em; color: var(--ink); max-width: 18em; margin: 0 auto 1.1rem; text-wrap: balance; }
.page-lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: #55565c; max-width: 40em; margin: 0 auto; }

/* ---------- About ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.story-copy .prose { color: var(--muted); }
.story-visual .media { max-width: 460px; margin-inline-start: auto; }
/* ---------- Alternating image + text blocks (home services, import/export) ---------- */
.service-tabs { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.service-tabs ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; }
.service-tabs ul::-webkit-scrollbar { display: none; }
.service-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1.1em; border-radius: 999px; border: 1px solid #c6c6c6; white-space: nowrap; text-decoration: none; font-weight: 500; font-size: .84rem; color: var(--text); transition: all .25s; }
.service-tabs a .ico { color: var(--accent); width: 17px; height: 17px; }
.service-tabs a:hover, .service-tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.service-tabs a.is-active .ico, .service-tabs a:hover .ico { color: #fff; }
.service-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.service-block:first-child { padding-top: 0; }
.service-block:last-child { border-bottom: 0; padding-bottom: 0; }
.service-block.is-flipped .service-visual { order: 2; }
.service-placeholder { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--silver); color: var(--ink); }
.service-placeholder .ico { width: 30%; height: 30%; stroke-width: 1; opacity: .8; }
.service-copy .h2 { margin-bottom: 1rem; }
.service-copy .prose { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Contact ---------- */
.contact { background: var(--grey); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 10px; margin-bottom: 32px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px; background: #fff; text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease); word-break: break-word; }
a.contact-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.contact-card small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card > span:last-child { font-weight: 600; color: var(--ink); }
.cc-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.cc-icon .ico { width: 20px; height: 20px; }

.form-card { padding: clamp(26px, 4vw, 44px); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); }
.form-title { font: 700 1.5rem var(--f-display); color: var(--ink); margin-bottom: 4px; }
.form-sub { color: var(--muted); font-size: .88rem; margin-bottom: 26px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #d2d2d7; background: #fff;
  font: inherit; font-size: .95rem; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 16, 21, .08); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; }
.alert { padding: 12px 16px; border-radius: 10px; background: #fdecec; color: #8a0b0b; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-success { text-align: center; padding: 30px 0; }
.success-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 20px; }
.success-icon .ico { width: 34px; height: 34px; stroke-width: 2.2; }
.form-success h2 { font: 700 1.5rem var(--f-display); color: var(--ink); margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 28em; margin: 0 auto 20px; }
.map-section { padding-top: clamp(48px, 6vw, 72px); background: var(--bg); }
.map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.map-head .h2 { margin: 0; }
.map-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.map-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .86rem/1 var(--f-body, inherit); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.map-tabs button .ico { width: 16px; height: 16px; color: var(--accent); }
.map-tabs button:hover { border-color: var(--accent); }
.map-tabs button[aria-selected="true"] { background: var(--navy, var(--ink)); border-color: var(--navy, var(--ink)); color: #fff; }
.map-tabs button[aria-selected="true"] .ico { color: var(--gold-light, #fff); }
.map { line-height: 0; height: 440px; background: var(--grey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%239aa9b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / 48px no-repeat; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6); }
@media (max-width: 640px) { .map { height: 340px; } .map-tabs button { padding: 8px 12px; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--muted-dark); padding-top: clamp(56px, 7vw, 88px); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { display: inline-block; width: 210px; margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; background: #fff; }
.footer-logo img { width: 100%; height: auto; }
.footer-brand p { max-width: 26em; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .25s; }
.socials a:hover { background: var(--accent); }
.socials .ico { width: 18px; height: 18px; }
.footer-h { font: 700 .82rem var(--f-body); color: #fff; margin-bottom: 16px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a, .footer-contact a { text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; word-break: break-word; }
.footer-contact .ico { color: #fff; width: 17px; height: 17px; margin-top: 3px; opacity: .7; }
.footer-contact strong { color: #fff; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--line-dark); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-tag { text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: .72rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .4); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 28px; height: 28px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(10, 11, 15, .92); opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1200px, 100%); max-height: 82vh; border-radius: 10px; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.lightbox p { color: #fff; text-align: center; margin: 14px 0 0; }
.lightbox button { position: absolute; top: 18px; inset-inline-end: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31, 181, 107, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(31, 181, 107, 0); } }
@keyframes travel { 0% { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: calc(100% - 28px); opacity: 0; } }
@keyframes mode-cycle { 0%, 33.3% { opacity: 1; } 33.4%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticket-mover { left: calc(50% - 14px); }
  .ticket-mover .ico:first-child { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .intro-grid, .story-grid, .contact-grid, .service-block { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .project-grid, .project-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .service-block.is-flipped .service-visual { order: 0; }
  .service-visual { max-width: 520px; }
  .story-visual .media { margin: 0; max-width: 420px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { min-height: 0; }
  .hero-shade { background: linear-gradient(180deg, rgba(8, 12, 20, .62), rgba(8, 12, 20, .78) 45%, rgba(8, 12, 20, .88)); }
  .hero-img { object-position: 78% 50%; }
  .ticket { width: 100%; }
  .project-grid, .project-grid--4, .fields { grid-template-columns: minmax(0, 1fr); }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promises li { grid-template-columns: 32px 1fr; }
  .promises li > span:last-child { grid-column: 2; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .wa-float { width: 50px; height: 50px; inset-inline-end: 14px; bottom: 14px; }
  .cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
}

/* ==========================================================================
   Light theme (body.theme-light) — pale header with the gold logo, navy footer.
   Toggled in Admin → Settings → "Header & footer style". Remove this block
   (or pick "Dark") to get the original black header/footer back.
   ========================================================================== */
.theme-light {
  --ice: #ecf7ff;      /* original site's light section blue */
  --ice-2: #dff0fc;
  --ice-line: #c4dff0;
  --navy: #0f1e33;
}
.theme-light .site-header {
  background: linear-gradient(180deg, var(--ice) 0%, var(--ice-2) 100%);
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ice-line);
}
.theme-light .site-header.is-scrolled { box-shadow: inset 0 -1px 0 var(--ice-line), 0 8px 24px -12px rgba(15, 30, 51, .35); }
.theme-light .nav a { color: #3a4556; }
.theme-light .nav a:hover, .theme-light .nav a[aria-current="page"] { color: var(--ink); }
.theme-light .lang-btn { border-color: var(--ice-line); background: rgba(255, 255, 255, .55); }
.theme-light .lang-btn:hover, .theme-light .lang.is-open .lang-btn { border-color: var(--ink); }

@media (max-width: 1180px) {
  .theme-light .nav-toggle { background: rgba(15, 30, 51, .08); }
  .theme-light .nav { background: var(--ice); color: var(--ink); }
  .theme-light .nav a { color: var(--ink); border-bottom-color: var(--ice-line); }
  .theme-light .nav a[aria-current="page"] { color: var(--accent); }
  .theme-light .nav-contact, .theme-light .nav-contact a { color: #4a5568; }
  .theme-light .nav-langs a { border-color: var(--ice-line); }
  .theme-light .nav-langs a[aria-current] { border-color: var(--accent); color: var(--accent); }
}

.theme-light .site-footer { background: var(--navy); color: #a9b6c8; }
.theme-light .footer-bottom { border-top-color: rgba(255, 255, 255, .1); }
.theme-light .dark { background: var(--navy); }
.theme-light .footer-logo { background: transparent; padding: 0; }

/* ---------- Products ---------- */
.products-home { background: var(--grey); }
.product { display: flex; flex-direction: column; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a::after { content: ""; position: absolute; inset: 0; }
.product { position: relative; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.product-foot .link-arrow { font-size: .86rem; }
.product-foot .link-arrow:only-child, .product-price + .link-arrow { margin-inline-start: auto; }
.product-price { font-weight: 700; color: var(--ink); font-size: .92rem; }
.product-price--lg { font-size: 1.25rem; color: var(--accent); margin: 0 0 14px; }
.specs { margin: 0 0 28px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.specs dt { color: var(--muted); font-weight: 500; }
.specs dd { margin: 0; color: var(--ink); font-weight: 600; }
.specs dt:empty { display: none; }
.specs dt:empty + dd { grid-column: 1 / -1; }
a.chip { text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter { padding: .55em 1.2em; border-radius: 999px; border: 1px solid #c6c6c6; background: #fff; color: var(--text); font-weight: 500; font-size: .86rem; text-decoration: none; transition: all .25s; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-note { text-align: center; color: var(--muted); }

.product-page { padding-top: clamp(32px, 5vw, 56px); }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--accent); text-decoration: none; font-weight: 600; }
.crumbs span { margin: 0 .4em; }
.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-main { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--grey); box-shadow: var(--shadow); cursor: zoom-in; }
.product-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.product-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--grey); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.product-thumbs button:hover { opacity: 1; }
.product-thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font: 700 clamp(1.6rem, 3vw, 2.3rem)/1.18 var(--f-display); letter-spacing: -.015em; color: var(--ink); margin: 14px 0 10px; }
.product-info .prose { color: var(--muted); margin-bottom: 28px; }
.section--grey { background: var(--grey); }

@media (max-width: 860px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
}
.product-body .chip { align-self: flex-start; }

/* ==========================================================================
   Hamidi Star components
   ========================================================================== */
.center { text-align: center; }
.muted { color: var(--muted); }
.project-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .project-grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* Proposal tiles */
.prop-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); transition: background-color .3s, color .3s; }
.project:hover .prop-icon { background: var(--accent); color: #fff; }
.prop-icon .ico { width: 22px; height: 22px; }

/* Chairman message (about) */
.chairman { background: var(--grey); }
.chairman-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.media--chair { display: block; aspect-ratio: 4 / 3; cursor: zoom-in; }
.chairman-copy .h2 { margin-bottom: 1.4rem; }
.quote { position: relative; margin: 0; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.quote-mark { position: absolute; top: -18px; inset-inline-start: 24px; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--accent); color: #fff; }
.quote .prose { color: var(--text); font-style: italic; }
.quote footer { display: grid; gap: 2px; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.quote footer strong { color: var(--ink); font-size: 1.02rem; }


/* Contact people + proposal contact */
.contact-h { font: 700 1.05rem var(--f-display); color: var(--ink); margin: 0 0 14px; }
.contact-visual { margin-bottom: 18px; }
.people { display: grid; gap: 10px; }
.person-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: #fff; margin-bottom: 10px; }
.people .person-card { margin: 0; }
.person-card > div { display: grid; gap: 2px; min-width: 0; }
.person-card strong { color: var(--ink); font-weight: 700; }
.person-card .muted { font-size: .86rem; }
.person-avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--ink); color: var(--accent-light); font: 700 .95rem var(--f-display); }
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.person-links a { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); text-decoration: none; word-break: break-word; }
.person-links a:hover { color: var(--accent); }
.person-links .ico { width: 15px; height: 15px; color: var(--accent); }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; padding-right: 38px; }

/* Footer language links */
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.footer-langs a[aria-current] { color: #fff; font-weight: 600; }
bdi { unicode-bidi: isolate; }

@media (max-width: 960px) {
  .chairman-grid { grid-template-columns: minmax(0, 1fr); }
  .chairman-visual { max-width: 520px; }
}
@media (max-width: 640px) {
  .brand img { height: 34px; }
}

/* ==========================================================================
   Persian (right-to-left)
   ========================================================================== */
html[lang="fa"] {
  --f-display: "Vazirmatn", "Montserrat", Tahoma, sans-serif;
  --f-body: "Vazirmatn", "Montserrat", Tahoma, sans-serif;
}
html[lang="fa"] body { line-height: 1.9; }
html[lang="fa"] .hero-title, html[lang="fa"] .page-title, html[lang="fa"] .h2, html[lang="fa"] .product-title { letter-spacing: 0; line-height: 1.45; }
html[lang="fa"] .eyebrow, html[lang="fa"] .kicker, html[lang="fa"] .chip, html[lang="fa"] .logos-title, html[lang="fa"] .footer-tag,
html[lang="fa"] .contact-card small, html[lang="fa"] .office-line small, html[lang="fa"] .ticket-route small { letter-spacing: 0; }
html[lang="fa"] .quote .prose { font-style: normal; }
[dir="rtl"] .btn .ico:last-child, [dir="rtl"] .link-arrow .ico, [dir="rtl"] .office-map .ico { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .ico:last-child { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .link-arrow:hover .ico { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] a.contact-card:hover { transform: translateX(-4px); }
[dir="rtl"] .section-lead .link-arrow { margin-left: 0; margin-right: .4em; }
[dir="rtl"] .prose ul li { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .prose ul li::before { left: auto; right: 0; }
[dir="rtl"] .hero-shade {
  background:
    linear-gradient(270deg, rgba(8, 12, 20, .86) 0%, rgba(8, 12, 20, .62) 38%, rgba(8, 12, 20, .12) 72%, rgba(8, 12, 20, 0) 100%),
    linear-gradient(0deg, rgba(8, 12, 20, .55) 0%, transparent 35%),
    linear-gradient(180deg, rgba(8, 12, 20, .35) 0%, transparent 18%);
}
[dir="rtl"] .hero-img { object-position: 30% 50%; }
[dir="rtl"] .ticket-mover { animation-name: travel-rtl; }
@keyframes travel-rtl { 0% { left: calc(100% - 28px); opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: 0; opacity: 0; } }
[dir="rtl"] .field select { background-position: left 12px center; padding-right: 14px; padding-left: 38px; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { text-align: right; }
@media (max-width: 640px) {
  [dir="rtl"] .hero-shade { background: linear-gradient(180deg, rgba(8, 12, 20, .62), rgba(8, 12, 20, .78) 45%, rgba(8, 12, 20, .88)); }
}

/* ==========================================================================
   Design refresh — colour roles
   Navy = structure (text, footer) · Hamidi blue = action (buttons, links)
   Logo gold = distinction (labels, numbers, hairlines, the star motif)
   ========================================================================== */
:root {
  --ink: #0b1a2c;
  --ink-2: #13263f;
  --text: #26313d;
  --muted: #5d6977;
  --navy: #10243f;
  --footer: #08131f;
  --grey: #f2f7fb;           /* "mist": the cool alternate section colour */
  --sand: #fbf8f2;           /* warm alternate, used sparingly next to gold */
  --line: #e1e8ef;
  --gold: #b8862b;
  --gold-text: #8f6316;      /* 5.3:1 on white */
  --gold-light: #e2bd6a;     /* on navy */
  --gold-grad: linear-gradient(135deg, #e6c36f 0%, #c99a3c 45%, #9e6c1d 100%);
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4l13.6 30.4L96 37.6 71.5 60.2 78.4 93 50 76.2 21.6 93l6.9-32.8L4 37.6l32.4-3.2z' fill='none' stroke='%23b8862b' stroke-width='3'/%3E%3C/svg%3E");
  --star-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4l13.6 30.4L96 37.6 71.5 60.2 78.4 93 50 76.2 21.6 93l6.9-32.8L4 37.6l32.4-3.2z' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E");
  --shadow: 0 2px 6px rgba(11, 26, 44, .05), 0 14px 34px -14px rgba(11, 26, 44, .2);
  --shadow-lg: 0 4px 12px rgba(11, 26, 44, .06), 0 30px 64px -24px rgba(11, 26, 44, .32);
}
::selection { background: rgba(60, 145, 194, .2); }

/* Buttons: blue with depth; ghost on dark; white on the blue CTA */
.btn--primary { background: linear-gradient(135deg, #3184b5 0%, #2b77a5 50%, #22679a 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset; }
.btn--primary:hover { background: linear-gradient(135deg, #2a77a6, #1f6390); box-shadow: 0 12px 26px -12px rgba(31, 99, 144, .8); }

/* Small labels above headings: gold with a short rule */
.kicker { color: var(--gold-text); gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gold-grad); }
.section-head .kicker, .modes-title + .kicker { justify-content: center; }
.kicker--dark { color: var(--gold-light); }
.kicker-ico { color: var(--accent); }
.eyebrow { color: var(--gold-text); }

/* Header: pale blue with a fine gold hairline */
.theme-light .site-header { background: linear-gradient(180deg, #f6fbff 0%, #e9f4fc 100%); box-shadow: none; }
.site-header::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(184, 134, 43, .7) 20%, rgba(226, 189, 106, .9) 50%, rgba(184, 134, 43, .7) 80%, transparent); opacity: .75; }
.theme-light .site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11, 26, 44, .45); }

/* Hero: navy-tinted shade, gold details */
.hero { background: var(--navy); }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 20, 38, .9) 0%, rgba(8, 20, 38, .66) 40%, rgba(8, 20, 38, .14) 74%, rgba(8, 20, 38, 0) 100%),
    linear-gradient(0deg, rgba(8, 20, 38, .6) 0%, transparent 38%),
    linear-gradient(180deg, rgba(8, 20, 38, .35) 0%, transparent 18%);
}
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--gold-light); box-shadow: 0 0 0 4px rgba(226, 189, 106, .25); }
.hero-title em { background: var(--gold-grad) 0 94% / 100% .09em no-repeat; }
.ticket-mover { background: var(--gold-grad); box-shadow: 0 0 0 5px rgba(226, 189, 106, .25); }

/* ---------- Brand banner carousel (overlaps the hero, always rotating) ---------- */
.banners { background: #fff; }
.banners .carousel { max-width: 1040px; margin-inline: auto; }
.banners .carousel-bar { justify-content: space-between; }
.carousel { position: relative; padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 34px 80px -34px rgba(8, 20, 38, .55), 0 2px 8px rgba(8, 20, 38, .06); }
.carousel-stage { position: relative; aspect-ratio: 2120 / 826; overflow: hidden; border-radius: 15px; background: var(--grey); touch-action: pan-y; }
.c-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: scale(1.025); transition: opacity .9s var(--ease), transform 6s ease-out, visibility 0s .9s; }
.c-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .9s var(--ease), transform 6s ease-out, visibility 0s; }
.c-slide > a, .c-fit { display: block; width: 100%; height: 100%; }
.carousel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 16px 14px 8px; }
.carousel-title { margin-inline-end: auto; font: 700 clamp(1.05rem, 1.6vw, 1.3rem)/1.2 var(--f-display); color: var(--ink); }
.carousel-title em { font-style: normal; color: var(--accent); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { position: relative; width: 38px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.carousel-dots button::before, .carousel-dots span { content: ""; position: absolute; inset-inline-start: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.carousel-dots button::before { width: 100%; background: var(--line); }
.carousel-dots span { width: 0; background: var(--gold-grad); }
.carousel-dots [aria-current] span { width: 100%; animation: fillbar var(--dur, 5s) linear both; }
.carousel.is-paused .carousel-dots [aria-current] span { animation-play-state: paused; }
@keyframes fillbar { from { width: 0; } to { width: 100%; } }
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.carousel-btn .ico { width: 18px; height: 18px; }
.carousel-btn--prev .ico { transform: scaleX(-1); }
[dir="rtl"] .carousel-btn--prev .ico { transform: none; }
[dir="rtl"] .carousel-btn--next .ico { transform: scaleX(-1); }

/* ---------- Uncropped images ---------- */
.fit { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--grey); isolation: isolate; }
.fit-bg { position: absolute; inset: -24px; z-index: -1; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(22px) saturate(1.15); opacity: .55; }
.fit-img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.project-media { aspect-ratio: 4 / 3; }
.project:hover .project-media .fit-img { transform: scale(1.04); }
.project-media .fit-img, .product-main .fit-img { width: 100%; height: 100%; object-fit: contain; }
.project-media .fit-bg, .product-main .fit-bg { object-fit: cover; }
.media--natural { display: block; aspect-ratio: auto; }
.media--natural img { height: auto; }
a.media--natural { cursor: zoom-in; }
.product-main .fit { display: block; }

/* ---------- Proposal tiles ---------- */
.modes { background: #fff; padding-top: clamp(24px, 3vw, 40px); }
.modes-title::after { content: ""; display: block; width: 46px; height: 3px; margin: 14px auto 0; border-radius: 3px; background: var(--gold-grad); }
.mode { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 12px 22px; }
.mode-icon { width: 66px; height: 66px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.mode-icon .ico { width: 32px; height: 32px; stroke-width: 1.5; }
.mode-label { font-weight: 600; color: var(--ink); }
.mode:hover { border-color: rgba(60, 145, 194, .45); background: #fff; box-shadow: var(--shadow); }
.mode:hover .mode-icon { background: var(--accent); color: #fff; }

/* ---------- Key figures ---------- */
.stats { background: linear-gradient(180deg, var(--grey), #fff); }
.stat { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gold-grad); }
.stat strong { color: var(--ink); }
.stat strong bdi { background: linear-gradient(180deg, var(--ink), #24476e); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Intro ---------- */
.intro-visual { position: relative; }
.intro-badge { position: absolute; inset-inline-end: -16px; bottom: -16px; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--gold-grad); color: #fff; box-shadow: 0 0 0 8px #fff, var(--shadow); }
.intro-badge .ico { width: 38px; height: 38px; stroke-width: 1.5; }
.promises li { background: #fff; border: 1px solid var(--line); }
.promise-n { color: var(--gold-text); }

/* ---------- Services / products backgrounds ---------- */
.services-home { background: var(--sand); }
.services-home .service-block { border-color: rgba(184, 134, 43, .18); }
.products-home { background: var(--grey); }
.chip { background: rgba(43, 119, 165, .09); color: var(--accent-2); }

/* ---------- Partners ---------- */
.partners-section { background: #fff; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.partner { display: flex; flex-direction: column; align-items: center; gap: 14px; height: 100%; padding: 26px 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
a.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(60, 145, 194, .4); }
.partner-logo { display: grid; place-items: center; width: 100%; height: 120px; }
.partner-logo img { max-width: 100%; max-height: 120px; width: auto; height: auto; object-fit: contain; transition: transform .4s var(--ease); }
a.partner:hover .partner-logo img { transform: scale(1.05); }
.partner-name { display: inline-flex; align-items: center; gap: 6px; padding-top: 12px; width: 100%; justify-content: center; border-top: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--ink); text-align: center; }
.partner-ext { width: 14px; height: 14px; color: var(--accent); }

/* ---------- Gallery (masonry, nothing cropped) ---------- */
.gallery-section { background: #fff; }
.gallery-grid { columns: 4 230px; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin: 0 0 18px; }
.gallery-item a { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--grey); box-shadow: var(--shadow); cursor: zoom-in; }
.gallery-item img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-zoom { position: absolute; inset-inline-end: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.gallery-zoom .ico { width: 16px; height: 16px; }
.gallery-item a:hover .gallery-zoom, .gallery-item a:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.gallery-item figcaption { padding: 8px 2px 0; font-size: .84rem; font-weight: 500; color: var(--muted); }

/* ---------- Chairman ---------- */
.chairman { background: var(--sand); }
.quote-mark { background: var(--gold-grad); }
.media--chair { aspect-ratio: 3 / 2; }

/* ---------- Page heroes: soft blue with the gold star of the logo ---------- */
.page-hero { background: linear-gradient(180deg, #f3f9fe 0%, #e3f0fa 100%); }
.page-hero::before { content: ""; position: absolute; top: 50%; inset-inline-end: max(4vw, calc(50% - 680px)); width: clamp(160px, 22vw, 300px); aspect-ratio: 1; translate: 0 -50%; background: var(--star) center / contain no-repeat; opacity: .16; pointer-events: none; }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.page-hero .eyebrow::before, .page-hero .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gold-grad); }

/* ---------- Call to action: the one strong blue moment ---------- */
.cta { background: #fff; }
.partners-section + .cta, .gallery-section + .cta, .section--grey + .cta { padding-top: 0; }
.section--grey + .cta { background: var(--grey); }
.cta-box { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(125deg, #17507c 0%, #22679a 45%, #3184b5 100%); color: #fff; box-shadow: var(--shadow-lg); }
.cta-box::before { content: ""; position: absolute; z-index: -1; inset-inline-end: -30px; top: -50px; width: 260px; aspect-ratio: 1; background: var(--star-white) center / contain no-repeat; opacity: .14; transform: rotate(12deg); }
.cta-box::after { content: ""; position: absolute; z-index: -1; inset-inline-start: -120px; bottom: -160px; width: 380px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(109, 185, 230, .35), transparent 70%); }
.cta .h2 { color: #fff; }
.cta .h2 em { color: var(--gold-light); }
.cta-copy p { color: rgba(255, 255, 255, .85); }
.cta-actions .btn--dark { background: #fff; color: var(--accent-2); }
.cta-actions .btn--dark:hover { background: var(--sand); color: var(--ink); }
.cta-actions .btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.cta-actions .btn--line:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.cta-phone { color: #fff; }
.cta-phone .ico { color: var(--gold-light); }

/* ---------- Offices: light band, clearly apart from the dark footer ---------- */
.offices-band { background: linear-gradient(180deg, #eaf3fa 0%, #f5f9fc 100%); border-top: 1px solid var(--line); }
.offices-band .h2 { color: var(--ink); }
.office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.office-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11, 26, 44, .04); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.office-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(60, 145, 194, .35); }
.office-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.office-head h3 { font: 700 1.1rem var(--f-display); color: var(--ink); }
.office-n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-grad); color: #fff; font-weight: 700; font-size: .82rem; }
.office-line { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .9rem; line-height: 1.55; color: var(--text); word-break: break-word; }
.office-line .ico { width: 17px; height: 17px; margin-top: 3px; color: var(--accent); }
.office-line small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.office-line a { color: var(--ink); font-weight: 600; text-decoration: none; }
.office-line a:hover { color: var(--accent); }
.office-map { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: .85rem; text-decoration: none; }
.office-map .ico { width: 15px; height: 15px; }
.office-map:hover { color: var(--accent-2); }

/* ---------- Footer: darkest navy, gold hairline ---------- */
.site-footer, .theme-light .site-footer { background: radial-gradient(90% 70% at 15% 0%, #12263f 0%, var(--footer) 65%); color: #a7b4c4; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gold-grad); }
.footer-logo, .theme-light .footer-logo { padding: 0; background: none; }
.footer-h { color: var(--gold-light); letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.socials a:hover { background: var(--accent); }
.footer-tag { color: var(--gold-light); }
.footer-bottom, .theme-light .footer-bottom { border-top-color: rgba(255, 255, 255, .08); }

/* ---------- Contact, forms ---------- */
.contact { background: var(--grey); }
.person-avatar { background: var(--navy); color: var(--gold-light); }
.form-card { border-top: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gold-grad) border-box; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(60, 145, 194, .15); }
.success-icon { background: var(--gold-grad); }

@media (max-width: 960px) {
  .carousel-bar { padding-inline: 6px; }
}
@media (max-width: 640px) {
  .carousel { padding: 6px; border-radius: 16px; }
  .carousel-stage { border-radius: 11px; }
  .carousel-title { width: 100%; }
  .carousel-nav { margin-inline-start: auto; }
  .gallery-grid { columns: 2; column-gap: 10px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .partner-logo { height: 90px; }
  .partner-logo img { max-height: 90px; }
  .intro-badge { width: 66px; height: 66px; inset-inline-end: 10px; bottom: -14px; }
  .page-hero::before { opacity: .1; }
}
[dir="rtl"] .hero-shade {
  background:
    linear-gradient(270deg, rgba(8, 20, 38, .9) 0%, rgba(8, 20, 38, .66) 40%, rgba(8, 20, 38, .14) 74%, rgba(8, 20, 38, 0) 100%),
    linear-gradient(0deg, rgba(8, 20, 38, .6) 0%, transparent 38%),
    linear-gradient(180deg, rgba(8, 20, 38, .35) 0%, transparent 18%);
}
@media (prefers-reduced-motion: reduce) {
  .c-slide, .c-slide.is-active { transform: none; }
}

/* About: the photo stays in view while the long story scrolls */
.story-grid { align-items: start; }
.story-visual { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) { .story-visual { position: static; } }
@media (max-width: 640px) {
  .hero .eyebrow { letter-spacing: .06em; font-size: .64rem; line-height: 1.4; }
}

/* ---------- Proposal tiles: one-line description ---------- */
.mode { display: flex; flex-direction: column; align-items: center; height: 100%; }
.mode-sub { display: block; margin-top: 6px; font-size: .8rem; line-height: 1.4; color: var(--muted); text-align: center; }

/* ---------- Narrow screens: let long words (Russian) wrap instead of being cut off ---------- */
.hero-copy, .product-body, .service-copy, .intro-copy { min-width: 0; }
.hero-title, .page-title, .h2, .project h3, .product-title { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 960px) {
  .hero-copy { width: 100%; }
}
@media (max-width: 520px) {
  .project-grid, .project-grid--4 { grid-template-columns: minmax(0, 1fr); }
  html[lang="ru"] .hero-title { font-size: 1.85rem; }
}
