:root {
  --bg: #f3f9f7;
  --surface: #ffffff;
  --text: #16312a;
  --muted: #56756c;
  --blue: #0c6ea8;
  --green: #12755f;
  --gold: #d4a31f;
  --line: #d9e8e2;
  --shadow: 0 18px 45px rgba(16, 66, 55, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Cuprum", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f6fbf9 0%, #eef6f3 100%);
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: #09557f;
}

/* ── Header — glass-morphism ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(243, 249, 247, 0.78);
  border-bottom: 1px solid rgba(18, 117, 95, 0.1);
  box-shadow: 0 1px 12px rgba(16, 66, 55, 0.06);
}

.navbar {
  padding: 0.65rem 0;
}

.brand img {
  width: 76px;
  height: auto;
}

.navbar-toggler {
  border: 1px solid rgba(18, 117, 95, 0.35);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-nav {
  gap: 0.25rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 60%;
  left: 20%;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--blue);
  background: rgba(12, 110, 168, 0.08);
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(18, 117, 95, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(12, 110, 168, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(212, 163, 31, 0.07) 0%, transparent 60%);
}

/* Dot pattern overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(18, 117, 95, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* ── Hero typography ── */
.hero-content h1 {
  font-family: "Oranienbaum", serif;
  font-size: clamp(1.95rem, 4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0.65rem 0 1.1rem;
}

.hero-text {
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero eyebrow pill badge */
.hero-content .eyebrow {
  background: rgba(12, 110, 168, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 110, 168, 0.15);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0;
}

/* Animated arrow on primary CTA */
.hero-actions .btn-main::after {
  content: " →";
  display: inline-block;
  transition: transform 0.25s ease;
}

.hero-actions .btn-main:hover::after {
  transform: translateX(4px);
}

.btn {
  border-radius: 12px;
  border: none;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn-main {
  color: #fff;
  background: linear-gradient(120deg, var(--green), #1a8a71);
  box-shadow: 0 10px 20px rgba(18, 117, 95, 0.22);
}

.btn-main:hover {
  color: #fff;
  background: linear-gradient(120deg, #0f6753, #157a63);
  box-shadow: 0 12px 28px rgba(18, 117, 95, 0.3);
}

.btn-ghost {
  color: var(--green);
  background: rgba(18, 117, 95, 0.1);
  border: 1px solid rgba(18, 117, 95, 0.25);
}

.hero-points {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

/* ── Hero visual — image ── */
.hero-visual {
  position: relative;
  max-width: 560px;
}

.hero-visual img {
  width: 100%;
  border-radius: 32px 12px 32px 12px;
  object-fit: cover;
  min-height: 340px;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.hero-visual img:hover {
  transform: scale(1.02);
}

/* Glowing accent border on hero image */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 34px 14px 34px 14px;
  background: linear-gradient(135deg, rgba(18, 117, 95, 0.4), rgba(12, 110, 168, 0.3), rgba(212, 163, 31, 0.3));
  z-index: -1;
  opacity: 0.6;
  filter: blur(2px);
}

/* ── Float cards ── */
.float-card {
  position: absolute;
  padding: 0.58rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(12, 110, 168, 0.18);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(12, 110, 168, 0.14);
}

.card-a {
  top: 8%;
  left: -6%;
}

.card-b {
  bottom: 8%;
  right: -8%;
}

/* ── Hero entrance animations (triggered by .hero-loaded) ── */
.hero-content .eyebrow,
.hero-content h1,
.hero-content .hero-text,
.hero-content .hero-actions,
.hero-content .hero-points {
  opacity: 0;
  transform: translateY(28px);
}

.hero-visual {
  opacity: 0;
  transform: translateX(40px) scale(0.97);
}

.float-card {
  opacity: 0;
}

.card-a {
  transform: translateX(-30px);
}

.card-b {
  transform: translateX(30px);
}

/* Entrance keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* When hero-loaded is added, trigger staggered entrance */
.hero-loaded .hero-content .eyebrow {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

.hero-loaded .hero-content h1 {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

.hero-loaded .hero-content .hero-text {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.35s;
}

.hero-loaded .hero-content .hero-actions {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.5s;
}

.hero-loaded .hero-content .hero-points {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.65s;
}

.hero-loaded .hero-visual {
  animation: fadeInRight 0.7s ease forwards;
  animation-delay: 0.3s;
}

.hero-loaded .card-a {
  animation: slideInLeft 0.5s ease forwards 0.7s, gentleFloat 5s ease-in-out infinite 1.2s;
}

.hero-loaded .card-b {
  animation: slideInRight 0.5s ease forwards 0.9s, gentleFloat 5s ease-in-out infinite 1.4s;
}

/* ── Background orbs — drift instead of pulse ── */
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0;
  will-change: transform, opacity;
}

.orb-1 {
  width: 560px;
  height: 560px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(18, 117, 95, 0.35) 0%, rgba(18, 117, 95, 0) 70%);
}

.orb-2 {
  width: 480px;
  height: 480px;
  right: -100px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(212, 163, 31, 0.3) 0%, rgba(212, 163, 31, 0) 72%);
}

.orb-3 {
  width: 420px;
  height: 420px;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(12, 110, 168, 0.25) 0%, rgba(12, 110, 168, 0) 70%);
}

.orb-4 {
  width: 340px;
  height: 340px;
  top: -60px;
  right: 15%;
  background: radial-gradient(circle, rgba(18, 117, 95, 0.18) 0%, rgba(212, 163, 31, 0.12) 40%, transparent 70%);
}

@keyframes orbDrift1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translate(40px, -30px) scale(1.05);
    opacity: 0.9;
  }
  50% {
    transform: translate(20px, 20px) scale(0.95);
    opacity: 0.75;
  }
  75% {
    transform: translate(-25px, 10px) scale(1.02);
    opacity: 0.85;
  }
}

@keyframes orbDrift2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  30% {
    transform: translate(-35px, 25px) scale(1.06);
    opacity: 0.8;
  }
  60% {
    transform: translate(25px, -15px) scale(0.94);
    opacity: 0.7;
  }
}

@keyframes orbDrift3 {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  35% {
    transform: translate(calc(-50% + 30px), calc(-50% - 20px)) scale(1.08);
    opacity: 0.7;
  }
  70% {
    transform: translate(calc(-50% - 15px), calc(-50% + 15px)) scale(0.96);
    opacity: 0.55;
  }
}

@keyframes orbDrift4 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.45;
  }
  40% {
    transform: translate(-20px, 30px) scale(1.1);
    opacity: 0.65;
  }
  80% {
    transform: translate(15px, -10px) scale(0.92);
    opacity: 0.5;
  }
}

.hero-loaded .orb-1 {
  animation: orbDrift1 10s ease-in-out infinite;
}

.hero-loaded .orb-2 {
  animation: orbDrift2 13s ease-in-out infinite;
  animation-delay: 0.5s;
}

.hero-loaded .orb-3 {
  animation: orbDrift3 15s ease-in-out infinite;
  animation-delay: 1s;
}

.hero-loaded .orb-4 {
  animation: orbDrift4 11s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(18, 117, 95, 0.05) 0%, rgba(12, 110, 168, 0.06) 100%);
}

.section-head {
  max-width: 780px;
  margin-bottom: 1.7rem;
}

.section-head h2 {
  margin: 0.55rem 0 0.8rem;
  font-family: "Oranienbaum", serif;
  font-size: clamp(1.65rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── Grid layouts ── */
.product-grid,
.benefits-grid,
.blog-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

/* ── Cards — hover lift + gradient top border ── */
.product-card,
.benefit,
.blog-card,
.contact-card,
.map-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(16, 66, 55, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 66, 55, 0.12);
}

/* Benefit card icon */
.benefit-icon {
  color: var(--green);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

/* Blog card as link */
a.blog-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* Blog card icon — inline with title */
.blog-card-icon {
  color: var(--green);
  flex-shrink: 0;
  vertical-align: -0.15em;
  margin-right: 0.3rem;
}

/* Gradient top border accent on benefit cards */
.benefit {
  border-top: 3px solid transparent;
  border-image: linear-gradient(120deg, var(--green), var(--blue)) 1;
  border-image-slice: 1;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.benefit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 66, 55, 0.1);
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.7rem;
}

.product-card h3,
.benefit h3,
.blog-card h3,
.contact-card h3 {
  margin-top: 0.2rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

a.blog-card:hover h3,
a.blog-card:focus-visible h3 {
  text-decoration: underline;
}

.small-text {
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.7rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #7a5a00;
  background: rgba(212, 163, 31, 0.2);
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  margin-bottom: 12px;
}

.map-wrap {
  min-height: 320px;
  overflow: hidden;
  padding: 0;
}

.map-wrap > ymaps,
.map-wrap > div,
.map-wrap iframe {
  width: 100%;
  height: 100%;
}

/* ── Footer ── */
.site-footer {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(18, 117, 95, 0.15);
  background: #f4f8f6;
}

.footer-content {
  display: grid;
  gap: 1rem;
}

.footer-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #21433a;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(18, 117, 95, 0.22);
  background: #fff;
  text-decoration: none;
  color: #21433a;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card strong {
  font-size: 0.88rem;
  line-height: 1.3;
}

.partner-card span {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #3e5f56;
}

.partner-card small {
  font-size: 0.76rem;
  color: #12755f;
}

.partner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 117, 95, 0.45);
  box-shadow: 0 9px 20px rgba(18, 117, 95, 0.12);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-credit {
  font-size: 0.88rem;
  color: #3e5f56;
}

/* ── Modal ── */
#cover {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  background-color: rgba(4, 13, 10, 0.78) !important;
  background-image: radial-gradient(circle at 20% 20%, rgba(12, 110, 168, 0.2), rgba(12, 110, 168, 0) 45%),
    radial-gradient(circle at 80% 80%, rgba(212, 163, 31, 0.2), rgba(212, 163, 31, 0) 45%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  padding: 20px;
}

.order-modal-shell {
  width: 100%;
  max-width: 560px;
  margin: min(8vh, 56px) auto 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(18, 117, 95, 0.25);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.2s ease-out;
}

.order-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(120deg, rgba(18, 117, 95, 0.1), rgba(12, 110, 168, 0.08));
  border-bottom: 1px solid rgba(18, 117, 95, 0.16);
}

.order-modal-head .modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.order-modal-body {
  padding: 16px;
}

.order-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid #e2efea;
  background: #fcfffe;
}

.close {
  border: none;
  background: transparent;
  color: #184a3f;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.close:hover {
  background: rgba(18, 117, 95, 0.12);
}

.form-control {
  margin-bottom: 0.7rem;
  border-radius: 10px;
  border: 1px solid #c9ddd6;
  padding: 0.65rem 0.8rem;
}

.checklist {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.checklist label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #21473e;
}

#alertName,
#alertPhone {
  display: none;
}

#alertName p,
#alertPhone p {
  color: #b20000;
  margin: 0.2rem 0 0.45rem;
  font-size: 0.9rem;
}

/* ── Scroll reveal ── */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Keyframes ── */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .product-grid,
  .benefits-grid,
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 767px) {
  .hero {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .card-a {
    left: 6%;
    top: 4%;
  }

  .card-b {
    right: 6%;
    bottom: 4%;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .order-modal-foot {
    flex-direction: column;
  }

  .order-modal-foot .btn {
    width: 100%;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg-orb,
  .float-card,
  .reveal-up,
  .hero-visual,
  .hero-visual img,
  .hero-content .eyebrow,
  .hero-content h1,
  .hero-content .hero-text,
  .hero-content .hero-actions,
  .hero-content .hero-points,
  .product-card,
  .blog-card,
  .benefit {
    animation: none !important;
    transition: none !important;
  }

  .reveal-up,
  .hero-content .eyebrow,
  .hero-content h1,
  .hero-content .hero-text,
  .hero-content .hero-actions,
  .hero-content .hero-points,
  .hero-visual,
  .float-card,
  .hero-bg-orb {
    opacity: 1;
    transform: none;
  }
}
