/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #FF6B6B;
  --color-primary-dark: #e55555;
  --color-bg: #FFFAF5;
  --color-bg-alt: #FFF5EE;
  --color-bg-steps: #FFF0E8;
  --color-text: #2D2D2D;
  --color-text-light: #666;
  --color-white: #fff;
  --font-main: 'Karla', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 250, 245, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 500px;
}

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero h1 strong {
  color: var(--color-primary);
}

.subtitle {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.cta-btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition), transform var(--transition);
}

.cta-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.hero-images {
  position: relative;
  height: 500px;
}

.hero-screen {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-screen-1 {
  width: 280px;
  top: 0;
  left: 0;
  z-index: 2;
}

.hero-screen-2 {
  width: 240px;
  top: 45%;           /* 55% від верху — налазить на перший */
  left: 30%;          /* Зміщення вправо */
  bottom: auto;       /* ВАЖЛИВО: скидаємо bottom */
  right: auto;        /* ВАЖЛИВО: скидаємо right */
  z-index: 2;
}

.hero-screen img {
  width: 100%;
  height: auto;
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 32px;
}

.highlight {
  color: var(--color-primary);
}

.highlight-alt {
  background: linear-gradient(135deg, #FFB347, #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 32px;
  height: 32px;
}

.feature-header span {
  font-weight: 600;
  font-size: 15px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 14px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 80px 0;
  background: var(--color-bg-steps);
  position: relative;
}

.section-subtitle {
  color: var(--color-text-light);
  margin-top: 12px;
}

.tabs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.tabs-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-btn {
  background: var(--color-white);
  border: none;
  padding: 20px;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0.7;
}

.tab-btn.active {
  opacity: 1;
  box-shadow: var(--shadow);
}

.tab-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tab-desc {
  display: block;
  font-size: 14px;
  color: var(--color-text-light);
}

.tabs-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.tab-pane img {
  max-height: 450px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.deco-hearts, .deco-line {
  position: absolute;
  opacity: 0.5;
  pointer-events: none;
}

.deco-hearts {
  width: 200px;
  right: 5%;
  top: 20%;
}

.deco-line {
  width: 100px;
  left: 5%;
  bottom: 30%;
}

/* ===== FAQ ===== */
.faq {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(0,0,0,0.02);
}

.faq-icon {
  font-size: 20px;
  color: var(--color-primary);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 20px 20px;
  color: var(--color-text-light);
  font-size: 14px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #FFE5D9, #FFD1C1);
  padding: 60px;
  border-radius: 24px;
}

.cta-content h2 {
  font-size: 36px;
  line-height: 1.4;
}

.cta-image {
  text-align: center;
}

.cta-image img {
  max-height: 350px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo img {
  height: 32px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tabs-container {
    grid-template-columns: 1fr;
  }
  
  .tabs-content {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-images {
    height: 400px;
    margin: 0 auto;
    max-width: 400px;
  }
  
.hero-screen-1 {
  width: 220px;
}

.hero-screen-2 {
  width: 180px;
  top: 50%;
  left: 40%;
  bottom: auto;
  right: auto;
}
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-content h2 {
    font-size: 28px;
  }
}
