:root {
  --red: #c0392b;
  --red-light: #e74c3c;
  --teal: #1abc9c;
  --gold: #f1c40f;
  --dark: #1a1a1a;
  --mid: #444444;
  --light: #f5f4f1;
  --white: #ffffff;
  --border: #e8e4de;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 18px 42px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 5%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo,
.footer-brand {
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--mid);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--dark);
}

.btn-nav,
.btn-primary,
.btn-outline,
.plan-btn,
.btn-submit {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-nav {
  padding: 10px 22px;
  border-radius: 6px;
  background: var(--red);
  color: var(--white) !important;
  font-weight: 700 !important;
}

.btn-nav:hover,
.btn-nav:focus-visible {
  background: var(--red-light);
}

.site-main section {
  scroll-margin-top: 88px;
}

.hero,
.about,
.pricing,
.testimonials,
.booking,
.site-footer {
  padding-left: 5%;
  padding-right: 5%;
}

.hero {
  min-height: calc(100vh - 76px);
  padding-top: 72px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 5px 12px;
  border-radius: 4px;
  background: #fff3cd;
  color: #7d6200;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.about-content h2,
.booking-left h2,
.write-review-wrap h3,
.review-success h4 {
  font-family: "Playfair Display", serif;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 4.7vw, 4rem);
  line-height: 1.08;
}

.hero h1 em {
  color: var(--red);
  font-style: italic;
}

.hero-copy,
.about-content p,
.booking-left p,
.footer-desc {
  line-height: 1.7;
}

.hero-copy {
  max-width: 440px;
  margin: 0 0 36px;
  color: #666666;
  font-size: 1rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-outline,
.plan-btn,
.btn-submit {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--red);
  color: var(--white);
  border: 0;
  cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-submit:hover,
.btn-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.3);
}

.btn-outline {
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--teal);
  color: var(--white);
}

.btn-inline {
  margin-top: 20px;
}

.btn-hero-wide {
  min-width: 260px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  width: 340px;
  height: 400px;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%);
  box-shadow: var(--shadow-strong);
}

.hero-photo-placeholder svg {
  width: 120px;
  height: 120px;
  opacity: 0.3;
  fill: var(--white);
}

.hero-badge-float {
  position: absolute;
  right: -18px;
  bottom: -16px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--gold);
  color: #333333;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.about,
.booking-wrap {
  display: grid;
  gap: 80px;
}

.about {
  padding-top: 100px;
  padding-bottom: 100px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--light);
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 320px;
}

.about-img {
  border-radius: 12px;
  overflow: hidden;
}

.about-img-large {
  grid-row: span 2;
  background: linear-gradient(160deg, #b5651d, #8b4513);
}

.about-img-small {
  background: linear-gradient(160deg, #2c2c2c, #4a3728);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-content h2 {
  margin: 0 0 18px;
  font-size: 2.2rem;
}

.about-content p {
  margin: 0 0 14px;
  color: #666666;
  font-size: 0.96rem;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mid);
}

.badge-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing,
.testimonials,
.booking {
  padding-top: 100px;
  padding-bottom: 100px;
}

.pricing {
  text-align: center;
}

.section-title {
  margin: 0 0 10px;
  font-size: 2.4rem;
}

.section-sub {
  margin: 0 0 56px;
  color: #888888;
  font-size: 0.92rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.plan-card,
.testi-card,
.reviews-summary,
.write-review-wrap {
  box-shadow: var(--shadow-soft);
}

.plan-card {
  padding: 32px 24px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--light);
  text-align: left;
}

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

.featured-teal {
  background: #e8faf5;
  border-color: var(--teal);
}

.featured-gold {
  background: #fefce8;
  border-color: var(--gold);
}

.plan-icon {
  width: 48px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.plan-card p {
  min-height: 60px;
  margin: 0 0 24px;
  color: #777777;
  font-size: 0.84rem;
  line-height: 1.55;
}

.plan-price {
  margin-bottom: 4px;
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 900;
}

.plan-price span {
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #888888;
}

.plan-btn {
  display: block;
  margin-top: 20px;
  padding: 12px;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  text-align: center;
}

.plan-btn:hover,
.plan-btn:focus-visible,
.plan-btn.solid {
  background: var(--red);
  color: var(--white);
}

.teal-btn {
  border-color: var(--teal);
  color: var(--teal);
}

.teal-btn:hover,
.teal-btn:focus-visible,
.teal-btn.solid {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.gold-btn {
  border-color: #d4a800;
  background: var(--gold);
  color: #555555;
}

.testimonials {
  text-align: center;
  background: var(--light);
}

.reviews-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 48px;
  padding: 5px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.public-review-note {
  margin: 0 auto 28px;
  max-width: 720px;
}

.tab-btn {
  padding: 10px 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #888888;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
}

.tab-btn:not(.active):hover,
.tab-btn:not(.active):focus-visible {
  background: var(--light);
  color: var(--dark);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.testi-card {
  padding: 32px;
  border-radius: 16px;
  background: var(--white);
}

.testi-card:hover {
  transform: translateY(-3px);
}

.testi-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.testi-quote {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--red);
}

.testi-stars,
.big-stars {
  display: flex;
  gap: 3px;
}

.star {
  color: #f1c40f;
  font-size: 1rem;
}

.star.empty {
  color: #dddddd;
}

.testi-card p {
  margin: 0 0 20px;
  color: #555555;
  font-size: 0.92rem;
  line-height: 1.7;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testi-avatar.teal {
  background: var(--teal);
}

.testi-avatar.gold {
  background: #f39c12;
}

.testi-avatar.red {
  background: var(--red);
}

.testi-avatar.blue {
  background: #3498db;
}

.testi-avatar.purple {
  background: #9b59b6;
}

.testi-avatar.green {
  background: #27ae60;
}

.testi-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.testi-role {
  font-size: 0.78rem;
  color: #999999;
}

.testi-lesson-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--light);
  color: #666666;
  font-size: 0.7rem;
  font-weight: 700;
}

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto 36px;
  padding: 24px 36px;
  border-radius: 16px;
  background: var(--white);
}

.summary-score {
  text-align: center;
  flex-shrink: 0;
}

.big-num {
  font-family: "Playfair Display", serif;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.review-count {
  font-size: 0.78rem;
  color: #999999;
}

.summary-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

.summary-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-label {
  width: 36px;
  color: #888888;
  font-size: 0.78rem;
  text-align: right;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--border);
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: #f1c40f;
  transition: width 0.6s ease;
}

.bar-count {
  width: 20px;
  color: #aaaaaa;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.write-review-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 20px;
  background: var(--white);
  text-align: left;
}

.write-review-wrap h3,
.review-success h4 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.sub {
  margin: 0 0 32px;
  color: #888888;
  font-size: 0.88rem;
}

.star-label {
  margin-bottom: 8px;
  color: #888888;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.star-picker {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.sp-star {
  padding: 0;
  border: 0;
  background: transparent;
  color: #dddddd;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.sp-star:hover,
.sp-star:focus-visible,
.sp-star.lit {
  color: #f1c40f;
}

.sp-star:hover,
.sp-star:focus-visible {
  transform: scale(1.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--mid);
  font-size: 0.8rem;
  font-weight: 700;
}

.field-note {
  margin-top: 8px;
  color: #8a7e77;
  font-size: 0.8rem;
  line-height: 1.4;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--dark);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

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

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

.btn-submit {
  width: 100%;
  padding: 14px;
  border: 0;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
}

.form-error {
  margin-top: 10px;
  color: var(--red);
  font-size: 0.82rem;
}

.review-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-success p {
  margin: 0;
  color: #888888;
  font-size: 0.9rem;
}

.booking-wrap {
  max-width: 860px;
  margin: 0 auto;
  grid-template-columns: 1fr 1.5fr;
  border-radius: 20px;
  overflow: hidden;
  background: var(--light);
}

.booking-left {
  padding: 48px 36px;
  background: var(--red);
  color: var(--white);
}

.booking-left h2 {
  margin: 0 0 14px;
  font-size: 2rem;
}

.booking-left p {
  margin: 0 0 28px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.booking-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.booking-perks li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.booking-right {
  padding: 48px 36px;
}

.booking-form {
  margin: 0;
}

.site-footer {
  padding-top: 60px;
  padding-bottom: 30px;
  color: rgba(255, 255, 255, 0.7);
  background: var(--dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1rem;
}

.footer-desc,
.footer-col a {
  font-size: 0.82rem;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 0.85rem;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.78rem;
}

.portal-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.portal-shortcuts-tight {
  margin-top: 0;
}

.portal-link {
  min-width: 170px;
  text-align: center;
}

.portal-link-wide {
  width: 100%;
}

.booking-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
}

.booking-feedback.success {
  background: #e8faf5;
  color: #0f6b58;
}

.booking-feedback.error {
  background: #fff0ec;
  color: var(--red);
}

.calendar-trigger {
  appearance: none;
  width: 100%;
  min-height: 45px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--dark);
  font-size: 0.88rem;
  line-height: 1.35;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.calendar-trigger:hover,
.calendar-trigger:focus-visible {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

.booking-selection {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8f4;
  color: #6b4f49;
  font-size: 0.86rem;
  line-height: 1.5;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.booking-modal[hidden] {
  display: none !important;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  backdrop-filter: blur(4px);
}

.booking-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdfb 0%, #f7f4ef 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.booking-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.booking-modal-top h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.booking-modal-copy {
  margin: 0;
  color: #777777;
  font-size: 0.92rem;
}

.booking-badge {
  margin-bottom: 14px;
}

.booking-modal-close {
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.12);
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.booking-modal-close:hover,
.booking-modal-close:focus-visible {
  background: rgba(192, 57, 43, 0.18);
}

.booking-modal-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.booking-calendar-card,
.booking-times-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-soft);
}

.booking-calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.booking-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.booking-month-label,
.booking-day-name {
  text-align: center;
}

.booking-day-name {
  padding: 8px 0;
  color: #8b8179;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.booking-day-cell {
  min-height: 78px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffdfb;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.booking-day-cell strong,
.booking-day-cell span {
  display: block;
}

.booking-day-cell strong {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.booking-day-cell span {
  color: #8b8179;
  font-size: 0.72rem;
}

.booking-day-cell:hover,
.booking-day-cell:focus-visible {
  transform: translateY(-1px);
  border-color: var(--red);
}

.booking-day-cell.empty {
  visibility: hidden;
}

.booking-day-cell.closed {
  opacity: 0.62;
  cursor: default;
}

.booking-day-cell.available {
  background: rgba(26, 188, 156, 0.1);
  border-color: rgba(26, 188, 156, 0.28);
}

.booking-day-cell.selected {
  background: rgba(192, 57, 43, 0.1);
  border-color: rgba(192, 57, 43, 0.42);
}

.booking-time-list {
  display: grid;
  gap: 10px;
}

.booking-confirm-btn {
  margin-top: 16px;
}

.booking-message-group {
  margin-top: 18px;
}

.booking-time-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.booking-time-chip:hover,
.booking-time-chip:focus-visible {
  border-color: var(--teal);
}

.booking-time-chip.active {
  background: rgba(26, 188, 156, 0.12);
  border-color: rgba(26, 188, 156, 0.42);
}

.booking-time-chip span {
  color: #7b716a;
  font-size: 0.76rem;
}

.booking-empty-state {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: #faf6f2;
  color: #80756d;
  font-size: 0.88rem;
  line-height: 1.6;
}

.portal-main {
  min-height: calc(100vh - 76px);
}

.portal-hero {
  padding: 72px 5% 40px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
  align-items: stretch;
  background:
    radial-gradient(circle at top left, rgba(241, 196, 15, 0.18), transparent 34%),
    linear-gradient(135deg, #fffaf1 0%, #f5f4f1 42%, #ffffff 100%);
}

.portal-hero h1 {
  margin: 0 0 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.portal-hero-card,
.auth-card,
.dashboard-card,
.milestone-card {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.portal-hero-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.portal-shell {
  padding: 24px 5% 100px;
}

.auth-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px;
}

.auth-card h2,
.card-heading h2,
.portal-subheading {
  margin: 0;
  font-family: "Playfair Display", serif;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.portal-grid-full {
  grid-template-columns: 1fr;
}

.portal-grid-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-grid-wide {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.portal-column-stack {
  display: grid;
  gap: 24px;
  align-content: start;
}

.portal-booking-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.dashboard-card {
  padding: 28px;
}

.stat-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 244, 241, 0.88) 100%);
}

.stat-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-kicker {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.stat-word {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.stat-caption,
.portal-sub {
  color: #777777;
  font-size: 0.9rem;
  line-height: 1.6;
}

.portal-sub {
  margin: 6px 0 0;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.view-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #f3eee9;
}

.view-switch-btn {
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #746a63;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.view-switch-btn.active {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(192, 57, 43, 0.18);
}

.calendar-view {
  display: none;
}

.calendar-view.active {
  display: block;
}

.calendar-nav {
  min-width: 130px;
  padding: 12px 18px;
}

.calendar-range {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
  color: #666666;
  font-size: 0.84rem;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.open {
  background: var(--teal);
}

.legend-dot.booked {
  background: var(--red);
}

.legend-dot.empty {
  background: #ddd4cd;
}

.calendar-shell {
  max-height: min(52vh, 560px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
  overscroll-behavior: contain;
}

.calendar-shell::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.calendar-shell::-webkit-scrollbar-thumb {
  background: rgba(68, 68, 68, 0.24);
  border-radius: 999px;
}

.calendar-shell::-webkit-scrollbar-track {
  background: rgba(232, 228, 222, 0.5);
}

.calendar-grid {
  min-width: 860px;
  display: grid;
  grid-template-columns: 70px repeat(7, minmax(105px, 1fr));
  gap: 1px;
  background: var(--border);
}

.calendar-corner,
.calendar-day-header,
.calendar-time-label,
.calendar-cell {
  background: #fffdfb;
}

.calendar-corner {
  min-height: 54px;
}

.calendar-day-header {
  padding: 10px 8px;
  text-align: center;
}

.calendar-day-header strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.84rem;
}

.calendar-day-header span {
  color: #777777;
  font-size: 0.74rem;
}

.calendar-time-label {
  padding: 8px 6px;
  color: #8a827c;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.calendar-cell {
  min-height: 58px;
  padding: 7px 8px;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.calendar-cell:hover,
.calendar-cell:focus-visible {
  transform: scale(0.985);
  box-shadow: inset 0 0 0 2px rgba(26, 26, 26, 0.08);
}

.calendar-cell strong,
.calendar-cell span {
  display: block;
}

.calendar-cell strong {
  margin-bottom: 2px;
  font-size: 0.76rem;
}

.calendar-cell span {
  color: #666666;
  font-size: 0.66rem;
  line-height: 1.25;
}

.calendar-cell-label {
  margin-bottom: 3px;
  font-size: 0.6rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-cell.open {
  background: rgba(26, 188, 156, 0.14);
}

.calendar-cell.open .calendar-cell-label {
  color: #10705c;
}

.calendar-cell.booked {
  background: rgba(192, 57, 43, 0.14);
  cursor: not-allowed;
}

.calendar-cell.booked .calendar-cell-label {
  color: var(--red);
}

.calendar-cell.closed {
  background: #fffdfb;
}

.calendar-cell.closed .calendar-cell-label {
  color: #968d86;
}

.focus-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.focus-calendar-card,
.focus-hours-card {
  padding: 22px;
  border-radius: 20px;
  background: #fffdfb;
  border: 1px solid var(--border);
}

.focus-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.focus-day-name {
  padding: 8px 0;
  color: #8b8179;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.focus-date-cell {
  min-height: 76px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffdfb;
  text-align: left;
  cursor: pointer;
}

.focus-date-cell strong,
.focus-date-cell span {
  display: block;
}

.focus-date-cell strong {
  margin-bottom: 8px;
}

.focus-date-cell span {
  color: #7f756d;
  font-size: 0.72rem;
  line-height: 1.35;
}

.focus-date-cell.empty {
  visibility: hidden;
}

.focus-date-cell.open {
  background: rgba(26, 188, 156, 0.1);
  border-color: rgba(26, 188, 156, 0.28);
}

.focus-date-cell.booked {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.16);
}

.focus-date-cell.mixed {
  background: linear-gradient(135deg, rgba(26, 188, 156, 0.08) 0%, rgba(241, 196, 15, 0.12) 100%);
  border-color: rgba(241, 196, 15, 0.4);
}

.focus-date-cell.selected {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(192, 57, 43, 0.2);
}

.focus-date-cell.closed {
  opacity: 0.62;
}

.focus-hours-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.focus-hour-chip {
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffdfb;
  text-align: left;
  cursor: pointer;
}

.focus-hour-chip strong,
.focus-hour-chip span {
  display: block;
}

.focus-hour-chip strong {
  margin-bottom: 4px;
  font-size: 0.86rem;
}

.focus-hour-chip span {
  color: #7f756d;
  font-size: 0.72rem;
}

.focus-hour-chip.open {
  background: rgba(26, 188, 156, 0.12);
  border-color: rgba(26, 188, 156, 0.32);
}

.focus-hour-chip.booked {
  background: rgba(192, 57, 43, 0.14);
  border-color: rgba(192, 57, 43, 0.3);
  cursor: not-allowed;
}

.bulk-layout {
  padding: 22px;
  border-radius: 20px;
  background: #fffdfb;
  border: 1px solid var(--border);
}

.bulk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.bulk-days {
  margin-top: 18px;
}

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

.weekday-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.weekday-pill input {
  margin: 0;
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.bulk-submit {
  width: auto;
  min-width: 220px;
}

.bulk-summary {
  margin-top: 14px;
}

.slot-grid,
.stack-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.slot-card,
.list-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--light);
  border: 1px solid var(--border);
}

.slot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slot-card strong,
.list-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.slot-card span,
.list-card p,
.list-card span {
  color: #666666;
  font-size: 0.88rem;
}

.slot-remove {
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.12);
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.slot-remove:hover,
.slot-remove:focus-visible {
  background: rgba(192, 57, 43, 0.18);
}

.list-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.list-card p {
  margin: 0 0 6px;
  line-height: 1.5;
}

.list-card-note {
  margin-top: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(26, 188, 156, 0.12);
  color: #11705d;
  font-size: 0.76rem;
  font-weight: 700;
}

.status-pill.muted {
  background: rgba(0, 0, 0, 0.08);
  color: #666666;
}

.empty-copy {
  margin: 0;
  color: #888888;
  font-size: 0.9rem;
}

.progress-wrap {
  margin: 18px 0 26px;
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfd7;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
}

.compact-progress {
  margin: 14px 0 0;
}

.milestone-card {
  padding: 18px;
  margin-bottom: 24px;
  background: linear-gradient(145deg, #fffaf1 0%, #ffffff 100%);
}

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

.focus-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(241, 196, 15, 0.16);
  color: #6f5900;
  font-size: 0.82rem;
  font-weight: 700;
}

.note-card {
  margin: 0;
  padding: 18px;
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  background: rgba(26, 188, 156, 0.08);
  color: #36504b;
  line-height: 1.7;
}

.hero-content {
  animation: fade-up 0.8s ease forwards;
}

.hero-visual {
  animation: fade-up 0.8s 0.2s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero,
  .about,
  .booking-wrap,
  .portal-hero,
  .portal-grid,
  .portal-grid-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .reviews-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .card-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .calendar-range {
    text-align: left;
  }

  .portal-column-stack {
    grid-template-columns: 1fr;
  }

  .portal-booking-grid {
    grid-template-columns: 1fr;
  }

  .focus-layout,
  .bulk-grid,
  .focus-hours-grid {
    grid-template-columns: 1fr;
  }

  .calendar-shell {
    max-height: 48vh;
  }

  .booking-modal-body {
    grid-template-columns: 1fr;
  }

  .summary-divider {
    width: 100%;
    height: 1px;
  }

  .hero-photo-wrap {
    width: 280px;
    height: 320px;
  }

  .footer-grid {
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .plans-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .booking-calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .auth-card,
  .write-review-wrap,
  .booking-right,
  .booking-left {
    padding: 32px 22px;
  }

  .section-title {
    font-size: 2rem;
  }
}
