@font-face {
  font-family: Manrope;
  src: url("assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --mint: #98dbd8;
  --mint-hover: #84ceca;
  --mint-ink: #285c58;
  --pink: #f298ab;
  --pink-hover: #eb879d;
  --cream: #fcf8ef;
  --ink: #2c2820;
  --muted: #686151;
  --line: #ded8cb;
  --focus: #285c58;
  --radius: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: Manrope, sans-serif;
  font-synthesis: none;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--mint);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--mint-ink) var(--cream); }
body { margin: 0; padding: 20px; font-size: 15px; line-height: 1.5; }
::selection { color: var(--ink); background: var(--mint); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: fixed; top: 12px; left: 24px; z-index: 10; transform: translateY(-160%); padding: 12px 20px; background: var(--cream); }
.skip-link:focus { transform: none; }

.page {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 40px);
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(28px, 4vw, 64px);
  background: var(--cream);
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
.topbar-brand { display: flex; gap: 12px; align-items: center; }
.topbar-brand img { width: 30px; height: 28px; }
.topbar-cities { display: flex; align-items: center; gap: 10px; }
.topbar-cities span { color: var(--mint-ink); }
main { flex: 1; display: flex; flex-direction: column; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 44px 0 60px;
  text-align: center;
}
.brand { width: min(100%, 620px); line-height: 1; animation: logo-settle 750ms var(--ease) both; }
.brand img { width: 100%; }
.hero-caption { margin-top: 24px; color: var(--muted); font-size: 18px; font-weight: 400; }
.social-links { display: flex; justify-content: center; gap: 14px; margin-top: 34px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 274px;
  min-height: 76px;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: left;
  transition: background-color 180ms ease;
}
.social-link--almaty { background: var(--pink); }
.social-link--astana { background: var(--mint); }
.social-copy { display: grid; gap: 3px; flex: 1; }
.social-city { font-size: 15px; font-weight: 650; }
.social-handle { font-size: 12px; }
.instagram-icon { width: 25px; height: 25px; }
.social-arrow { width: 18px; height: 18px; margin-left: 4px; transition: transform 180ms var(--ease); }

.stores { padding-top: 27px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.stores-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
h2 { font-size: 25px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
.kaspi-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 9px; font-size: 14px; color: var(--mint-ink); }
.kaspi-link .icon { width: 18px; height: 18px; }
.kaspi-link .kaspi-arrow { width: 15px; height: 15px; transition: transform 180ms var(--ease); }
.kaspi-link span { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #a5c5ba; transition: text-decoration-color 180ms ease; }
.store-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; margin-bottom: 32px; }
.store + .store { border-left: 1px solid var(--line); }
.store a { display: block; padding: 0 28px; border-radius: 0; }
.store:first-child a { padding-left: 0; }
.store:last-child a { padding-right: 0; }
.store-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.map-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mint-ink); }
.map-link .icon { width: 15px; height: 15px; transition: transform 180ms var(--ease); }
.store-address { font-size: 14px; line-height: 1.6; font-weight: 550; }
.store-detail { margin-top: 3px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.store-hours { margin-top: 17px; color: var(--muted); font-size: 12px; }
.store-hours span { color: var(--ink); margin-left: 5px; font-variant-numeric: tabular-nums; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 70px; padding-block: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-note { color: var(--mint-ink); }

@media (hover: hover) {
  .social-link--almaty:hover { background: var(--pink-hover); }
  .social-link--astana:hover { background: var(--mint-hover); }
  .social-link:hover .social-arrow,
  .store a:hover .map-link .icon,
  .kaspi-link:hover .kaspi-arrow { transform: translate(2px, -2px); }
  .store a:hover .store-address { text-decoration: underline; text-decoration-color: var(--mint-ink); text-underline-offset: 4px; }
  .kaspi-link:hover span { text-decoration-color: var(--mint-ink); }
}

@keyframes logo-settle {
  from { transform: translateY(10px); filter: blur(1px); }
  to { transform: translateY(0); filter: blur(0); }
}

@media (min-width: 761px) and (max-height: 800px) {
  .topbar { min-height: 64px; }
  .hero { padding-block: 26px 36px; }
  .brand { max-width: 500px; }
  .hero-caption { font-size: 16px; margin-top: 18px; }
  .social-links { margin-top: 24px; }
  .social-link { min-height: 68px; padding-block: 12px; }
  .stores { padding-top: 20px; }
  .store-list { margin-block: 18px 24px; }
  .footer { min-height: 58px; padding-block: 16px; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .store a { padding-inline: 18px; }
  .store-address { min-height: 45px; }
  .store-detail { min-height: 40px; }
  .store-hours { margin-top: 10px; }
}

@media (max-width: 760px) {
  body { padding: 10px; }
  .page { min-height: calc(100svh - 20px); padding-inline: 24px; }
  .topbar { min-height: 66px; font-size: 12px; gap: 10px; }
  .topbar-brand { gap: 8px; }
  .topbar-brand img { width: 24px; height: 22px; }
  .topbar-cities { gap: 7px; }
  .hero { padding: 30px 0 34px; }
  .brand { max-width: 440px; }
  .hero-caption { margin-top: 18px; font-size: 15px; }
  .social-links { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 440px; gap: 10px; margin-top: 24px; }
  .social-link { min-width: 0; min-height: 64px; gap: 14px; padding: 12px 16px; }
  .social-city { font-size: 14px; }
  .social-handle { font-size: 12px; }
  .instagram-icon { width: 23px; height: 23px; }
  .stores { padding-top: 22px; }
  .stores-header { gap: 14px; align-items: flex-start; }
  h2 { max-width: 170px; font-size: 21px; }
  .kaspi-link { gap: 6px; min-height: 32px; font-size: 12px; white-space: nowrap; }
  .kaspi-link > .icon:first-child { display: none; }
  .store-list { grid-template-columns: 1fr; margin-block: 10px 2px; }
  .store + .store { border-left: 0; border-top: 1px solid var(--line); }
  .store a, .store:first-child a, .store:last-child a { padding: 16px 0; }
  .store-heading { margin-bottom: 7px; }
  h3 { font-size: 17px; }
  .store-address { font-size: 14px; }
  .store-detail { font-size: 12px; margin-top: 2px; }
  .store-hours { margin-top: 6px; font-size: 12px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 5px; padding-block: 18px; font-size: 12px; min-height: 0; }
  .footer-note { display: none; }
}

@media (max-width: 370px) {
  .page { padding-inline: 18px; }
  .topbar-brand img { width: 21px; }
  .topbar-cities { gap: 5px; }
  h2 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
