:root {
  --background: 0 0% 100%;
  --foreground: 224 32% 12%;
  --card: 210 30% 98%;
  --primary: 152 62% 38%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 30% 96%;
  --muted-foreground: 215 16% 42%;
  --border: 214 25% 89%;
  --radius: 0.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; margin: 0 auto; padding: 0 1.5rem; }
.max-3 { max-width: 48rem; }
.max-4 { max-width: 56rem; }
.max-5 { max-width: 64rem; }
.section { padding: 4rem 0; }
.bg-secondary { background: hsl(var(--secondary)); }
.bordered-y { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.center { text-align: center; }
.muted { color: hsl(var(--muted-foreground)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  border: none; border-radius: var(--radius); cursor: pointer;
  font: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  padding: .5rem 1rem; font-size: .875rem; transition: opacity .2s; text-decoration: none;
}
.btn:hover { opacity: .9; }
.btn-lg { padding: .875rem 3rem; font-size: 1rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--card) / .8); backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border)); padding: 1rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; font-weight: 700; }
.brand svg { color: hsl(var(--primary)); }
.header-right { display: flex; align-items: center; gap: .75rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a, .lang-btn {
  background: none; border: none; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: hsl(var(--muted-foreground)); transition: color .2s;
}
.nav a:hover, .lang-btn:hover { color: hsl(var(--primary)); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: .5rem; color: inherit; border-radius: var(--radius); }
.menu-btn:hover { background: hsl(var(--secondary)); }

/* Mobile drawer */
.overlay { position: fixed; inset: 0; background: hsl(224 32% 12% / .5); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
.drawer {
  position: fixed; top: 0; inset-inline-end: 0; height: 100%; width: 16rem; z-index: 70;
  background: hsl(var(--background)); border-inline-start: 1px solid hsl(var(--border));
  padding: 1.5rem; transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 1.5rem;
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
body.menu-open .overlay { opacity: 1; pointer-events: auto; }
body.menu-open .drawer { transform: translateX(0); }
.drawer nav { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.drawer .lang-btn { color: hsl(var(--primary)); }
.drawer-close { align-self: flex-end; background: none; border: none; cursor: pointer; color: inherit; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 2rem 0; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, hsl(var(--primary) / .12), transparent 60%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: hsl(var(--primary)); margin-bottom: 1.25rem; }
.hero h1 { font-size: 2.25rem; line-height: 1.2; margin-bottom: 1.5rem; }
.hero-lead { font-size: 1.125rem; color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }
.price-card { text-align: center;  }
.price { font-size: 3rem; font-weight: 700; color: hsl(var(--primary)); }
.renew { font-size: .875rem; color: hsl(var(--muted-foreground)); padding-top: 1rem; margin-top: 1rem; border-top: 1px solid hsl(var(--border)); }

/* Cards grid */
.grid-3 { display: grid; gap: 1.5rem; }
.card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: .75rem; padding: 1.5rem; transition: border-color .2s; }
.card:hover { border-color: hsl(var(--primary) / .5); }
.icon-box { width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; border-radius: var(--radius); background: hsl(var(--primary) / .1); display: flex; align-items: center; justify-content: center; color: hsl(var(--primary)); }
.card h3 { font-size: 1.125rem; margin-bottom: .35rem; }
.card p { font-size: .875rem; color: hsl(var(--muted-foreground)); }
.step-card { border-inline-start: 4px solid hsl(var(--primary)); }
.step-num { font-size: 1.875rem; font-weight: 700; color: hsl(var(--primary)); margin-bottom: .75rem; }

h2 { font-size: 1.875rem; }
.section-title { margin-bottom: .75rem; }
.section-sub { color: hsl(var(--muted-foreground)); margin-bottom: 2.5rem; }
.h2-small { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }

/* Contacts */
.contact-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.contact-item { display: inline-flex; align-items: center; gap: .75rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); padding: 1rem 1.5rem; border-radius: var(--radius); font-weight: 500; }
.contact-item svg { color: hsl(var(--primary)); }
.contact-item a:hover { color: hsl(var(--primary)); }

/* Footer */
.footer { background: hsl(var(--card)); border-top: 1px solid hsl(var(--border)); padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; text-align: center; }
.footer a, .footer p { font-size: .875rem; color: hsl(var(--muted-foreground)); }
.footer a:hover { color: hsl(var(--primary)); }
.footer nav { display: flex; gap: 1.5rem; }

/* Legal pages */
.legal { padding: 4rem 0; }
.legal h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.legal .intro { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }
.legal section { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.legal p { color: hsl(var(--muted-foreground)); }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; }

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .menu-btn { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 3rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: row; text-align: start; }
  .legal h1 { font-size: 2.25rem; }
}

@media (max-width: 767px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
