:root {
  --blue: #76c9e8;
  --blue-dark: #17617b;
  --orange: #f29a52;
  --dark: #24333b;
  --light: #f3fbfd;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(23, 97, 123, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background: var(--white);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.site-header .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  color: var(--blue-dark);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--orange);
}

/* Главный экран */

.hero {
  padding: 90px 0;
  background: linear-gradient(135deg, #e9f9fd, #bde9f5);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

h2 {
  margin: 0 0 24px;
  color: var(--blue-dark);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  margin-top: 0;
}

.hero-description {
  max-width: 620px;
  margin-bottom: 32px;
  font-size: 1.2rem;
}

.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: min(300px, 80%);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

/* Кнопки */

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.button:hover {
  background: #dc7e36;
  transform: translateY(-2px);
}

.button-light {
  color: var(--blue-dark);
  background: var(--white);
}

.button-light:hover {
  background: #eafaff;
}

/* Разделы */

.section {
  padding: 80px 0;
}

.section-light {
  background: var(--light);
}

.section-accent {
  color: var(--white);
  background: var(--blue-dark);
}

.section-accent h2,
.section-accent .eyebrow {
  color: var(--white);
}

/* Карточки услуг */

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

.card {
  padding: 26px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--blue-dark);
}

/* Подвал */

.site-footer {
  padding: 40px 0 24px;
  color: var(--white);
  background: #123f50;
  text-align: center;
}

.site-footer p {
  margin: 8px 0;
}

.site-footer a {
  display: inline-block;
  margin: 8px 0 20px;
  color: var(--white);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--orange);
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-copy {
  margin-top: 24px !important;
  color: #b9d7df;
  font-size: 0.9rem;
}

/* Мобильная версия */

@media (max-width: 760px) {
  .site-header .container {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .main-nav {
    gap: 10px 14px;
  }

  .main-nav a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-logo {
    order: -1;
  }

  .hero-logo img {
    width: 190px;
  }

  .section {
    padding: 56px 0;
  }

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

.contact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.contact-content h2 {
  margin-bottom: 16px;
}

.contact-content p:not(.eyebrow) {
  max-width: 650px;
}

@media (max-width: 760px) {
  .contact-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(23, 97, 123, 0.2);
}

/* ПРАВКА: удалён дубль блока doctors-* (был продублирован подряд) */

.doctors-cards {
  align-items: stretch;
}

.doctor-card {
  overflow: hidden;
}

.doctor-photo {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.doctor-position {
  color: #17617b;
  font-weight: 700;
}

.contact-info {
  margin: 28px 0;
}

.contact-info p {
  margin: 12px 0;
}

.contact-info a {
  color: inherit;
  font-weight: 700;
}

.contact-info a:hover {
  opacity: 0.8;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.price-button {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .price-button {
    margin-left: auto;
  }
}

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

.price-card {
  padding: 20px;
  min-height: auto;
}

.price-card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.price-card p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #8a5a3b;
}

@media (max-width: 800px) {
  .prices-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .prices-cards {
    grid-template-columns: 1fr;
  }

  .price-card {
    padding: 16px;
  }
}

.gallery {
  margin-top: 56px;
  overflow: hidden;
}

.gallery h3,
.gallery .eyebrow {
  text-align: center;
}

.photo-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 12px 0;
}

.photo-marquee-track {
  display: flex;
  width: max-content;
  animation: photo-scroll 45s linear infinite;
}

.photo-marquee-group {
  display: flex;
  gap: 14px;
  padding-right: 14px;
  flex-shrink: 0;
}

.photo-marquee img {
  display: block;
  width: 230px;
  height: 300px;
  object-fit: cover;
  border-radius: 0 28px 28px 0;
  flex-shrink: 0;
}

@keyframes photo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  .photo-marquee img {
    width: 150px;
    height: 210px;
    border-radius: 0 20px 20px 0;
  }

  .photo-marquee-group {
    gap: 10px;
    padding-right: 10px;
  }

  .photo-marquee-track {
    animation-duration: 35s;
  }
}

.reviews-section {
  padding: 80px 0;
  background: #f4f8fc;
  overflow: hidden;
}

.reviews-section h2 {
  margin-bottom: 28px;
  color: #18243a;
  text-transform: uppercase;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 24px;
  background: #ffffff;
}

.rating strong {
  font-size: 1.5rem;
  color: #18243a;
}

.rating span,
.review-stars {
  color: #ffb51b;
  letter-spacing: 2px;
}

.rating small {
  color: #69758a;
}

.reviews-list {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scrollbar-width: thin;
}

.review-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 620px;
  box-sizing: border-box;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(36, 62, 92, 0.1);
}

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

.review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dff1ff;
  color: #2472ed;
  font-weight: 700;
  font-size: 1.2rem;
}

.review-author strong,
.review-author small {
  display: block;
}

.review-author small {
  margin-top: 4px;
  color: #7a8698;
}

.review-stars {
  margin: 18px 0 12px;
}

.review-card p {
  flex-grow: 1;
  line-height: 1.6;
  color: #59677c;
}

.review-link {
  margin-top: auto;
  color: #2472ed;
  font-weight: 700;
  text-decoration: none;
}

.reviews-button {
  margin-top: 20px;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  overflow: visible;
  padding: 8px 0 20px;
}

.review-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(400px, 1.2fr);
  gap: 56px;
  align-items: center;
}

.contacts-content {
  max-width: 460px;
}

.contacts-content h2 {
  margin-bottom: 20px;
}

.contacts-content > p:not(.eyebrow) {
  line-height: 1.6;
}

.contacts-map {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(55, 42, 32, 0.15);
}

.contacts-map iframe {
  display: block;
  width: 100%;
  min-height: 400px;
  border: 0;
}

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

  .contacts-content {
    max-width: none;
  }

  .contacts-map iframe {
    min-height: 320px;
  }
}

.prices-section {
  background: #fffaf5;
}

.section-intro {
  max-width: 650px;
  margin: 0 0 40px;
  line-height: 1.6;
  color: #66574d;
}

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

.price-card {
  padding: 30px;
}

.price-card h2 {
  margin: 0 0 24px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid rgba(70, 52, 40, 0.12);
}

.price-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.price-item span {
  line-height: 1.4;
  color: #66574d;
}

.price-item strong {
  flex-shrink: 0;
  color: #9a603d;
  text-align: right;
  white-space: nowrap;
}

.price-item small {
  font-size: 0.75em;
  font-weight: 400;
}

.price-label,
.price-bonus-label {
  display: inline-block;
  margin-bottom: 14px;
  color: #a86640;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-bonus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 20px;
  color: #fff;
  background: #a86640;
}

.price-bonus h2 {
  margin: 0 0 8px;
}

.price-bonus p {
  margin: 0;
  line-height: 1.5;
}

.price-bonus > strong {
  flex-shrink: 0;
  font-size: 1.7rem;
  white-space: nowrap;
}

.price-note {
  max-width: 650px;
  margin: 32px 0 24px;
  line-height: 1.6;
  color: #66574d;
}

@media (max-width: 700px) {
  .prices-cards {
    grid-template-columns: 1fr;
  }

  .price-item {
    flex-direction: column;
    gap: 7px;
  }

  .price-item strong {
    text-align: left;
  }

  .price-bonus {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }
}

.prices-section {
  background: #ffffff;
}

.price-groups {
  max-width: 100%;
  margin-top: 36px;
  border: 1px solid #d9e2ea;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
}

.price-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  border: 0;
  color: #0d2b4d;
  background: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.price-group-header > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-group-header strong {
  font-size: 1.25rem;
}

.price-group-header small {
  color: #60758a;
  font-size: 0.9rem;
}

.price-arrow {
  color: #52687b;
  font-size: 1.4rem;
  line-height: 1;
}

.price-group-content {
  border-top: 1px solid #e1e8ee;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 11px 24px;
  color: #092b50;
  font-size: 1rem;
  line-height: 1.45;
}

.price-row:nth-child(odd) {
  background: #f1f7fb;
}

.price-row span {
  max-width: 850px;
}

.price-row strong {
  flex-shrink: 0;
  color: #061d38;
  white-space: nowrap;
}

@media (max-width: 650px) {
  .price-group-header {
    padding: 16px;
  }

  .price-group-header > span:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 13px 16px;
  }

  .price-row strong {
    font-size: 0.95rem;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-address {
  margin-left: auto;
  color: #5f5148;
  font-size: 0.85rem;
  line-height: 1.35;
  text-align: right;
}

.header-phone {
  color: #122b4a;
  font-size: 1.55rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: #a86640;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-address {
    order: 3;
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .header-phone {
    margin-left: auto;
    font-size: 1.2rem;
  }
}

@media (max-width: 650px) {
  .header-inner {
    gap: 16px;
  }

  .header-phone {
    width: 100%;
    margin-left: 0;
    font-size: 1.25rem;
  }

  .header-address {
    font-size: 0.8rem;
  }
}

.price-card {
  border: 2px solid #c8895d;
  border-radius: 18px;
  background: #ffffff;
  box-sizing: border-box;
}

.floating-appointment-button {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;

  width: 128px;
  height: 128px;
  padding: 14px;

  border: 0;
  border-radius: 50%;

  color: #ffffff;
  background: #2864df;
  box-shadow:
    0 0 0 8px rgba(40, 100, 223, 0.15),
    0 8px 24px rgba(29, 73, 170, 0.35);

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;

  animation: appointment-pulse 2s ease-in-out infinite;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.floating-appointment-button:hover {
  color: #ffffff;
  background: #1d54c5;
  transform: scale(1.06);
}

.floating-appointment-button:focus-visible {
  outline: 4px solid rgba(40, 100, 223, 0.35);
  outline-offset: 5px;
}

.floating-button-icon {
  font-size: 1.4rem;
  line-height: 1;
}

@keyframes appointment-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 8px rgba(40, 100, 223, 0.15),
      0 8px 24px rgba(29, 73, 170, 0.35);
  }

  50% {
    box-shadow:
      0 0 0 18px rgba(40, 100, 223, 0),
      0 10px 30px rgba(29, 73, 170, 0.45);
  }
}

@media (max-width: 600px) {
  .floating-appointment-button {
    right: 16px;
    bottom: 18px;
    width: 92px;
    height: 92px;
    font-size: 0.78rem;
  }

  .floating-button-icon {
    font-size: 1.1rem;
  }
}

/* Шапка: одна линия, всё по середине */
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone {
  flex-shrink: 0;
  color: #123f59;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: #0b6d8f;
}

.header-address {
  margin-left: auto;
  margin-right: auto;
  max-width: 230px;
  color: #33475c;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.header-address:hover {
  color: #0b6d8f;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.main-nav a {
  color: #123f59;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #0b6d8f;
}

@media (max-width: 1000px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-phone {
    margin-left: auto;
  }

  .main-nav {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
    order: 4;
  }
}

@media (max-width: 700px) {
  .header-address {
    order: 3;
    width: 100%;
    text-align: center;
  }
}

.prices-logo,
.page-logo {
  display: flex;
  justify-content: center;
  width: 220px;
  height: 220px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  background: #d8f0f7;
}

.prices-logo img,
.page-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prices-title {
  margin: 40px auto 32px;
  max-width: 720px;
  text-align: center;
  font-size: 2rem;
  color: #1c3a4a;
}

.prices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.prices-grid > * {
  text-align: center;
  padding: 24px 20px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(23, 97, 123, 0.08);
}

@media (max-width: 900px) {
  .prices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .prices-grid {
    grid-template-columns: 1fr;
  }
}

.prices-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px auto 0;
  width: min(1120px, calc(100% - 40px));
}

.prices-cards .extra-prices {
  grid-column: 1 / -1;
}

.extra-prices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.price-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 6px 20px rgba(23, 97, 123, 0.08);
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eaf3f6;
}

.price-item:last-child {
  border-bottom: none;
}

.price-card-featured {
  background: #e6f6fb;
  border: 2px solid #76c9e8;
}

@media (max-width: 900px) {
  .prices-cards,
  .extra-prices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .prices-cards,
  .extra-prices-grid {
    grid-template-columns: 1fr;
  }
}

.price-card strong,
.price-item strong {
  color: #5a3318;
}

.price-item small {
  color: #8a6a4f;
}

.prices-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 48px auto 40px;
}

.prices-title {
  font-size: 4rem;
  font-weight: 800;
  color: #1c3a4a;
  margin: 0;
}

.prices-logo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #d8f0f7;
}

.prices-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .prices-head {
    flex-direction: column;
    gap: 16px;
  }
  .prices-title {
    font-size: 2rem;
    text-align: center;
  }
}

.prices-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 48px auto 40px;
  width: min(1000px, calc(100% - 40px));
}

.prices-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1c3a4a;
  margin: 0;
  text-align: center;
}

.prices-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.prices-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.price-card-featured {
  background: #ffffff;
  border: 1px solid #e3ecef;
}

.price-help {
  background: #eef4ff;
  border-radius: 20px;
  padding: 32px 36px;
  width: min(1120px, calc(100% - 40px));
  margin: 40px auto;
}

.price-help h2 {
  font-size: 1.9rem;
  color: #1c3a4a;
  margin: 0 0 12px;
}

.price-help p {
  font-size: 1rem;
  color: #33475c;
  margin: 0;
}

.price-help a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.price-help a:hover {
  text-decoration: underline;
}

.prices-cards .price-help,
.extra-prices-grid .price-help,
.prices-grid .price-help {
  grid-column: 1 / -1;
}

.price-card-featured {
  border: 2px solid #a0522d;
  background: #ffffff;
}

/* ПРАВКА: курсор-лапка только на устройствах с мышью.
   На тач-экране (телефон/планшет) не активируется — там курсор системный. */
@media (hover: hover) and (pointer: fine) {
  html {
    cursor: url("paw.png") 8 8, auto;
  }
}

.nav-link {
  display: inline-block;
  color: #555;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: orange;
  transform: translateY(-4px);
}

.main-nav .account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.main-nav .account-button:hover {
  background: #dc7e36;
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .main-nav .account-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
/* ─── ОТЗЫВЫ: мобильная адаптация ─── */

/* Планшет: 2 колонки */
@media (max-width: 900px) {
  .reviews-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-card {
    min-height: 0;
  }
}

/* Телефон: 1 колонка, нормальный перенос текста */
@media (max-width: 600px) {
  .reviews-section {
    padding: 48px 0;
  }

  .reviews-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    text-align: center;
  }

  .reviews-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .rating {
    padding: 10px 14px;
  }

  .rating strong {
    font-size: 1.2rem;
  }

  .reviews-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 4px 0 16px;
    overflow: visible;
  }

  .review-card {
    width: 100%;
    min-width: 0;
    min-height: 0;         /* убираем огромную min-height: 620px */
    padding: 20px;
    border-radius: 20px;
  }

  /* Автор + дата в одну строку, но с переносом при нехватке места */
  .review-author {
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }

  .review-author strong {
    font-size: 1rem;
    word-break: break-word;
  }

  .review-author small {
    font-size: 0.8rem;
    color: #7a8698;
  }

  .review-avatar {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .review-stars {
    margin: 12px 0 8px;
    font-size: 1rem;
  }

  .review-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    word-break: break-word;         /* не рвём слова, если можно */
    overflow-wrap: anywhere;        /* но если слово длинное — переносим */
    hyphens: auto;
    margin: 0 0 14px;
  }

  .review-link {
    font-size: 0.9rem;
  }

  /* Кнопка «Записаться» не должна перекрывать карточки */
  .floating-appointment-button {
    right: 12px;
    bottom: 14px;
    width: 84px;
    height: 84px;
    font-size: 0.72rem;
    padding: 10px;
  }

  .floating-button-icon {
    font-size: 1rem;
  }
}
/* ═══════════ КОМПАКТНАЯ МОБИЛЬНАЯ ШАПКА (v2) ═══════════ */

/* Глобально — жёсткие сбросы */
@media (max-width: 700px) {
  .site-header {
    padding: 0 !important;
  }

  .site-header .container.header-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px 10px !important;
    padding: 6px 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  /* Логотип */
  .site-header .header-inner > .logo,
  .site-header .header-inner > .header-logo {
    font-size: 1rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    order: 1;
  }

  /* Телефон — мелкий, рядом с логотипом */
  .site-header .header-phone {
    font-size: 0.8rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    flex: 1 1 auto !important;
    text-align: right !important;
    order: 2;
  }

  /* Бургер — справа, компактный */
  .site-header .burger-toggle {
    display: block !important;
    flex: 0 0 auto !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    order: 3;
  }

  .site-header .burger-toggle span {
    left: 8px !important;
    right: 8px !important;
    height: 2px !important;
  }
  .site-header .burger-toggle span:nth-child(1) { top: 10px !important; }
  .site-header .burger-toggle span:nth-child(2) { top: 16px !important; }
  .site-header .burger-toggle span:nth-child(3) { top: 22px !important; }
  .site-header .burger-toggle.is-open span:nth-child(1) { top: 16px !important; }
  .site-header .burger-toggle.is-open span:nth-child(3) { top: 16px !important; }

  /* Скрытые элементы */
  .site-header .header-address,
  .site-header .main-nav {
    display: none !important;
  }

  /* Развёрнутое состояние */
  .site-header .header-inner.burger-open .header-address {
    display: block !important;
    order: 4;
    flex: 1 1 100% !important;
    width: 100% !important;
    margin: 6px 0 0 !important;
    padding: 8px 0 0 !important;
    border-top: 1px solid #e6eef3 !important;
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  .site-header .header-inner.burger-open .main-nav {
    display: flex !important;
    order: 5;
    flex: 1 1 100% !important;
    width: 100% !important;
    flex-direction: column !important;
    margin: 0 !important;
    gap: 0 !important;
    padding: 4px 0 0 !important;
  }

  .site-header .header-inner.burger-open .main-nav a {
    display: block !important;
    padding: 8px 6px !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    border-top: 1px solid #eef4f7 !important;
  }

  .site-header .header-inner.burger-open .main-nav .account-button {
    display: inline-block !important;
    margin: 8px auto !important;
    padding: 8px 16px !important;
    border-top: 0 !important;
    font-size: 0.9rem !important;
  }
}

/* Очень узкие экраны */
@media (max-width: 380px) {
  .site-header .header-phone {
    font-size: 0.72rem !important;
  }
  .site-header .header-inner > .logo,
  .site-header .header-inner > .header-logo {
    font-size: 0.92rem !important;
  }
}

/* ═══════════ МОБИЛЬНАЯ ШАПКА С БУРГЕРОМ ═══════════ */

/* Кнопка-бургер (по умолчанию скрыта — только на мобилке) */
.burger-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #ecf6fa;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.burger-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: #17617b;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.burger-toggle span:nth-child(1) { top: 13px; }
.burger-toggle span:nth-child(2) { top: 20px; }
.burger-toggle span:nth-child(3) { top: 27px; }

/* Открытое состояние бургера — крестик */
.burger-toggle.is-open span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
.burger-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.burger-toggle.is-open span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* ───────── Мобильная версия ≤ 700px ───────── */
@media (max-width: 700px) {

  /* Верхняя строка: логотип + телефон + бургер */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "logo phone burger";
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    padding: 10px 0;
  }

  .header-logo,
  .logo {
    grid-area: logo;
    justify-self: start;
    font-size: 1.05rem;
  }

  .header-phone {
    grid-area: phone;
    justify-self: end;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .burger-toggle {
    display: block;
    grid-area: burger;
  }

  /* Скрытая панель — всё остальное */
  .header-address,
  .main-nav {
    display: none;
    grid-area: auto;
  }

  /* Когда бургер открыт — показываем и выстраиваем в столбик */
  .header-inner.burger-open .header-address {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    margin: 8px 0 0;
    max-width: none;
    padding-top: 10px;
    border-top: 1px solid #e6eef3;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
  }

  .header-inner.burger-open .main-nav {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 6px;
  }

  .header-inner.burger-open .main-nav a {
    display: block;
    padding: 11px 6px;
    border-top: 1px solid #eef4f7;
    font-size: 0.95rem;
    text-align: center;
  }

  .header-inner.burger-open .main-nav .account-button {
    margin-top: 8px;
    padding: 10px 18px;
    border-top: 0;
    font-size: 0.95rem;
    text-align: center;
  }
}

/* Совсем узкие экраны — телефон ещё чуть меньше */
@media (max-width: 420px) {
  .header-phone {
    font-size: 0.82rem;
  }
  .header-logo,
  .logo {
    font-size: 1rem;
  }
}
/* ─── Отступ при переходе к якорю ─── */
[id] {
  scroll-margin-top: 70px;
}

@media (max-width: 700px) {
  [id] {
    scroll-margin-top: 60px;
  }
}
