/* ==========================================================================
   گروه ساختمانی طهورنیان — استایل سایت (سبک لوکسینا: سبز تیره، سبز و کهربایی)
   ========================================================================== */

:root {
    --teal-950: #0a171a;
    --teal-900: #0e1e21;
    --teal-800: #13292d;
    --teal-700: #1c3a3f;
    --teal-600: #2a4d52;
    --ink: #173038;
    --ink-2: #2f454c;
    --muted: #97a3a7;
    --muted-2: #b9c2c4;
    --green: #4f9a53;
    --green-2: #6cc070;
    --green-soft: rgba(79, 154, 83, .14);
    --amber: #fbb12e;
    --amber-2: #f29f0e;
    --amber-soft: rgba(251, 177, 46, .16);
    --bg: #f3f4f4;
    --bg-2: #eceeee;
    --surface: #ffffff;
    --line: #e2e6e6;
    --radius: 26px;
    --radius-sm: 14px;
    --ease: cubic-bezier(.19, 1, .22, 1);
    --ease-2: cubic-bezier(.65, 0, .35, 1);
    --header-h: 100px;
    --container: 1280px;
    --font: "Vazirmatn", Tahoma, sans-serif;
    --tab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 56' preserveAspectRatio='none'%3E%3Cpath d='M0 56C22 56 26 0 56 0H164C194 0 198 56 220 56Z'/%3E%3C/svg%3E");
    --grid-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Crect x='8' y='8' width='134' height='134' rx='22' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='2'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink-2);
    line-height: 1.9;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.4; font-weight: 900; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--ink); }
::-webkit-scrollbar { width: 0; height: 0; }

main, .site-footer { overflow-x: clip; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.ltr { direction: ltr; unicode-bidi: embed; }
.muted { color: var(--muted); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }

/* پس‌زمینه شبکه‌ای مخصوص قالب */
.grid-bg { position: relative; isolation: isolate; background: var(--teal-900); color: #fff; overflow: clip; }
.grid-bg::before {
    content: ""; position: absolute; inset: -30% -20%; z-index: -1; pointer-events: none;
    background-image: var(--grid-svg); background-size: 150px 150px;
    transform: perspective(1200px) rotateX(28deg) rotateZ(-9deg);
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
    mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
}
.grid-bg::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(108, 192, 112, .16), transparent 60%);
}
.grid-bg h1, .grid-bg h2, .grid-bg h3 { color: #fff; }

/* ==========================================================================
   پیش‌بارگذار، انتقال صفحه، نشانگر
   ========================================================================== */
.preloader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--teal-900); color: #fff; }
.preloader__inner { text-align: center; }
.preloader__logo { width: 96px; height: 96px; margin: 0 auto 22px; }
.preloader__logo path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.4s var(--ease-2) forwards; }
.preloader__logo path:nth-child(2) { animation-delay: .25s; }
.preloader__logo path:nth-child(3) { animation-delay: .5s; }
.preloader__count { font-size: 60px; font-weight: 900; line-height: 1; }
.preloader__title { color: var(--muted); font-size: 14px; margin-top: 10px; }
.preloader__bar { width: 220px; height: 3px; margin: 20px auto 0; background: rgba(255, 255, 255, .1); overflow: hidden; border-radius: 3px; }
.preloader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--amber)); }
.preloader__panel { position: absolute; inset: 0; background: var(--amber); transform: scaleY(0); transform-origin: bottom; z-index: -1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
html:not(.is-loading) .preloader { display: none; }
/* اگر اسکریپت‌ها بارگذاری نشوند، پیش‌بارگذار پس از چند ثانیه کنار می‌رود */
.preloader { animation: preloaderFailsafe .4s 9s forwards; }
@keyframes preloaderFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.page-transition { position: fixed; inset: 0; z-index: 9998; pointer-events: none; display: flex; }
.page-transition span { flex: 1; background: var(--teal-900); transform: scaleY(0); transform-origin: top; }
.page-transition span:nth-child(2) { background: var(--green); }
.page-transition span:nth-child(3) { background: var(--amber); }

.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 9997; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor {
    width: 40px; height: 40px; border: 1.5px solid var(--amber); display: grid; place-items: center;
    transition: width .45s var(--ease), height .45s var(--ease), background .35s, border-color .35s, opacity .3s;
}
.cursor-dot { width: 6px; height: 6px; background: var(--amber); transition: opacity .3s; }
.cursor__text { font-size: 12px; font-weight: 800; color: var(--ink); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-hover { width: 64px; height: 64px; background: rgba(251, 177, 46, .15); border-color: transparent; }
.cursor.has-text { width: 92px; height: 92px; background: var(--amber); border-color: transparent; }
.cursor.has-text .cursor__text { opacity: 1; }
.cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
@media (hover: none), (max-width: 991px) { .cursor, .cursor-dot { display: none; } }

/* نشانگر پیشرفت اسکرول (کنار صفحه) */
.scroll-indicator { position: fixed; top: 0; bottom: 0; left: 0; width: 8px; z-index: 95; pointer-events: none; }
.scroll-indicator span { position: absolute; left: 0; top: 0; width: 8px; height: 90px; border-radius: 0 10px 10px 0; background: var(--amber); opacity: .85; will-change: transform; }

/* ==========================================================================
   دکمه‌ها
   ========================================================================== */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 60px; padding: 0 34px; border-radius: 16px;
    background: var(--amber); color: var(--ink); font-weight: 700; font-size: 16px; white-space: nowrap;
    transition: color .45s var(--ease), background .3s, transform .3s;
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit;
    transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: translateY(0); }
.btn i { font-size: 20px; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(-4px); }
.btn--gray { background: #dfe3e3; color: var(--ink); }
.btn--light { background: #f1f3f3; color: var(--ink); }
.btn--green { background: var(--green); color: #fff; }
.btn--green::before { background: var(--teal-800); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid rgba(255, 255, 255, .08); }
.btn--ghost::before { background: var(--amber); }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { height: 46px; padding: 0 22px; font-size: 14px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* شکل زبانه (تب) قالب */
.tab-shape {
    position: relative; display: inline-grid; place-items: center; min-width: 200px; height: 54px; padding: 0 44px;
    font-weight: 800; color: var(--ink); background: var(--bg-2);
    -webkit-mask: var(--tab) center / 100% 100% no-repeat; mask: var(--tab) center / 100% 100% no-repeat;
    transition: background .35s, color .35s;
}

/* ==========================================================================
   عنوان بخش‌ها
   ========================================================================== */
.section { position: relative; padding: 110px 0; }
.section--tight { padding: 70px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 50px; flex-wrap: wrap; }
.sec-title { display: flex; align-items: center; gap: 22px; }
.sec-title__bar { width: 2px; height: 84px; background: linear-gradient(180deg, transparent, var(--green) 30%, var(--green) 70%, transparent); flex-shrink: 0; }
.sec-title__icon { font-size: 30px; color: var(--amber); flex-shrink: 0; line-height: 1; }
.sec-title h2 { font-size: clamp(30px, 4vw, 52px); margin: 0; line-height: 1.25; }
.sec-title small { display: block; color: var(--muted-2); font-size: clamp(17px, 1.8vw, 24px); font-weight: 600; direction: ltr; text-align: right; margin-top: 4px; }
.grid-bg .sec-title small { color: rgba(255, 255, 255, .28); }
.sec-desc { color: var(--muted); max-width: 520px; margin: 0; }

/* عنوان آویزان (مثل بخش خدمات در قالب) */
.hang-head {
    position: relative; z-index: 3; width: min(360px, 78%); margin: 0 auto -110px; padding: 34px 20px 40px; text-align: center;
    background: linear-gradient(180deg, #fff 0%, #eef0f0 100%);
    clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
    border-radius: 0 0 40px 40px;
}
.hang-head i { font-size: 30px; color: var(--ink); display: block; line-height: 1; margin-bottom: 8px; }
.hang-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 0; }
.hang-head small { display: block; color: var(--muted-2); font-size: 20px; font-weight: 600; }
.hang-head::after { content: ""; display: block; width: 70px; height: 3px; margin: 12px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--amber)); }

/* ==========================================================================
   هدر
   ========================================================================== */
.site-header {
    position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--header-h); color: #fff;
    transition: background .45s, height .45s var(--ease), transform .6s var(--ease), box-shadow .45s, color .45s;
}
.site-header::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 1px; background: rgba(255, 255, 255, .08); }
.site-header.is-scrolled {
    height: 84px; color: var(--ink);
    background: rgba(243, 244, 244, .9);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 10px 40px rgba(23, 48, 56, .06);
}
.site-header.is-scrolled::after { background: rgba(23, 48, 56, .1); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; gap: 26px; }
.header-inner::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 24px; width: 240px; height: 2px; background: #fff; z-index: 2; transition: background .4s; }
.site-header.is-scrolled .header-inner::after { background: var(--ink); }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }
.brand__mark { width: 52px; height: 52px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.35; }
.brand__name { font-weight: 900; font-size: 22px; letter-spacing: -.3px; }
.brand__tag { font-size: 11.5px; opacity: .7; }

.main-nav { margin-inline-start: auto; }
.main-nav > ul { display: flex; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 14px; font-weight: 600; font-size: 15px; position: relative; }
.main-nav > ul > li > a::after { content: ""; position: absolute; bottom: 2px; inset-inline: 14px; height: 2px; border-radius: 2px; background: var(--amber); transform: scaleX(0); transition: transform .4s var(--ease); transform-origin: right; }
.main-nav > ul > li:hover > a::after, .main-nav > ul > li.active > a::after { transform: scaleX(1); }
.main-nav > ul > li.active > a { color: var(--amber); }
.site-header.is-scrolled .main-nav > ul > li.active > a { color: var(--amber-2); }
.dropdown {
    position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 240px; padding: 10px; border-radius: 18px;
    background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(10, 23, 26, .18);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: .35s var(--ease);
}
.main-nav li:hover > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: .3s var(--ease); }
.dropdown a i { color: var(--green); font-size: 18px; }
.dropdown a:hover { background: var(--bg); padding-inline-start: 20px; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.auth-pill {
    display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 26px; border-radius: 18px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); font-weight: 700;
    transition: background .4s, color .4s, border-color .4s;
}
.auth-pill a:first-of-type { font-weight: 900; }
.auth-pill .sep { width: 1.5px; height: 24px; background: currentColor; opacity: .5; }
.auth-pill i { font-size: 22px; color: var(--amber); transition: color .4s; }
.auth-pill a:hover { color: var(--amber); }
.site-header.is-scrolled .auth-pill { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.site-header.is-scrolled .auth-pill i { color: var(--ink); }
.site-header.is-scrolled .auth-pill a:hover { color: #fff; }
.icon-circle { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--green-2); background: rgba(255, 255, 255, .04); transition: background .3s; }
.icon-circle:hover { background: var(--green-soft); }
.site-header.is-scrolled .icon-circle { color: var(--green); background: transparent; }
.cart-count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 900; display: grid; place-items: center; line-height: 1; }
.cart-count[data-count="0"] { display: none; }
.cart-count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); } }
.burger { width: 50px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 30px; height: 3px; border-radius: 3px; background: var(--amber); transition: .45s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.menu-overlay { position: fixed; inset: 0; z-index: 99; color: #fff; overflow-y: auto; clip-path: circle(0% at 60px 50px); transition: clip-path .9s var(--ease-2); display: flex; flex-direction: column; justify-content: center; padding: 120px 30px 40px; }
.menu-overlay.is-open { clip-path: circle(150% at 60px 50px); }
.menu-overlay__links li { overflow: hidden; }
.menu-overlay__links a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(30px, 8vw, 54px); font-weight: 900; line-height: 1.55; transform: translateY(110%); transition: transform .8s var(--ease), color .3s; }
.menu-overlay__links a small { font-size: 14px; color: var(--amber); font-weight: 700; }
.menu-overlay__links a:hover { color: var(--amber); }
.menu-overlay.is-open .menu-overlay__links a { transform: none; }
.menu-overlay.is-open .menu-overlay__links li:nth-child(1) a { transition-delay: .2s; }
.menu-overlay.is-open .menu-overlay__links li:nth-child(2) a { transition-delay: .25s; }
.menu-overlay.is-open .menu-overlay__links li:nth-child(3) a { transition-delay: .3s; }
.menu-overlay.is-open .menu-overlay__links li:nth-child(4) a { transition-delay: .35s; }
.menu-overlay.is-open .menu-overlay__links li:nth-child(5) a { transition-delay: .4s; }
.menu-overlay.is-open .menu-overlay__links li:nth-child(6) a { transition-delay: .45s; }
.menu-overlay.is-open .menu-overlay__links li:nth-child(7) a { transition-delay: .5s; }
.menu-overlay__info { margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--muted); display: grid; gap: 8px; }

/* ==========================================================================
   هیرو (پروژه ویژه)
   ========================================================================== */
.hero { position: relative; min-height: 100vh; padding: calc(var(--header-h) + 40px) 0 0; overflow: hidden; }
.hero .swiper { overflow: hidden; }
.hero-slide { display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 40px; min-height: calc(100vh - var(--header-h) - 40px); }
.hero-slide > * { min-width: 0; }
.hero-slide__content { padding-bottom: 150px; align-self: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-tags span { padding: 12px 26px; border-radius: 14px; font-size: 17px; font-weight: 600; color: var(--green-2); background: rgba(79, 154, 83, .1); border: 1px solid rgba(108, 192, 112, .12); }
.hero-slide__title { font-size: clamp(36px, 5.2vw, 74px); line-height: 1.3; margin-bottom: 30px; letter-spacing: -.5px; }
.hero-slide__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-slide__title .line > span { display: inline-block; }
.hero-designer { display: inline-flex; align-items: center; gap: 16px; padding: 12px 18px 12px 26px; border-radius: 18px; margin-bottom: 30px; background: rgba(79, 154, 83, .08); border: 1px solid rgba(255, 255, 255, .04); }
.hero-designer img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.hero-designer strong { font-size: 19px; font-weight: 700; color: #fff; }
.hero-designer span { color: var(--muted); }
.hero-slide__desc { font-size: 19px; color: rgba(255, 255, 255, .78); max-width: 560px; margin-bottom: 38px; line-height: 2; }
.hero-slide__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-slide__media { position: relative; align-self: end; height: min(78vh, 720px); display: flex; justify-content: center; }
.hero-arch { position: relative; z-index: 2; width: min(460px, 86%); height: 100%; border-radius: 999px 999px 0 0; overflow: hidden; box-shadow: 0 -30px 80px rgba(0, 0, 0, .25); }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 30, 33, .45), transparent 40%); }
.hero-diamond { position: absolute; z-index: 1; bottom: 18%; left: 50%; width: 62%; aspect-ratio: 1; margin-left: -31%; transform: rotate(45deg); border-radius: 26px; background: linear-gradient(135deg, rgba(79, 154, 83, .55), rgba(79, 154, 83, .08)); }
.hero-ring { position: absolute; z-index: 1; border: 1.5px solid rgba(255, 255, 255, .12); border-radius: 50%; }
.hero-ring--1 { width: 70%; aspect-ratio: 1; bottom: 8%; left: 2%; }
.hero-ring--2 { width: 46%; aspect-ratio: 1; bottom: 30%; right: -2%; border-style: dashed; animation: spin 40s linear infinite; }
.hero-leaf { position: absolute; z-index: 3; bottom: -40px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #7cc36b, #2f7a36 60%, #1d5724); box-shadow: inset -20px -20px 40px rgba(0, 0, 0, .25); }
.hero-leaf::before, .hero-leaf::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.hero-leaf::before { width: 60%; height: 60%; top: -18%; left: 30%; }
.hero-leaf::after { width: 55%; height: 55%; top: 10%; left: -20%; }
.hero-leaf--r { right: 2%; }
.hero-leaf--l { left: 4%; width: 130px; height: 130px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-ui { position: absolute; z-index: 6; bottom: 40px; inset-inline: 0; pointer-events: none; }
.hero-ui .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-ui .container > * { pointer-events: auto; }
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hero-dots button { width: 12px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .2); transition: width .5s var(--ease), background .3s; overflow: hidden; position: relative; }
.hero-dots button.is-active { width: 64px; background: rgba(255, 255, 255, .15); }
.hero-dots button.is-active::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform-origin: right; transform: scaleX(var(--p, 0)); }
.hero-nav { display: flex; gap: 10px; }
.hero-nav button { width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; font-size: 22px; transition: .35s var(--ease); }
.hero-nav button:hover { background: var(--amber); color: var(--ink); }
.scroll-down { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.scroll-down__mouse { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .2); border-radius: 14px; position: relative; }
.scroll-down__mouse::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 7px; margin-left: -2px; background: var(--amber); border-radius: 4px; animation: mouse 1.8s infinite; }
@keyframes mouse { to { transform: translateY(13px); opacity: 0; } }

/* ==========================================================================
   آمار
   ========================================================================== */
.stats-wrap { position: relative; z-index: 5; margin-top: -50px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { position: relative; overflow: hidden; padding: 28px 26px; border-radius: 22px; background: var(--surface); box-shadow: 0 20px 50px rgba(23, 48, 56, .07); display: flex; align-items: center; gap: 18px; }
.stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: var(--amber); }
.stat:nth-child(even)::before { background: var(--green); }
.stat__icon { width: 60px; height: 60px; flex-shrink: 0; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--amber-soft); color: var(--amber-2); }
.stat:nth-child(even) .stat__icon { background: var(--green-soft); color: var(--green); }
.stat__value { font-size: 36px; font-weight: 900; color: var(--ink); line-height: 1.2; display: flex; gap: 2px; }
.stat__label { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ==========================================================================
   خدمات (کارت‌های تصویری)
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { position: relative; display: block; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 5; isolation: isolate; background: var(--teal-700); }
.service-card__img { position: absolute; inset: 0; z-index: -2; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.05); transition: filter .8s, transform 1.2s var(--ease); }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(42, 77, 82, .96) 0%, rgba(42, 77, 82, .55) 30%, transparent 58%); }
.service-card:hover .service-card__img img { filter: grayscale(0); transform: scale(1.06); }
.service-card__body { position: absolute; inset-inline: 0; bottom: 58px; padding: 0 26px; text-align: center; color: #fff; }
.service-card__icon { font-size: 30px; opacity: .85; display: block; margin-bottom: 10px; line-height: 1; }
.service-card__title { font-size: clamp(22px, 2.2vw, 30px); color: #fff; margin: 0; }
.service-card__text { max-height: 0; overflow: hidden; opacity: 0; margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.service-card:hover .service-card__text { max-height: 120px; opacity: 1; margin-top: 12px; }
.service-card__tab {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 190px; height: 50px; padding-top: 6px;
    display: grid; place-items: center; font-size: 26px; color: #b9e6bc; background: rgba(255, 255, 255, .22);
    -webkit-mask: var(--tab) center / 100% 100% no-repeat; mask: var(--tab) center / 100% 100% no-repeat;
    transition: background .4s, color .4s;
}
.service-card__tab i { transition: transform .5s var(--ease); }
.service-card:hover .service-card__tab { background: var(--amber); color: var(--ink); }
.service-card:hover .service-card__tab i { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================================================
   کارت پروژه
   ========================================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project-card { position: relative; display: flex; flex-direction: column; border-radius: 30px; background: var(--surface); box-shadow: 0 20px 60px rgba(23, 48, 56, .05); transition: transform .6s var(--ease), box-shadow .6s; }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(23, 48, 56, .12); }
.project-card__media { position: relative; aspect-ratio: 5 / 3.6; border-radius: 30px 30px 0 0; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.08); }
.project-card__media::before { content: ""; position: absolute; inset: 18px; z-index: 2; border: 1.5px solid rgba(255, 255, 255, .75); border-radius: 18px; pointer-events: none; }
.project-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .25), transparent 40%); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.badge--green { background: #3fc55a; color: #0b2a12; }
.badge--amber { background: var(--amber); color: var(--ink); }
.badge--gray { background: #dfe3e3; color: var(--ink); }
.project-card__badge { position: absolute; z-index: 3; top: calc(78% - 30px); inset-inline-start: 22px; transform: translateY(-50%) rotate(-3.5deg); }
.project-card__body { padding: 20px 28px 22px; }
.project-card__title { font-size: 26px; margin: 0; }
.project-card__loc { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.project-card__loc i { color: var(--green); }
.project-card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px 28px; background: #f7f8f8; }
.project-card__stats div { position: relative; padding-inline-start: 20px; }
.project-card__stats div::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--amber), transparent); }
.project-card__stats div + div::before { background: linear-gradient(180deg, transparent, var(--green), transparent); }
.project-card__stats small { display: block; color: var(--muted); font-size: 15px; }
.project-card__stats strong { font-size: 20px; font-weight: 600; color: var(--ink); }
.project-card__foot { position: relative; height: 70px; }
.project-card__foot .tab-shape { position: absolute; top: 0; left: 50%; transform: translateX(-50%) scaleY(-1); }
.project-card__foot .tab-shape span { transform: scaleY(-1); }
.project-card:hover .project-card__foot .tab-shape { background: var(--amber); }

/* اسکرول افقی پروژه‌ها (دسکتاپ) */
.projects-h { position: relative; overflow: hidden; padding: 110px 0 60px; }
.projects-h__track { display: flex; gap: 30px; padding: 10px 24px 50px; padding-inline-start: max(24px, calc((100vw - var(--container)) / 2 + 24px)); width: max-content; }
.projects-h .project-card { width: 400px; flex-shrink: 0; }
.projects-h__end { width: 300px; flex-shrink: 0; display: grid; place-items: center; }
.projects-h__progress { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; height: 3px; border-radius: 3px; background: var(--line); }
.projects-h__progress span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--amber)); transform: scaleX(0); transform-origin: right; }
.circle-btn { position: relative; width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--ink); color: #fff; font-weight: 800; line-height: 1.6; overflow: hidden; isolation: isolate; transition: color .5s; }
.circle-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--amber); transform: scale(0); transition: transform .6s var(--ease); }
.circle-btn:hover { color: var(--ink); }
.circle-btn:hover::before { transform: scale(1); }
.circle-btn i { display: block; font-size: 28px; }

/* ==========================================================================
   تایم‌لاین پروژه
   ========================================================================== */
.timeline { position: relative; padding: 38px 0; }
.timeline::before { content: ""; position: absolute; inset: 0 3%; border-radius: 34px; background: var(--bg-2); }
.timeline__list { position: relative; border-radius: 30px; overflow: hidden; }
.tl-step { position: relative; height: 150px; overflow: hidden; display: flex; align-items: center; transition: height .7s var(--ease); isolation: isolate; }
.tl-step__img { position: absolute; inset: 0; z-index: -2; }
.tl-step__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); transition: transform 1.2s var(--ease), filter .6s; }
.tl-step::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(42, 77, 82, .85) 0%, rgba(42, 77, 82, .55) 35%, rgba(42, 77, 82, .05) 75%); }
.tl-step__box { margin-inline-start: 18px; width: min(460px, 60%); padding: 18px 30px; border-radius: 18px; color: #fff; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .1); }
.tl-step__box h3 { color: #fff; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; margin: 0; display: flex; align-items: center; gap: 12px; }
.tl-step__box h3 b { font-size: 14px; font-weight: 900; color: var(--amber); }
.tl-step__box p { margin: 0; max-height: 0; opacity: 0; overflow: hidden; color: rgba(255, 255, 255, .85); font-size: 15px; transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.tl-step:hover, .tl-step.is-open { height: 230px; }
.tl-step:hover .tl-step__img img, .tl-step.is-open .tl-step__img img { transform: scale(1.06); filter: grayscale(0); }
.tl-step:hover .tl-step__box p, .tl-step.is-open .tl-step__box p { max-height: 120px; opacity: 1; margin-top: 8px; }
.tl-arrow { position: absolute; z-index: 4; left: 50%; width: 58px; height: 58px; margin-left: -29px; margin-top: -29px; border-radius: 16px; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-size: 22px; box-shadow: 0 10px 25px rgba(251, 177, 46, .35); }
.tl-arrow i { animation: nudge 1.8s var(--ease-2) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ==========================================================================
   محصولات
   ========================================================================== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; row-gap: 56px; }
.product-card { position: relative; display: flex; flex-direction: column; border-radius: 28px; background: var(--surface); transition: transform .6s var(--ease), box-shadow .6s; box-shadow: 0 20px 50px rgba(23, 48, 56, .05); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(23, 48, 56, .12); }
.product-card__media { position: relative; display: block; aspect-ratio: 1 / .82; border-radius: 28px 28px 0 0; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.08); }
.product-card__media::before { content: ""; position: absolute; inset: 14px; z-index: 2; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 16px; pointer-events: none; }
.product-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 48, 56, .5), transparent 35%); }
.product-card__cat { position: absolute; z-index: 3; top: calc(80% - 26px); inset-inline-start: 18px; height: 38px; padding: 0 16px; font-size: 14px; transform: translateY(-50%) rotate(-3.5deg); }
.product-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 22px 0; }
.product-card__title { font-size: 19px; line-height: 1.6; margin: 0; }
.product-card__title a:hover { color: var(--green); }
.fav-btn { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: var(--ink); transition: color .3s, background .3s; }
.fav-btn:hover { background: var(--bg); }
.fav-btn.is-active { color: #e0445b; }
.product-card__price { position: relative; margin: 16px 22px 0; padding: 10px 20px 10px 12px; border-radius: 0 16px 16px 0; background: linear-gradient(270deg, #f5f6f6, transparent); min-height: 70px; display: flex; flex-direction: column; justify-content: center; }
.product-card__price::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; bottom: 10px; width: 2px; background: var(--amber); border-radius: 2px; }
.price-old { display: flex; align-items: center; gap: 10px; }
.price-old del { color: var(--muted); font-size: 15px; }
.price-off { background: var(--amber); color: var(--ink); font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 8px; }
.price-now { font-size: 21px; font-weight: 700; color: var(--ink); }
.price-now small { font-size: 14px; color: var(--muted); font-weight: 500; margin-inline-start: 4px; }
.price-from { color: var(--ink); font-size: 14px; display: block; }
.price-call { color: var(--green); font-weight: 800; }
.product-card__foot { position: relative; height: 40px; }
.product-card__buy { position: absolute; bottom: -30px; inset-inline-end: 22px; z-index: 2; }
.product-card__buy::before { content: ""; position: absolute; inset: 24px -18px -10px; border-radius: 0 0 26px 26px; background: #e3e7e7; z-index: -1; transition: background .35s; }
.product-card__buy .tab-shape { min-width: 170px; height: 56px; background: #e3e7e7; }
.product-card__buy:hover .tab-shape, .product-card__buy:hover::before { background: var(--amber); }
.product-card__buy .tab-shape.is-loading { opacity: .6; }

/* ==========================================================================
   کارت کاتالوگ و مشاوره
   ========================================================================== */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.promo-card { border-radius: 32px; background: var(--surface); box-shadow: 0 20px 60px rgba(23, 48, 56, .06); overflow: hidden; }
.promo-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.promo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.promo-card:hover .promo-card__media img { transform: scale(1.06); }
.promo-card__media::before { content: ""; position: absolute; inset: 20px; z-index: 2; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 18px; }
.promo-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42, 77, 82, .85), rgba(42, 77, 82, .15) 60%); }
.promo-card__body { position: relative; padding: 70px 44px 44px; background: var(--surface); border-radius: 36px 36px 0 0; margin-top: -40px; z-index: 3; }
.hex { position: absolute; top: -48px; left: 50%; width: 120px; height: 96px; margin-left: -60px; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 30px; clip-path: polygon(22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%); transition: transform .6s var(--ease); }
.hex--amber { background: var(--amber); color: var(--ink); }
.promo-card:hover .hex { transform: rotate(-8deg) scale(1.06); }
.promo-card h3 { font-size: clamp(26px, 3vw, 40px); margin: 0; }
.promo-card small { display: block; color: var(--muted-2); font-size: 22px; font-weight: 600; direction: ltr; text-align: right; margin-bottom: 30px; }
.promo-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo-card__actions .btn { height: 64px; }

/* ==========================================================================
   همکاران
   ========================================================================== */
.partners-box { position: relative; padding: 150px 40px 60px; border-radius: 34px; background: var(--bg-2); }
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.partner { position: relative; display: grid; place-items: center; min-height: 170px; padding: 20px; }
.partner img { max-height: 70px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .5s, opacity .5s, transform .6s var(--ease); }
.partner:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.08); }
.partner::before { content: ""; position: absolute; inset-inline-end: 0; top: 18%; bottom: 18%; width: 1.5px; background: rgba(23, 48, 56, .12); }
.partner::after { content: ""; position: absolute; bottom: 0; inset-inline: 12%; height: 1.5px; background: rgba(23, 48, 56, .12); }
.partner:nth-child(4n)::before { display: none; }
.partner-marker { position: absolute; bottom: -16px; inset-inline-end: -16px; width: 32px; height: 32px; z-index: 2; border: 1.5px solid rgba(23, 48, 56, .3); border-radius: 12px 3px 12px 3px; background: var(--bg-2); }
.partner:nth-child(4n) .partner-marker { display: none; }

/* ==========================================================================
   تیم (کلاژ)
   ========================================================================== */
.team-section { padding: 130px 0 0; overflow: hidden; }
.team-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: end; }
.team-layout > * { min-width: 0; }
.team-text { padding-bottom: 130px; }
.team-text p { color: rgba(255, 255, 255, .8); font-size: 19px; margin: 30px 0 34px; }
.team-collage { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 90px; gap: 14px; }
.team-photo { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--teal-700); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.team-photo figcaption { position: absolute; inset: auto 8px 8px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; color: #fff; background: rgba(14, 30, 33, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translateY(130%); transition: transform .5s var(--ease); }
.team-photo figcaption strong { display: block; font-size: 14px; }
.team-photo figcaption span { color: var(--amber); }
.team-photo:hover img { transform: scale(1.08); }
.team-photo:hover figcaption { transform: none; }
.team-photo:nth-child(1) { grid-column: 1; grid-row: 3 / span 4; }
.team-photo:nth-child(2) { grid-column: 2; grid-row: 2 / span 2; }
.team-photo:nth-child(3) { grid-column: 3; grid-row: 1 / span 3; }
.team-photo:nth-child(4) { grid-column: 2 / span 2; grid-row: 4 / span 4; }
.team-photo:nth-child(5) { grid-column: 4; grid-row: 3 / span 3; }
.team-photo:nth-child(6) { grid-column: 1; grid-row: 7 / span 2; }
.team-photo:nth-child(7) { grid-column: 4; grid-row: 6 / span 3; }
.team-photo:nth-child(8) { grid-column: 2 / span 2; grid-row: 8 / span 1; }
.team-photo:nth-child(n+9) { display: none; }

/* ==========================================================================
   نظرات، سوالات، مقالات
   ========================================================================== */
.testimonials-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: center; }
.testimonials-wrap > * { min-width: 0; }
.testimonials-swiper { overflow: hidden; width: 100%; }
.testimonial-card { position: relative; padding: 44px; border-radius: 28px; background: var(--surface); box-shadow: 0 20px 60px rgba(23, 48, 56, .06); }
.testimonial-card__quote { position: absolute; top: 26px; inset-inline-end: 34px; font-size: 80px; line-height: 1; color: var(--green); opacity: .15; }
.testimonial-card__stars { color: var(--amber); letter-spacing: 3px; margin-bottom: 12px; font-size: 18px; }
.testimonial-card__text { font-size: 19px; line-height: 2.1; color: var(--ink-2); margin-bottom: 26px; }
.testimonial-card__author { display: flex; align-items: center; gap: 14px; }
.testimonial-card__author img { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; }
.testimonial-card__author strong { display: block; color: var(--ink); }
.testimonial-card__author span { color: var(--muted); font-size: 14px; }
.nav-btns { display: flex; gap: 10px; margin-top: 26px; }
.nav-btns button { width: 56px; height: 56px; border-radius: 16px; background: var(--surface); display: grid; place-items: center; font-size: 22px; color: var(--ink); box-shadow: 0 10px 30px rgba(23, 48, 56, .06); transition: .35s var(--ease); }
.nav-btns button:hover { background: var(--amber); }

.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.faq-grid > * { min-width: 0; }
.accordion { display: grid; gap: 14px; }
.accordion__item { border-radius: 20px; background: var(--surface); overflow: hidden; box-shadow: 0 10px 30px rgba(23, 48, 56, .04); border: 1.5px solid transparent; transition: border-color .3s; }
.accordion__item.is-open { border-color: var(--green); }
.accordion__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; text-align: start; font-weight: 700; font-size: 17px; color: var(--ink); }
.accordion__head i { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); transition: transform .45s var(--ease), background .3s, color .3s; }
.accordion__item.is-open .accordion__head i { transform: rotate(45deg); background: var(--amber); color: var(--ink); }
.accordion__body { height: 0; overflow: hidden; transition: height .5s var(--ease); }
.accordion__body > div { padding: 0 26px 24px; color: var(--muted); }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; height: 100%; border-radius: 26px; overflow: hidden; background: var(--surface); box-shadow: 0 20px 50px rgba(23, 48, 56, .05); transition: transform .6s var(--ease), box-shadow .6s; }
.post-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(23, 48, 56, .1); }
.post-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.08); }
.post-card__date { position: absolute; top: 16px; inset-inline-start: 16px; padding: 6px 12px; border-radius: 12px; background: var(--amber); color: var(--ink); text-align: center; line-height: 1.3; font-weight: 800; }
.post-card__date b { display: block; font-size: 22px; }
.post-card__date small { font-size: 12px; }
.post-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { color: var(--green); font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.post-card__title { font-size: 19px; line-height: 1.7; margin-bottom: 10px; transition: color .3s; }
.post-card:hover .post-card__title { color: var(--green); }
.post-card__excerpt { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 800; }
.link-arrow i { transition: transform .4s var(--ease); }
.link-arrow:hover i { transform: translateX(-5px); }

/* ==========================================================================
   CTA و فوتر
   ========================================================================== */
.cta { position: relative; overflow: hidden; border-radius: 34px; padding: 70px 60px; }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3.6vw, 46px); margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .75); margin: 0; font-size: 18px; }
.cta .circle-btn { background: var(--amber); color: var(--ink); }
.cta .circle-btn::before { background: #fff; }

.site-footer { padding-top: 100px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px; }
.footer-grid > * { min-width: 0; }
.footer-about p { color: rgba(255, 255, 255, .6); margin: 22px 0 24px; }
.footer-title { font-size: 19px; margin-bottom: 24px; position: relative; padding-bottom: 14px; }
.footer-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 40px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--amber)); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, .65); display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before { content: ""; width: 0; height: 2px; border-radius: 2px; background: var(--amber); transition: width .4s var(--ease); }
.footer-links a:hover { color: var(--amber); }
.footer-links a:hover::before { width: 12px; }
.footer-contact li { display: flex; gap: 14px; margin-bottom: 18px; color: rgba(255, 255, 255, .65); }
.footer-contact i { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: rgba(79, 154, 83, .14); color: var(--green-2); display: grid; place-items: center; font-size: 19px; }
.footer-contact small { display: block; color: #fff; font-weight: 700; font-size: 14px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; font-size: 19px; transition: .4s var(--ease); }
.social a:hover { background: var(--amber); color: var(--ink); transform: translateY(-4px); }
.social--light a { background: var(--surface); color: var(--ink); box-shadow: 0 8px 20px rgba(23, 48, 56, .06); }
.footer-bottom { margin-top: 60px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255, 255, 255, .5); font-size: 14px; }
.footer-big { font-size: clamp(60px, 13vw, 210px); font-weight: 900; line-height: 1; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07); margin: 40px 0 -.18em; user-select: none; pointer-events: none; }

/* ==========================================================================
   شناورها، مودال، لایت‌باکس، اعلان
   ========================================================================== */
.to-top { position: fixed; z-index: 90; bottom: 26px; inset-inline-start: 26px; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: var(--amber); font-size: 22px; opacity: 0; visibility: hidden; transform: translateY(20px); transition: .5s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: var(--amber); stroke-width: 3; stroke-dasharray: 164; stroke-dashoffset: 164; }
.whatsapp-float { position: fixed; z-index: 90; bottom: 26px; inset-inline-end: 26px; width: 58px; height: 58px; border-radius: 18px; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 10px 30px rgba(37, 211, 102, .4); opacity: 0; visibility: hidden; transform: scale(.6); transition: .5s var(--ease); }
.whatsapp-float.is-visible { opacity: 1; visibility: visible; transform: none; }

.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(10, 23, 26, .92); opacity: 0; visibility: hidden; transition: .4s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 20px; overflow: hidden; transform: scale(.9); transition: transform .5s var(--ease); }
.modal.is-open .modal__box { transform: none; }
.modal__box iframe, .modal__box video { width: 100%; height: 100%; border: 0; }
.modal__close { position: absolute; top: 24px; inset-inline-end: 24px; width: 54px; height: 54px; border-radius: 16px; background: var(--amber); color: var(--ink); font-size: 26px; display: grid; place-items: center; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 16px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; display: grid; place-items: center; }
.lightbox__nav:hover { background: var(--amber); color: var(--ink); }
.lightbox__prev { right: 24px; }
.lightbox__next { left: 24px; }

.site-toast { position: fixed; z-index: 1100; top: 110px; left: 50%; transform: translate(-50%, -30px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 20px 50px rgba(10, 23, 26, .3); transition: .5s var(--ease); width: max-content; max-width: calc(100% - 32px); }
.site-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.site-toast i { font-size: 22px; color: var(--green-2); }
.site-toast.is-error i { color: #ff8a8a; }
.site-toast a { color: var(--amber); font-weight: 800; margin-inline-start: 6px; }
.fly-img { position: fixed; z-index: 1200; border-radius: 16px; pointer-events: none; object-fit: cover; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }

/* ==========================================================================
   صفحات داخلی
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--header-h) + 90px) 0 90px; overflow: hidden; }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 70px); margin-bottom: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px; border-radius: 12px; color: var(--green-2); background: rgba(79, 154, 83, .12); font-weight: 600; margin-bottom: 20px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb i { color: var(--amber); font-size: 14px; }
.breadcrumb span:last-child { color: #fff; }
.page-hero__img { position: absolute; top: 0; bottom: 0; left: 0; width: 42%; z-index: -1; -webkit-mask-image: linear-gradient(270deg, transparent, #000 60%); mask-image: linear-gradient(270deg, transparent, #000 60%); opacity: .45; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 50px; align-items: center; }
.filter-btn { display: inline-flex; align-items: center; gap: 6px; height: 50px; padding: 0 24px; border-radius: 14px; background: var(--surface); font-weight: 700; color: var(--ink); box-shadow: 0 8px 20px rgba(23, 48, 56, .05); transition: .35s var(--ease); }
.filter-btn sup { color: var(--green); font-size: 11px; }
.filter-btn:hover { color: var(--green); }
.filter-btn.is-active { background: var(--ink); color: #fff; }
.filter-btn.is-active sup { color: var(--amber); }
.projects-grid .project-card.is-hidden { display: none; }
.search-form { display: flex; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 20px rgba(23, 48, 56, .05); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; height: 50px; background: none; }
.search-form button { width: 54px; background: var(--amber); color: var(--ink); font-size: 20px; }
.select-sort { height: 50px; border: 0; border-radius: 14px; padding: 0 16px; background: var(--surface); font-weight: 600; box-shadow: 0 8px 20px rgba(23, 48, 56, .05); cursor: pointer; }

.project-hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; isolation: isolate; }
.project-hero__bg { position: absolute; inset: 0; z-index: -2; }
.project-hero__bg img { width: 100%; height: 115%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--teal-900) 4%, rgba(14, 30, 33, .4) 55%, rgba(14, 30, 33, .6)); }
.project-hero .container { position: relative; padding-bottom: 70px; }
.project-hero h1 { color: #fff; font-size: clamp(38px, 6.4vw, 92px); line-height: 1.2; margin-bottom: 18px; }
.project-info { display: grid; grid-template-columns: repeat(6, 1fr); border-radius: 24px; background: var(--surface); box-shadow: 0 20px 60px rgba(23, 48, 56, .06); overflow: hidden; }
.project-info > div { position: relative; padding: 24px 22px; }
.project-info > div + div::before { content: ""; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%; width: 2px; background: linear-gradient(180deg, transparent, var(--amber), transparent); }
.project-info > div:nth-child(even)::before { background: linear-gradient(180deg, transparent, var(--green), transparent); }
.project-info small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.project-info small i { color: var(--green); }
.project-info strong { font-size: 17px; color: var(--ink); }

.content-grid { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: start; }
.content-grid > * { min-width: 0; }
.prose { font-size: 17px; line-height: 2.1; color: var(--ink-2); }
.prose h2, .prose h3, .prose h4 { margin: 1.5em 0 .6em; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 23px; }
.prose a { color: var(--green); border-bottom: 1px dashed; }
.prose ul, .prose ol { padding: 0; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-inline-start: 28px; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .75em; width: 10px; height: 10px; border-radius: 3px; background: var(--amber); transform: rotate(45deg); }
.prose ol { list-style: persian inside; }
.prose img { border-radius: 16px; margin: 1.5em 0; height: auto; }
.prose blockquote { margin: 2em 0; padding: 28px 34px; border-radius: 20px; background: var(--surface); border-inline-start: 4px solid var(--green); font-size: 20px; font-weight: 700; color: var(--ink); }
.sidebar { position: sticky; top: 110px; display: grid; gap: 22px; }
.widget { padding: 28px; border-radius: 24px; background: var(--surface); box-shadow: 0 20px 50px rgba(23, 48, 56, .05); }
.widget__title { font-size: 19px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.widget-links a { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; margin-bottom: 8px; border-radius: 14px; background: var(--bg); font-weight: 600; transition: .35s var(--ease); }
.widget-links a:hover, .widget-links a.is-active { background: var(--ink); color: #fff; padding-inline-start: 22px; }
.widget--cta { text-align: center; color: #fff; overflow: hidden; }
.widget--cta h3 { color: #fff; }
.widget--cta p { color: rgba(255, 255, 255, .7); }
.widget--cta i.big { font-size: 46px; color: var(--amber); display: block; margin-bottom: 8px; }
.widget--cta a.phone { display: block; font-size: 24px; font-weight: 900; direction: ltr; margin: 8px 0 18px; color: var(--amber); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid a { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 3; }
.gallery-grid a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.08); }

.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-nav a { display: flex; align-items: center; gap: 18px; padding: 30px; border-radius: 24px; background: var(--surface); transition: .5s var(--ease); }
.project-nav a:last-child { justify-content: flex-end; text-align: end; }
.project-nav a:hover { background: var(--ink); color: #fff; }
.project-nav a:hover strong { color: #fff; }
.project-nav small { display: block; color: var(--green); font-weight: 700; }
.project-nav strong { font-size: clamp(17px, 2vw, 24px); color: var(--ink); transition: color .3s; }
.project-nav i { font-size: 28px; color: var(--amber); }

.service-hero-img { border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: 40px; }
.service-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.feature-item { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 16px; background: var(--surface); font-weight: 700; color: var(--ink); }
.feature-item i { color: var(--green); font-size: 22px; }
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mv-card { padding: 40px 34px; border-radius: 26px; background: var(--surface); box-shadow: 0 20px 50px rgba(23, 48, 56, .05); transition: transform .5s var(--ease); }
.mv-card:hover { transform: translateY(-8px); }
.mv-card i { font-size: 30px; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 20px; }
.mv-card:nth-child(2) i { background: var(--amber-soft); color: var(--amber-2); }
.mv-card p { color: var(--muted); margin: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-grid > * { min-width: 0; }
.about-img { position: relative; max-width: 480px; margin-inline: auto; width: 100%; }
.about-img .arch { border-radius: 999px 999px 26px 26px; overflow: hidden; aspect-ratio: 4 / 5; }
.about-img .arch img { width: 100%; height: 100%; object-fit: cover; }
.about-img__badge { position: absolute; bottom: 30px; inset-inline-start: -20px; padding: 18px 24px; border-radius: 20px; background: var(--amber); color: var(--ink); text-align: center; line-height: 1.3; font-weight: 800; box-shadow: 0 20px 40px rgba(251, 177, 46, .35); }
.about-img__badge strong { display: block; font-size: 40px; font-weight: 900; }

/* فرم‌ها */
.contact-grid { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 18px; padding: 24px; border-radius: 22px; background: var(--surface); box-shadow: 0 10px 30px rgba(23, 48, 56, .05); transition: transform .5s var(--ease); }
.contact-card:hover { transform: translateX(-6px); }
.contact-card i { flex-shrink: 0; width: 58px; height: 58px; border-radius: 16px; background: var(--green-soft); color: var(--green); font-size: 26px; display: grid; place-items: center; }
.contact-card:nth-child(even) i { background: var(--amber-soft); color: var(--amber-2); }
.contact-card small { color: var(--muted); display: block; }
.contact-card strong { color: var(--ink); display: block; }
.form-box { padding: 44px; border-radius: 28px; background: var(--surface); box-shadow: 0 20px 60px rgba(23, 48, 56, .06); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1.5px solid transparent; border-radius: 16px; padding: 26px 18px 10px; outline: 0; transition: border-color .3s, background .3s; }
.field textarea { min-height: 150px; resize: vertical; }
.field label { position: absolute; top: 18px; inset-inline-start: 18px; color: var(--muted); pointer-events: none; transition: .3s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--green); background: #fff; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: 12px; color: var(--green); }
.field .error { color: #d9485f; font-size: 13px; margin-top: 6px; display: block; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.map-box { margin-top: 60px; border-radius: 28px; overflow: hidden; height: 440px; }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.alert { padding: 14px 20px; border-radius: 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.alert--success { background: rgba(79, 154, 83, .12); color: #2f7a36; }
.alert--error { background: rgba(217, 72, 95, .1); color: #c03a50; }

/* فروشگاه: جزئیات، سبد، حساب */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-detail > * { min-width: 0; }
.pd-gallery__main { border-radius: 30px; overflow: hidden; aspect-ratio: 1; background: var(--surface); }
.pd-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery__thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pd-gallery__thumbs button { width: 90px; height: 90px; border-radius: 16px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: .3s; }
.pd-gallery__thumbs button.is-active { border-color: var(--amber); opacity: 1; }
.pd-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(28px, 3.4vw, 44px); }
.pd-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.pd-price { padding: 22px 26px; border-radius: 22px; background: var(--surface); margin: 24px 0; position: relative; }
.pd-price::before { content: ""; position: absolute; inset-inline-start: 0; top: 20px; bottom: 20px; width: 3px; border-radius: 3px; background: var(--amber); }
.pd-price .price-now { font-size: 32px; }
.qty { display: inline-flex; align-items: center; height: 60px; border-radius: 16px; background: var(--surface); overflow: hidden; }
.qty button { width: 50px; height: 100%; font-size: 20px; color: var(--ink); }
.qty button:hover { background: var(--bg-2); }
.qty input { width: 50px; text-align: center; border: 0; outline: 0; background: none; font-weight: 800; font-size: 18px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 20px; overflow: hidden; }
.specs th, .specs td { padding: 14px 20px; text-align: start; border-bottom: 1px solid var(--line); }
.specs th { width: 34%; color: var(--muted); font-weight: 600; background: #fafbfb; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 30px; align-items: start; }
.cart-layout > * { min-width: 0; }
.cart-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; padding: 18px; border-radius: 22px; background: var(--surface); margin-bottom: 14px; }
.cart-item img { width: 110px; height: 100px; border-radius: 16px; object-fit: cover; }
.cart-item h3 { font-size: 18px; margin: 0 0 4px; }
.cart-item__actions { display: flex; align-items: center; gap: 10px; }
.cart-item .qty { height: 46px; background: var(--bg); }
.cart-item .qty button { width: 40px; }
.cart-item .qty input { width: 40px; font-size: 16px; }
.remove-btn { width: 46px; height: 46px; border-radius: 14px; color: #d9485f; background: rgba(217, 72, 95, .08); font-size: 20px; display: grid; place-items: center; }
.summary { padding: 30px; border-radius: 26px; background: var(--surface); position: sticky; top: 110px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-row.total { border: 0; font-size: 20px; font-weight: 900; color: var(--ink); }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); border-radius: 28px; background: var(--surface); }
.empty-state i { font-size: 60px; color: var(--amber); display: block; margin-bottom: 8px; }
.steps-bar { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.steps-bar span { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 14px; background: var(--surface); color: var(--muted); font-weight: 600; }
.steps-bar span.is-active { background: var(--ink); color: #fff; }
.steps-bar b { width: 26px; height: 26px; border-radius: 8px; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-size: 13px; }

.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 60px; overflow: hidden; }
.auth-side h2 { font-size: clamp(30px, 3.4vw, 46px); }
.auth-side p { color: rgba(255, 255, 255, .7); max-width: 440px; }
.auth-side .hero-arch { position: absolute; top: 130px; left: 50%; width: 280px; height: 360px; margin-left: -140px; box-shadow: none; }
.auth-form { display: grid; place-items: center; padding: calc(var(--header-h) + 30px) 24px 60px; }
.auth-form__box { width: min(440px, 100%); }
.auth-form__box h1 { font-size: 32px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 16px; background: var(--bg-2); margin-bottom: 28px; }
.auth-tabs a { text-align: center; padding: 12px; border-radius: 12px; font-weight: 800; color: var(--muted); }
.auth-tabs a.is-active { background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(23, 48, 56, .08); }
.account-grid { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.account-grid > * { min-width: 0; }
.account-card { padding: 28px; border-radius: 26px; background: var(--surface); }
.account-user { text-align: center; }
.account-user__avatar { width: 90px; height: 90px; margin: 0 auto 14px; border-radius: 26px; display: grid; place-items: center; background: var(--amber); color: var(--ink); font-size: 36px; font-weight: 900; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: 14px; }
.table-wrap { overflow-x: auto; }
.status { display: inline-flex; padding: 4px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.status--amber { background: var(--amber-soft); color: #a86b00; }
.status--blue { background: rgba(59, 130, 246, .12); color: #2563eb; }
.status--green { background: var(--green-soft); color: #2f7a36; }
.status--rose { background: rgba(217, 72, 95, .1); color: #c03a50; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 48px; height: 48px; padding: 0 12px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); font-weight: 700; color: var(--ink); }
.pagination a:hover { color: var(--green); }
.pagination .is-active { background: var(--ink); color: #fff; }
.pagination .is-disabled { opacity: .4; }
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px 24px 60px; }
.error-page__code { font-size: clamp(120px, 24vw, 280px); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--amber); }
.error-page p { color: rgba(255, 255, 255, .7); }
.reading-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 101; background: linear-gradient(90deg, var(--green), var(--amber)); transform: scaleX(0); transform-origin: right; }
.share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 6px 16px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.tags a:hover, .tags a.is-active { background: var(--amber); color: var(--ink); }
.recent-post { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.recent-post img { width: 76px; height: 66px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.recent-post strong { font-size: 15px; line-height: 1.6; display: block; color: var(--ink); transition: color .3s; }
.recent-post:hover strong { color: var(--green); }
.recent-post small { color: var(--muted); }
.post-head-meta { display: flex; flex-wrap: wrap; gap: 20px; color: rgba(255, 255, 255, .7); }
.post-head-meta i { color: var(--amber); margin-inline-end: 6px; }

/* ==========================================================================
   انیمیشن‌ها (وقتی GSAP بارگذاری شده)
   ========================================================================== */
.split-word { display: inline-block; }
.gsap-ready [data-reveal], .gsap-ready [data-split] { opacity: 0; }
.gsap-ready [data-split].is-split { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .gsap-ready [data-reveal], .gsap-ready [data-split] { opacity: 1 !important; }
}

/* ==========================================================================
   واکنش‌گرایی
   ========================================================================== */
@media (min-width: 992px) {
    .projects-h.is-pinned { height: 100vh; padding: 0; display: flex; flex-direction: column; justify-content: center; }
    .projects-h.is-pinned .sec-head { margin-bottom: 26px; margin-top: 60px; }
    .projects-h.is-pinned .project-card__media { aspect-ratio: auto; height: min(30vh, 290px); }
}
@media (max-width: 1199px) {
    .main-nav { display: none; }
    .header-actions { margin-inline-start: auto; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .project-info { grid-template-columns: repeat(3, 1fr); }
    .content-grid { grid-template-columns: 1fr 300px; gap: 36px; }
    .team-collage { grid-auto-rows: 70px; }
}
@media (max-width: 991px) {
    :root { --header-h: 88px; }
    .section { padding: 80px 0; }
    .hero-slide { grid-template-columns: 1fr; gap: 10px; }
    .hero-slide__content { padding-bottom: 20px; }
    .hero-slide__media { height: 60vh; min-height: 380px; }
    .hero-ui .scroll-down { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .services-grid, .projects-grid, .posts-grid, .promo-grid, .mv-grid { grid-template-columns: 1fr 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .partner:nth-child(4n)::before, .partner:nth-child(4n) .partner-marker { display: block; }
    .partner:nth-child(2n)::before, .partner:nth-child(2n) .partner-marker { display: none; }
    .team-layout, .testimonials-wrap, .faq-grid, .content-grid, .contact-grid, .about-grid, .product-detail, .cart-layout, .account-grid, .auth-wrap { grid-template-columns: 1fr; }
    .team-text { padding-bottom: 0; }
    .auth-side { display: none; }
    .sidebar, .summary { position: static; }
    .projects-h { padding: 80px 0 30px; }
    .projects-h__track { flex-direction: column; width: auto; padding: 0 24px 20px; }
    .projects-h .project-card { width: 100%; }
    .projects-h__end, .projects-h__progress { display: none; }
    .page-hero__img { width: 100%; opacity: .2; }
}
@media (max-width: 767px) {
    body { font-size: 15px; }
    .container { padding-inline: 20px; }
    .header-inner { gap: 10px; }
    .header-inner::after { width: 130px; inset-inline-start: 20px; }
    .header-actions { gap: 6px; }
    .brand__mark { width: 42px; height: 42px; }
    .brand__name { font-size: 18px; }
    .brand__tag { font-size: 9.5px; }
    .auth-pill { height: 48px; padding: 0 14px; gap: 8px; border-radius: 14px; font-size: 14px; }
    .auth-pill i { font-size: 18px; }
    .icon-circle { width: 40px; height: 40px; font-size: 20px; }
    .burger { width: 36px; }
    .burger span { width: 26px; }
    .hero-tags span { padding: 10px 18px; font-size: 15px; }
    .hero-designer { padding: 10px 14px; gap: 12px; }
    .hero-designer img { width: 52px; height: 52px; }
    .hero-slide__desc { font-size: 16px; }
    .hero-leaf { width: 110px; height: 110px; }
    .hero-leaf--l { width: 90px; height: 90px; }
    .stats-grid { gap: 12px; }
    .stat { padding: 18px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .stat__value { font-size: 28px; }
    .services-grid, .projects-grid, .posts-grid, .promo-grid, .mv-grid, .products-grid, .feature-grid, .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .project-info { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .project-nav { grid-template-columns: 1fr; }
    .tl-step { height: 120px; }
    .tl-step:hover, .tl-step.is-open { height: 200px; }
    .tl-step__box { width: 72%; padding: 14px 20px; }
    .promo-card__body { padding: 64px 24px 28px; }
    .promo-card__actions .btn { height: 56px; padding: 0 12px; }
    .partners-box { padding: 140px 14px 30px; }
    .partner { min-height: 130px; }
    .team-collage { grid-auto-rows: 64px; gap: 10px; }
    .form-box, .testimonial-card { padding: 26px 20px; }
    .cart-item { grid-template-columns: 84px 1fr; }
    .cart-item img { width: 84px; height: 80px; }
    .cart-item__actions { grid-column: 1 / -1; justify-content: space-between; }
    .cta { padding: 50px 26px; }
    .whatsapp-float { width: 52px; height: 52px; font-size: 26px; bottom: 18px; inset-inline-end: 18px; }
    .to-top { bottom: 18px; inset-inline-start: 22px; }
}
@media (max-width: 370px) {
    .auth-pill__reg, .auth-pill .sep { display: none; }
}
.tl-sep { position: relative; height: 0; z-index: 4; }
.tl-sep .tl-arrow { top: 0; }
.stats-wrap.section--tight { margin-top: 0; }
.project-hero + .section--tight { margin-top: -60px; position: relative; z-index: 3; padding-top: 0; }

/* نشان وضعیت روی لبه مورب تصویر کارت‌ها */
.card-top { position: relative; }
.card-top__badge { position: absolute; z-index: 3; top: 78%; inset-inline-start: 22px; transform: translateY(-78%) rotate(-5deg); box-shadow: 0 8px 18px rgba(23, 48, 56, .12); }
.card-top__badge--sm { top: 80%; height: 38px; padding: 0 16px; font-size: 14px; }
.product-card__cat, .project-card__badge { display: none; }
.hero-controls { display: flex; align-items: center; gap: 22px; }
.hero-diamond { width: 92%; margin-left: -46%; bottom: 12%; }
.testimonials-wrap { grid-template-columns: 440px 1fr; }
@media (max-width: 991px) {
    .hero-ui { bottom: 24px; }
    .hero-slide__media { margin-bottom: 40px; }
    .testimonials-wrap { grid-template-columns: 1fr; }
}
.auth-form .field input { background: #fff; box-shadow: 0 6px 18px rgba(23, 48, 56, .04); }
.widget.grid-bg { background: var(--teal-900); }

/* ==========================================================================
   منوی همبرگری (کشویی)
   ========================================================================== */
.menu-overlay { justify-content: flex-start; padding: calc(var(--header-h) + 20px) 0 40px; }
.menu-overlay__inner { max-width: 760px; }
.menu-overlay__user { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); margin-bottom: 18px; opacity: 0; transform: translateY(20px); transition: .6s var(--ease) .15s; }
.menu-overlay.is-open .menu-overlay__user { opacity: 1; transform: none; }
.menu-overlay__avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 22px; flex-shrink: 0; }
.menu-overlay__user strong { display: block; font-size: 17px; }
.menu-overlay__user a { color: var(--amber); font-weight: 700; }
.menu-overlay__user span { color: var(--muted); }
.menu-overlay__links li { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.menu-overlay__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow: hidden; }
.menu-overlay__links a { font-size: clamp(24px, 6.4vw, 46px); line-height: 1.9; }
.menu-overlay__links li.is-current > .menu-overlay__row > a { color: var(--amber); }
.menu-overlay__sub-toggle { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 22px; display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.menu-overlay li.sub-open .menu-overlay__sub-toggle { transform: rotate(45deg); background: var(--amber); color: var(--ink); }
.menu-overlay__sub { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); display: grid; }
.menu-overlay__sub a { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1.6; font-weight: 600; padding: 10px 6px; color: rgba(255, 255, 255, .8); transform: none; }
.menu-overlay__sub a:last-child { margin-bottom: 12px; }
.menu-overlay__sub a i { color: var(--green-2); font-size: 18px; }
.menu-overlay__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; opacity: 0; transform: translateY(20px); transition: .6s var(--ease) .45s; }
.menu-overlay.is-open .menu-overlay__actions { opacity: 1; transform: none; }
.menu-overlay__actions .btn { flex: 1 1 200px; }
.menu-overlay__info a { display: inline-flex; align-items: center; gap: 8px; }
.menu-overlay__info i { color: var(--green-2); }
.menu-overlay__info .social { margin-top: 8px; }
body.menu-open .whatsapp-float, body.menu-open .to-top { opacity: 0; visibility: hidden; }

/* ==========================================================================
   نوار ناوبری پایین (موبایل)
   ========================================================================== */
.bottom-nav { display: none; }
@media (max-width: 991px) {
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .bottom-nav {
        position: fixed; z-index: 120; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: 66px; padding: 0 6px;
        border-radius: 22px; background: rgba(255, 255, 255, .92);
        -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
        box-shadow: 0 12px 40px rgba(10, 23, 26, .18), 0 0 0 1px rgba(23, 48, 56, .05);
        transition: transform .5s var(--ease);
    }
    .bottom-nav > a, .bottom-nav > button {
        position: relative; height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        color: var(--muted); font-size: 11.5px; font-weight: 700; -webkit-tap-highlight-color: transparent;
    }
    .bottom-nav > a > i, .bottom-nav__icon > i { font-size: 23px; line-height: 1; }
    .bottom-nav i[class$="-fill"] { display: none; }
    .bottom-nav .is-active { color: var(--ink); }
    .bottom-nav .is-active i[class$="-line"] { display: none; }
    .bottom-nav .is-active i[class$="-fill"] { display: inline-block; color: var(--green); }
    .bottom-nav > a.is-active::after { content: ""; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
    .bottom-nav__icon { position: relative; line-height: 1; }
    .bottom-nav__icon .cart-count { top: -8px; inset-inline-end: -12px; }
    .bottom-nav__main { justify-content: flex-end !important; padding-bottom: 8px; color: var(--ink) !important; }
    .bottom-nav__main::after { display: none; }
    .bottom-nav__fab {
        position: absolute; top: -22px; left: 50%; margin-left: -29px; width: 58px; height: 58px; border-radius: 20px;
        display: grid; place-items: center; font-size: 26px; background: var(--amber); color: var(--ink);
        box-shadow: 0 10px 24px rgba(251, 177, 46, .45), 0 0 0 6px var(--bg); transform: rotate(45deg); transition: transform .5s var(--ease);
    }
    .bottom-nav__fab i { transform: rotate(-45deg); }
    .bottom-nav__main:active .bottom-nav__fab, .bottom-nav__main.is-active .bottom-nav__fab { transform: rotate(45deg) scale(.94); background: var(--ink); color: var(--amber); }
    .bottom-nav__burger { width: 24px; height: 23px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
    .bottom-nav__burger span { height: 2.5px; border-radius: 2px; background: currentColor; transition: .45s var(--ease); }
    .bottom-nav__burger span:nth-child(2) { width: 70%; margin-inline-start: auto; }
    .bottom-nav button.is-open { color: var(--ink); }
    .bottom-nav button.is-open .bottom-nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .bottom-nav button.is-open .bottom-nav__burger span:nth-child(2) { opacity: 0; }
    .bottom-nav button.is-open .bottom-nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    body.menu-open .bottom-nav { background: rgba(255, 255, 255, .98); }

    .whatsapp-float { bottom: calc(92px + env(safe-area-inset-bottom)); }
    .to-top { bottom: calc(92px + env(safe-area-inset-bottom)); }
    .site-toast { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); }
    .site-toast.is-visible { transform: translate(-50%, 0); }
    .scroll-indicator { display: none; }
    /* در موبایل منوی همبرگری هدر حذف و از نوار پایین استفاده می‌شود */
    .site-header .burger { display: none; }
    .menu-overlay { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* پیشنهاد نصب اپلیکیشن */
.install-banner {
    position: fixed; z-index: 130; inset-inline: 12px; bottom: calc(88px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px;
    background: var(--teal-900); color: #fff; box-shadow: 0 20px 50px rgba(10, 23, 26, .35);
    transform: translateY(30px); opacity: 0; transition: .5s var(--ease); max-width: 520px; margin-inline: auto;
}
.install-banner.is-visible { transform: none; opacity: 1; }
.install-banner img { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; }
.install-banner__text { flex: 1; min-width: 0; line-height: 1.6; }
.install-banner__text strong { display: block; font-size: 15px; }
.install-banner__text span { color: var(--muted); font-size: 12.5px; }
.install-banner .btn { height: 42px; padding: 0 18px; flex-shrink: 0; }
.install-banner__close { width: 32px; height: 32px; border-radius: 10px; color: var(--muted); font-size: 20px; display: grid; place-items: center; flex-shrink: 0; }
@media (min-width: 992px) { .install-banner { bottom: 26px; inset-inline-start: auto; inset-inline-end: 100px; } }

/* نسخه نصب‌شده (standalone) و ناحیه امن آیفون */
.site-header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
.site-header.is-scrolled { height: calc(84px + env(safe-area-inset-top)); }
.is-standalone .whatsapp-float { display: none; }
.container { padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right)); }
@media (max-width: 767px) { .container { padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right)); } }
/* ناحیه لمس بزرگ‌تر در موبایل */
.hero-dots button::before { content: ""; position: absolute; inset: -14px -6px; }
.hero-dots button { overflow: visible; }
.hero-dots button.is-active { overflow: hidden; }
.auth-pill { padding: 0 12px; }
.auth-pill a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; }
@media (max-width: 991px) { .bottom-nav .bottom-nav__fab i { display: inline-block !important; color: inherit !important; } }
.hero-diamond { width: min(92%, 440px); margin-left: calc(min(92%, 440px) / -2); }
@media (max-width: 767px) {
    .hero-designer { display: inline-grid; grid-template-columns: auto auto; column-gap: 14px; row-gap: 0; align-items: center; line-height: 1.5; }
    .hero-designer img { grid-row: span 2; }
    .hero-designer strong { font-size: 17px; white-space: nowrap; }
    .hero-designer span { font-size: 13px; white-space: nowrap; }
}

/* ==========================================================================
   ویژگی‌های نمایشی ویژه
   ========================================================================== */

/* ---------- ۱. اسلایدر قبل و بعد ---------- */
.ba { position: relative; aspect-ratio: 16 / 8.5; border-radius: 30px; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--teal-800); box-shadow: 0 30px 70px rgba(23, 48, 56, .12); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); will-change: clip-path; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, .35); outline: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 20px; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-size: 26px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transform: rotate(45deg); transition: transform .4s var(--ease); }
.ba__knob i { transform: rotate(-45deg); }
.ba:hover .ba__knob, .ba__handle:focus-visible .ba__knob, .ba.is-dragging .ba__knob { transform: rotate(45deg) scale(1.12); }
.ba__handle:focus-visible { box-shadow: 0 0 0 4px var(--amber); }
.ba__label { position: absolute; top: 22px; padding: 8px 18px; border-radius: 12px; font-weight: 800; font-size: 14px; color: #fff; background: rgba(14, 30, 33, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; transition: opacity .3s; }
.ba__label--before { right: 22px; }
.ba__label--after { left: 22px; }
.showcase-caption { text-align: center; color: var(--muted); margin: 20px 0 0; }
.showcase-caption i { color: var(--amber); }

/* ---------- ۲. ساختمان در حال ساخت ---------- */
.timeline-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 30px; align-items: start; }
.timeline-layout > * { min-width: 0; }
.building-wrap { position: sticky; top: 110px; }
.building-card { position: relative; padding: 26px 22px 20px; border-radius: 30px; background: var(--surface); box-shadow: 0 20px 60px rgba(23, 48, 56, .08); overflow: hidden; }
.building-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(23, 48, 56, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 48, 56, .05) 1px, transparent 1px); background-size: 22px 22px; }
.bld { position: relative; width: 100%; height: auto; overflow: visible; }
.bld line, .bld rect, .bld path, .bld circle { vector-effect: non-scaling-stroke; }
.bld-ground { stroke: var(--ink); stroke-width: 2.5; }
.bld-tree circle { fill: var(--green-2); opacity: .85; }
.bld-tree line { stroke: #7b5a3a; stroke-width: 3; }
.bld-sketch { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 6 5; }
.bld-dim line { stroke: var(--muted); stroke-width: 1.2; }
.bld-dim text { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.bld-found rect { fill: #8a969a; }
.bld-found line { stroke: #8a969a; stroke-width: 3; }
.bld-col { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.bld-slab { stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; }
.bld-crane line { stroke: var(--amber-2); stroke-width: 2.5; }
.bld-crane .bld-hook { stroke: var(--ink); stroke-width: 1.5; }
.bld-weight { fill: var(--ink); }
.bld-panel { fill: var(--teal-700); }
.bld-win { fill: #9ed2e4; opacity: .9; }
.bld-win.is-lit { fill: var(--amber); }
.bld-roof { fill: var(--ink); }
.bld-door rect { fill: var(--amber); }
.bld-flag line { stroke: var(--ink); stroke-width: 2; }
.bld-flag path { fill: var(--green); }
.building-card__stage { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.building-card__stage span { width: 38px; height: 38px; border-radius: 12px; background: var(--amber); color: var(--ink); font-weight: 900; display: grid; place-items: center; flex-shrink: 0; }
.building-card__stage strong { color: var(--ink); font-size: 17px; }
.building-card__bar { position: relative; height: 5px; border-radius: 5px; background: var(--bg-2); margin-top: 14px; overflow: hidden; }
.building-card__bar span { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--green), var(--amber)); }
@media (max-width: 991px) {
    .timeline-layout { grid-template-columns: 1fr; }
    .building-wrap { order: -1; position: sticky; top: calc(var(--header-h) + 6px); z-index: 5; }
    .building-card { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; align-items: center; padding: 12px 16px; border-radius: 22px; }
    .building-card .bld { grid-row: span 2; height: 150px; }
    .building-card__stage { margin: 0; }
    .building-card__bar { margin: 0; }
}

/* ---------- ۳. ماشین‌حساب ---------- */
.calc { display: grid; grid-template-columns: 1fr 460px; gap: 30px; align-items: stretch; }
.calc > * { min-width: 0; }
.calc__form { padding: 36px; border-radius: 30px; background: var(--surface); box-shadow: 0 20px 60px rgba(23, 48, 56, .06); display: grid; gap: 26px; }
.calc__field label, .calc__label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.calc__field output { display: inline-block; min-width: 60px; padding: 2px 12px; margin: 0 4px; border-radius: 10px; background: var(--amber-soft); color: var(--ink); font-weight: 900; text-align: center; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(to left, var(--amber) var(--fill, 50%), var(--bg-2) var(--fill, 50%)); outline: none; direction: rtl; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); border: 4px solid #fff; box-shadow: 0 6px 16px rgba(23, 48, 56, .3); cursor: grab; transform: rotate(45deg); }
.calc input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 9px; background: var(--ink); border: 4px solid #fff; cursor: grab; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 18px; background: var(--bg); }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: .35s var(--ease); }
.seg input:checked + span { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(23, 48, 56, .2); }
.seg input:focus-visible + span { outline: 2px solid var(--amber); }
.switch-row { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row__track { position: relative; width: 52px; height: 30px; border-radius: 30px; background: var(--bg-2); transition: .3s; flex-shrink: 0; }
.switch-row__track::after { content: ""; position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: .35s var(--ease); }
.switch-row input:checked + .switch-row__track { background: var(--green); }
.switch-row input:checked + .switch-row__track::after { transform: translateX(-22px); }
.calc__result { padding: 36px; border-radius: 30px; display: flex; flex-direction: column; }
.calc__caption { color: var(--green-2); font-weight: 700; }
.calc__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.calc__total span { font-size: clamp(34px, 4vw, 50px); font-weight: 900; line-height: 1.2; color: #fff; }
.calc__total small { color: var(--muted); font-size: 16px; }
.calc__words { color: var(--amber); font-weight: 700; min-height: 1.9em; }
.calc__range { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.calc__breakdown { display: grid; gap: 10px; margin-bottom: 24px; }
.calc__breakdown li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.calc__breakdown span { color: var(--muted); }
.calc__breakdown b { color: #fff; }
.calc__result .btn { margin-top: auto; }
.calc__note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.calc-modal { place-items: end center; }
.calc-modal__box { position: relative; width: min(560px, 100%); padding: 34px 30px 30px; border-radius: 28px; background: var(--surface); transform: translateY(40px); transition: transform .5s var(--ease); margin: auto; }
.calc-modal.is-open .calc-modal__box { transform: none; }
.calc-modal__box .modal__close { position: absolute; top: 18px; left: 18px; right: auto; width: 44px; height: 44px; font-size: 22px; }
.calc-modal__summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 20px; }
.calc-modal__summary div { padding: 10px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.calc-modal__summary b { display: block; color: var(--ink); }
@media (max-width: 991px) { .calc { grid-template-columns: 1fr; } .calc__form, .calc__result { padding: 26px 20px; } }

/* ---------- ۴. پروژه سه‌بعدی ---------- */
.tower-section { overflow: clip; }
.tower-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.tower-layout > * { min-width: 0; }
.tower-text h3 { font-size: clamp(24px, 3vw, 36px); }
.tower-text p { color: rgba(255, 255, 255, .75); }
.tower-facts { display: grid; gap: 10px; margin: 24px 0 30px; }
.tower-facts li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.tower-facts i { color: var(--amber); font-size: 20px; }
.tower-facts span { color: var(--muted); }
.tower-facts b { margin-inline-start: auto; }
.tower-stage { position: relative; height: min(70vh, 620px); min-height: 380px; border-radius: 30px; overflow: hidden; touch-action: pan-y; cursor: grab; background: radial-gradient(circle at 50% 30%, rgba(108, 192, 112, .12), transparent 60%); }
.tower-stage:active { cursor: grabbing; }
.tower-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.tower-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .8s; }
.tower-stage.is-3d .tower-fallback { opacity: 0; pointer-events: none; }
.tower-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 12px; background: rgba(14, 30, 33, .7); color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none; transition: opacity .5s; }
.tower-stage.was-dragged .tower-hint { opacity: 0; }
.tower-toggle { position: absolute; top: 16px; left: 16px; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 20px; display: none; place-items: center; }
.tower-stage.is-3d .tower-toggle { display: grid; }
.tower-toggle:hover { background: var(--amber); color: var(--ink); }
@media (max-width: 991px) { .tower-layout { grid-template-columns: 1fr; } .tower-stage { height: 440px; } }

/* عمق سه‌بعدی تصویر هیرو */
.hero-slide__media { transform-style: preserve-3d; perspective: 1000px; }

/* ---------- ۵. هدر روی بخش‌های تیره ---------- */
.site-header.is-scrolled.on-dark { background: rgba(14, 30, 33, .82); color: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.site-header.is-scrolled.on-dark::after { background: rgba(255, 255, 255, .08); }
.site-header.is-scrolled.on-dark .header-inner::after { background: #fff; }
.site-header.is-scrolled.on-dark .auth-pill { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .08); color: #fff; }
.site-header.is-scrolled.on-dark .auth-pill i { color: var(--amber); }
.site-header.is-scrolled.on-dark .icon-circle { color: var(--green-2); }
.cursor.on-light { border-color: var(--ink); }
.cursor-dot.on-light { background: var(--ink); }

/* ---------- ۶. لوگو در انتقال صفحه ---------- */
.page-transition { align-items: stretch; }
.pt-logo { position: absolute; top: 50%; left: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; opacity: 0; }

/* پیش‌بارگذار (صفحه شروع اپلیکیشن) */
.preloader__tag { color: rgba(255, 255, 255, .45); font-size: 12px; margin-top: 4px; }
.is-standalone .preloader__logo path { animation-duration: 1.1s; }

/* ---------- ۷. شمارنده کیلومترشمار و خط‌کش ---------- */
.odo { display: inline-flex; align-items: flex-start; direction: ltr; height: 1.2em; overflow: hidden; line-height: 1.2; }
.odo__col { display: inline-flex; flex-direction: column; will-change: transform; }
.odo__col span { height: 1.2em; flex-shrink: 0; }
.odo__sep { display: inline-block; }
.stat { flex-wrap: wrap; }
.stat__ruler { flex-basis: 100%; height: 10px; margin-top: 4px; position: relative; background-image: repeating-linear-gradient(90deg, rgba(23, 48, 56, .25) 0 1px, transparent 1px 8px); background-size: 100% 6px; background-repeat: no-repeat; background-position: bottom; }
.stat__ruler::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--fill, 0) * 100%); background: repeating-linear-gradient(90deg, var(--amber) 0 2px, transparent 2px 8px); background-size: 100% 10px; background-repeat: no-repeat; background-position: bottom; transition: width 2.2s var(--ease); }
.stat:nth-child(even) .stat__ruler::before { background-image: repeating-linear-gradient(90deg, var(--green) 0 2px, transparent 2px 8px); }

/* ---------- ۸. بزرگ‌نمایی گالری ---------- */
.lightbox__img { will-change: transform; }
.modal.is-dragging { transition: none; }

/* ---------- ۹. نقشه پروژه‌ها ---------- */
.pmap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center; padding: 30px; border-radius: 32px; background: var(--teal-900); overflow: hidden; position: relative; }
.pmap > * { min-width: 0; }
.pmap__svg { width: 100%; height: auto; overflow: visible; }
.pmap__land { fill: rgba(79, 154, 83, .12); }
.pmap__outline { fill: none; stroke: rgba(108, 192, 112, .7); stroke-width: 2.5; stroke-linejoin: round; }
.pmap__dot { cursor: pointer; outline: none; }
.pmap__core { fill: var(--amber); stroke: var(--teal-900); stroke-width: 3; transition: r .3s; }
.pmap__pulse { fill: var(--amber); opacity: .5; transform-box: fill-box; transform-origin: center; animation: pmapPulse 2.2s infinite var(--ease); }
.pmap__dot:hover .pmap__core, .pmap__dot.is-active .pmap__core, .pmap__dot:focus-visible .pmap__core { fill: #fff; r: 10; }
@keyframes pmapPulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }
.pmap__list { display: grid; gap: 12px; align-content: center; }
.pmap__card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 20px; background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid rgba(255, 255, 255, .06); transition: background .3s; }
[hidden] { display: none !important; }
.pmap__card:hover { background: rgba(255, 255, 255, .1); }
.pmap__card img { width: 84px; height: 72px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.pmap__card div { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.pmap__card small { color: var(--muted); }
.pmap__card strong { font-size: 16px; }
.pmap__card .badge { height: 28px; padding: 0 10px; font-size: 12px; }
.pmap__card > i { font-size: 22px; color: var(--amber); }
.pmap__hint { color: var(--muted); padding: 16px; border-radius: 16px; border: 1.5px dashed rgba(255, 255, 255, .15); text-align: center; }
.pmap__legend { display: flex; gap: 10px; }
.pmap__legend span { flex: 1; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); color: var(--muted); text-align: center; }
.pmap__legend b { display: block; font-size: 26px; color: var(--amber); }
@media (max-width: 991px) { .pmap { grid-template-columns: 1fr; padding: 18px; } }

/* ---------- ۱۰. ویدیوی کارت پروژه ---------- */
.card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; z-index: 1; }
.card-video.is-playing { opacity: 1; }
.card-video__badge { position: absolute; z-index: 3; top: 30px; left: 30px; width: 38px; height: 38px; border-radius: 12px; background: rgba(14, 30, 33, .6); color: #fff; display: grid; place-items: center; font-size: 18px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .4s; }
.project-card__media:has(.card-video.is-playing) .card-video__badge { opacity: 0; }

/* ---------- ۱۲. کشیدن برای بستن ---------- */
.menu-overlay::before { content: ""; position: absolute; top: calc(var(--header-h) + 6px); left: 50%; width: 48px; height: 5px; margin-left: -24px; border-radius: 5px; background: rgba(255, 255, 255, .2); }
@media (min-width: 992px) { .menu-overlay::before { display: none; } }

@media (prefers-reduced-motion: reduce) {
    .pmap__pulse { animation: none; }
}
