/* ==========================================================
   Apteka Arnica – Editorial warm-neutral design
   Palette: paper #f4efe6, forest #1f3d34, terracotta #d9824f
   ========================================================== */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --paper-3: #e0d6c2;
  --forest: #1f3d34;
  --forest-2: #2b5246;
  --ink: #1b2622;
  --muted: #5b655f;
  --accent: #d9824f;
  --accent-dark: #b9652f;
  --line: rgba(31, 61, 52, .16);
  --radius: 6px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1280px;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
address { font-style: normal; }
em { font-style: italic; color: var(--accent-dark); }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 10px 16px; z-index: 200; border-radius: var(--radius); }
.skip-link:focus { left: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border: 1.5px solid var(--forest); background: var(--forest); color: var(--paper);
  font: 600 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none; border-radius: 999px; cursor: pointer;
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.btn-small { padding: 11px 20px; font-size: 14px; }
.btn-light { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(244, 239, 230, .96); border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(31, 61, 52, .07); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 600 21px/1.1 var(--serif); letter-spacing: -.01em; }
.brand-text small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 32px; }
.nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav ul a:hover::after, .nav ul a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 46px; height: 46px; background: none; border: 1.5px solid var(--forest); border-radius: 50%; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.8px; background: var(--forest); transition: transform .3s, opacity .3s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Typography helpers ---------- */
.eyebrow { font: 600 12.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 32px; height: 1.5px; background: currentColor; }
.eyebrow-light { color: #f0b48d; }
.lead { font-size: 20px; color: #36443e; max-width: 56ch; }
.lead-sm { font-size: 19px; color: #36443e; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); margin-bottom: 28px; letter-spacing: -.025em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 40px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--forest); }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero-visual { position: relative; }
.hero-frame { border-radius: 200px 200px 14px 14px; overflow: hidden; aspect-ratio: 520 / 600; box-shadow: 0 30px 60px -30px rgba(31, 61, 52, .45); }
.hero-frame svg { width: 100%; height: 100%; }
.hero-badge {
  position: absolute; left: -36px; bottom: 44px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  padding: 18px 24px; display: flex; flex-direction: column; line-height: 1.4; box-shadow: 0 18px 40px -18px rgba(31, 61, 52, .35); border-radius: var(--radius);
  animation: float 7s ease-in-out infinite;
}
.badge-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-badge strong { font: 600 19px/1.3 var(--serif); }
.hero-badge span:last-child { font-size: 14.5px; color: var(--muted); }
.hero-note { position: absolute; top: 28px; right: -14px; background: var(--forest); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(217, 130, 79, .3); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Facts strip ---------- */
.facts { background: var(--forest); color: var(--paper); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 40px 32px; border-left: 1px solid rgba(244, 239, 230, .16); transition: background .3s; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact:hover { background: rgba(255, 255, 255, .03); }
.fact-num { font: italic 400 15px var(--serif); color: #f0b48d; display: block; margin-bottom: 14px; }
.fact p { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(244, 239, 230, .82); }
.fact strong { color: var(--paper); font-weight: 600; }
.fact a { color: #f0b48d; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section h2 { font-size: clamp(32px, 3.9vw, 54px); }
.section-head { margin-bottom: 64px; max-width: 760px; }
.section-head h2 { margin-bottom: 20px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: end; }
.section-intro { font-size: 18px; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 88px; align-items: start; }
.about-media { position: relative; padding-bottom: 80px; }
.media-block { overflow: hidden; border-radius: var(--radius); }
.media-block svg { width: 100%; height: 100%; }
.media-a { width: 82%; aspect-ratio: 400 / 480; }
.media-b { position: absolute; right: 0; bottom: 54px; width: 52%; aspect-ratio: 300 / 220; border: 8px solid var(--paper); box-shadow: 0 20px 40px -20px rgba(31, 61, 52, .45); }
.media-caption { position: absolute; left: 0; bottom: 0; max-width: 44%; margin: 0; font: italic 16px/1.5 var(--serif); color: var(--muted); }
.about-copy h2 { margin-bottom: 28px; }
.about-copy p { color: #3a4842; }
.about-copy .lead-sm { color: var(--ink); }
.pull { margin: 36px 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--accent); font: italic 400 24px/1.4 var(--serif); color: var(--forest); }
.company-panel { background: var(--paper-2); border-radius: var(--radius); padding: 8px 28px; margin: 0; }
.company-panel > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.company-panel > div:last-child { border-bottom: 0; }
.company-panel dt { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.company-panel dd { margin: 0; font-weight: 500; }

/* ---------- Services (numbered editorial rows) ---------- */
.services { background: var(--paper-2); }
.service-list { border-top: 1.5px solid var(--forest); }
.service {
  display: grid; grid-template-columns: 90px 1fr 200px; gap: 40px; align-items: start; padding: 40px 16px; border-bottom: 1px solid var(--line);
  transition: background .3s, padding .3s;
}
.service:hover { background: var(--paper); padding-left: 28px; }
.service-num { font: italic 400 34px/1 var(--serif); color: var(--accent-dark); }
.service h3 { font-size: 30px; margin-bottom: 12px; }
.service p { margin: 0; color: #3f4c46; max-width: 66ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 8px; }
.tags li { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; padding: 6px 14px; border: 1px solid var(--forest); border-radius: 999px; color: var(--forest); }

/* ---------- Benefits (dark) ---------- */
.benefits { background: var(--forest); color: var(--paper); position: relative; overflow: hidden; }
.benefits::before { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; border: 1.5px solid rgba(244, 239, 230, .1); box-shadow: 0 0 0 60px rgba(244, 239, 230, .025), 0 0 0 120px rgba(244, 239, 230, .02); }
.benefits-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 88px; position: relative; }
.benefits-intro { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.benefits-intro h2 { margin-bottom: 24px; }
.benefits-intro p { color: rgba(244, 239, 230, .8); margin-bottom: 32px; }
.benefit-stack { display: grid; gap: 0; }
.benefit { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid rgba(244, 239, 230, .16); }
.benefit:first-child { padding-top: 0; }
.benefit:last-child { border-bottom: 0; }
.benefit-icon { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(244, 239, 230, .35); display: grid; place-items: center; color: #f0b48d; transition: background .3s, color .3s, transform .3s; }
.benefit-icon svg { width: 28px; height: 28px; }
.benefit:hover .benefit-icon { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-6deg); }
.benefit h3 { font-size: 26px; margin-bottom: 8px; }
.benefit p { margin: 0; color: rgba(244, 239, 230, .78); }

/* ---------- Ordering ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #f8f5ee; }
.step { padding: 40px 32px 44px; border-right: 1px solid var(--line); position: relative; transition: background .3s; }
.step:last-child { border-right: 0; }
.step:hover { background: var(--paper-2); }
.step-index { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 20px var(--serif); margin-bottom: 28px; }
.step h3 { font-size: 26px; margin-bottom: 12px; }
.step p { margin: 0; font-size: 16px; color: var(--muted); }
.disclaimer { margin: 36px 0 0; padding: 20px 24px; background: var(--paper-2); border-left: 3px solid var(--forest); border-radius: 0 var(--radius) var(--radius) 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h2 { margin-bottom: 22px; }
.contact-list { margin: 36px 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.c-label { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-list a { color: var(--forest); font-weight: 600; text-underline-offset: 4px; }
.contact-list a:hover { color: var(--accent-dark); }
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 480 / 200; }
.map-card svg { width: 100%; height: 100%; }
.map-link { position: absolute; left: 16px; bottom: 16px; background: var(--forest); color: var(--paper); text-decoration: none; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .25s; }
.map-link:hover { background: var(--accent-dark); }

.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 44px; box-shadow: 0 30px 60px -40px rgba(31, 61, 52, .45); }
.contact-form h3 { font-size: 32px; margin-bottom: 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; color: var(--ink); background: #fbf9f4; border: 1.5px solid #cfc5b0; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(31, 61, 52, .12); }
.field.invalid input, .field.invalid textarea { border-color: #b3382c; }
.error { display: block; color: #b3382c; font-size: 13.5px; min-height: 0; margin-top: 6px; }
.error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin: 4px 0 8px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--forest); flex: none; }
.contact-form .btn { margin-top: 14px; }
.form-status { margin: 16px 0 0; font-weight: 600; color: var(--forest); }
.form-status:empty { display: none; }
.form-hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #162d26; color: rgba(244, 239, 230, .8); padding-top: 80px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1.2fr; gap: 64px; padding-bottom: 60px; }
.brand-light { color: var(--paper); }
.brand-light small { color: rgba(244, 239, 230, .6); }
.footer-brand p { margin-top: 20px; max-width: 38ch; }
.site-footer h4 { font: 600 12.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #f0b48d; margin-bottom: 20px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #f0b48d; }
.site-footer address { line-height: 1.8; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 26px 0 34px; border-top: 1px solid rgba(244, 239, 230, .14); font-size: 13.5px; color: rgba(244, 239, 230, .6); }
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { gap: 48px; }
  .about-grid, .benefits-grid, .contact-grid { gap: 56px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(244, 239, 230, .16); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .service { grid-template-columns: 70px 1fr; }
  .tags { grid-column: 2; justify-content: flex-start; padding-top: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 8px;
    padding: 20px 24px 32px; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(31, 61, 52, .12);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav .btn { margin-top: 16px; padding: 16px; }

  .hero { padding: 48px 0 64px; }
  .hero-grid, .about-grid, .benefits-grid, .contact-grid, .section-head.split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 20px auto 0; width: 100%; }
  .hero-badge { left: -8px; }
  .hero-note { right: 0; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }
  .section-head.split { gap: 20px; }
  .about-media { max-width: 520px; }
  .benefits-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .lead { font-size: 18px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact:first-child, .fact:nth-child(3) { padding: 28px 0; border-left: 0; border-top: 1px solid rgba(244, 239, 230, .16); }
  .fact:first-child { border-top: 0; }
  .company-panel > div, .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .company-panel { padding: 8px 20px; }
  .pull { font-size: 20px; padding-left: 20px; }
  .service { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .service:hover { padding-left: 0; background: transparent; }
  .tags { grid-column: auto; }
  .service h3 { font-size: 26px; }
  .benefit { grid-template-columns: 52px 1fr; gap: 18px; }
  .benefit-icon { width: 52px; height: 52px; }
  .benefit h3 { font-size: 22px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(2) { border-right: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .contact-form { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .media-caption { max-width: 46%; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
