/* Para Pharmacy — Marketing site */
:root {
  --primary: #6a0028;
  --primary-dark: #4a001c;
  --primary-deep: #380016;
  --primary-soft: #fff0e6;
  --accent-peach: #e88b58;
  --accent-amber: #f0a030;
  --success: #3fa864;
  --bg: #fff8f5;
  --surface: #ffffff;
  --text: #2a2220;
  --muted: #9a908a;
  --outline: #f5e6de;
  --shadow: 0 18px 50px rgba(106, 0, 40, 0.08);
  --shadow-lg: 0 28px 80px rgba(106, 0, 40, 0.14);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --max: 1180px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

html[lang="en"] body {
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

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

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

button,
.btn,
.lang-btn,
.menu-toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}

.site-header.scrolled {
  background: rgba(255, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--outline);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.15em;
}

.icon-lg {
  width: 22px;
  height: 22px;
}

.icon-xl {
  width: 26px;
  height: 26px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-btn {
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--primary-soft);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 1.35rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(26, 10, 16, 0.45);
  z-index: 99;
}

.mobile-nav.open {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

.mobile-nav-panel {
  background: var(--surface);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow);
}

.mobile-nav-panel a {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.mobile-nav-panel a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 28px rgba(106, 0, 40, 0.25);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--outline);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(106, 0, 40, 0.2);
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 139, 88, 0.18), transparent 42%),
    radial-gradient(circle at 10% 80%, rgba(106, 0, 40, 0.08), transparent 40%),
    linear-gradient(180deg, #fff8f5 0%, #fff0e6 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--primary-deep);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-deep);
}

.pill .icon {
  color: var(--primary);
}

.phone-mock {
  position: relative;
  max-width: 340px;
  margin-inline: auto;
}

.phone-glow {
  position: absolute;
  inset: 8% -8%;
  background: radial-gradient(circle, rgba(106, 0, 40, 0.12), transparent 68%);
  z-index: -1;
}

.phone-frame {
  background: linear-gradient(160deg, #1a0a10, #3a1820);
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  background: linear-gradient(180deg, #fff8f5 0%, #ffffff 42%);
  border-radius: 28px;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--primary-deep);
  opacity: 0.7;
}

.mock-top {
  padding: 0.35rem 1rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.mock-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(106, 0, 40, 0.15);
}

.mock-brand-text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--primary-deep);
  line-height: 1.2;
}

.mock-brand-text span {
  font-size: 0.68rem;
  color: var(--muted);
}

.mock-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mock-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--outline);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--primary);
}

.mock-search {
  margin: 0 1rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.mock-search .icon {
  color: var(--primary);
  width: 16px;
  height: 16px;
}

.mock-greeting {
  padding: 0 1rem 0.55rem;
}

.mock-greeting h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-deep);
}

.mock-greeting p {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.mock-section-title {
  padding: 0 1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
}

.mock-banner {
  margin: 0 1rem 0.85rem;
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary), var(--accent-peach));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.mock-banner::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -30px;
  inset-inline-end: -20px;
}

.mock-banner strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.mock-banner span {
  font-size: 0.78rem;
  opacity: 0.92;
}

.mock-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  padding: 0 1rem 1rem;
}

.mock-cat {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 0.65rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.mock-cat .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-peach);
}

.mock-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  padding: 0 1rem 1.25rem;
}

.mock-product {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 0.55rem;
  box-shadow: 0 6px 18px rgba(106, 0, 40, 0.05);
}

.mock-product .thumb {
  height: 72px;
  border-radius: 10px;
  margin-bottom: 0.45rem;
  overflow: hidden;
  background: #fff8f5;
}

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

.mock-product strong {
  display: block;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--primary-deep);
  min-height: 1.85em;
}

.mock-product em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 800;
}

.mock-product .badge-sale {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent-peach);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}

.floating-card {
  position: absolute;
  background: var(--surface);
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--outline);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-deep);
}

.floating-card.two {
  bottom: 10%;
  inset-inline-start: -10%;
}

.floating-card .icon-star {
  width: 16px;
  height: 16px;
  color: var(--accent-amber);
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.75rem;
}

.section-head .tag {
  display: inline-block;
  color: var(--accent-peach);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary-deep);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.stats-strip {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.stat-item span {
  font-size: 0.92rem;
  opacity: 0.88;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-icon .icon {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--primary-deep);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-panel {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.about-panel h3 {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 1.35rem;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.about-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 600;
}

.about-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-card {
  border-radius: var(--radius-md);
  padding: 1.35rem 1rem;
  text-align: center;
  font-weight: 800;
  color: var(--primary-deep);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.category-card:nth-child(1) { background: #fff0e6; }
.category-card:nth-child(2) { background: #ffe8dc; }
.category-card:nth-child(3) { background: #fff5ee; }
.category-card:nth-child(4) { background: #fce4d6; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-card {
  text-align: center;
  padding: 1.5rem;
}

.step-num {
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-peach));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.2rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  color: var(--primary-deep);
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: inherit;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item .answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item.open .answer {
  display: block;
}

.faq-item.open button svg {
  transform: rotate(45deg);
}

.contact-section {
  background: linear-gradient(180deg, transparent, var(--primary-soft));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-card,
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 1rem;
  color: var(--primary);
}

.contact-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.contact-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  color: var(--primary);
}

.contact-item .icon .icon-lg {
  width: 20px;
  height: 20px;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.cta-band {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.9;
  max-width: 560px;
  margin-inline: auto;
}

.store-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 0.75rem 1.1rem;
  min-width: 160px;
  text-align: start;
}

.store-badge small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
}

.store-badge strong {
  font-size: 0.95rem;
}

#download {
  padding-bottom: 0;
}

#download .cta-band {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--primary-deep) 0%, #1a0a10 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand span {
  color: #fff;
}

.footer-grid > div:first-child .brand {
  margin-bottom: 0.75rem;
}

.site-footer .brand img {
  border-radius: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  margin: 0 0 0.85rem;
  color: #fff;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Legal pages */
.page-hero {
  padding: calc(var(--header-h) + 2.5rem) 0 2rem;
  background: linear-gradient(180deg, #fff0e6, var(--bg));
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary-deep);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.legal-content {
  padding: 2.5rem 0 4rem;
}

.legal-box {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}

.legal-box h2 {
  color: var(--primary);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-box h2:first-child {
  margin-top: 0;
}

.legal-box p,
.legal-box li {
  color: var(--text);
  font-size: 0.98rem;
}

.legal-box ul,
.legal-box ol {
  padding-inline-start: 1.25rem;
}

.legal-box .updated {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.back-top {
  position: fixed;
  bottom: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
  z-index: 90;
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

[dir="rtl"] .back-top {
  transform: scaleX(-1);
}

.site-header {
  padding-top: env(safe-area-inset-top);
}

.back-top {
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  inset-inline-end: calc(1.25rem + env(safe-area-inset-right));
}

.phone-screen {
  max-height: none;
}

/* ===== Responsive: tablet & below ===== */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-card.two {
    display: none;
  }

  .phone-mock {
    max-width: 300px;
  }

  .phone-screen {
    min-height: 0;
  }

  .section-head {
    margin-bottom: 2rem;
  }
}

/* ===== Responsive: phones & small tablets ===== */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --radius-md: 18px;
    --radius-lg: 22px;
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .nav-desktop {
    display: none;
  }

  .header-download {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .brand {
    font-size: 1rem;
    gap: 0.55rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .lang-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    padding: calc(var(--header-h) + 1.5rem) 0 2.5rem;
  }

  .hero-grid {
    gap: 1.75rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }

  .hero-lead {
    font-size: 1rem;
    max-width: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1.25rem;
  }

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

  .hero-badges {
    gap: 0.5rem;
  }

  .pill {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .phone-mock {
    max-width: min(280px, 82vw);
    margin-inline: auto;
  }

  .phone-frame {
    border-radius: 30px;
    padding: 10px;
  }

  .phone-screen {
    border-radius: 22px;
    min-height: 0;
  }

  .mock-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip {
    padding: 1.5rem 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-item strong {
    font-size: 1.45rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .feature-card {
    padding: 1.2rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .category-card {
    min-height: 88px;
    padding: 1rem 0.75rem;
    font-size: 0.92rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .step-card {
    padding: 1rem 0.5rem;
  }

  .about-panel {
    padding: 1.35rem;
  }

  .section-head h2 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .section-head p {
    font-size: 0.95rem;
  }

  .contact-grid {
    gap: 1rem;
  }

  .contact-card,
  .contact-form-wrap {
    padding: 1.25rem;
  }

  .cta-band {
    padding: 1.75rem 1.15rem;
    border-radius: 22px;
  }

  .store-badge {
    min-width: 0;
    flex: 1 1 140px;
  }

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

  .site-footer {
    padding: 2.25rem 0 calc(1.25rem + env(safe-area-inset-bottom));
  }

  .mobile-nav {
    inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0 0;
  }

  .mobile-nav-panel {
    padding: 0.85rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
  }

  .mobile-nav-panel a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .page-hero {
    padding: calc(var(--header-h) + 1.5rem) 0 1.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .legal-content {
    padding: 1.5rem 0 3rem;
  }

  .legal-box {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .back-top {
    width: 44px;
    height: 44px;
  }
}

/* ===== Responsive: small phones ===== */
@media (max-width: 480px) {
  .container {
    width: min(100% - 1rem, var(--max));
  }

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

  .hero-badges .pill {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }

  .btn {
    padding: 0.85rem 1.15rem;
    font-size: 0.92rem;
  }

  .stats-grid {
    gap: 0.75rem 0.5rem;
  }

  .stat-item strong {
    font-size: 1.3rem;
  }

  .stat-item span {
    font-size: 0.8rem;
  }

  .phone-mock {
    max-width: min(260px, 88vw);
  }

  .mock-product strong {
    font-size: 0.62rem;
  }

  .mock-product em {
    font-size: 0.66rem;
  }

  .store-badges {
    flex-direction: column;
  }

  .store-badge {
    width: 100%;
  }

  .faq-item button {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* ===== Landscape phones ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 1.5rem;
  }

  .phone-mock {
    display: none;
  }

  section {
    padding: 2rem 0;
  }
}

/* Large desktop polish */
@media (min-width: 1200px) {
  .hero-grid {
    gap: 3.5rem;
  }
}
