@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
  --primary: #f7f4ee;
  --secondary: #fffdf9;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --gold: #a16207;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --success: #15803d;
  --warning: #a16207;
  --danger: #b91c1c;
  --glass: #ffffff;
  --border: #e7e2d8;
  --shadow: 0 10px 30px rgba(28, 25, 23, 0.06);
}

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

html {
  scroll-behavior: auto;
  overflow-x: hidden;
}

body {
  font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  background: var(--primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  direction: rtl;
}

body.ltr {
  direction: ltr;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent);
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline {
  color: var(--text-primary);
  border: 1px solid var(--border);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 10% 10%, #ecfdf5, transparent 36%), linear-gradient(180deg, #fffdf9, #f7f4ee);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.features {
  padding: 6rem 2rem;
  background: var(--secondary);
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.features-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Services Section */
.services {
  padding: 6rem 2rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.services-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--secondary);
  border: 1px solid var(--border);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.service-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* How It Works */
.how-it-works {
  padding: 6rem 2rem;
  background: var(--secondary);
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.steps {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Footer */
.footer {
  background: var(--primary);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.footer-brand h3 span {
  color: var(--accent);
}

.footer-brand p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Forms */
.form-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 2rem;
}

.form-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
}

.form-card h2 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-align: center;
}

.form-card > p {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
}

.form-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* Dashboard */
.dashboard {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
}

.sidebar {
  width: 280px;
  background: var(--secondary);
  border-left: 1px solid var(--border);
  padding: 2rem 1.5rem;
  position: fixed;
  right: 0;
  top: 80px;
  bottom: 0;
  overflow-y: auto;
}

body.ltr .sidebar {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.user-avatar {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.user-info h4 {
  font-weight: 700;
}

.user-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
}

.sidebar-nav svg {
  width: 20px;
  height: 20px;
}

.main-content {
  flex: 1;
  margin-right: 280px;
  padding: 2rem;
}

body.ltr .main-content {
  margin-right: 0;
  margin-left: 280px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  font-weight: 900;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.stat-card h4 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
}

.content-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Tables */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

body.ltr th,
body.ltr td {
  text-align: left;
}

th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  color: var(--text-primary);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.status-active {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.status-completed {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .sidebar {
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  
  body.ltr .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  
  .nav-actions {
    gap: 0.5rem;
  }
  
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Pricing Section */
.pricing {
  padding: 6rem 2rem;
  background: var(--secondary);
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.pricing-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.pricing-card .description {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.pricing-price {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-price .amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
}

.pricing-price .currency {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.pricing-price .period {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-features span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-cta {
  width: 100%;
}

.delivery-time {
  text-align: center;
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 1rem;
  font-weight: 600;
}

.suitable-for {
  background: rgba(15, 118, 110, 0.06);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.logo small { display: block; font-size: .68rem; letter-spacing: .14em; color: var(--gold); font-weight: 600; }
.header { box-shadow: 0 1px 0 var(--border); }
.rg-home { overflow-x: clip; }
.rg-hero { min-height: auto; padding: 7.5rem 0 3rem; }
.rg-hero .hero-text h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.25; max-width: 16ch; }
.eyebrow { color: var(--accent); font-weight: 700; margin-bottom: .6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.hero-points li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .35rem .75rem; font-size: .86rem; }
.hero-panel { display: grid; align-content: center; }
.store-mock { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: .8rem; }
.store-mock-bar { display: flex; gap: .35rem; margin-bottom: .7rem; }
.store-mock-bar span { width: .55rem; height: .55rem; border-radius: 50%; background: #d6d3d1; }
.store-mock-hero { height: 92px; border-radius: 12px; background: linear-gradient(120deg, #0f766e, #d1fae5); }
.store-mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin-top: .55rem; }
.store-mock-grid i { display: block; height: 58px; border-radius: 8px; background: #f5f5f4; }
.store-mock-caption { color: var(--text-secondary); font-size: .8rem; margin-top: .55rem; }
.rg-section { padding: 4.5rem 1.25rem; }
.rg-band { background: #fffdf9; }
.benefit-grid, .why-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.benefit-grid article, .why-grid article { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.15rem; box-shadow: var(--shadow); }
.benefit-grid svg, .process svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.benefit-grid h3, .why-grid h3, .process h3 { margin: .7rem 0 .35rem; }
.benefit-grid p, .why-grid p, .process p { color: var(--text-secondary); }
.process { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.process li { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1rem; }
.process strong { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #ecfdf5; color: var(--accent); }
.rg-pricing { max-width: 1200px; align-items: stretch; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rg-pricing .pricing-card { display: flex; flex-direction: column; background: #fff; min-width: 0; }
.rg-pricing .pricing-features { flex: 1; }
.rg-pricing .pricing-price .amount { font-size: clamp(2rem, 3vw, 2.8rem); }
.pricing-features span { color: var(--text-primary); }
.compare-wrap { width: min(1120px, 100%); max-width: 100%; margin: 0 auto; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.compare { width: max-content; min-width: 100%; border-collapse: collapse; }
main, .rg-section, .hero-content { min-width: 0; max-width: 100%; }
.compare.renewal { min-width: 420px; }
.compare th, .compare td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.compare th:first-child, .compare td:first-child, .renewal th { text-align: right; white-space: normal; }
.compare thead th { background: #f0fdfa; color: #115e59; }
.renewal-notes { max-width: 760px; margin: 1rem auto 0; color: var(--text-secondary); }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .7rem; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .85rem 1rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--text-secondary); margin: .6rem 0 0; }
.cta-mail { margin-top: 1rem; }
.cta-mail a { color: var(--accent); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:active { transform: translateY(1px) scale(.98); }
@media (max-width: 1100px) {
  .benefit-grid, .process, .rg-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .header-content, .hero-content, .rg-section { width: 100%; max-width: 100%; padding-inline: 1rem; box-sizing: border-box; }
  .hero-text, .hero-text h1, .hero-text p, .section-header { max-width: 100%; overflow-wrap: anywhere; }
  .compare-wrap { width: 100%; max-width: 100%; }
  .header-content { position: relative; }
  .header .nav:has(.nav-links) { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fffdf9; border-bottom: 1px solid var(--border); padding: .8rem 1rem 1rem; flex-direction: column; align-items: stretch; gap: .8rem; z-index: 30; }
  .header .nav:has(.nav-links).is-open { display: flex; }
  .header .nav:has(.nav-links) .nav-links { display: grid; gap: .35rem; }
  .header .nav:has(.nav-links) .nav-actions { display: grid; }
  .header .nav:has(.nav-links) .btn { width: 100%; }
  .benefit-grid, .process, .rg-pricing { grid-template-columns: 1fr; }
  .rg-hero .hero-content { display: block; width: 100%; }
  .rg-hero .hero-text, .rg-hero .hero-panel, .rg-hero h1, .rg-hero p { display: block; width: 100%; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .rg-hero .hero-text h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.header-content { padding-left: 1rem; padding-right: 1rem; }
.rg-hero .hero-content { padding-left: 1.25rem; padding-right: 1.25rem; }
.rg-hero .hero-text h1 { max-width: 100%; overflow-wrap: anywhere; }

img, video { max-width: 100%; height: auto; }
.logo { flex-shrink: 0; line-height: 1.05; }
.mobile-menu-btn { align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; }
.compare-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.compare.renewal { min-width: 0; width: 100%; }
.compare.renewal th, .compare.renewal td { white-space: normal; }
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

@media (max-width: 1280px) {
  .benefit-grid, .process, .rg-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .header-content:has(.nav-links) .mobile-menu-btn { display: inline-flex; }
  .header-content:has(.nav-links) .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fffdf9; border-bottom: 1px solid var(--border); padding: .8rem 1rem 1rem; flex-direction: column; align-items: stretch; gap: .8rem; z-index: 30; }
  .header-content:has(.nav-links) .nav.is-open { display: flex; }
  .header-content:has(.nav-links) .nav.is-open .nav-links,
  .header-content:has(.nav-links) .nav.is-open .nav-actions { display: grid; gap: .45rem; }
  .header-content:has(.nav-links) .nav.is-open .btn { width: 100%; }
  .rg-hero .hero-content { grid-template-columns: 1fr; text-align: start; }
  .hero-buttons { justify-content: flex-start; }
}

@media (max-width: 1024px) {
  .dashboard { display: block; }
  .sidebar { position: relative; top: auto; right: auto; bottom: auto; width: auto; transform: none; border: 0; padding: 1rem 1rem 0; }
  .main-content, body.ltr .main-content { margin: 0; padding: 1rem; }
  .dashboard-header { align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .benefit-grid, .process, .rg-pricing, .why-grid, .footer-content { grid-template-columns: 1fr; }
  .rg-section, .cta-section, .footer { padding-left: 1rem; padding-right: 1rem; }
  .cta-section { padding-top: 3rem; padding-bottom: 3rem; }
  .footer { padding-top: 2.5rem; }
  .hero-buttons .btn, .cta-section .btn { width: 100%; }
  .form-container { padding: 5.5rem 1rem 1.5rem; }
  .form-card { padding: 1.25rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .rg-hero .hero-text h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .section-header h2, .cta-section h2 { overflow-wrap: anywhere; }
}
