@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/vazirmatn.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --page: #f8f8f2;
  --white: #fff;
  --ink: #182d24;
  --muted: #526158;
  --primary: #194d3c;
  --primary-hover: #103d2e;
  --line: #e0e5db;
  --sage: #e9eee2;
  --focus: #3c7456;
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
input, textarea, select { min-width: 0; }
input::placeholder, textarea::placeholder { color: #627167; opacity: 1; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23526158' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left .7rem center;
  background-size: 1.25rem;
}
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: min(calc(100% - 7rem), 1264px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 10; top: 1rem; right: 1rem; background: var(--white); color: var(--primary); padding: .5rem 1rem; border-radius: .5rem; }
.icon { display: block; width: 1.25rem; height: 1.25rem; flex: none; }

.site-header { background: #fff; border-block-end: 1px solid #e9ebe3; }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .65rem; line-height: 1.1; }
.brand-mark { width: 46px; height: 46px; border-radius: 13px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.brand-mark .icon { width: 31px; height: 31px; }
.brand-mark .brand-diamond { fill: #d9eeaa; stroke: none; }
.brand strong { display: block; font-size: 1.29rem; font-weight: 850; white-space: nowrap; }
.brand small { display: block; text-align: right; margin-block-start: .25rem; font-size: .67rem; letter-spacing: .105em; font-weight: 650; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.8rem); color: #4f5b52; font-size: .94rem; font-weight: 550; white-space: nowrap; }
.main-nav a { transition: color .16s ease; }
.main-nav a:hover, .main-nav .nav-current { color: var(--primary); }
.main-nav .nav-current { font-weight: 800; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: .5rem; }

.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .52rem 1rem; border: 1px solid transparent; border-radius: .7rem; white-space: nowrap; font-size: .93rem; font-weight: 750; transition: background .18s ease, border-color .18s ease; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-hover); }
.button-outline { color: var(--primary); background: transparent; border-color: #cad5c9; }
.button-outline:hover { border-color: var(--primary); background: #eef3e9; }
.button .icon { width: 1.07rem; height: 1.07rem; }

.hero { margin-block-start: 1.75rem; min-height: 450px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border-radius: 25px; background: var(--sage); }
.hero-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2.65rem clamp(1.8rem, 3.8vw, 3.7rem); }
.hero-location { display: flex; align-items: center; gap: .55rem; margin: 0 0 .7rem; color: var(--primary); font-size: .92rem; font-weight: 750; }
.flag { flex: none; width: 20px; height: 14px; background: linear-gradient(to bottom, #d82e39 33.333%, #255aa7 33.333% 66.666%, #ed9f39 66.666%); border-radius: 3px; }
.hero h1 { margin: 0; font-weight: 900; letter-spacing: -.052em; font-size: clamp(2.15rem, 4.1vw, 4.12rem); line-height: 1.22; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-description { color: #46574c; margin: 1rem 0 1.45rem; font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.9; }
.hero-photo { position: relative; min-width: 0; min-height: 0; background: #ba9c78; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.photo-location { position: absolute; z-index: 1; bottom: 1.15rem; left: 1.15rem; display: flex; gap: .3rem; align-items: center; padding: .42rem .72rem; color: #fff; border-radius: .55rem; background: #1c2f24e8; font-size: .81rem; font-weight: 650; }
.photo-location .icon { width: .99rem; height: .99rem; }

.hero-search { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(135px, .66fr) auto; align-items: center; padding: .36rem; border: 1px solid #e7ebe0; border-radius: .85rem; background: #fff; box-shadow: 0 8px 24px #263d2c0b; }
.hero-search .button { min-height: 43px; }
.search-field { position: relative; display: flex; gap: .45rem; align-items: center; min-width: 0; padding-inline: .65rem; color: var(--primary); }
.search-field .icon { width: 1.08rem; height: 1.08rem; }
.search-field input, .search-field select { width: 100%; height: 42px; padding: 0; color: var(--ink); border: none; background: transparent; font-size: .93rem; }
.city-field { border-inline-start: 1px solid var(--line); margin-inline-end: .35rem; }
.city-field select { padding-inline-end: .9rem; text-overflow: ellipsis; cursor: pointer; }
.field-chevron { position: absolute; inset-inline-end: .38rem; pointer-events: none; }
.field-chevron .icon { width: .83rem; height: .83rem; }

.section { margin-block-start: 2.5rem; scroll-margin-top: 1.25rem; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: .8rem; margin-block-end: 1rem; }
.section-header h2, .register-strip h2 { margin: 0; font-size: clamp(1.53rem, 2.3vw, 2rem); font-weight: 850; line-height: 1.35; letter-spacing: -.04em; }
.section-header p, .register-strip p { margin: .26rem 0 0; line-height: 1.65; color: var(--muted); }
.section-header .button { min-height: 38px; }
.section-header .button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.category-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .58rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; min-height: 111px; padding: .7rem .37rem; font-size: .94rem; font-weight: 730; transition: border-color .16s ease, background .16s ease; }
.category-card:hover { border-color: #aabfb0; background: #fcfdf9; }
.category-card[aria-pressed="true"] { border-color: #4a795f; background: #edf3e8; }
.category-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; color: var(--tone-ink, #385648); background: var(--tone-bg, #ebeee5); }
.category-icon .icon { width: 1.31rem; height: 1.31rem; }
.tone-coral { --tone-ink: #a24a35; --tone-bg: #f9e8de; }
.tone-amber { --tone-ink: #885b21; --tone-bg: #f8efda; }
.tone-violet { --tone-ink: #644595; --tone-bg: #eee7f7; }
.tone-mint { --tone-ink: #2d735b; --tone-bg: #e1f0e8; }
.tone-blue { --tone-ink: #315e8d; --tone-bg: #e7eef8; }
.tone-rose { --tone-ink: #9a4668; --tone-bg: #f7e7ee; }
.tone-indigo { --tone-ink: #4c5393; --tone-bg: #e9e9f8; }
.tone-slate { --tone-ink: #435970; --tone-bg: #e8eef3; }
.tone-teal { --tone-ink: #326e71; --tone-bg: #e1f0ef; }
.tone-sand { --tone-ink: #785d42; --tone-bg: #f5eadf; }
.tone-gray { --tone-ink: #4f6257; --tone-bg: #eaeee9; }

.directory { margin-block-start: 2.7rem; }
.business-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.business-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.business-card:hover { border-color: #acc0b0; box-shadow: 0 8px 24px #3048390e; }
.business-image { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.92; background: var(--tone-bg, #e7eee2); color: var(--tone-ink, #416650); }
.business-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.business-image > .icon { width: 3.05rem; height: 3.05rem; opacity: .72; }
.business-type { position: absolute; z-index: 1; top: .75rem; right: .75rem; background: #fffffffa; border-radius: .45rem; padding: .23rem .59rem; color: #34483b; font-size: .82rem; font-weight: 750; }
.business-content { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: .92rem 1rem 1.03rem; }
.business-heading { display: flex; align-items: baseline; gap: .5rem; }
.business-heading h3 { min-width: 0; margin: 0; font-size: 1.18rem; line-height: 1.4; font-weight: 850; overflow-wrap: anywhere; }
.demo-label { color: #586659; font-size: .76rem; white-space: nowrap; }
.business-city { display: flex; gap: .25rem; align-items: center; color: var(--muted); margin-block-start: .28rem; font-size: .87rem; }
.business-city .icon { width: .96rem; height: .96rem; }
.business-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; min-height: 2.9em; color: #4d5b51; margin: .65rem 0 .8rem; line-height: 1.55; }
.business-link { display: inline-flex; margin-block-start: auto; align-self: flex-start; color: var(--primary); font-weight: 780; padding: .25rem 0; }
.business-link:hover { text-decoration: underline; text-underline-offset: .24em; }
.more-button { margin: 1.15rem auto 0; display: flex; width: fit-content; }
.notice { padding: .7rem 1rem; background: #faf0db; color: #63502a; border-radius: .6rem; }
.empty-state { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 2rem .75rem; }
.empty-state .icon { margin: 0 auto .4rem; color: var(--primary); width: 1.9rem; height: 1.9rem; }
.empty-state h3 { margin: 0 0 .2rem; }
.empty-state p { margin: 0; color: var(--muted); }

.register-strip { display: flex; gap: 1rem; align-items: center; margin-block: 2.7rem; background: #e8eee1; border-radius: 18px; padding: 1.25rem 1.5rem; }
.register-icon { display: grid; place-items: center; background: #fff; color: var(--primary); width: 56px; height: 56px; flex: none; border-radius: 15px; }
.register-icon .icon { width: 1.55rem; height: 1.55rem; }
.register-strip h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.register-strip .button { margin-inline-start: auto; }
.site-footer { border-block-start: 1px solid var(--line); background: #fff; color: var(--muted); }
.footer-inner { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner .brand { color: var(--ink); }
.footer-inner > a:last-child { font-weight: 680; color: var(--primary); }
.footer-inner > a:last-child:hover { text-decoration: underline; }

.dialog { width: min(640px, calc(100% - 2rem)); max-height: calc(100% - 2rem); max-height: calc(100dvh - 2rem); border: 1px solid var(--line); color: var(--ink); background: #fff; padding: 0; border-radius: 19px; box-shadow: 0 18px 55px #142c2840; }
.dialog::backdrop { background: #142a22a8; }
.dialog-inner { padding: 1.4rem; }
.dialog-header { display: flex; gap: .6rem; justify-content: space-between; align-items: start; }
.dialog-header h2 { margin: 0; font-weight: 850; font-size: clamp(1.45rem, 4vw, 1.85rem); overflow-wrap: anywhere; }
.icon-button { display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: .55rem; width: 38px; height: 38px; color: var(--primary); background: #fff; }
.icon-button:hover { background: #edf3e9; }
.dialog-help { margin: .2rem 0 1rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem .85rem; margin-block-start: .8rem; }
.form-grid label { display: block; min-width: 0; font-weight: 650; font-size: .9rem; }
.form-grid label > span { color: #9b3f35; }
.form-grid input, .form-grid textarea, .form-grid select { display: block; width: 100%; margin-block-start: .25rem; min-height: 43px; border: 1px solid #cad5c9; border-radius: .52rem; background-color: #fbfcf9; color: var(--ink); padding: .4rem .6rem; font-size: 1rem; }
.form-grid select { padding-inline-end: 2rem; }
.form-grid textarea { resize: vertical; }
.full-field { grid-column: 1 / -1; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-block-start: 1rem; }
.form-message { margin: .8rem 0 0; padding: .6rem .85rem; color: #842d27; background: #faece9; border-radius: .55rem; }
.auth-dialog { width: min(440px, calc(100% - 2rem)); }
.auth-dialog bdi { overflow-wrap: anywhere; }
.auth-dialog input[name="code"] { letter-spacing: .28em; }
.detail-dialog { width: min(575px, calc(100% - 2rem)); }
.detail-dialog .business-image { aspect-ratio: 2.22; }
.detail-dialog .business-city { margin: .65rem 0 .3rem; }
.detail-description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }
.detail-fields { display: grid; margin: .85rem 0 0; }
.detail-fields div { display: grid; grid-template-columns: minmax(80px, .3fr) 1fr; align-items: start; gap: .5rem; border-block-start: 1px solid var(--line); padding: .55rem 0; }
.detail-fields dt { font-weight: 700; }
.detail-fields dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.detail-fields a { color: var(--primary); text-decoration: underline; text-underline-offset: .18em; }
.toast { position: fixed; z-index: 4; inset-inline: 1rem; margin: auto; bottom: 1rem; width: fit-content; max-width: calc(100% - 2rem); border-radius: .72rem; padding: .6rem 1rem; color: #fff; background: var(--primary); box-shadow: 0 8px 24px #18392c2b; }
.noscript { text-align: center; }

@media (max-width: 1100px) {
  .shell { width: min(calc(100% - 4rem), 1264px); }
  .hero { min-height: 398px; }
  .hero-copy { padding-inline: 1.7rem; }
  .desktop-break { display: none; }
}
@media (max-width: 890px) {
  .shell { width: calc(100% - 3rem); }
  .hero h1 { font-size: clamp(2.05rem, 5vw, 3.25rem); }
  .hero-search { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-search .search-field:first-child { grid-column: 1 / -1; border-block-end: 1px solid var(--line); margin-block-end: .3rem; }
  .city-field { border-inline-start: none; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 .4rem; padding-block: .62rem .45rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; gap: 1.5rem; padding-block: .55rem .18rem; font-size: .89rem; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 2rem); }
  .header-actions { gap: .32rem; }
  .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
  .brand-mark .icon { width: 28px; height: 28px; }
  .brand strong { font-size: 1.12rem; }
  .header-actions .button { min-height: 39px; padding-inline: .6rem; font-size: .88rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; margin-block-start: 1rem; }
  .hero-copy { padding: 1.55rem 1.05rem 1.2rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-description { margin: .72rem 0 .95rem; line-height: 1.65; }
  .hero-photo { min-height: 220px; }
  .photo-location { left: .65rem; bottom: .65rem; }
  .section { margin-block-start: 1.8rem; }
  .section-header { align-items: start; }
  .section-header .button { font-size: .8rem; padding-inline: .48rem; white-space: normal; }
  .category-grid { gap: .45rem; }
  .category-card { min-height: 90px; font-size: .83rem; gap: .35rem; }
  .category-icon { width: 37px; height: 37px; }
  .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .business-content { padding: .7rem; }
  .business-heading { flex-wrap: wrap; gap: .22rem .45rem; }
  .business-heading h3 { font-size: 1.06rem; }
  .business-description { font-size: .92rem; }
  .register-strip { flex-wrap: wrap; padding: 1rem; margin-block: 1.8rem; gap: .7rem; }
  .register-strip > div { flex: 1 1 200px; }
  .register-strip .button { margin-inline-start: 0; }
  .footer-inner { padding-block: .75rem; flex-wrap: wrap; gap: .4rem .75rem; }
  .footer-inner p { font-size: .9rem; margin: .1rem 0; }
}
@media (max-width: 430px) {
  .business-grid, .form-grid { grid-template-columns: 1fr; }
  .dialog-inner { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
