:root {
  --primary: #002935;
  --secondary: #747474;
  --accent: #0cb8b6;
  --accent-dark: #0aa19f;
  --accent-2: #30b2d2;
  --mint: #ecf9f9;
  --mint-2: #f4fbfb;
  --text: #5e7076;
  --heading: #002935;
  --white: #fff;
  --line: #e3eeee;
  --shadow: 0 16px 40px rgba(0, 41, 53, 0.08);
  --font: "Barlow", "Segoe UI", sans-serif;
  --container: 1170px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5 { color: var(--heading); line-height: 1.2; margin: 0 0 14px; font-weight: 600; overflow-wrap: break-word; }
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: 12px; top: -40px; background: var(--accent); color: #fff;
  padding: 8px 12px; z-index: 10000; border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.topbar { background: var(--accent); color: #fff; }
.topbar-in, .mainbar-in, .footer-bottom-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar-in { min-height: 46px; font-size: 15px; }
.topbar-note { margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-links { display: flex; gap: 16px; }
.topbar-links a:hover { opacity: 0.85; }
.social { display: flex; gap: 8px; }
.social a, .share a {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.45); color: #fff;
}
.social a:hover, .share a:hover { background: #fff; color: var(--accent); }
.social svg, .share svg { width: 13px; height: 13px; fill: currentColor; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 8px 24px rgba(0,41,53,0.05); }
.mainbar-in { min-height: 88px; }
.logo img { width: 196px; height: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; color: var(--primary); font-weight: 500; font-size: 17px; position: relative;
}
.nav a.active, .nav a:hover { color: var(--accent); }
.nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent);
}
.header-help { display: flex; align-items: center; gap: 10px; color: var(--accent); min-width: 148px; }
.help-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; flex: none;
}
.help-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.header-help small, .header-help strong { display: block; line-height: 1.2; }
.header-help small { font-size: 13px; font-weight: 500; }
.header-help strong { font-size: 15px; font-weight: 600; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 10px; background: var(--primary); }

.hero-top {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.hero-top::before {
  content: "";
  position: absolute; width: 280px; height: 280px; border: 40px solid rgba(12,184,182,0.15);
  border-radius: 50%; left: -80px; bottom: 40px;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: end;
  min-height: 560px;
}
.hero-copy { padding: 78px 0 90px; position: relative; z-index: 1; }
.hero-copy h1 { color: #fff; font-size: 58px; font-weight: 600; max-width: 560px; }
.hero-copy p { color: rgba(255,255,255,0.88); font-size: 18px; max-width: 520px; margin-bottom: 28px; }
.hero-photo { height: 540px; position: relative; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  border-radius: 220px 0 0 0;
}
.join-band { background: var(--mint); padding: 42px 0 50px; text-align: center; }
.join-band h2 { font-size: 36px; margin-bottom: 28px; }
.partner-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: center; }
.partner {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-align: right;
}
.partner-mark {
  width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--accent);
  display: grid; place-items: center; box-shadow: var(--shadow); flex: none;
}
.partner-mark svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.partner strong { display: block; color: var(--primary); font-size: 20px; letter-spacing: 0.3px; }
.partner span { display: block; color: var(--accent); font-size: 11px; letter-spacing: 1px; font-weight: 600; }

.section { padding: 96px 0; }
.section-sm { padding: 72px 0; }
.mint { background: var(--mint); }
.mint-2 { background: var(--mint-2); }
.center { text-align: center; }
.kicker { color: var(--accent); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.section h2 { font-size: 42px; }
.lead { font-size: 17px; }

.about-grid, .split, .doctor-layout, .article-layout, .contact-grid, .plan-intro {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.about-photo, .frame {
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow);
}
.about-photo img, .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-photo { min-height: 420px; }
.about-photo img { height: 460px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 18px 0 22px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; color: var(--primary); font-weight: 600; }
.checks li::before {
  content: ""; width: 18px; height: 18px; margin-top: 3px; flex: none; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2 6.4 11l6.2-6.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.founder {
  display: flex; align-items: center; gap: 14px; margin-top: 18px;
}
.founder img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.founder strong { display: block; color: var(--primary); }
.founder span { color: var(--accent); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0; border-radius: 5px;
  padding: 13px 28px; font-size: 17px; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-line { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-line:hover { background: var(--accent); color: #fff; }
.btn-block { width: 100%; }

.stats {
  background:
    linear-gradient(rgba(0,41,53,0.78), rgba(0,41,53,0.82)),
    url("../assets/images/stats.jpg") center/cover no-repeat;
  padding: 78px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { display: flex; align-items: center; gap: 16px; color: #fff; }
.stat-icon {
  width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none;
}
.stat-icon svg { width: 38px; height: 38px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.stat strong { display: block; font-size: 48px; font-weight: 600; line-height: 1; color: #fff; }
.stat span { font-size: 20px; font-weight: 600; }

.tabs { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 34px 0 26px; }
.tab-btn {
  flex: 1; min-width: 120px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 8px; cursor: pointer; color: var(--primary); font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.tab-btn svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.tab-btn.active, .tab-btn:hover { background: var(--mint); border-color: var(--accent); color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.service-card {
  background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 28px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center;
}
.service-card img { width: 100%; height: 320px; object-fit: cover; border-radius: 8px; }
.amenity { color: var(--accent); font-size: 20px; margin: 8px 0; }

.doctor-grid, .card-grid, .price-grid, .value-grid, .blog-grid, .post-grid {
  display: grid; gap: 24px;
}
.doctor-grid, .price-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid, .blog-grid, .post-grid { grid-template-columns: repeat(3, 1fr); }
.value-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-grid .steps, .contact-grid .value-grid { grid-template-columns: 1fr; }
.doctor-card, .info-card, .post-card, .price-card, .value-card {
  background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden;
}
.doctor-card { padding: 28px 22px 24px; text-align: center; }
.doctor-card img, .avatar {
  width: 148px; height: 148px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px;
  border: 6px solid var(--mint);
}
.doctor-card h3, .post-card h3, .price-card h3 { margin-bottom: 4px; }
.role { color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.doctor-card p, .info-card p, .post-card p { color: var(--text); }
.tag {
  display: inline-block; background: var(--mint); color: var(--accent); border-radius: 20px;
  padding: 4px 10px; font-size: 13px; font-weight: 600; margin-bottom: 8px;
}

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid button {
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; overflow: hidden;
}
.gallery-grid img { width: 100%; height: 230px; object-fit: cover; transition: transform 0.35s ease; }
.gallery-grid button:hover img { transform: scale(1.05); }

.wellness {
  display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 420px; background: #fff;
}
.wellness-copy { padding: 64px 7vw; display: flex; flex-direction: column; justify-content: center; }
.wellness-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

.price-grid.four { grid-template-columns: repeat(4, 1fr); }
.price-card { padding: 28px 24px 30px; position: relative; }
.price-card.featured { outline: 2px solid var(--accent); transform: translateY(-8px); }
.price {
  width: 92px; height: 92px; border-radius: 50%; background: var(--mint); color: var(--primary);
  display: grid; place-items: center; font-size: 28px; font-weight: 700; margin-bottom: 16px;
}
.price-card ul { margin: 14px 0 20px; }
.price-card li { padding: 7px 0 7px 22px; position: relative; border-bottom: 1px solid var(--line); }
.price-card li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.faq-item { background: #fff; border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: #fff; border: 0; padding: 18px 48px 18px 18px;
  font-size: 18px; font-weight: 600; color: var(--primary); cursor: pointer; position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: 18px; top: 14px; color: var(--accent); font-size: 26px; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 18px 18px; color: var(--text); }
.faq-item.open .faq-a { display: block; }

.quote-wrap { position: relative; }
.quote-card {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 32px; max-width: 760px; margin: 0 auto; text-align: center;
}
.quote-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.initials {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
  display: grid; place-items: center; background: var(--mint); color: var(--primary); font-weight: 700; font-size: 22px;
}
.quote-card q { font-size: 18px; display: block; margin-bottom: 12px; }
.slider-nav { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: #c9e8e7; cursor: pointer; }
.dot.active { background: var(--accent); }

.hours-cta {
  margin-top: 28px; background: var(--primary); color: #fff; border-radius: 12px; padding: 22px 26px;
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
}
.hours-cta h3, .hours-cta p { color: #fff; margin: 0; }
.hours-list { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }

.banner-cta {
  background:
    linear-gradient(rgba(0,41,53,0.62), rgba(0,41,53,0.7)),
    url("../assets/images/gloves.jpg") center/cover no-repeat;
  padding: 90px 0; text-align: center; color: #fff;
}
.banner-cta h2 { color: #fff; font-size: 40px; }
.banner-cta p { color: rgba(255,255,255,0.9); max-width: 640px; margin: 0 auto 22px; }

.newsletter {
  background:
    linear-gradient(rgba(0,41,53,0.55), rgba(0,41,53,0.55)),
    url("../assets/images/consult.jpg") center/cover no-repeat;
  padding: 80px 0;
}
.news-card {
  max-width: 640px; margin: 0 auto; background: var(--accent); color: #fff; border-radius: 12px; padding: 36px 32px; text-align: center;
}
.news-card h2, .news-card p { color: #fff; }
.inline-form, .stack-form { display: grid; gap: 12px; }
.inline-form { grid-template-columns: 1fr auto; }
.inline-form .form-success { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%; border: 1px solid #d5e4e4; background: #fff; color: var(--primary);
  border-radius: 6px; padding: 13px 14px; font-size: 16px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(12,184,182,0.35); border-color: var(--accent); }
.invalid { border-color: #d4534a; }
.field-error { color: #b4332c; font-size: 13px; margin-top: -6px; text-align: left; }
.check-row { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 14px; }
.check-row input { width: auto; margin-top: 4px; }
.form-success {
  display: none; background: #fff; color: var(--primary); border-radius: 8px; padding: 16px;
  font-weight: 700; margin-bottom: 12px;
}
.form-success.show { display: block; }
.form-card .form-success { background: var(--mint); }

.form-card {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 28px;
}
label { display: block; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }

.post-card img { width: 100%; height: 210px; object-fit: cover; }
.post-card div, .info-card { padding: 20px; }
.meta { color: var(--accent); font-size: 14px; font-weight: 600; }
.link { color: var(--accent); font-weight: 700; }

.site-footer { background: var(--primary); color: rgba(255,255,255,0.82); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr; gap: 32px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: 20px; margin-bottom: 14px; }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { width: 190px; margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; }
.share { display: flex; gap: 8px; margin: 12px 0 16px; }
.share a { background: rgba(255,255,255,0.08); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 0; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-mail { color: var(--accent); font-weight: 600; }

.page-banner {
  background:
    linear-gradient(rgba(0,41,53,0.72), rgba(0,41,53,0.78)),
    url("../assets/images/banner.jpg") center/cover no-repeat;
  padding: 78px 0; text-align: center;
}
.page-banner h1 { color: #fff; font-size: 48px; }
.crumbs { color: rgba(255,255,255,0.86); }
.crumbs a { color: var(--accent); }

.filter-bar {
  display: grid; grid-template-columns: 1.4fr 0.8fr auto; gap: 12px; margin-bottom: 28px;
}
.doctor-list { display: grid; gap: 22px; }
.doctor-row {
  display: grid; grid-template-columns: 180px 1fr; gap: 22px; background: #fff;
  border-radius: 12px; box-shadow: var(--shadow); padding: 18px; align-items: center;
}
.doctor-row img { width: 180px; height: 180px; object-fit: cover; border-radius: 12px; }
.hidden { display: none !important; }
.empty-note { display: none; background: var(--mint); padding: 16px; border-radius: 8px; color: var(--primary); font-weight: 600; }
.empty-note.show { display: block; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border-radius: 10px; padding: 22px; box-shadow: var(--shadow); }
.step b {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; margin-bottom: 10px;
}
.timeline { display: grid; gap: 14px; }
.timeline article { display: grid; grid-template-columns: 90px 1fr; gap: 14px; }
.timeline strong { color: var(--accent); }

.prose { max-width: 900px; }
.prose h2 { font-size: 28px; margin-top: 28px; }
.prose h3 { font-size: 20px; margin-top: 18px; }
.prose p, .prose li { font-size: 17px; line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 16px 18px; }
.prose li { margin-bottom: 8px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }

.sidebar .info-card { margin-bottom: 18px; }
.article-hero { width: 100%; height: 380px; object-fit: cover; border-radius: 12px; margin-bottom: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
th { background: var(--primary); color: #fff; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,20,28,0.88); display: none;
  align-items: center; justify-content: center; z-index: 80; padding: 24px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 86vh; border-radius: 8px; }
.lightbox button {
  position: absolute; top: 18px; right: 18px; background: #fff; border: 0; border-radius: 50%;
  width: 40px; height: 40px; cursor: pointer; font-size: 22px;
}

@media (max-width: 1100px) {
  .nav a { padding: 10px 8px; font-size: 15px; }
  .hero-copy h1 { font-size: 46px; }
  .price-grid.four, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-help small, .header-help strong { display: none; }
  .header-help { min-width: 0; }
  .partner { justify-content: flex-start; text-align: left; }
  .topbar-right, .topbar-links { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .mainbar-in { flex-wrap: wrap; padding: 10px 0; }
  .nav { display: none; width: 100%; order: 4; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; padding-bottom: 10px; }
  .header-help { margin-left: auto; }
  .hero-grid, .about-grid, .split, .service-card, .wellness, .doctor-layout,
  .article-layout, .contact-grid, .plan-intro, .doctor-row, .faq-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo { height: 360px; }
  .hero-copy { padding: 48px 0 20px; }
  .hero-copy h1, .section h2, .page-banner h1 { font-size: 34px; }
  .doctor-grid, .card-grid, .blog-grid, .post-grid, .value-grid, .gallery-grid, .partner-row, .steps {
    grid-template-columns: 1fr 1fr;
  }
  .price-card.featured { transform: none; }
  .topbar-in { flex-direction: column; align-items: flex-start; padding: 8px 0; }
  .filter-bar, .form-row, .inline-form { grid-template-columns: 1fr; }
  .hours-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .doctor-grid, .card-grid, .blog-grid, .post-grid, .value-grid, .gallery-grid,
  .partner-row, .steps, .stats-grid, .price-grid, .price-grid.four, .checks {
    grid-template-columns: 1fr;
  }
  .footer-grid, .footer-bottom-in { grid-template-columns: 1fr; display: grid; }
  .doctor-row img { width: 100%; height: 220px; }
  .stat strong { font-size: 36px; }
}
