/* aptekanomer1.com — the landing of Аптека №1 in the shop's own look (red №1, green buttons, Roboto Condensed
   headings, white cards on light grey). No text under 16px. */
:root {
  --red: #b61f27;
  --red-dark: #961920;
  --red-soft: #fdf1f1;
  --green: #77af4e;
  --green-btn: #4a842b;
  --green-btn-hover: #3d7023;
  --green-soft: #f1f8ec;
  --ink: #1d2329;
  --ink-2: #3a424b;
  --muted: #5f6873;
  --line: #e5e8ec;
  --line-2: #d5dae0;
  --bg: #f4f6f8;
  --radius: 16px;
  --radius-md: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .07);
  --head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --text: Roboto, Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.55 var(--text); color: var(--ink); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
.ico { width: 22px; height: 22px; flex-shrink: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(119, 175, 78, .6); outline-offset: 2px; border-radius: 6px; }
.nowrap { white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius-md); font: 700 17px/1 var(--head); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn--green { background: var(--green-btn); color: #fff; }
.btn--green:hover { background: var(--green-btn-hover); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--red-soft); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green-btn); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.top__logo { flex-shrink: 0; }
.top__logo-full { height: 46px; width: auto; }
.top__phones { display: flex; gap: 28px; margin-left: auto; }
.top__phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.top__phone b { font: 700 19px/1.2 var(--head); letter-spacing: .01em; }
.top__phone small { font-size: 16px; color: var(--muted); }
.top__phone:hover b { color: var(--red); }
@media (max-width: 1000px) { .top__phone--free { display: none; } }
@media (max-width: 640px) {
  .top__in { min-height: 64px; gap: 12px; }
  .top__logo-full { height: 40px; }
  .top__phone small { display: none; }
  .top__phone b { font-size: 18px; }
  .top__cta { display: none; }
}

/* hero */
.hero { padding: 40px 0 48px; background: linear-gradient(180deg, var(--bg) 0, #fff 100%); }
.hero__in { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .hero { padding: 64px 0 72px; } .hero__in { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; } }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-btn); font-weight: 500; font-size: 16px; }
.hero__eyebrow .ico { width: 18px; height: 18px; }
.hero__title { font-size: 38px; letter-spacing: -.01em; }
.hero__num { color: var(--red); white-space: nowrap; }
@media (min-width: 768px) { .hero__title { font-size: 56px; } }
.hero__lead { max-width: 620px; margin-top: 16px; font-size: 18px; color: var(--ink-2); }

.search { position: relative; display: flex; align-items: center; max-width: 680px; margin-top: 28px; padding: 6px;
  border: 2px solid var(--line-2); border-radius: 14px; background: #fff; box-shadow: var(--shadow); transition: border-color .15s; }
.search:focus-within { border-color: var(--green); }
.search.is-invalid { border-color: var(--red); }
.search__ico { margin-left: 12px; color: var(--muted); }
.search__input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 0; background: transparent; font: 400 18px var(--text); color: var(--ink); }
.search__input:focus, .search__input:focus-visible { outline: none; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__btn { min-height: 48px; }
.search__btn-ico { display: none; }
@media (max-width: 480px) {
  .search__ico { display: none; }
  .search__btn { padding: 0 16px; }
  .search__btn-text { display: none; }
  .search__btn-ico { display: block; }
}
.search__hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 16px; color: var(--muted); }
.search__hint.is-error { color: var(--red); font-weight: 500; }
.chip { padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2);
  font-size: 16px; text-decoration: none; transition: box-shadow .15s, color .15s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green-btn); }

/* the red №1 card */
.badge { position: relative; overflow: hidden; padding: 28px; border-radius: 20px; background: var(--red); color: #fff; box-shadow: 0 18px 40px -16px rgba(182, 31, 39, .55); }
.badge__num { position: absolute; right: -10px; top: -34px; font: 700 180px/1 var(--head); letter-spacing: -.04em; color: rgba(255, 255, 255, .12); pointer-events: none; }
.badge__facts { position: relative; display: grid; gap: 18px; }
.badge__facts li { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.badge__facts b { font: 700 32px/1.1 var(--head); }
.badge__facts span { font-size: 16px; color: rgba(255, 255, 255, .85); }
.badge__cta { position: relative; width: 100%; margin-top: 22px; }
.badge__tel { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.badge__tel:hover { text-decoration: underline; }

/* sections */
.section { padding: 56px 0; }
.section--tint { background: var(--bg); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section__head h2, .why__intro h2 { font-size: 30px; }
@media (min-width: 768px) { .section { padding: 72px 0; } .section__head h2, .why__intro h2 { font-size: 38px; } }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--green-btn); font-weight: 500; text-decoration: none; }
.link-more:hover { color: var(--green-btn-hover); text-decoration: underline; }

/* categories */
.cats { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cats { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.cat { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; height: 100%;
  padding: 18px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none;
  transition: box-shadow .15s, transform .15s; }
.cat:hover { box-shadow: inset 0 0 0 1.5px var(--green), var(--shadow); transform: translateY(-1px); }
.cat__ico { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--green-btn); }
.cat__ico .ico { width: 26px; height: 26px; }
.cat__name { font: 700 20px/1.2 var(--head); }
.cat__note { font-size: 16px; color: var(--muted); }
.deals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.deal { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--bg);
  color: var(--ink); font: 700 17px/1 var(--head); text-decoration: none; transition: background .15s, color .15s; }
.deal:hover { background: var(--green-soft); color: var(--green-btn); }
.deal .ico { width: 18px; height: 18px; }
.deal--red { background: var(--red); color: #fff; }
.deal--red:hover { background: var(--red-dark); color: #fff; }

/* why */
.why { display: grid; gap: 28px; }
@media (min-width: 960px) { .why { grid-template-columns: 380px 1fr; gap: 56px; align-items: start; } }
.why__intro p { margin: 14px 0 22px; color: var(--ink-2); font-size: 18px; }
.why__list { display: grid; gap: 12px; }
@media (min-width: 640px) { .why__list { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.why__item { display: flex; gap: 14px; padding: 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.why__ico { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.why__item h3 { font-size: 20px; }
.why__item p { margin-top: 6px; font-size: 16px; color: var(--muted); }

/* visit */
.visit { display: grid; gap: 16px; }
@media (min-width: 860px) { .visit { grid-template-columns: 1.4fr 1fr; } }
.visit__place, .visit__call { padding: 26px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.visit__call { background: var(--green-soft); box-shadow: none; }
.visit__label { font-size: 16px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.visit__addr { margin: 6px 0 14px; font: 700 26px/1.2 var(--head); }
.visit__meta { display: grid; gap: 10px; margin-bottom: 20px; color: var(--ink-2); font-size: 16px; }
.visit__meta li { display: flex; gap: 10px; }
.visit__meta .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--green-btn); }
.visit__phone { display: block; margin-top: 6px; font: 700 30px/1.2 var(--head); text-decoration: none; }
.visit__phone:hover { color: var(--red); }
.visit__phone--sm { margin-top: 14px; font-size: 22px; }
.visit__muted { font-size: 16px; color: var(--muted); }
.visit__call .btn { margin-top: 20px; }

/* footer */
.foot { padding: 36px 0 28px; background: var(--ink); color: rgba(255, 255, 255, .8); font-size: 16px; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.foot__top img { height: 44px; width: auto; padding: 6px 10px; border-radius: 10px; background: #fff; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__warn { margin-top: 18px; color: rgba(255, 255, 255, .6); }
