/* iPahstorage — site styles */
:root {
  --ink: #1E2A24;
  --muted: #5F6B64;
  --green: #22A35A;
  --green-ink: #157A3D;
  --green-dark: #1B8A4B;
  --cell: #D5DED8;
  --paper: #F3F6F3;
  --line: #DDE4DF;
  --white: #FFFFFF;
  --taken: #E7ECE8;
  --radius: 14px;
  --radius-s: 8px;
  --font-head: 'Poppins', 'Noto Sans Armenian', 'Noto Sans', system-ui, sans-serif;
  --font-body: 'Noto Sans Armenian', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--green-ink); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.lang-hy h1 { font-size: clamp(1.9rem, 3.9vw, 3.1rem); }
p { margin: 0 0 1em; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--paper); }
.sec-head { margin-bottom: 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: 12px 20px; border-radius: 999px; border: 2px solid transparent; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--cell); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn[disabled] { opacity: .6; cursor: default; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word { font: 400 1.35rem/1 'Poppins', sans-serif; letter-spacing: -0.01em; }
.logo-word b { font-weight: 700; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--green-ink); }
.top-right { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 2px; font-size: .88rem; }
.langs a, .langs span { padding: 5px 8px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.langs span { background: var(--paper); color: var(--ink); font-weight: 600; }
.langs a:hover { color: var(--ink); }
.top-phone { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.top-book { padding: 10px 18px; }

/* Hero */
.hero { background: var(--paper); padding: clamp(40px, 6vw, 80px) 0 0; }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 28px; }
.hero-from { margin: 0; font-weight: 600; }
.hero-plan {
  margin: 0; background: var(--white); border-radius: var(--radius); padding: 22px 22px 14px;
  border: 1px solid var(--line);
  background-image: radial-gradient(circle, #cfd8d2 1px, transparent 1.2px);
  background-size: 18px 18px;
}
.plan { width: 100%; height: auto; display: block; max-height: 460px; }
.plan .cell rect { stroke: var(--white); stroke-width: 4; transition: fill .15s; }
.plan .cell.free rect { fill: var(--green); }
.plan .cell.free:hover rect, .plan .cell.free:focus rect { fill: var(--green-ink); }
.plan .cell.taken rect { fill: var(--cell); }
.plan .cell text { font-family: 'Poppins', var(--font-body); font-weight: 600; pointer-events: none; }
.plan .cell.free text { fill: #fff; }
.plan .cell.taken text { fill: var(--muted); }
.plan .scalebar line { stroke: var(--muted); stroke-width: 3; }
.plan .scalebar text { fill: var(--muted); font: 500 20px var(--font-body); }
.hero-plan figcaption { color: var(--muted); font-size: .88rem; margin-top: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .plan .cell { animation: drop .5s cubic-bezier(.2,.8,.2,1) both; transform-box: fill-box; transform-origin: center; }
  .plan .cell:nth-child(2) { animation-delay: .06s } .plan .cell:nth-child(3) { animation-delay: .12s }
  .plan .cell:nth-child(4) { animation-delay: .18s } .plan .cell:nth-child(5) { animation-delay: .24s }
  .plan .cell:nth-child(6) { animation-delay: .30s } .plan .cell:nth-child(7) { animation-delay: .36s }
  .plan .cell:nth-child(8) { animation-delay: .42s } .plan .cell:nth-child(n+9) { animation-delay: .48s }
  @keyframes drop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
}

.facts {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 26px 0 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line);
}
.facts li { display: flex; flex-direction: column; }
.facts b { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.facts span { color: var(--muted); font-size: .93rem; }

/* Units */
.wh-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.wh-tabs button {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px;
  font: 600 .98rem/1.3 var(--font-body); color: var(--ink); background: var(--white);
  border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; cursor: pointer;
}
.wh-tabs button small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.wh-tabs button[aria-selected="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.wh-single { color: var(--muted); margin-bottom: 14px; }

.needs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.needs-label { font-weight: 600; margin-right: 6px; }
.chip {
  font: 500 .9rem/1.2 var(--font-body); color: var(--ink); background: var(--white); cursor: pointer;
  border: 1px solid var(--cell); border-radius: 999px; padding: 8px 14px;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.units { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.unit {
  display: grid; grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1.2fr) 170px; gap: 24px; align-items: center;
  padding: 20px 24px; background: var(--white);
}
.unit + .unit { border-top: 1px solid var(--line); }
.unit:target { background: #F1FAF4; }
.unit.is-taken .fp rect { fill: var(--cell); }
.fp { width: 56px; height: 56px; background: var(--paper); border-radius: 8px; }
.fp rect { fill: var(--green); }
.u-main p { margin: 0; }
.u-dims { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.u-meas { display: flex; gap: 14px; color: var(--ink); font-weight: 500; margin-top: 2px !important; }
.u-meas span + span { padding-left: 14px; border-left: 1px solid var(--line); }
.u-hint { color: var(--muted); font-size: .9rem; margin-top: 4px !important; }
.price { margin: 0 0 6px; font-size: 1.05rem; }
.price b { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; }
.price span { color: var(--muted); margin-left: 3px; }
.terms { margin: 0; display: grid; gap: 2px; font-size: .88rem; }
.terms div { display: flex; gap: 8px; }
.terms dt { color: var(--muted); min-width: 84px; }
.terms dd { margin: 0; font-weight: 500; }
.save { color: var(--green-ink); font-weight: 600; margin-left: 4px; }
.u-act { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.avail { margin: 0; font-size: .88rem; font-weight: 500; text-align: center; }
.avail.ok { color: var(--green-ink); }
.avail.no { color: var(--muted); }
.empty-filter { padding: 20px 24px; background: var(--paper); border-radius: var(--radius); color: var(--muted); margin-top: 12px; }

/* How it works */
.steps { list-style: none; counter-reset: s; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s); display: block; font: 600 2.6rem/1 var(--font-head); color: var(--green); margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; }

/* What people store */
.store { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.store li { padding-top: 18px; border-top: 3px solid var(--cell); }
.store li:nth-child(odd) { border-top-color: var(--green); }
.store p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Places */
.place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; margin-top: 30px; align-items: start; }
.place + .place { padding-top: 34px; border-top: 1px solid var(--line); }
.place-addr { font-size: 1.1rem; font-weight: 500; }
.place-meta { margin: 0 0 12px; display: grid; gap: 6px; }
.place-meta div { display: flex; gap: 10px; }
.place-meta dt { color: var(--muted); min-width: 90px; }
.place-meta dd { margin: 0; }
.place-count { color: var(--muted); }
.place-map { border-radius: var(--radius); overflow: hidden; background: var(--cell); aspect-ratio: 16 / 11; }
.place-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.photos img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius-s); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; max-width: 68ch; }

/* Lead form section */
.section-form { background: var(--ink); color: #fff; }
.section-form .lead { color: #C5D1CA; }
.form-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.form-phone a { color: #fff; font: 600 1.5rem/1.2 var(--font-head); text-decoration: none; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.f-row { display: flex; flex-direction: column; gap: 6px; }
.f-wide, .lead-form .f-consent, .lead-form .btn, .lead-form .f-status { grid-column: 1 / -1; }
.lead-form label { font-weight: 500; font-size: .92rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: #fff; width: 100%;
  border: 1px solid var(--cell); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 3px solid rgba(34,163,90,.45); outline-offset: 0; border-color: var(--green); }
.lead-form [aria-invalid="true"] { border-color: #C0392B; outline: 2px solid rgba(192,57,43,.35); }
.f-consent { font-size: .82rem; margin: 0; opacity: .75; }
.lead-form .btn { justify-self: start; }
.f-status { margin: 0; font-weight: 500; min-height: 1.4em; }
.f-status.ok { color: #7FE0A6; }
.f-status.err { color: #FFB4A8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Booking dialog */
.book-dialog {
  width: min(640px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 0; border-radius: 18px; padding: 26px;
  color: var(--ink);
}
.book-dialog::backdrop { background: rgba(30, 42, 36, .55); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dlg-head h2 { margin: 0; font-size: 1.5rem; }
.dlg-close { font-size: 1.8rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; color: var(--ink); }
.dlg-unit { background: #F1FAF4; border-radius: 10px; padding: 10px 14px; margin: 16px 0 0; font-weight: 500; }
.book-dialog .lead-form { margin-top: 18px; }
.book-dialog .f-status.ok { color: var(--green-ink); }
.book-dialog .f-status.err { color: #B03A2E; }
@media (prefers-reduced-motion: no-preference) {
  .book-dialog[open] { animation: pop .18s ease-out; }
  @keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Footer */
.foot { background: var(--paper); padding: 44px 0 30px; font-size: .93rem; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; }
.foot p { color: var(--muted); margin: 12px 0 0; }
.foot-contacts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.foot-contacts a { color: var(--ink); text-decoration: none; font-weight: 500; }
.social { display: flex; gap: 14px; margin: 6px 0 0 !important; }
.social a { color: var(--green-ink) !important; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: .84rem; }

.mobile-bar { display: none; }
.nf { text-align: center; padding: 60px 0; }
.nf .logo { margin-bottom: 30px; }

/* Responsive */
@media (max-width: 1260px) {
  .nav { display: none; }
  .top-right { margin-left: auto; }
}
@media (max-width: 1080px) {
  .unit { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); }
  .u-act { grid-column: 2 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .store { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-in, .place, .form-wrap { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .top-phone { display: none; }
}
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .top-in { height: 62px; gap: 12px; }
  .top-book { display: none; }
  .logo-word { font-size: 1.2rem; }
  .logo-mark { width: 30px; height: 30px; }
  .unit { grid-template-columns: 44px minmax(0, 1fr); gap: 14px 16px; padding: 18px 16px; }
  .fp { width: 44px; height: 44px; }
  .u-price, .u-act { grid-column: 2 / -1; }
  .u-act .btn { flex: none; }
  .store { grid-template-columns: 1fr; gap: 22px; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form .btn { justify-self: stretch; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-contacts { align-items: flex-start; }
  .book-dialog { padding: 20px 16px; }
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { flex: 1; }
}
