/* ===== Variables ===== */
:root {
  --primary: #0a8f7c;
  --primary-dark: #067566;
  --primary-light: #e8f5f2;
  --accent: #4fc3b0;
  --text: #2d3436;
  --text-light: #636e72;
  --bg: #f8fdfc;
  --white: #ffffff;
  --border: #dce8e3;
  --shadow: 0 4px 24px rgba(10, 143, 124, 0.10);
  --shadow-hover: 0 8px 32px rgba(10, 143, 124, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main { flex: 1; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Section ===== */
.section {
  padding: 80px 0;
}

.section__title {
  text-align: center;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 12px auto 0;
}

.section__title--left {
  text-align: left;
}
.section__title--left::after {
  margin: 12px 0 0;
}

.section__desc {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.section__action {
  text-align: center;
  margin-top: 40px;
}

/* ===== Scroll Animation ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__top {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.header__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}

.header__logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.header__phone {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.header__address {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
}
.header__address:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.header__burger.active span:nth-child(2) {
  opacity: 0;
}
.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav */
.header__nav {
  background: var(--primary);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0;
}

.nav-link {
  display: block;
  padding: 14px 24px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: #fff;
  border-radius: 3px 3px 0 0;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  animation: toastIn 0.4s ease;
  max-width: 400px;
}

.toast--success {
  border-left: 4px solid var(--primary);
}

.toast--error {
  border-left: 4px solid #e74c3c;
}

.toast__text {
  flex: 1;
  font-size: 0.95rem;
}

.toast__close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  font-family: var(--font);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--full { width: 100%; }
.btn--small { padding: 8px 16px; font-size: 0.85rem; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(10, 143, 124, 0.2);
}

.hero__placeholder-text {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.9;
}

/* ===== Stats Counter ===== */
.stats {
  background: var(--white);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--primary-light);
  border-radius: var(--radius);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-card__number {
  display: inline-block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-card__suffix {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 2px;
}

.stat-card__label {
  margin-top: 8px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Price Table ===== */
.services {
  background: var(--white);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.price-table th,
.data-table th {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.price-table td,
.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.price-table tbody tr:hover,
.data-table tbody tr:hover {
  background: var(--primary-light);
}

.price-table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even) {
  background: #fafffe;
}

.price-table tbody tr:nth-child(even):hover,
.data-table tbody tr:nth-child(even):hover {
  background: var(--primary-light);
}

.price-table__price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.empty-row {
  text-align: center;
  color: var(--text-light);
  padding: 40px !important;
  font-style: italic;
}

/* ===== Advantages ===== */
.advantages {
  background: var(--bg);
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.advantage-card__icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.advantage-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.advantage-card__text {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== Doctor Cards ===== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.doctors-grid--full {
  grid-template-columns: repeat(2, 1fr);
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.doctor-card__photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.doctor-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  height: 180px;
}

.doctor-card__photo--large {
  height: 280px;
  font-size: 3rem;
}

.doctor-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 16px 16px 4px;
  color: var(--text);
}

.doctor-card__spec {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 16px;
}

.doctor-card__exp {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 8px 16px 16px;
}

.doctor-card__bio {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 12px 16px 20px;
  text-align: left;
}

.doctor-card__badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 4px 16px 0;
}

.doctor-card__info {
  text-align: left;
}

.doctor-card--detailed {
  text-align: left;
  display: flex;
  flex-direction: column;
}

/* ===== Filter Bar ===== */
.filter-bar {
  margin-bottom: 40px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
}

.filter-select {
  min-width: 240px;
}

/* ===== Reviews ===== */
.reviews {
  background: var(--white);
}

.reviews__masonry {
  columns: 2;
  column-gap: 24px;
}

.review-card {
  break-inside: avoid;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--primary-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.review-card__author {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.review-card__rating {
  color: #f1c40f;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.review-card__text {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.review-card__date {
  font-size: 0.82rem;
  color: var(--text-light);
  opacity: 0.7;
}

/* ===== Page Hero ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.page-hero__title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero__subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-block {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.contact-block__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.contact-block p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-table td {
  padding: 4px 8px;
  font-size: 0.92rem;
  color: var(--text-light);
}

.contact-table td:last-child {
  font-weight: 600;
  color: var(--text);
}

.map-wrapper {
  margin-top: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--white);
  transition: var(--transition);
  color: var(--text);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 143, 124, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-errors {
  list-style: none;
  margin-top: 6px;
}
.form-errors li {
  color: #e74c3c;
  font-size: 0.85rem;
}

.schedule-section {
  background: var(--white);
}

/* ===== Footer ===== */
.footer {
  background: #1a2e2a;
  color: rgba(255,255,255,0.8);
  margin-top: 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 60px 20px;
}

.footer__title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer__text {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 8px;
}

.footer__table {
  width: 100%;
  border-collapse: collapse;
}
.footer__table td {
  padding: 4px 0;
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer__table td:last-child {
  font-weight: 600;
  opacity: 1;
  text-align: right;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__title { font-size: 2.2rem; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .reviews__masonry { columns: 1; }
}

@media (max-width: 768px) {
  .header__contacts { display: none; }
  .header__burger { display: flex; }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
  }
  .header__nav.open { display: block; }

  .nav-list {
    flex-direction: column;
  }
  .nav-link {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-link.active::after { display: none; }

  .hero { padding: 60px 0; }
  .hero__title { font-size: 1.8rem; }
  .section { padding: 50px 0; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .advantages__grid { grid-template-columns: 1fr; }
  .doctors-grid,
  .doctors-grid--full { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__table td:last-child { text-align: center; }

  .section__title { font-size: 1.6rem; }
  .contact-form-wrap { padding: 24px; }

  .filter-form { flex-direction: column; align-items: stretch; }
  .filter-select { min-width: 0; }

  .stat-card__number { font-size: 2rem; }
}

/* ===== Auth & Register Pages ===== */
.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 60px 0;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-card__title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text);
}

.auth-card__footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.auth-card__footer a {
  color: var(--primary);
  font-weight: 600;
}

.callback-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.callback-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.82rem;
  margin-top: 16px;
  opacity: 0.8;
}

.copy-click {
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: inline-block;
}
.copy-click:hover {
  color: var(--primary);
  opacity: 1;
}
.copy-click::after {
  content: attr(title);
  position: absolute;
  bottom: auto;
  top: calc(100% + 8px);
  right: 0;
  background: var(--text);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}
.copy-click:hover::after {
  opacity: 1;
}

.form-help {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===== Nav logout form ===== */
.nav-item--right {
  margin-left: auto;
}

.nav-logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.nav-link--btn {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: var(--font);
  padding: 14px 24px;
  display: block;
  width: 100%;
  text-align: center;
}

.nav-link--btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* ===== Profile Page ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px;
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border-bottom: 1px solid var(--border);
}

.profile-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.profile-card__username {
  font-size: 0.85rem;
  color: var(--text-light);
}

.profile-card__info {
  padding: 24px 28px;
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}

.profile-info-row:last-child {
  border-bottom: none;
}

.profile-info-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
}

.profile-info-value {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: right;
  word-break: break-word;
}

.profile-card__actions {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
}

.profile-appointments {
  min-height: 200px;
}

.profile-empty {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
  color: var(--text-light);
}

/* ===== Status badges ===== */
.status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.status--active {
  background: #e8f5e9;
  color: #2e7d32;
}

.status--past {
  background: #f5f5f5;
  color: #757575;
}

/* ===== Edit Profile ===== */
.edit-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.edit-form__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.edit-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.edit-form__actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

/* ===== Nav responsive fix for auth ===== */
@media (max-width: 768px) {
  .nav-item--right {
    margin-left: 0;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .edit-form__row {
    grid-template-columns: 1fr;
  }

  .edit-form__actions {
    flex-direction: column;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .profile-card__header {
    padding: 20px;
  }

  .profile-card__info {
    padding: 16px 20px;
  }

  .profile-card__actions {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 1.5rem; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 20px 12px; }
}
