:root {
  --primary: #3D7A68;
  --primary-dark: #2D5C4F;
  --primary-light: #89C4B2;
  --primary-ghost: #EAF6F2;

  --accent: #C4724A;
  --accent-light: #E8A882;

  --bg: #F8F5F0;
  --bg-soft: #F0EBE3;
  --card: #FFFFFF;

  --text: #1E2E2A;
  --muted: #5A7268;
  --muted-light: #8AA49A;

  --border: #D8E8E2;
  --shadow-sm: 0 6px 20px rgba(30, 46, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(30, 46, 42, 0.09);
  --shadow-lg: 0 20px 60px rgba(30, 46, 42, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: linear-gradient(to right, #f8f5f0, #eef4f1);
  color: var(--text);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
input, textarea, button, select { font: inherit; }

/* NAVBAR */
.navbar {
  position: relative;
  top: 0;
  z-index: 999;
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 46, 42, 0.08);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.logo {
  font-weight: 800;
  color: var(--primary);
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 14px;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.nav-links a:hover {
  background: rgba(61, 122, 104, 0.10);
  color: var(--primary);
}

/* SHARED */
.container {
  max-width: 720px;
  margin: 50px auto;
  padding: 24px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

form {
  display: flex;
  flex-direction: column;
}

input, textarea, select {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 122, 104, 0.14);
}

select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%233D7A68' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  max-height: 200px;
}

button, .btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  transition: 0.2s ease;
}

button:hover, .btn:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--accent);
}

.btn-secondary:hover {
  background: #a85e38;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), #1c3a30 70%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  opacity: 0.28;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(45, 92, 79, 0.75), rgba(28, 58, 48, 0.82)),
    radial-gradient(circle at top right, rgba(232, 168, 130, 0.16), transparent 35%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  width: calc(100% - 40px);
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 42px 36px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.hero-top {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

.hero-title {
  font-size: clamp(34px, 5vw, 58px);
  margin: 0 0 12px;
  line-height: 1.05;
  color: #fff;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* FEATURED */
.featured, .story, .testimonials, .pricing-page, .page {
  padding: 70px 20px;
}

.featured-inner, .page-inner, .testimonials-inner, .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.featured-inner h2, .team-section h2 {
  font-size: 24px;
  margin-bottom: 18px;
  color: #c4724a;
}

.featured-grid, .results-grid {
  display: grid;
  gap: 16px;
}

.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.results-grid, #results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 20px;
}

.user-card, .result-card, .testimonial-card, .team-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(30, 46, 42, 0.08);
  box-shadow: var(--shadow-sm);
  transition: 0.2s ease;
}

.user-card:hover, .result-card:hover, .testimonial-card:hover, .team-card:hover {
  transform: translateY(-3px);
}

.user-card {
  padding: 16px;
}

.user-top, .result-top, .testimonial-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.user-card img, .testimonial-avatar {
  border-radius: 50%;
  object-fit: cover;
}

.user-card img {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(61, 122, 104, 0.25);
}

.user-card h3, .result-card h3 {
  margin: 0;
  color: var(--text);
}

.user-card p, .result-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* PLAN COLORS */
.user-card.starter, .result-card.starter {
  border: 1px solid var(--border);
  background: #fff;
}

.user-card.professional, .result-card.professional {
  background: #eef8f4;
}

.user-card.premium, .result-card.premium {
  background: linear-gradient(135deg, #fff8dc, #f5e6a3);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* STORY */
.story {
  background: #fff;
}

.story-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.story-content h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--text);
}

.story-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.story-points {
  margin-top: 25px;
  display: grid;
  gap: 16px;
}

.point h4 {
  margin: 0 0 4px;
  color: var(--primary);
}

.point p {
  margin: 0;
  font-size: 14px;
}

/* TESTIMONIALS */
.testimonials {
  background: #f4f7f4;
}

.testimonials-sub {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.testimonials-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.testimonial-card {
  padding: 18px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(61, 122, 104, 0.18);
}

.testimonial-role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.testimonial-text {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.testimonial-stars {
  margin-top: 10px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 1px;
}

.testimonials-cta {
  margin-top: 22px;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(30, 46, 42, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.testimonials-cta h3, .testimonials-cta p {
  margin: 0;
}

.testimonials-cta p {
  color: var(--muted);
}

/* TEAM */
.team-section {
  padding: 80px 20px;
  background-color: rgba(54, 45, 40, 0.096);
}

.team-container {
  max-width: 1200px;
  margin: auto;
}

.team-title {
  text-align: center;
  color: white;
  font-size: 32px;
  margin-bottom: 40px;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card-new {
  background: #1c2530;
  border-radius: 20px;
  padding: 24px;
  color: #d1d5db;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255,255,255,0.06);
}

.team-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3D7A68;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.team-header h3 {
  margin: 0;
  color: white;
  font-size: 18px;
}

.team-header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #9ca3af;
}

.quote {
  font-style: italic;
  margin: 0 0 16px;
  color: #f3f4f6;
  line-height: 1.6;
}

.team-text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.vision {
  background: rgba(255,255,255,0.05);
  padding: 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.vision strong {
  display: block;
  margin-bottom: 8px;
  color: #9ca3af;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.vision p {
  margin: 0;
  line-height: 1.6;
}

.team-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #9ca3af;
}

.team-contact-row span {
  background: rgba(255,255,255,0.05);
  padding: 8px 10px;
  border-radius: 999px;
}

/* SEARCH */
.page {
  padding-bottom: 150px;
}

.search-panel {
  margin-bottom: 100px;
}

.page-inner {
  max-width: 1000px;
}

.search-header h1 {
  margin: 0 0 8px;
  font-size: 32px;
  color: var(--text);
}

.search-header p {
  margin: 0 0 18px;
  color: var(--muted);
}

.search-panel {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.search-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.result-card {
  padding: 18px;
}

.result-top {
  gap: 14px;
}

.result-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.result-card h3 {
  font-size: 18px;
  color: var(--text);
}

.result-card p {
  color: var(--muted);
}

.result-meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* PROFILE */
.simple-profile {
  max-width: 850px;
  margin: 40px auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.simple-profile-topbar {
  height: 8px;
  background: var(--primary);
}

.simple-profile-header {
  padding: 28px 24px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.simple-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f3f4f6;
}

.simple-profile-info h1 {
  margin: 0 0 6px;
  font-size: 28px;
  color: var(--text);
}

.simple-headline {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.simple-profile-section {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.simple-profile-section:last-child {
  border-bottom: none;
}

.simple-profile-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
}

.simple-profile-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: var(--primary-ghost);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.no-skills {
  color: var(--muted);
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.detail-box {
  background: #f9fbfa;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.detail-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.detail-box strong {
  font-size: 15px;
  color: var(--text);
}

.edit-profile-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: capitalize;
}

.profile-badge.starter {
  background: #e5e7eb;
  color: #374151;
}

.profile-badge.professional {
  background: var(--primary);
  color: #fff;
}

.profile-badge.premium {
  background: linear-gradient(45deg, gold, orange);
  color: #000;
}

/* PRICING */
.pricing-page {
  padding: 70px 20px;
}

.pricing-hero {
  max-width: 850px;
  margin: 0 auto 40px;
  text-align: center;
}

.pricing-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(61, 122, 104, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  color: var(--text);
}

.pricing-subtitle {
  margin: 0 auto;
  max-width: 650px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

.pricing-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pricing-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: 0.25s ease;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.starter-plan {
  border: 1px solid var(--border);
}

.starter-plan .price {
  color: #374151;
}

.starter-plan .pricing-btn {
  background: #374151;
}

.featured-plan {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #f6fbf8 0%, #edf7f2 100%);
  box-shadow: 0 16px 40px rgba(61, 122, 104, 0.16);
  transform: scale(1.03);
}

.featured-plan:hover {
  transform: scale(1.03) translateY(-8px);
}

.featured-plan .price,
.featured-plan .pricing-btn {
  color: var(--primary);
}

.featured-plan .pricing-btn {
  background: var(--primary);
  color: #fff;
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
}

.premium-plan {
  border: 2px solid #d4af37;
  background: linear-gradient(135deg, #fffaf0 0%, #fff 45%, #fff8dc 100%);
  box-shadow: 0 18px 45px rgba(212, 175, 55, 0.20);
}

.premium-plan:hover {
  box-shadow: 0 22px 55px rgba(212, 175, 55, 0.30);
}

.premium-plan .price {
  color: #b8860b;
}

.premium-plan .pricing-btn {
  background: linear-gradient(45deg, #d4af37, #f5d76e);
  color: #1f2937;
}

.premium-plan::before {
  content: "Premium Choice";
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(45deg, #d4af37, #f5d76e);
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
}

.pricing-card-header h3 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--text);
}

.pricing-card-header p, .duration, .pricing-footer-note {
  color: var(--muted);
}

.pricing-price {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-size: 44px;
  font-weight: 800;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 12px;
}

.pricing-features li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.pricing-btn {
  width: 100%;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 14px;
}

.pricing-footer-note {
  max-width: 900px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 14px;
}

/* FOOTER */
.footer {
  background: #1e2e2a;
  color: #eaf6f2;
  padding: 60px 20px 20px;
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h3, .footer-col h4 {
  margin-bottom: 14px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.footer-col p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #c8e8e0;
  line-height: 1.6;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: #c8e8e0;
  font-size: 14px;
}

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

.footer-socials {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-socials a {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: #a8c1b7;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

/* ===== FINAL SCROLL FIX ===== */
html,
body {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  position: relative;
}

.container {
  margin: 40px auto;
  padding-bottom: 70px;
}

#register-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#register-form button {
  margin-top: 10px;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 80px 20px;
  background: #fff;
}

.services-container {
  max-width: 1100px;
  margin: 0 auto;
}

.services-title {
  text-align: center;
  font-size: 42px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #333;
  margin: 0;
}

.services-line {
  width: 90px;
  height: 3px;
  background: #bdbdbd;
  margin: 18px auto 34px;
  border-radius: 20px;
}

.services-tabs {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.service-tab {
  background: transparent;
  border: none;
  color: #7a7a7a;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  transition: 0.2s ease;
}

.service-tab.active,
.service-tab:hover {
  color: #1E2E2A;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: #ddd;
  border-radius: 12px;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  text-align: center;
  padding: 10px 12px;
}

.service-overlay h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.service-overlay p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.88);
}

.billing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef4f1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.billing-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.billing-btn.active {
  background: var(--primary);
  color: #fff;
}

.billing-btn:hover {
  background: rgba(61, 122, 104, 0.10);
  color: var(--primary);
}

.billing-btn.active:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .team-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .story-inner { grid-template-columns: 1fr; }
  .story-image { order: -1; }
  .search-row { grid-template-columns: 1fr; }
  .featured-plan { transform: none; }
  .featured-plan:hover { transform: translateY(-8px); }

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

@media (max-width: 700px) {
  .hero {
    min-height: 620px;
    height: auto;
    padding: 120px 0 60px;
  }

  .hero-content {
    padding: 28px 20px;
    text-align: center;
  }

  .hero-buttons { justify-content: center; }

  .testimonials-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .simple-profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .simple-profile-avatar {
    width: 84px;
    height: 84px;
  }

  .simple-profile-info h1 { font-size: 24px; }
  .profile-details-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand,
  .logo {
    font-size: 18px;
    align-self: flex-start;
    white-space: nowrap;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }

  .nav-links a {
    font-size: 12px;
    padding: 8px 6px;
    text-align: center;
    white-space: nowrap;
  }

  .container {
    margin: 20px 12px;
    padding: 18px;
    padding-bottom: 90px;
  }

  .page {
    padding: 30px 12px;
  }

  .simple-profile {
    margin: 20px 12px;
  }

  .search-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  select,
  input,
  textarea {
    font-size: 16px;
    padding: 14px;
  }

  .hero {
    min-height: 620px;
    height: auto;
    padding: 120px 0 60px;
  }

  .hero-content {
    width: calc(100% - 24px);
    padding: 24px 18px;
    text-align: center;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-buttons {
    justify-content: center;
  }

  .story-inner {
    grid-template-columns: 1fr;
  }

  .story-image {
    order: -1;
  }

  .simple-profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .simple-profile-avatar {
    width: 84px;
    height: 84px;
  }

  .simple-profile-info h1 {
    font-size: 24px;
  }

  .profile-details-grid {
    grid-template-columns: 1fr;
  }

  .testimonials {
    overflow: hidden;
  }

  .testimonials-inner {
    overflow: hidden;
  }

  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 10px 12px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 82%;
    min-width: 82%;
    max-width: 82%;
    scroll-snap-align: center;
    padding: 14px;
    border-radius: 16px;
  }

  .testimonial-avatar {
    width: 44px;
    height: 44px;
  }

  .testimonial-name {
    font-size: 14px;
  }

  .testimonial-role {
    font-size: 12px;
  }

  .testimonial-text {
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .testimonial-stars {
    font-size: 13px;
  }

  .testimonials-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-card-new {
    padding: 18px;
  }

  .team-header h3 {
    font-size: 16px;
  }

  .team-text,
  .quote {
    font-size: 13px;
  }

  .services-section {
    padding: 60px 14px;
  }

  .services-title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .services-tabs {
    gap: 10px;
    margin-bottom: 24px;
  }

  .service-tab {
    font-size: 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    height: 200px;
  }

  .service-overlay h3 {
    font-size: 18px;
  }

  .service-overlay p {
    font-size: 12px;
  }

  #register-form {
    gap: 12px;
  }
}