/* ==========================================================================
   Афсонаи Шаҳр — site styles
   --------------------------------------------------------------------------
   1. Tokens & base
   2. Layout helpers, buttons, section headings
   3. Top bar, header, mobile menu
   4. Hero slider (home) & page hero (inner pages)
   5. Feature cards
   6. Block (project) cards
   7. Service cards, team, about split
   8. Testimonials
   9. Contact (cards, form, map)
   10. Project detail (info, calculator, gallery, prose)
   11. CTA band, footer, scroll-top
   12. Motion
   ========================================================================== */

/* 1. Tokens & base
   ========================================================================== */
:root {
  --ink: #0f141b;
  --ink-2: #171e28;
  --ink-3: #232d3b;
  --gold: #e3ab00;
  --gold-light: #f6c945;
  --gold-dark: #a87c00;
  --gold-tint: #fbf3d9;
  --bg: #ffffff;
  --surface: #f6f4ee;
  --text: #27303b;
  --muted: #68717d;
  --line: #e7e3d9;

  --font-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px -4px rgba(15, 20, 27, .12);
  --shadow: 0 18px 40px -22px rgba(15, 20, 27, .28);
  --shadow-lg: 0 34px 70px -30px rgba(15, 20, 27, .45);

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 32px);
  --section: clamp(64px, 9vw, 116px);
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
iframe { border: 0; display: block; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--gold); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* 2. Layout helpers, buttons, section headings
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section:not(.section--surface):not(.section--dark) + .section--tight { padding-top: 0; }

.section--dark {
  position: relative;
  isolation: isolate;
  color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(227, 171, 0, .16), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(227, 171, 0, .08), transparent 60%),
    var(--ink);
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-light); }

.section-title {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.section-lead {
  margin-top: 16px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
}
.section--dark .section-lead { color: rgba(255, 255, 255, .68); }

.section-foot { margin-top: clamp(36px, 5vw, 56px); text-align: center; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* Buttons */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .fa { font-size: 15px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(227, 171, 0, .75); background: var(--gold-light); }
.btn:hover .fa-long-arrow-right { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { background: var(--ink-3); box-shadow: 0 14px 28px -14px rgba(15, 20, 27, .7); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; pointer-events: none; }

/* 3. Top bar, header, mobile menu
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
}
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.topbar__info li { display: inline-flex; align-items: center; gap: 8px; }
.topbar__info .fa { color: var(--gold); font-size: 14px; }
.topbar__side { display: flex; align-items: center; gap: 18px; }
.topbar a:hover { color: #fff; }

.socials { display: flex; align-items: center; gap: 6px; }
.socials a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.socials a:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }

.lang { display: flex; align-items: center; gap: 8px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .16); }
.lang a { display: block; border-radius: 3px; overflow: hidden; opacity: .55; transition: opacity .2s; }
.lang a:hover, .lang a.is-active { opacity: 1; }
.lang img { width: 24px; height: 16px; object-fit: cover; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(15, 20, 27, .35);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.header.is-scrolled .header__inner { height: 66px; }

.logo { flex: none; display: block; }
.logo img { width: 186px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.nav__link {
  position: relative;
  display: block;
  padding: 10px 0;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--gold-dark); }

.nav__extra { display: none; }

.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.burger span, .burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span { top: 21px; }
.burger::before { top: 14px; }
.burger::after { top: 28px; }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header__cta span { display: none; }
  .header__cta { width: 46px; min-height: 46px; padding: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .topbar__info li:not(.topbar__phone) { display: none; }
  .burger { display: block; }
  .logo img { width: 160px; }
  .header.is-scrolled .header__inner { height: var(--header-h); }

  /* absolute, not fixed: the header's backdrop-filter makes it the containing block */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    padding: 12px var(--gutter) 72px;
    background: #fff;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    letter-spacing: .04em;
  }
  .nav__link::after { display: none; }
  .header__cta { width: 100%; min-height: 52px; padding: 14px 28px; }
  .header__cta span { display: inline; }
  .nav__extra {
    display: grid;
    gap: 14px;
    margin-top: auto;
    font-size: 14px;
    color: var(--muted);
  }
  .nav__extra .socials a { width: 42px; height: 42px; font-size: 18px; border: 1px solid var(--line); color: var(--ink); }
}

@media (max-width: 480px) {
  .topbar { font-size: 12px; }
  .topbar .socials { display: none; }
  .lang { padding-left: 0; border-left: 0; }
}

/* 4. Hero slider (home) & page hero (inner pages)
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(540px, calc(100vh - 120px), 800px);
  padding-block: 90px 130px;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 20, 27, .88) 0%, rgba(15, 20, 27, .58) 45%, rgba(15, 20, 27, .08) 100%),
    linear-gradient(0deg, rgba(15, 20, 27, .6) 0%, transparent 34%);
}

.hero__captions { display: grid; max-width: 960px; }
.hero__caption {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), visibility .7s;
}
.hero__caption.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .25s; }

.hero__title {
  margin: 4px 0 34px;
  font-size: clamp(30px, 4.7vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  text-wrap: normal;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: #fff;
}
.hero__title em { font-style: normal; color: var(--gold-light); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
}
.hero__controls .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
  position: relative;
  width: 56px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
}
.hero__dot::before, .hero__dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  height: 3px;
  border-radius: 3px;
}
.hero__dot::before { width: 100%; background: rgba(255, 255, 255, .3); }
.hero__dot::after { width: 0; background: var(--gold); }
.hero__dot.is-active::after { width: 100%; }
.hero.is-playing .hero__dot.is-active::after { animation: dot-progress var(--hero-delay, 6500ms) linear forwards; }

.hero__arrows { display: flex; gap: 10px; }
.arrow-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: rgba(15, 20, 27, .25);
  color: #fff;
  font-size: 18px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.arrow-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: scale(1.06); }

@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes dot-progress { from { width: 0; } to { width: 100%; } }

@media (max-width: 620px) {
  .hero { padding-block: 64px 120px; }
  .hero__arrows { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* Page hero */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 7vw, 88px);
  color: rgba(255, 255, 255, .75);
  background: var(--ink) url('../img/opt/page-hero.jpg') center / cover no-repeat;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 380px at 90% 0%, rgba(227, 171, 0, .22), transparent 65%),
    linear-gradient(90deg, rgba(15, 20, 27, .94), rgba(15, 20, 27, .72));
}
.page-hero h1 {
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #fff;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 18px;
  font-size: 14px;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 12px; }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs [aria-current] { color: #fff; }

/* 5. Feature cards
   ========================================================================== */
.feature {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature__num {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--font-head);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  color: var(--surface);
  transition: color .35s var(--ease);
}
.feature:hover .feature__num { color: var(--gold-tint); }
.feature__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: var(--gold-tint);
  color: var(--gold-dark);
  font-size: 32px;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.feature:hover .feature__icon { background: var(--gold); color: var(--ink); }
.feature h3 { margin-bottom: 12px; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; }
.feature p { color: var(--muted); font-size: 15px; }

/* 6. Block (project) cards
   ========================================================================== */
.block-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 470px;
  padding: 14px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink-2);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.block-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.block-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 20, 27, .05) 30%, rgba(15, 20, 27, .82) 100%);
}
.block-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.block-card:hover > img { transform: scale(1.08); }

.block-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 20, 27, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
}
.block-card__badge b { color: var(--gold-light); font-weight: 700; }

.block-card__body {
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(15, 20, 27, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.block-card__body h3 { font-size: 22px; font-weight: 800; color: #fff; }
.block-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
  padding: 14px 0;
  border-block: 1px solid rgba(255, 255, 255, .14);
}
.block-card__stats b { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--gold-light); }
.block-card__stats span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .7); }
.block-card__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.block-card__more .fa {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  font-size: 14px;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.block-card:hover .block-card__more .fa { background: var(--gold); color: var(--ink); transform: translateX(3px); }

.blocks-flex { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 2.4vw, 28px); }
.blocks-flex .block-card { flex: 1 1 250px; max-width: 360px; }
@media (min-width: 1101px) {
  .blocks-flex .block-card { flex: 0 0 calc((100% - 3 * 28px) / 4); }
}

/* 7. Service cards, team, about split
   ========================================================================== */
.service {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service__media img { transform: scale(1.07); }
.service__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 20, 27, .35));
}
.service__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 24px 26px 26px; }
.service__body h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.service__body h3 .fa {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.service:hover h3 .fa { background: var(--gold); transform: translateX(3px); }
.service__body p { color: var(--muted); font-size: 15px; }

.team-card { text-align: center; }
.team-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s var(--ease); }
.team-card:hover .team-card__photo img { transform: scale(1.05); }
.team-card__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .45s var(--ease);
}
.team-card:hover .team-card__photo::after { transform: scaleX(1); }
.team-card h3 { font-size: 18px; }
.team-card p { margin-top: 4px; color: var(--gold-dark); font-size: 14px; font-weight: 500; letter-spacing: .04em; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split__media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  z-index: -1;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}
.split__body .section-head { margin-bottom: 26px; }

.checklist { display: grid; gap: 14px; margin-bottom: 34px; }
.checklist li { position: relative; padding-left: 40px; }
.checklist li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-dark);
  font: normal 12px/1 FontAwesome;
}

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__media::before { inset: 14px -10px -14px 14px; }
}

/* 8. Testimonials
   ========================================================================== */
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.quote:hover { transform: translateY(-6px); border-color: rgba(227, 171, 0, .55); background: rgba(255, 255, 255, .07); }
.quote__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: 18px;
}
.quote blockquote { flex: 1; margin: 0 0 26px; font-size: 15.5px; line-height: 1.75; color: rgba(255, 255, 255, .84); }
.quote__author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.quote__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 700;
}
.quote__author strong { font-family: var(--font-head); font-size: 15px; color: #fff; }

/* 9. Contact (cards, form, map)
   ========================================================================== */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 22px;
}
.contact-card h3 { font-size: 18px; overflow-wrap: anywhere; }
.contact-card h3 a:hover { color: var(--gold-dark); }
.contact-card p { margin: 0; color: var(--muted); font-size: 15px; }
.contact-card__link {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.contact-card__link .fa { margin-left: 6px; transition: transform .25s var(--ease); }
.contact-card__link:hover .fa { transform: translateX(4px); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.form-card {
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-card h3 { margin-bottom: 22px; font-size: 22px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }

.input, .form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .calc select, .calc input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fcfbf8;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.form textarea { min-height: 132px; resize: vertical; }
.form ::placeholder { color: #9aa1aa; }
.form input:hover, .form textarea:hover, .calc select:hover, .calc input:hover { border-color: #cfc9ba; }
.form input:focus, .form textarea:focus, .calc select:focus, .calc input:focus {
  outline: 0;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(227, 171, 0, .2);
}

.form-status {
  display: none;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
}
.form-status.is-success { display: block; background: #e8f6ec; color: #17603a; }
.form-status.is-error { display: block; background: #fdecea; color: #a1281e; }

.map {
  min-height: 420px;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.map iframe { width: 100%; height: 100%; min-height: 420px; }

/* 10. Project detail
   ========================================================================== */
.detail { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 20px; }
.detail__main { min-width: 0; }

@media (max-width: 960px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail__aside { position: static; order: 2; }
}

.panel {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.panel--dark { border-color: transparent; background: var(--ink); color: rgba(255, 255, 255, .8); }
.panel__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.panel__title::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--gold); }
.panel--dark .panel__title { color: #fff; }

.info-list { display: grid; }
.info-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.info-list > div:first-child { padding-top: 0; }
.info-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.info-list dt { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.info-list dt .fa { width: 18px; text-align: center; color: var(--gold-dark); }
.info-list dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

.file-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.file-link + .file-link { margin-top: 10px; }
.file-link__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--gold-tint); color: var(--gold-dark); font-size: 18px; }
.file-link__dl { margin-left: auto; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.file-link:hover { border-color: var(--gold); background: #fffdf5; }
.file-link:hover .file-link__dl { color: var(--ink); transform: translateY(2px); }

.calc { display: grid; gap: 12px; }
.calc label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.calc .field { gap: 6px; }
.calc select, .calc input {
  border-color: rgba(255, 255, 255, .16);
  background-color: rgba(255, 255, 255, .06);
  color: #fff;
}
.calc input::placeholder { color: rgba(255, 255, 255, .35); }
.calc select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f6c945' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.calc select:hover, .calc input:hover { border-color: rgba(255, 255, 255, .34); }
.calc select:focus, .calc input:focus { background-color: rgba(255, 255, 255, .1); }
.calc select option { color: var(--ink); background: #fff; }
.calc .btn { margin-top: 6px; }
.calc__result {
  display: none;
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(227, 171, 0, .14);
  border: 1px solid rgba(227, 171, 0, .4);
  text-align: center;
}
.calc__result:not(:empty) { display: grid; gap: 6px; }
.calc__total { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--gold-light); }
.calc__detail { font-size: 14px; font-weight: 500; color: #fff; }
.calc__note { padding-top: 8px; border-top: 1px solid rgba(227, 171, 0, .3); font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.panel__text { margin-bottom: 18px; }

.gallery__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.gallery__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.gallery__stage img.is-active { opacity: 1; }
.gallery__nav { position: absolute; inset: auto 16px 16px auto; display: flex; gap: 8px; }
.gallery__nav .arrow-btn { width: 44px; height: 44px; font-size: 16px; }
.gallery__count {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 20, 27, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.gallery__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  opacity: .62;
  transition: opacity .25s var(--ease), box-shadow .25s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { opacity: 1; box-shadow: 0 0 0 3px var(--gold); }

.prose { margin-top: clamp(32px, 4vw, 48px); }
.prose h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: clamp(20px, 2.2vw, 26px); text-transform: uppercase; }
.prose h2::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--gold); }
.prose p { color: #46505c; }
.prose .lead { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--ink); }
.prose h3 { margin: 28px 0 14px; font-size: 17px; }
.prose .checklist { margin-bottom: 24px; }

/* Related (static) project tiles */
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 2;
  padding: 18px;
  border-radius: var(--radius);
  color: #fff;
  overflow: hidden;
  background: var(--ink-2);
}
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(15, 20, 27, .88)); }
.tile:hover img { transform: scale(1.07); }
.tile h3 { font-size: 18px; color: #fff; }
.tile p { margin: 2px 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

/* 11. CTA band, footer, scroll-top
   ========================================================================== */
.cta {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--ink);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .22);
}
.cta h2 { font-size: clamp(22px, 2.8vw, 34px); font-weight: 800; text-transform: uppercase; }
.cta p { margin: 8px 0 0; max-width: 620px; color: rgba(15, 20, 27, .78); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--outline { border-color: rgba(15, 20, 27, .4); }

.footer { background: var(--ink); color: rgba(255, 255, 255, .66); font-size: 15px; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(52px, 7vw, 84px);
}
.footer__logo img { width: 190px; filter: brightness(0) invert(1); }
.footer__brand p { margin: 20px 0 22px; max-width: 320px; }
.footer .socials a { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .16); font-size: 16px; color: #fff; }
.footer .socials a:hover { border-color: var(--gold); }
.footer h2 {
  margin-bottom: 20px;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}
.footer__links { display: grid; gap: 11px; }
.footer__links a { position: relative; transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer__links a:hover { color: var(--gold-light); padding-left: 6px; }
.footer__contacts { display: grid; gap: 14px; }
.footer__contacts li { display: flex; gap: 12px; }
.footer__contacts .fa { flex: none; width: 18px; margin-top: 5px; text-align: center; color: var(--gold); }
.footer__contacts a:hover { color: var(--gold-light); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px;
}
.footer__bottom a { color: var(--gold-light); }

/* Developer credit */
.footer__bottom .dev-credit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.dev-credit img { width: auto; height: 20px; opacity: .9; transition: opacity .3s var(--ease); }
.footer__bottom .dev-credit:hover {
  border-color: #1a6bff;
  background: rgba(26, 107, 255, .12);
  color: #fff;
  box-shadow: 0 10px 28px -12px rgba(26, 107, 255, .9);
  transform: translateY(-2px);
}
.dev-credit:hover img { opacity: 1; }

@media (max-width: 960px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 18px;
  box-shadow: 0 14px 28px -12px rgba(15, 20, 27, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .25s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* 12. Motion
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

@media print {
  .topbar, .header, .footer, .scroll-top, .hero__controls { display: none !important; }
}
