/* ==========================================================================
   Пломбир Айс — plombirice.com
   Fresh ice-cream inspired landing · unique design for ads
   ========================================================================== */

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --bg: #f0f9ff;
  --bg-alt: #e0f2fe;
  --card: #ffffff;
  --card-soft: #f8fafc;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-soft: #e0f2fe;
  --mint: #14b8a6;
  --mint-soft: #ccfbf1;
  --coral: #f43f5e;
  --coral-soft: #ffe4e6;
  --gold: #f59e0b;
  --green: #10b981;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1140px;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.1);
  --shadow-accent: 0 8px 24px rgba(14, 165, 233, 0.25);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
}

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--card-soft);
  border-color: var(--accent);
}

.btn-sm {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 12px;
  width: 100%;
}
.btn .icon { width: 17px; height: 17px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 0 16px;
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.logo {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease);
}
.main-nav a:hover { color: var(--accent); }

.header-cta {
  height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
  border-radius: 11px;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s;
}

.mobile-nav {
  max-width: var(--container);
  margin: 8px auto 0;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { margin-top: 10px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 20px;
  margin: 0 0 16px;
}
.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 540px;
}
.hero-title span {
  background: linear-gradient(135deg, var(--accent), var(--mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 420px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.hero-art img {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(14, 165, 233, 0.15));
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  z-index: 0;
}
.hero-blob-1 {
  width: 220px;
  height: 220px;
  background: var(--accent);
  top: 10%;
  right: 10%;
}
.hero-blob-2 {
  width: 160px;
  height: 160px;
  background: var(--mint);
  bottom: 15%;
  left: 5%;
}

/* ==========================================================================
   Section shared
   ========================================================================== */
section { padding: 56px 0; }
.section-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Features
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent-dark);
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  text-align: center;
  position: relative;
}
.step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.step:hover .step-circle {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-circle .icon { width: 24px; height: 24px; color: var(--accent-dark); }
.step p {
  margin: 0;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.step-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent-soft));
  margin-top: 32px;
  flex-shrink: 0;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.period-switch {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.period-switch-track {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}
.period-btn {
  height: 38px;
  padding: 0 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.period-btn.active {
  background: var(--accent);
  color: #fff;
}
.period-btn:hover:not(.active) {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 40%);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--mint));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.price-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--accent-dark);
}
.price-icon .icon { width: 22px; height: 22px; }
.price-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
}
.price-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 16px;
}
.price-value {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--ink-soft);
}
.price-value strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.price-card .btn { margin-top: auto; }

/* ==========================================================================
   Payment
   ========================================================================== */
.payment-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  box-shadow: var(--shadow-sm);
}
.payment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.payment-item .icon { width: 20px; height: 20px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 680px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: var(--accent);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.faq-question .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
  color: var(--ink-muted);
}
.faq-item.open .faq-question .icon {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-answer p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--mint) 100%);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.final-cta-text h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.final-cta-text p {
  margin: 0 0 20px;
  font-size: 15px;
  opacity: 0.9;
}
.final-cta .btn-primary {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.final-cta .btn-primary:hover {
  background: #f0f9ff;
}
.final-cta-art {
  width: 100px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 48px 0 28px;
  background: var(--ink);
  color: #e2e8f0;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}
.footer-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
  max-width: 280px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-col .footer-link-btn {
  display: block;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 8px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.15s;
}
.footer-col .footer-link-btn:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title { max-width: none; font-size: 36px; }
  .hero-desc { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-art { min-height: 300px; order: -1; }
  .hero-art img { max-width: 320px; }

  .features-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .step-connector { display: none; }
  .steps { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .final-cta { flex-direction: column; text-align: center; }
  .final-cta-art { order: -1; }
}

@media (max-width: 720px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }
  .hero-title { font-size: 30px; }
  .section-title { font-size: 24px; }
  .period-switch-track { flex-wrap: wrap; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .payment-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { padding: 36px 0 32px; }
  .hero-title { font-size: 26px; }
  .btn { height: 46px; font-size: 14px; }
  .final-cta { padding: 28px 20px; }
  .final-cta-text h2 { font-size: 22px; }
}
