/* farm-m.com — the pharmacy's own landing: Фарм-М's green #5DB45E, pill red #E8261A, navy #0E305D, Proxima Nova.
   Layout of its own: capsule facts, a search bar laid over the hero's edge, «полки» tiles, a navy band, the route. */
@font-face { font-family: "Proxima Nova"; font-weight: 400; font-display: swap; src: url(/fonts/ProximaNova-Regular.woff2) format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-weight: 700; font-display: swap; src: url(/fonts/ProximaNova-Bold.woff2) format("woff2"); }

:root {
  --green: #5db45e;
  --green-dark: #3f8f41;
  --green-soft: #eaf5e6;
  --red: #e8261a;
  --red-soft: #fdecea;
  --navy: #0e305d;
  --ink: #0e305d;
  --ink-2: #33496b;
  --muted: #5d6b82;
  --line: #dde4ee;
  --bg: #f1f5fa;
  --white: #fff;
  --font: "Proxima Nova", Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.5 var(--font); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; }
.ico { width: 22px; height: 22px; flex-shrink: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.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; background: var(--navy); color: #fff; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 26px; font: 700 17px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #c71e13; }
.btn--ghost { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--navy); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__name { font-size: 22px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brand__name b { color: var(--navy); }
.brand--small .brand__name { font-size: 19px; }
.top__phone { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; text-decoration: none; color: var(--green-dark); }
.top__phone span { display: flex; flex-direction: column; line-height: 1.15; }
.top__phone b { font-size: 20px; color: var(--navy); }
.top__phone small { font-size: 16px; color: var(--muted); }

/* hero */
.hero { position: relative; padding: 56px 0 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 78%, var(--white) 78%); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; pointer-events: none; }
.hero::before { right: -120px; top: -60px; width: 420px; height: 170px; background: var(--green); opacity: .12; transform: rotate(-35deg); }
.hero::after { left: -60px; bottom: 120px; width: 160px; height: 160px; background: var(--red); opacity: .06; }
.hero__top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; }
.hero__place { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 16px; border-radius: 20px; background: var(--white); color: var(--ink-2); font-weight: 700; }
.hero__place .ico { color: var(--red); }
.hero__title { font-size: 54px; letter-spacing: -.02em; }
.hero__accent { color: var(--green); }
.hero__lead { max-width: 600px; margin-top: 20px; font-size: 20px; color: var(--ink-2); }
.hero__cta { margin-top: 28px; min-height: 58px; padding: 0 32px; border-radius: 29px; font-size: 19px; }
.capsules { display: grid; gap: 14px; }
.capsule { display: flex; align-items: baseline; gap: 14px; padding: 18px 26px; border-radius: 999px; color: #fff; }
.capsule b { font-size: 26px; white-space: nowrap; }
.capsule span { font-size: 17px; opacity: .92; }
.capsule--green { background: var(--green); }
.capsule--navy { background: var(--navy); margin-left: 28px; }
.capsule--red { background: var(--red); }

.finder { position: relative; margin-top: 44px; padding: 24px; border-radius: 28px; background: var(--white); box-shadow: 0 18px 44px rgba(14, 48, 93, .12); }
.search { position: relative; display: flex; gap: 12px; }
.search__ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search__input { flex: 1; min-width: 0; height: 60px; padding: 0 20px 0 54px; border: 2px solid var(--line); border-radius: 30px; background: var(--white); color: var(--ink); font: 400 18px var(--font); -webkit-appearance: none; appearance: none; }
.search__input:focus { border-color: var(--green); outline: none; }
.search.is-invalid .search__input { border-color: var(--red); }
.search__btn { min-height: 60px; padding: 0 34px; border-radius: 30px; }
.search__btn-ico { display: none; }
.search__hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); }
.search__hint.is-error { color: var(--red); font-weight: 700; }
.search__hint-label { margin-right: 4px; }
.chip { padding: 6px 14px; border-radius: 18px; background: var(--bg); color: var(--ink-2); text-decoration: none; }
.chip:hover { background: var(--green-soft); color: var(--green-dark); }

/* sections */
.section { padding: 72px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section h2 { font-size: 36px; letter-spacing: -.015em; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-weight: 700; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

.shelves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shelf { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 18px 20px 18px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s; }
.shelf::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 0 4px 4px 0; background: var(--green); }
.shelves li:nth-child(even) .shelf::before { background: var(--red); }
.shelf:hover { border-color: var(--green); transform: translateY(-2px); }
.shelf__ico { width: 28px; height: 28px; color: var(--navy); }
.shelf__name { font-size: 19px; font-weight: 700; line-height: 1.2; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag { padding: 10px 20px; border-radius: 22px; box-shadow: inset 0 0 0 2px var(--line); color: var(--navy); font-weight: 700; text-decoration: none; }
.tag--red { box-shadow: inset 0 0 0 2px var(--red); color: var(--red); }
.tag:hover { background: var(--bg); }

.section--navy { background: var(--navy); color: #fff; }
.why__title { margin-bottom: 32px; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why__card { padding: 28px; border-radius: 24px; background: rgba(255,255,255,.07); }
.why__ico { width: 34px; height: 34px; color: var(--green); }
.why__card h3 { margin: 18px 0 10px; font-size: 22px; }
.why__card p { color: #d3dceb; }

.route { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.route__addr { margin: 14px 0 26px; font-style: normal; font-size: 24px; font-weight: 700; color: var(--ink-2); }
.route__steps { position: relative; display: grid; gap: 22px; margin-bottom: 30px; }
.route__steps::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; border-left: 2px dashed var(--line); }
.route__steps li { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.route__dot { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); }
.route__dot--red { background: var(--red-soft); color: var(--red); }
.route__steps b { font-size: 19px; }
.route__steps p { color: var(--muted); }
.call { display: grid; gap: 4px; padding: 30px; border-radius: 28px; background: var(--bg); }
.call__label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-weight: 700; }
.call__phone { color: var(--navy); font-size: 30px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.call__phone--sm { margin-top: 14px; font-size: 24px; }
.call__muted { color: var(--muted); }
.call__btn { margin-top: 14px; }

/* footer */
.foot { padding: 40px 0 32px; border-top: 1px solid var(--line); background: var(--bg); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot__links, .foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a, .foot__legal a { color: var(--ink-2); text-decoration: none; }
.foot__links a:hover, .foot__legal a:hover { color: var(--green-dark); text-decoration: underline; }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.foot__warn { margin-top: 22px; color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 16px; letter-spacing: .02em; }

@media (max-width: 1023px) {
  .hero__top, .route { grid-template-columns: minmax(0, 1fr); }
  .capsules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .capsule { flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 28px; }
  .capsule--navy { margin-left: 0; }
  .shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .top__in { gap: 12px; min-height: 64px; }
  .top__phone span, .top__cta { display: none; }
  .top__phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--green-soft); }
  .brand__name { font-size: 20px; }
  .hero { padding-top: 32px; }
  .hero__title { font-size: 36px; }
  .hero__lead { font-size: 18px; }
  .hero__cta { display: flex; width: 100%; margin-top: 24px; }
  .capsules { grid-template-columns: minmax(0, 1fr); }
  .capsule { flex-direction: row; align-items: baseline; gap: 12px; border-radius: 999px; }
  .capsule b { font-size: 22px; }
  .finder { margin-top: 28px; padding: 16px; border-radius: 22px; }
  .search__input { height: 54px; }
  .search__btn { min-height: 54px; width: 54px; padding: 0; }
  .search__btn-text { display: none; }
  .search__btn-ico { display: block; }
  .section { padding: 52px 0; }
  .section h2 { font-size: 28px; }
  .shelves { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .shelf { min-height: 66px; }
  .route__addr { font-size: 20px; }
  .call { padding: 22px; }
  .call__phone { font-size: 26px; }
  .call__phone--sm { font-size: 22px; }
}
