/* ============================================================
   Pharma landing mockup — tokens extracted from Figma frame 1:451
   Colors: #FFFFFF #161E25 #FF785A #5383C7 #EFF7FE #7AA0DB #76A3E4
           #5D8DD4 #6DC47B #53A979 #F1F8FE #F2F5FB #E0E9F7 #F9A968
   Type:   Montserrat 600/48·52.8 · 600/36·39.6 · 400/18·27
           600/16·21.92 · 600/14·19.18 ls.28 · 600/12 · 500/10 ls.2
   Radii:  16 (cards) · 10 (fields) · 28 (pills/buttons)
   ============================================================ */

:root {
  --white: #FFFFFF;
  --ink: #161E25;
  --coral: #FF785A;
  --coral-deep: #E8623F;
  --coral-soft: #FFEEEA;
  --blue: #5383C7;
  --blue-deep: #3E6BAE;
  --blue-mid: #76A3E4;
  --blue-soft: #7AA0DB;
  --blue-ghost: #5D8DD4;
  --page: #EFF7FE;
  --pale: #F1F8FE;
  --field: #F2F5FB;
  --line: #E0E9F7;
  --green: #6DC47B;
  --green-deep: #53A979;
  --gray-pin: #B9C4D4;
  --amber: #F9A968;
  --radius-card: 16px;
  --radius-field: 10px;
  --radius-pill: 28px;
  --shadow-card: 0 12px 32px rgba(22, 30, 37, 0.08);
  --font: 'Montserrat', 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 27px;
  font-weight: 400;
  color: var(--ink);
  background: var(--page);
}

img, svg { display: block; }

a { color: var(--blue); }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  height: 56px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 14px;
  line-height: 19.18px;
  font-weight: 600;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover { background: var(--blue-deep); }

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 66px;
  padding-left: 69px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { display: block; }
.logo-img:first-child { width: 34px; height: 34px; }
.logo-img:last-child { width: 135px; height: 34px; }

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.logo-img { width: 216px; height: 40px; }

/* .btn-header удалён из разметки */
.btn-header.__dead {
  line-height: 21.92px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.btn-header:hover { background: rgba(83, 131, 199, 0.2); }

/* ---------- Section tags ---------- */

/* .section-tag удалён из разметки */
.section-tag.__dead {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: var(--white);
  font-size: 12px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.section-tag-blue {
  background: var(--white);
  color: var(--blue);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

/* ---------- Hero ---------- */

.hero { padding: 64px 0 144px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

.hero-title {
  margin: 0;
  font-size: 48px;
  line-height: 52.8px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  line-height: 21px;
  font-weight: 500;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(83, 131, 199, 0.18);
}
.icon-badge-lg { width: 56px; height: 56px; }

.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 8px; }

.hero-actions .btn, .mock-buy { width: 255.4px; text-transform: none; font-size: 16px; }

.mock-product .mock-info { grid-column: 2; grid-row: 1; }

#cta .btn-cta { text-transform: none; font-size: 16px; }

.how-head .section-tag { min-width: 255.4px; justify-content: flex-start; }

/* ---------- Hero visual ---------- */

.hero-visual {
  position: relative;
  min-height: 560px;
  padding: 0 8px;
}

.hero-blob {
  position: absolute;
  top: 0;
  right: -40px;
  width: 520px;
  height: 520px;
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue-soft) 55%, var(--pale) 100%);
  opacity: 0.35;
}

.product-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  height: 360px;
  margin: 0 auto;
  isolation: isolate;
  z-index: 4;
  zoom: 1.4327;
}

.product-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(83, 131, 199, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 45px rgba(35, 70, 119, 0.16);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.product-card:hover {
  box-shadow: 0 26px 56px rgba(35, 70, 119, 0.22);
}

/* Центральная карточка */

.product-card-main {
  z-index: 3;
  top: 0;
  left: 50%;
  width: 248px;
  height: 340px;
  transform: translateX(-50%);
}

.product-card-main:hover {
  transform: translateX(-50%) translateY(-5px);
}

/* Боковые карточки */

.product-card-side {
  z-index: 1;
  top: 66px;
  width: 188px;
  height: 246px;
  opacity: 0.92;
}

.product-card-left {
  left: 0;
  transform: rotate(-5deg) scale(0.96);
  transform-origin: right center;
}

.product-card-right {
  right: 0;
  transform: rotate(5deg) scale(0.96);
  transform-origin: left center;
}

.product-card-left:hover {
  transform: rotate(-3deg) scale(0.98) translateY(-4px);
}

.product-card-right:hover {
  transform: rotate(3deg) scale(0.98) translateY(-4px);
}

/* Область изображения */

.product-card-media {
  flex: 1;
  min-height: 0;
  margin: 10px 10px 0;
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    rgba(239, 247, 254, 0.86),
    rgba(255, 255, 255, 0.98)
  );
}

.product-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(22, 30, 37, 0.12));
}

/* Подписи */

.product-card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px 16px;
}

.product-card-type {
  color: var(--blue, #5383c7);
  font-size: 11px;
  line-height: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.product-card-name {
  color: var(--ink, #161e25);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.product-card-side .product-card-copy {
  padding: 9px 13px 13px;
}

.product-card-side .product-card-name {
  font-size: 13px;
  line-height: 18px;
}

.hand-note {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: var(--coral);
}

/* ---------- How it works ---------- */

.how { padding: 8px 0 47.5px; }

.how-head {
  max-width: 720px;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
}

.section-title {
  margin: 0;
  font-size: 36px;
  line-height: 39.6px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.section-lead { margin: 0; color: rgba(22, 30, 37, 0.72); }

.browser {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--pale);
  border-bottom: 1px solid var(--line);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: var(--coral); }
.dot-y { background: var(--amber); }
.dot-g { background: var(--green); }

.browser-url {
  margin-left: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-field);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: rgba(22, 30, 37, 0.55);
}

.browser-page { padding: 20px 0 24px; }

.mock-header {
  font-family: "Montserrat", Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mock-logo { font-size: 14px; font-weight: 700; letter-spacing: 0.2px; white-space: nowrap; }

.mock-nav { display: flex; gap: 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.2px; color: rgba(22, 30, 37, 0.72); white-space: nowrap; }

.mock-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 260px;
  height: 34px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: var(--radius-field);
  background: var(--field);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: rgba(22, 30, 37, 0.45);
}

.mock-lang { font-size: 12px; font-weight: 600; color: rgba(22, 30, 37, 0.72); }

.mock-user { color: var(--ink); }

.mock-crumbs { margin: 14px 0 0; font-size: 11px; font-weight: 500; letter-spacing: 0.2px; color: rgba(22, 30, 37, 0.55); }

.mock-crumbs b { color: var(--ink); font-weight: 600; }

.mock-product {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 28px;
  margin-top: 20px;
}

.mock-gallery { display: flex; gap: 12px; }

.mock-thumbs { display: flex; flex-direction: column; gap: 8px; }

.thumb {
  width: 44px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--pale);
}

.thumb-active { box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--white); }

.mock-photo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-field);
  background: var(--pale);
  height: 300px;
}

.mock-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.mock-title { margin: 0; font-size: 24px; line-height: 30px; font-weight: 600; }

.mock-form { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.2px; color: rgba(22, 30, 37, 0.65); }

.mock-status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(109, 196, 123, 0.16);
  color: var(--green-deep);
  font-size: 11px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.mock-tabs { display: flex; gap: 20px; margin-top: 6px; border-bottom: 1px solid var(--line); align-self: stretch; }

.tab {
  padding: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(22, 30, 37, 0.55);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}

.tab-active { color: var(--blue); border-bottom-color: var(--blue); }

.mock-desc { margin: 0; font-size: 13px; line-height: 21px; color: rgba(22, 30, 37, 0.72); }

.mock-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28px;
  color: var(--blue);
  text-decoration: none;
}

.mock-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Живой виджет вместо статического stage */
.live-stage { position: relative; margin: 134.9px 0 0; }

.live-stage::before {
  content: "";
  position: absolute;
  z-index: 21;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
}

.live-stage { overflow: hidden; }
.live-stage .polza-widget-frame,
.live-stage .polza-widget-inline-frame {
  display: block;
  width: 1382px;
  height: 768px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f2f5fb;
}

.live-stage__loading {
  display: grid;
  place-items: center;
  height: 200px;
  color: rgba(22, 30, 37, 0.6);
  font-size: 14px;
}

/* Mock-элементы выровнены по ряду карточек (792px = 3x248 + 2x24) */
.browser-page > .mock-crumbs,
.browser-page > .mock-product {
  width: min(792px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* Шапка мок-сайта: контент по ряду карточек, разделитель — во всю ширину browser-page */
.browser-page > .mock-header {
  padding-inline: max(0px, calc((100% - 792px) / 2));
}

/* Копии карточек под stage: все размером с центральную (248x340) */
.browser-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 50px;
}

.browser-cards .product-card {
  position: static;
  width: 248px;
  height: 340px;
  opacity: 1;
  box-shadow: 0 10px 22px rgba(35, 70, 119, 0.16);
}

.browser-cards .product-card-copy .btn {
  align-self: stretch;
  margin-top: 10px;
  border: 0;
  box-shadow: none;
  text-transform: none;
}

/* ---------- Benefits ---------- */

.benefits { padding: 0 0 48px; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
}

.benefit-card + .benefit-card { border-left: 1px solid var(--line); }

.benefit-title { margin: 0; font-size: 16px; line-height: 21.92px; font-weight: 600; }

.benefit-text { margin: 0; font-size: 13px; line-height: 20px; color: rgba(22, 30, 37, 0.65); }

/* ---------- CTA ---------- */

.cta { padding: 0 0 96px; }

.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 48px 56px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cta-blob {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 52% 48% 44% 56% / 46% 54% 46% 54%;
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--pale) 100%);
  opacity: 0.35;
}

.cta-copy { position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; }

.cta-title {
  margin: 0;
  max-width: 560px;
  font-size: 36px;
  line-height: 39.6px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.cta-lead { margin: 0; max-width: 480px; color: rgba(22, 30, 37, 0.72); }

.btn-cta { position: relative; flex: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .mock-product { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-card:nth-child(3) { border-left: 0; }
  .benefit-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 34px; line-height: 40px; }
  .section-title, .cta-title { font-size: 26px; line-height: 32px; }
  .mock-product { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card + .benefit-card { border-left: 0; border-top: 1px solid var(--line); }
  .browser-url { display: none; }
}

/* ---------- Product carousel: tablets ---------- */

@media (max-width: 960px) {
  .product-carousel {
    max-width: 680px;
  }
}

/* ---------- Product carousel: mobile ---------- */

@media (max-width: 640px) {
  .product-carousel {
    height: 304px;
  }

  .product-card-main {
    width: 52%;
    max-width: 216px;
    height: 286px;
  }

  .product-card-side {
    top: 62px;
    width: 35%;
    max-width: 150px;
    height: 202px;
  }

  .product-card-left {
    left: 1%;
  }

  .product-card-right {
    right: 1%;
  }

  .product-card-copy {
    padding: 9px 11px 12px;
  }

  .product-card-name {
    font-size: 12px;
    line-height: 16px;
  }

  .product-card-type {
    font-size: 9px;
    line-height: 13px;
    letter-spacing: 0.55px;
  }

  .product-card-badge {
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    font-size: 9px;
  }
}

.thumb { overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.mock-thumbs .thumb { cursor: pointer; }
.mock-thumbs .thumb img { pointer-events: none; }

/* Сверхузкие экраны: лого не должна вылезать за 240px из-за офсета макета 1440px */
@media (max-width: 320px) {
  .header-inner { padding-left: 28px; }
}
