
:root {
  --primary: #00a896;
  --secondary: #028090;
  --accent: #05668d;
  --background: #f8f9fa;
  --white: #ffffff;
  --text-dark: #2c3539;
  --text-light: #6c757d;
  --error: #e74c3c;
  --success: #2ecc71;
  --warning: #f39c12;
  --grey-light: #e9ecef;
  --grey-dark: #495057;

  --gradient-primary: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--secondary) 100%
  );

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);

  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 40px;

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 56px;
  font-weight: 800;
}
h2 {
  font-size: 44px;
}
h3 {
  font-size: 32px;
}
h4 {
  font-size: 24px;
}
h5 {
  font-size: 20px;
}
h6 {
  font-size: 16px;
}

.footer-content {
  margin-left: 25px;
}

p {
  /* margin-left: 25px; */
  color: var(--text-light);
  line-height: 1.8;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

nav a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a.btn {
  position: relative;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: none;
}

nav a.btn::after {
  display: none;
}

nav a.btn:hover {
  box-shadow: var(--shadow-md);
  color: white;
}

.profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.profile-icon:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 100;
}

.profile-icon:hover .profile-dropdown,
.profile-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  border-radius: var(--radius-md);
}

.profile-dropdown a {
  display: block;
  padding: 14px 20px;
  color: var(--text-dark);
  transition: var(--transition);
  border-bottom: 1px solid var(--grey-light);
}

.profile-dropdown a:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.profile-dropdown a:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.profile-dropdown a::after {
  display: none;
}

.profile-dropdown a:hover {
  background: var(--background);
  color: var(--primary);
}



.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero {
  background: var(--gradient-primary);
  padding: 128px 0 96px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  border-radius: 0px 0px var(--radius-lg) var(--radius-lg);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 168, 150, 0.16);
  cursor: pointer;
  transition: color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #f7f9fc;
  color: #0f2d36;
  box-shadow: var(--shadow-sm);
}

.btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(115deg, rgba(0, 168, 150, 0.12) 0%, rgba(5, 102, 141, 0.22) 50%, rgba(0, 168, 150, 0.12) 100%);
  background-size: 220% 220%;
  background-position: 0% 50%;
  transform: scale(1.05);
  opacity: 0;
  transition: opacity 0.25s ease, background-position 0.55s ease;
  z-index: -1;
}

.btn:hover::after,
.btn:focus-visible::after {
  opacity: 1;
  background-position: 100% 50%;
}

.btn:hover,
.btn:focus-visible {
  color: #0b2430;
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg), 0 0 0 0.6px var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
}

.btn-secondary {
  background: #f7f9fc;
  color: var(--accent);
  border: 1px solid var(--accent);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.btn-secondary:hover {
  background: rgba(2, 128, 144, 0.12);
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

.hero .btn-secondary {
  border-color: white;
}

.hero .btn-secondary:hover {
  background: white;
  color: var(--primary);
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  background: white;
  color: var(--accent);
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  transition: color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-secondary:hover {
  box-shadow: var(--shadow-lg);
  color: var(--secondary);
  border-color: var(--primary);
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.08);
  transition: color 0.25s ease, box-shadow 0.35s ease, border-color 0.35s ease, filter 0.35s ease;
}

.btn-accent:hover {
  box-shadow: var(--shadow-lg), 0 12px 30px rgba(5, 102, 141, 0.28);
  filter: brightness(1.04) saturate(1.06);
  border-color: rgba(5, 102, 141, 0.35);
}

.section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 48px;
    align-items: stretch;
}

.hero-landing {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 168, 150, 0.12), rgba(2, 128, 144, 0.12));
  overflow: hidden;
  padding: 120px 0 80px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-visual-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0, 168, 150, 0.18), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(5, 102, 141, 0.18), transparent 35%),
              radial-gradient(circle at 60% 70%, rgba(2, 128, 144, 0.16), transparent 40%);
  filter: blur(10px);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text p {
  margin: 0 0 20px 0;
  color: rgba(44, 53, 57, 0.85);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: white;
  color: var(--secondary);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}

.pill-small {
  padding: 6px 10px;
  font-size: 12px;
}

.pill-ghost {
  background: rgba(0, 168, 150, 0.08);
  color: var(--accent);
  border-color: rgba(0, 168, 150, 0.12);
}

.pill-light {
  background: white;
  color: var(--accent);
  border-color: rgba(44, 53, 57, 0.05);
}

.hero-actions {
  justify-content: flex-start;
  margin: 10px 0 24px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  flex: 1 1 150px;
  min-width: 140px;
  display: grid;
  gap: 6px;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  color: var(--text-light);
  font-size: 14px;
}

.hero-visual {
  position: relative;
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.appointment-card {
  padding: 24px;
  display: grid;
  gap: 20px;
  color: var(--text-dark);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.appointment-list {
  display: grid;
  gap: 12px;
}

.appointment-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--grey-light);
  color: var(--text-dark);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

.appointment-name {
  font-weight: 700;
  margin: 0;
  color: #0f2d36;
  font-size: 16px;
  line-height: 1.25;
}

.appointment-meta {
  margin: 0;
  font-size: 13px;
  color: #4f5f68;
  opacity: 0.95;
  line-height: 1.25;
}

.link {
  color: var(--accent);
  font-weight: 700;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.mini-calendar {
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  padding: 16px;
  background: white;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-dark);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}

.calendar-grid span {
  padding: 8px 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
}

.calendar-grid .date-active {
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
}

.section-muted {
  background: #f4f8f8;
  border-radius: var(--radius-lg);
  padding: 80px 0;
}

.section-header-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

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

.icon-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  border: 1px solid transparent;
}

.icon-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 168, 150, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.feature-card {
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.feature-card > * {
  min-width: 0;
}

.feature-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.feature-top .pill {
  flex-shrink: 0;
  white-space: nowrap;
}

.feature-top h3 {
  flex: 1 1 100%;
  min-width: 0;
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
  margin-top: 8px;
}

.feature-card h3 {
  margin: 0;
  word-wrap: normal;
  overflow-wrap: normal;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  color: var(--text-light);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.6;
  flex: 1;
  hyphens: auto;
}

.feature-card .btn {
  margin-top: auto;
  align-self: flex-start;
  white-space: nowrap;
  display: inline-block;
  flex-shrink: 0;
}

.feature-accent {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.feature-accent p {
  color: rgba(255, 255, 255, 0.9);
}

.feature-outline {
  background: white;
}

.feature-soft {
  background: linear-gradient(145deg, rgba(0, 168, 150, 0.08), rgba(2, 128, 144, 0.04));
  border: 1px solid rgba(0, 168, 150, 0.15);
}

.dual-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.testimonial-card,
.cta-card {
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  background: white;
  border: 1px solid var(--grey-light);
}

.testimonial-slider {
  position: relative;
  display: grid;
  gap: 14px;
}

.testimonial-item {
  display: none;
}

.testimonial-item.active {
  display: block;
}

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

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(0, 168, 150, 0.25);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.ctrl {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--grey-light);
  background: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.ctrl:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.quote {
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.7;
  margin: 10px 0 20px 0;
}

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

.author-name {
  font-weight: 700;
  margin: 0;
}

.author-role {
  margin: 0;
  color: var(--text-light);
}

.cta-card {
  display: grid;
  gap: 10px;
  background: var(--gradient-accent);
  color: white;
  border: none;
}

.cta-card-light {
  background: linear-gradient(160deg, rgba(0, 168, 150, 0.15), rgba(2, 128, 144, 0.05));
  color: var(--text-dark);
  border: 1px solid rgba(0, 168, 150, 0.18);
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.cta-card-light .cta-text {
  color: var(--text-dark);
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.doctor-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.doctor-photo {
  height: 180px;
  background: linear-gradient(120deg, rgba(0, 168, 150, 0.2), rgba(5, 102, 141, 0.2));
}

.doctor-photo-1 {
  background-image: linear-gradient(120deg, rgba(0, 168, 150, 0.28), rgba(5, 102, 141, 0.16));
}

.doctor-photo-2 {
  background-image: linear-gradient(120deg, rgba(2, 128, 144, 0.26), rgba(0, 168, 150, 0.18));
}

.doctor-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

.doctor-name {
  font-weight: 700;
  margin: 0;
}

.doctor-role {
  margin: 0;
  color: var(--text-light);
}

.doctor-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-light);
  display: grid;
  gap: 6px;
}

.doctor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.partners-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.partner-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  border: 1px solid var(--grey-light);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--text-light);
}

.map-embed {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, rgba(0, 168, 150, 0.18), rgba(5, 102, 141, 0.18));
  display: flex;
  align-items: flex-end;
}

.map-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(44, 53, 57, 0.65) 100%);
  color: white;
  padding: 24px;
  width: 100%;
}

.map-title {
  font-weight: 700;
  margin: 0 0 6px 0;
}

.map-text {
  margin: 0 0 14px 0;
  color: rgba(255, 255, 255, 0.85);
}

.service-card {
    background:
      linear-gradient(#ffffff, #ffffff) padding-box,
      conic-gradient(from 140deg, var(--primary), var(--accent), var(--secondary), var(--primary)) border-box;
    border-radius: var(--radius-md);
    padding: 48px;
    box-shadow: var(--shadow-sm);
    transition: background-position 0.6s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    background-position: 0% 50%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.service-image {
  width: 100%;
  height: 200px;
  background: var(--grey-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 16px;
}


.service-card:hover {
  transform: none;
  box-shadow: 0 20px 40px rgba(0, 168, 150, 0.15);
  background-position: 100% 50%;
}

.service-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.service-desc {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.service-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.service-card form {
  margin: 0;
  padding-top: 0;
}

.service-card .btn {
  width: 100%;
  justify-content: center;
  padding: 18px 28px;
  font-size: 17px;
}

.btn-flip {
  position: relative;
  overflow: hidden;
  color: white;
  background: transparent;
  border: none;
  padding: 0;
  height: 56px;
  border-radius: var(--radius-sm);
  perspective: 900px;
  box-shadow: var(--shadow-md);
}

.btn-flip::before,
.btn-flip::after {
  content: attr(data-front);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: inherit;
  transition: transform 0.45s ease, opacity 0.45s ease;
  backface-visibility: hidden;
}

.btn-flip::before {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(0) rotateX(0deg);
}

.btn-flip::after {
  content: attr(data-back);
  background: white;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
  opacity: 0;
  transform: translateY(55%) rotateX(-90deg);
}

.btn-flip:hover::before,
.btn-flip:focus-visible::before {
  opacity: 0;
  transform: translateY(-55%) rotateX(90deg);
}

.btn-flip:hover::after,
.btn-flip:focus-visible::after {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.btn-flip:disabled::before,
.btn-flip:disabled::after {
  filter: grayscale(0.35);
  cursor: not-allowed;
  box-shadow: none;
}

/* Состояние уже записан: спокойный вид, красный при наведении */
.btn-flip.booked::before {
  background: #f7f0f0;
  color: #b23b3b;
  box-shadow: inset 0 0 0 2px #e0b4b4;
}

.btn-flip.booked::after {
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #ffffff;
  box-shadow: inset 0 0 0 2px #e53935;
}

.service-duration {
  color: var(--text-light);
  font-size: 14px;
  margin: 0;
}

.service-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
}

.card-header {
  border-bottom: 1px solid var(--grey-light);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

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

.form-group {
  position: relative;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  transition: var(--transition);
  background: white;
  color: var(--text-dark);
  caret-color: var(--text-dark);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.1);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th {
  background: var(--grey-light);
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
}

td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey-light);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(0, 168, 150, 0.02);
}

.role-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.role-admin {
  background: rgba(5, 102, 141, 0.1);
  color: var(--accent);
}

.role-user {
  background: var(--grey-light);
  color: var(--grey-dark);
}

.service-status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.status-active {
  background: rgba(46, 204, 113, 0.1);
  color: var(--success);
}

.status-completed {
  background: rgba(5, 102, 141, 0.1);
  color: var(--accent);
}

.status-cancelled {
  background: rgba(231, 76, 60, 0.1);
  color: var(--error);
}

.flash-container {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
}

.flash-message {
  pointer-events: auto;
  background: white;
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 320px;
  max-width: 500px;
  border-left: 4px solid var(--primary);
  animation: slideInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flash-message.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.close-btn:hover {
  color: var(--text-dark);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-16px);
  }
}

footer {
    background: var(--text-dark);
    color: white;
    margin-top: 60px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0;
}

.footer-main {
    padding: 30px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

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

.footer-heading {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: var(--transition);
}

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

.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 40px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 32px;
    }
    h3 {
        font-size: 24px;
    }

    .hero h1 {
        font-size: 40px;
    }
    .hero p {
        font-size: 18px;
    }

    nav {
        gap: 24px;
    }

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

    .section {
        padding: 48px 0;
    }

    .hero {
        padding: 80px 0 64px;
    }

    .hero-landing {
        padding: 80px 0 60px;
    }

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

    .hero-text h1 {
        font-size: 40px;
    }

    .section-header-left {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dual-layout {
        grid-template-columns: 1fr;
    }
    
    .partners-row {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .map-embed {
        min-height: 240px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 8px;
    }
}
