:root {
  --bg: #f4f7fb;
  --paper: #ffffff;
  --ink: #1c2a3a;
  --muted: #6d7b8a;
  --blue: #2f6fed;
  --blue-2: #1d4ed8;
  --line: #e4ebf3;
  --shadow: 0 16px 36px rgba(28, 42, 58, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Vazirmatn, sans-serif; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2 { margin: 0; line-height: 1.25; }
.brand__en { font-family: "Cormorant Garamond", serif; letter-spacing: .14em; text-transform: uppercase; font-size: 1.35rem; display: block; line-height: 1; }
main { width: min(1180px, calc(100% - 28px)); margin: 0 auto 32px; display: grid; gap: 26px; }

.head {
  width: min(1180px, calc(100% - 28px)); margin: 12px auto;
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border-radius: 999px; padding: 8px 14px;
  position: sticky; top: 8px; z-index: 8; box-shadow: var(--shadow);
}
.head nav { display: flex; gap: 16px; flex: 1; justify-content: center; font-size: .88rem; }
.head nav a { position: relative; }
.head nav a::after { content: ""; position: absolute; right: 0; bottom: -4px; height: 2px; width: 0; background: var(--blue); transition: width .3s; }
.head nav a:hover::after { width: 100%; }
.tools { display: flex; align-items: center; gap: 6px; }
.icon, .btn, .more { border: 0; cursor: pointer; transition: transform .28s, background .28s, box-shadow .28s, color .28s; }
.icon { width: 38px; height: 38px; border-radius: 50%; background: transparent; position: relative; }
.icon:hover { background: #eef3fb; transform: translateY(-2px); }
#cartCount { position: absolute; top: 0; inset-inline-start: 0; background: var(--blue); color: #fff; border-radius: 99px; min-width: 16px; height: 16px; font-size: .65rem; display: grid; place-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border-radius: 999px; padding: 10px 16px; }
.btn:hover { background: var(--blue-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; }
.brand small { color: var(--muted); font-size: .68rem; letter-spacing: .04em; }

.hero { position: relative; border-radius: 28px; overflow: hidden; min-height: 540px; background: #e8eef6; }
.hero img { width: 100%; height: 540px; object-fit: cover; animation: ken 18s ease-in-out infinite alternate; }
.hero__copy { position: absolute; z-index: 1; color: var(--ink); inset-inline-end: 6%; top: 16%; width: min(420px, 46%); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
.hero__copy p { max-width: 34ch; color: #314255; }
.play {
  position: absolute; z-index: 2; inset-inline-start: 7%; bottom: 18%;
  width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fff; color: var(--blue);
  box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; font-size: 1.2rem;
  animation: pulse 2.4s ease-in-out infinite;
}
.play:hover { transform: scale(1.08); }

.feats { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.feats i { width: 48px; height: 48px; margin: 0 auto 6px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; transition: transform .3s, background .3s, color .3s; }
.feats li:hover i { background: var(--blue); color: #fff; transform: translateY(-4px); }
.feats small { color: var(--muted); display: block; }

.inspire, .sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; flex: 1; }
.thumbs figure, .cats a, .card, .projs figure { margin: 0; background: var(--paper); border-radius: 18px; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.thumbs img, .cats img, .card img, .projs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .55s; }
.thumbs figcaption, .cats a, .card__b, .projs figcaption { padding: 8px 12px 12px; }
.thumbs figure:hover, .cats a:hover, .card:hover, .projs figure:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.thumbs figure:hover img, .cats a:hover img, .card:hover img, .projs figure:hover img, .consult:hover img, .spring:hover img { transform: scale(1.06); }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cats a { display: grid; }
.cats span, .projs span, .why span { color: var(--muted); display: block; font-size: .8rem; }
.wrap { display: grid; gap: 12px; }
.sec p { margin: 0; color: var(--muted); }

.consult, .spring { position: relative; overflow: hidden; border-radius: 24px; min-height: 180px; color: #fff; }
.consult { background: var(--blue); display: grid; grid-template-columns: 180px 1fr; align-items: center; }
.consult img { height: 180px; width: 180px; object-fit: cover; }
.consult div, .spring div { padding: 20px; position: relative; z-index: 1; }
.spring img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spring div { background: linear-gradient(90deg, rgba(20,40,70,.72), rgba(20,40,70,.15)); min-height: 180px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }

.filters { display: flex; gap: 8px; }
.filters button { border: 0; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.filters button.is-on, .filters button:hover { background: var(--blue); color: #fff; }
.cards, .projs { display: grid; gap: 12px; }
.cards { grid-template-columns: repeat(4, 1fr); }
.projs { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; }
.heart { position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: var(--blue); cursor: pointer; }
.heart.is-on { background: var(--blue); color: #fff; }
.card__b { display: flex; justify-content: space-between; align-items: flex-end; }
.card__b button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; cursor: pointer; }
.card__b button:hover, .heart:hover { transform: scale(1.08); }
.more { background: none; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; justify-self: center; }
.more:hover { gap: 10px; }

.band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.about, .why, .touch > div { background: var(--paper); border-radius: 22px; padding: 22px; }
.why ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; }
.why i { width: 40px; height: 40px; border-radius: 50%; background: #eef3fb; color: var(--blue); display: grid; place-items: center; grid-row: span 2; }
.touch { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.touch ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.touch li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.touch li i { grid-row: span 2; color: var(--blue); }
.touch li a, .touch li span, .touch li small { justify-self: start; }
.touch small { color: var(--muted); }
.map { border-radius: 22px; min-height: 280px; position: relative; overflow: hidden; background: #e7efe4; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pin { position: absolute; left: 54%; top: 42%; width: 18px; height: 18px; background: #e23b3b; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); animation: bob 2.2s ease-in-out infinite; }
.map b { position: absolute; top: 28%; left: 46%; background: #fff; border-radius: 10px; padding: 4px 8px; font-size: .8rem; }
.map .btn { position: absolute; bottom: 16px; inset-inline: 16px; justify-content: center; z-index: 1; }

.foot { text-align: center; color: var(--muted); padding-bottom: 28px; }
.pop { position: fixed; top: 74px; inset-inline-start: 16px; z-index: 20; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.pop input { border: 0; padding: 8px; min-width: 200px; }
.drawer, .modal { position: fixed; inset: 0; z-index: 30; }
.bg { position: absolute; inset: 0; background: rgba(16,28,48,.4); }
.drawer aside, .modal .box { position: absolute; background: #fff; padding: 16px; animation: fade .3s ease; }
.drawer aside { inset-block: 0; inset-inline-start: 0; width: min(360px, 100%); }
.modal .box { top: 12vh; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); border-radius: 18px; }
.drawer header, .box header, #consultForm { display: grid; gap: 8px; }
.drawer header, .box header { display: flex; justify-content: space-between; align-items: center; }
#consultForm input { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
#consultDone { color: #1d7a45; }
.cart__row { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cart__row img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.catalog__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reveal { animation: rise .65s both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ken { to { transform: scale(1.08); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(47,111,237,.15); } }
@keyframes bob { 50% { transform: rotate(-45deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 980px) {
  .cards, .projs, .thumbs, .cats, .feats { grid-template-columns: 1fr 1fr; }
  .band, .touch, .consult, .inspire { grid-template-columns: 1fr; display: grid; }
  .hero__copy { width: min(340px, 78%); }
}
@media (max-width: 720px) {
  .head { direction: rtl; justify-content: space-between; border-radius: 18px; }
  .brand { text-align: right; }
  .tools { direction: rtl; }
  .head nav { display: none; position: absolute; top: 64px; inset-inline: 12px; background: #fff; flex-direction: column; align-items: flex-start; text-align: right; padding: 12px; border-radius: 14px; box-shadow: var(--shadow); }
  .head nav.is-open { display: flex; }
  .nav-toggle { display: grid; place-items: center; }
  .head .btn { display: none; }
  .cards, .cats, .projs, .thumbs, .feats, .why ul { grid-template-columns: 1fr; }
}
