:root {
  --coral: #de493f;
  --coral-hover: #c73f36;
  --teal: #008080;
  --teal-dark: #0e4b50;
  --teal-deep: #063a3e;
  --teal-soft: #e6f5f5;
  --text: #16363a;
  --text-secondary: #5b6f74;
  --muted: #8a9a9e;
  --border: #e4ecec;
  --bg: #ffffff;
  --bg-soft: #f5faf9;
  --shadow: 0 12px 40px rgba(14, 75, 80, 0.12);
  --radius: 16px;
  --container: 1120px;
  --font: "Montserrat", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 22px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

.btn-primary:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
}

.btn-outline {
  background: #fff;
  color: var(--coral);
  border-color: var(--coral);
}

.btn-outline:hover {
  background: #fff5f4;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

.btn-header {
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
}

/* Header — сначала в потоке первого экрана, затем фиксируется скриптом */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14, 75, 80, 0.06);
}

.site-header.is-pinned {
  position: fixed;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  box-shadow: 0 10px 28px rgba(14, 75, 80, 0.1);
}

.site-header.is-pinned.is-visible {
  transform: translateY(0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--teal-dark);
  flex-shrink: 0;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--teal-dark);
  border-radius: 2px;
}

/* Hero — фон без изменений */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 760px);
  overflow: hidden;
  background: linear-gradient(180deg, #f4fbfb 0%, #ffffff 70%);
  /* Место под абсолютную шапку, чтобы контент не заезжал под неё */
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/bg_header.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  align-items: center;
  min-height: inherit;
  padding: 48px 0 64px;
}

.hero-content {
  max-width: 500px;
  padding: 24px 0;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  max-width: 42ch;
}

.hero-checklist {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.hero-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
}

/* Advantages */
.advantages {
  padding: 88px 0 72px;
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 16px;
}

.section-head-light h2,
.section-head-light p {
  color: #fff;
}

.section-head-light p {
  opacity: 0.82;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Showcase */
.showcase {
  padding: 88px 0 72px;
  background: var(--teal-dark);
}

.carousel {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 16px;
  align-items: center;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.carousel-track-wrap {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 1s ease;
  will-change: transform;
}

.shot-card {
  flex: 0 0 calc((100% - 40px) / 3);
  text-align: center;
  color: #fff;
  min-width: 0;
}

.shot-window {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  margin-bottom: 18px;
}

.shot-titlebar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #f3f5f6;
}

.shot-titlebar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d5d8;
}

.shot-body {
  padding: 0;
}

.shot-image img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.shot-card p {
  font-size: 13px;
  opacity: 0.8;
  max-width: 28ch;
  margin-inline: auto;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.is-active {
  background: var(--coral);
}

/* Reviews */
.reviews {
  padding: 88px 0;
  background: var(--bg-soft);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(14, 75, 80, 0.08);
}

.stars {
  color: var(--coral);
  letter-spacing: 2px;
  font-size: 16px;
  margin-bottom: 14px;
}

.review-card blockquote {
  margin: 0 0 22px;
  font-style: italic;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c, var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.reviewer strong {
  display: block;
  font-size: 14px;
}

.reviewer span {
  font-size: 12px;
  color: var(--muted);
}

/* Pricing */
.pricing {
  padding: 72px 0 40px;
  background: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 24px;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  background: #fff;
}

.price-card-pro {
  border-color: transparent;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #f3fbfb, #fff);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.price {
  font-size: 28px;
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 20px;
}

.price-card ul {
  text-align: left;
  margin: 0 auto 24px;
  max-width: 240px;
  display: grid;
  gap: 10px;
}

.price-card li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--text-secondary);
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.price-card .btn {
  width: 100%;
}

.pro-plans {
  text-align: left;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.pro-plans-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pro-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
}

.pro-plan:last-of-type {
  margin-bottom: 0;
}

.pro-plan-year {
  border-color: rgba(222, 73, 63, 0.35);
  background: linear-gradient(180deg, #fff8f7, #fff);
}

.pro-plan-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pro-plan-copy strong {
  font-size: 15px;
  color: var(--text);
}

.pro-plan-copy span {
  font-size: 12px;
  color: var(--muted);
}

.pro-plan .btn {
  width: auto;
  min-width: 96px;
  flex-shrink: 0;
  padding: 10px 16px;
}

.pro-plans-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.price-download-link {
  margin-top: 4px;
}

/* Final CTA */
.final-cta {
  padding: 40px 0 88px;
  background: #fff;
}

.final-cta-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  background: var(--teal-dark);
  border-radius: 28px;
  padding: 48px 52px;
  color: #fff;
  overflow: hidden;
}

.final-cta-copy h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 14px;
}

.final-cta-copy > p {
  opacity: 0.85;
  margin-bottom: 24px;
  max-width: 42ch;
}

.final-cta-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 22px;
  font-size: 13px;
}

.final-cta-trust li {
  position: relative;
  padding-left: 22px;
}

.final-cta-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.final-cta-art {
  display: flex;
  justify-content: center;
}

.desk {
  position: relative;
  width: 260px;
  height: 200px;
}

.flip-cal {
  position: absolute;
  left: 24px;
  top: 20px;
  width: 120px;
  height: 130px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.flip-top {
  height: 28px;
  background: #e8eeee;
}

.flip-page {
  height: calc(100% - 28px);
  display: grid;
  place-items: center;
}

.flip-page .mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}

.plant {
  position: absolute;
  right: 78px;
  bottom: 36px;
  width: 48px;
  height: 70px;
}

.pot {
  position: absolute;
  bottom: 0;
  left: 8px;
  width: 32px;
  height: 28px;
  background: #c4a484;
  border-radius: 0 0 8px 8px;
}

.leaf {
  position: absolute;
  width: 22px;
  height: 34px;
  background: #2bb3a5;
  border-radius: 50% 50% 40% 40%;
}

.leaf.l1 { left: 4px; bottom: 24px; transform: rotate(-20deg); }
.leaf.l2 { left: 16px; bottom: 30px; transform: rotate(10deg); background: #1f9a8d; }
.leaf.l3 { left: 10px; bottom: 40px; transform: rotate(-5deg); background: #38c4b5; }

.mug {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 42px;
  height: 38px;
  background: var(--coral);
  border-radius: 6px 6px 10px 10px;
  box-shadow: 8px 0 0 #c73f36;
}

/* Footer */
.site-footer {
  background: #f3f7f7;
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 32ch;
}

.footer-brand .copy {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.footer-brand .ogrnip {
  margin-top: 6px;
}

.site-footer h4 {
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--teal-dark);
}

.site-footer a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.site-footer a:hover {
  color: var(--teal);
}

/* Responsive */
@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .btn-header {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 560px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 55%, rgba(255, 255, 255, 0.55) 100%);
    border-radius: 20px;
    padding: 28px 24px;
  }

  .hero-bg {
    background-position: 70% center;
    opacity: 0.95;
  }

  .features-grid,
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }

  .carousel {
    grid-template-columns: 40px 1fr 40px;
  }

  .shot-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  .final-cta-box {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .final-cta-art {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .features-grid,
  .reviews-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .carousel {
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .shot-card {
    flex: 0 0 100%;
  }

  .pro-plan {
    flex-direction: column;
    align-items: stretch;
  }

  .pro-plan .btn {
    width: 100%;
  }
}
