@font-face {
  font-family: "Tilda Sans";
  src: url("https://static.tildacdn.com/fonts/tildasans/TildaSans-VF.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --soft: #eee5d8;
  --soft-2: #f5efe7;
  --dark: #161616;
  --text: #44403a;
  --muted: #7a7168;
  --line: #e7ded2;
  --white: #ffffff;
  --radius: 28px;
--sans: "Tilda Sans", Arial, sans-serif;
--serif: "Tilda Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  box-shadow: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
p {
  font-family: var(--sans);
}

h1,
h2,
h3,
h4 {
  color: var(--dark);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
}

h2 {
  font-size: clamp(34px, 4vw, 56px);
}

h3 {
  font-size: clamp(22px, 2vw, 28px);
}

p {
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.container {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 222, 210, 0.7);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  color: var(--dark);
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--muted);
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.4;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--dark);
  border-radius: 999px;
  margin: 0;
}

.accessibility-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 54px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.accessibility-button img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.accessibility-button:hover {
  background: var(--soft);
  transform: translateY(-2px);
}

.accessibility-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 50;
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.accessibility-button:hover .accessibility-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(2px);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: heroFade 1.2s ease;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(1.08) contrast(0.9) saturate(0.75);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(245, 243, 240, 0.72);
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo-img {
  display: block;
  width: clamp(80px, 12vw, 150px);
  height: auto;
  margin: 0 auto 38px;
  object-fit: contain;
}

.hero-subtitle {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2px, 2.4vw, 36px);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: #282828;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.section {
  padding: 110px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head p {
  font-size: 18px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-card,
.concern-card,
.doctor-card,
.services-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.benefit-card {
  padding: 34px;
  min-height: 260px;
  border: none;
}

.benefit-number {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 40px;
  color: #b6aa9c;
  font-family: var(--serif);
  font-size: 34px;
}

.photo-layout,
.team-layout,
.equipment-item {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.image-box {
  min-height: 500px;
  border-radius: var(--radius);
}

.photo-text,
.team-text {
  max-width: 560px;
}

.clinic-image {
  background: url("../assets/images/clinic.jpg") center / cover no-repeat;
  border-radius: var(--radius);
}

.services {
  background: var(--soft-2);
}

.services-layout {
  display: grid;
  grid-template-columns: 680px 1fr;
  gap: 32px;
  align-items: start;
}

.services-left {
  width: 100%;
}

.services-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.services-mobile-nav {
  display: none;
}

.services-categories::-webkit-scrollbar {
  width: 6px;
}

.services-categories::-webkit-scrollbar-track {
  background: transparent;
}

.services-categories::-webkit-scrollbar-thumb {
  background: #cfc3b6;
  border-radius: 999px;
}

.service-tab {
  border: 1px solid rgba(46, 74, 70, 0.16);
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  min-height: 64px;
  text-align: left;
  font: inherit;
  color: var(--dark);
  cursor: pointer;
  transition: 0.2s ease;
}

.service-tab.active,
.service-tab:hover {
  background: var(--dark);
  color: var(--white);
}

.services-content {
  padding: 32px;
}

.price-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
}

.service-price-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.service-name {
  color: var(--text);
}

.service-price {
  white-space: nowrap;
  font-weight: 800;
  color: var(--dark);
}

.concerns-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  overflow: visible !important;
}

.concern-card {
  width: auto !important;
  min-width: 0 !important;
  flex: none !important;
  min-height: 330px;
  padding: 48px 42px 42px;
  border: none !important;
  background: var(--white);
  border-radius: var(--radius);
  overflow: visible;
  box-sizing: border-box;
}

.concern-card span {
  position: static !important;
  display: block;
  margin-bottom: 50px;
  text-align: center;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: #b6aa9c;
}

.concern-card h3 {
  margin: 0 0 22px;
  font-size: 25px;
  line-height: 1.35;
  color: var(--dark);
  word-break: normal;
  overflow-wrap: normal;
}

.concern-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  word-break: normal;
  overflow-wrap: normal;
}

.quote-section {
  padding: 90px 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1)), var(--soft);
}

blockquote {
  margin: 0;
  max-width: 620px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  line-height: 1.2;
}

.slider-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.slider-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  color: var(--dark);
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider-btn:hover {
  transform: translateY(-2px);
  background: var(--soft);
}

.slider-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  cursor: grab;
  padding: 8px 0 22px;
}

.slider-track.is-dragging,
.concerns-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.doctors-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.doctors-track {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overscroll-behavior-x: contain;
}

.doctor-card {
  flex: 0 0 360px;
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-6px);
}

.doctor-photo {
  height: 470px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--soft-2);
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.doctor-photo-link {
  display: block;
  cursor: pointer;
}

.doctor-photo-link img {
  transition: transform 0.25s ease;
}

.doctor-photo-link:hover img {
  transform: scale(1.04);
}

.doctor-info {
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.doctor-info p {
  margin-bottom: 16px;
  color: var(--muted);
}

.doctor-speciality {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 600;
}

.doctor-short {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.doctor-page-link,
.doctor-more {
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid var(--soft);
  background: var(--soft);
  color: var(--dark);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.doctor-page-link:hover,
.doctor-more:hover {
  background: #e3d6c6;
  transform: translateY(-2px);
}

.team-photo-section {
  background: var(--white);
}

.team-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft-2);
}

.team-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.equipment-list {
  display: grid;
  gap: 80px;
}

.equipment-item {
  grid-template-columns: 1fr 0.8fr;
}

.equipment-item.reverse {
  direction: rtl;
}

.equipment-item.reverse > * {
  direction: ltr;
}

.equipment-text {
  padding: 38px;
  border: none;
  background: var(--white);
  border-radius: var(--radius);
}

.equipment-image {
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft-2);
}

.equipment-image img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.equipment-more,
.about-more {
  display: none;
}

.equipment-more.open,
.about-more.open {
  display: block;
}

.dots {
  display: inline;
}

.dots.hidden {
  display: none;
}

.read-more {
  margin-top: 20px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  background: var(--soft);
  color: var(--dark);
  padding: 13px 22px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.brands {
  background: var(--white);
}

.brands-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.brand-logo {
  flex: 0 0 calc((100% - 140px) / 6);
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: none !important;
  border-radius: 22px;
  background: var(--bg);
  box-sizing: border-box;
  overflow: hidden;
}

.brand-logo img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo-large img {
  max-width: 88%;
  max-height: 90px;
  transform: scale(1.45);
}

.final-cta {
  padding: 120px 0;
  background: var(--soft);
  text-align: center;
}

.final-cta p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  background: #151515;
  color: #ffffff;
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.05fr 0.75fr 2.2fr;
  gap: 42px;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer-logo img {
  display: block;
  width: 40px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.vk-logo {
  width: 25px;
  height: 25px;
  fill: #111111;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.7;
}

.footer h3 {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 16px;
}

.footer-nav a {
  display: block;
  margin-bottom: 10px;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-map {
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

.footer-small {
  margin-top: 24px;
}

.footer-legal {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 10px;
}

.mobile-only {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.42);
}

.modal.open {
  display: flex;
}

.modal-window {
  width: min(560px, 100%);
  max-height: min(720px, 90vh);
  overflow-y: auto;
  background: var(--white);
  border-radius: 28px;
  padding: 34px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
}

.modal-role {
  color: var(--muted);
  font-weight: 700;
}

#modalDoctorText,
.doctor-detail-text p {
  white-space: pre-line;
}

.fade-block {
  animation: fadeIn 0.8s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.doctor-page {
  background: var(--bg);
}

.doctor-detail-section {
  padding-top: 90px;
}

.doctor-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 700;
}

.doctor-back:hover {
  color: var(--dark);
}

.doctor-detail-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: stretch;
}

.doctor-detail-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft-2);
}

.doctor-detail-photo img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.doctor-detail-content {
  min-height: 620px;
  padding: 54px;
  border-radius: var(--radius);
  background: var(--white);
}

.doctor-detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
}

.doctor-detail-role {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.doctor-detail-line {
  width: 64px;
  height: 3px;
  margin: 34px 0;
  border-radius: 999px;
  background: var(--dark);
}

.doctor-detail-text {
  display: grid;
  gap: 14px;
}

.doctor-detail-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
}

.doctor-certificates-section {
  padding-top: 40px;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.certificate-card {
  min-height: 260px;
  padding: 18px;
  border: none;
  border-radius: 24px;
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.certificate-card:hover {
  transform: translateY(-4px);
}

.certificate-card img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.certificates-empty {
  display: none;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  text-align: center;
  color: var(--muted);
}

.no-scroll {
  overflow: hidden;
}

.certificate-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 90px;
  background: rgba(0, 0, 0, 0.78);
}

.certificate-modal.open {
  display: flex;
}

.certificate-modal-content {
  max-width: min(1000px, 100%);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  background: var(--white);
}

.certificate-modal-close {
  position: absolute;
  top: 24px;
  right: 30px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--dark);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.certificate-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--dark);
  font-size: 32px;
  cursor: pointer;
}

.certificate-modal-prev {
  left: 28px;
}

.certificate-modal-next {
  right: 28px;
}

.certificate-modal-close:hover,
.certificate-modal-arrow:hover {
  background: var(--soft);
}

.legal-page {
  min-height: 100vh;
  background: var(--bg);
}

.legal-container {
  max-width: 980px;
}

.legal-container h1 {
  margin: 26px 0 34px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
}

.legal-content {
  padding: 42px;
  border-radius: var(--radius);
  background: var(--white);
}

.legal-content h2 {
  margin: 42px 0 20px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.legal-content h3 {
  margin: 30px 0 16px;
  font-size: 22px;
  line-height: 1.35;
}

.legal-content p,
.legal-content li {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
}

.legal-content strong {
  color: var(--dark);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 300;
  display: none;
  padding: 0 18px;
}

.cookie-banner--show {
  display: block;
}

.cookie-banner__content {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.cookie-banner__content p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--dark);
}

.cookie-banner__content a {
  color: #d88f82;
  text-decoration: none;
}

.cookie-banner__content a:hover {
  text-decoration: underline;
}

.cookie-banner__button {
  min-width: 130px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid #9d9d9d;
  background: transparent;
  color: var(--dark);
  font-family: var(--serif);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cookie-banner__button:hover {
  background: var(--soft);
  transform: translateY(-2px);
}

body.accessibility-mode {
  background: #ffffff !important;
  color: #000000 !important;
  font-size: 20px;
  line-height: 1.8;
}

body.accessibility-mode *:not(svg):not(path) {
  background-color: #ffffff !important;
  color: #000000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.accessibility-mode h1 {
  font-size: 64px !important;
}

body.accessibility-mode h2 {
  font-size: 48px !important;
}

body.accessibility-mode h3 {
  font-size: 32px !important;
}

body.accessibility-mode p,
body.accessibility-mode a,
body.accessibility-mode button,
body.accessibility-mode span {
  font-size: 20px !important;
  line-height: 1.8 !important;
}

body.accessibility-mode a,
body.accessibility-mode button,
body.accessibility-mode .btn,
body.accessibility-mode .read-more,
body.accessibility-mode .doctor-page-link {
  border: 2px solid #000000 !important;
  text-decoration: none !important;
}

body.accessibility-mode img,
body.accessibility-mode video,
body.accessibility-mode iframe {
  filter: grayscale(1) contrast(1.2) !important;
}

body.accessibility-mode .hero-overlay {
  background: rgba(255, 255, 255, 0.92) !important;
}

body.accessibility-mode .hero-video {
  display: none;
}

body.accessibility-mode .benefit-card,
body.accessibility-mode .concern-card,
body.accessibility-mode .doctor-card,
body.accessibility-mode .services-content,
body.accessibility-mode .equipment-text,
body.accessibility-mode .brand-logo,
body.accessibility-mode .certificate-card {
  border: 2px solid #000000 !important;
  background: #ffffff !important;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.02);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .nav,
  .header-contacts {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--line);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-layout,
  .photo-layout,
  .team-layout,
  .equipment-item,
  .doctor-detail-layout {
    grid-template-columns: 1fr;
  }

  .concerns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-map {
    grid-column: 1 / -1;
  }

  .doctor-detail-photo img {
    min-height: 520px;
  }

  .doctor-detail-content {
    min-height: auto;
  }

  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, 1220px);
  }

  .header-inner {
    min-height: 72px;
  }

  .nav.is-open {
    top: 72px;
  }

  .hero {
    min-height: 100vh;
    background: url("../assets/images/hero-mobile.jpg") center / cover no-repeat;
  }

  .hero-video {
    display: none;
  }

  .hero-overlay {
    background: rgba(245, 243, 240, 0.76);
  }

  .hero-content {
    margin: 0 auto;
    padding: 0 18px;
  }

  .hero-logo-img {
    width: 120px;
    margin-bottom: 28px;
  }

  .hero-subtitle {
    font-size: 24px;
    line-height: 1.3;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: auto;
    padding: 28px;
  }

  .image-box {
    min-height: 320px;
  }

  .mobile-only {
    display: flex;
    margin-top: 16px;
  }

  .services-layout {
    display: block;
  }

  .services-categories {
    display: flex;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-right: 0;
    margin-bottom: 16px;
  }

  .services-categories::-webkit-scrollbar {
    display: none;
  }

  .service-tab {
    flex: 0 0 82%;
    min-height: 78px;
    scroll-snap-align: start;
  }

  .services-mobile-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
  }

  .services-mobile-nav .slider-btn {
    flex: 1;
    position: static;
    transform: none;
    width: auto;
    height: 46px;
    border-radius: 999px;
  }

  .services-content {
    padding: 24px;
  }

  .service-price-row {
    flex-direction: column;
    gap: 4px;
  }

  .concerns-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: 8px;
  }

  .concerns-grid::-webkit-scrollbar {
    display: none;
  }

  .concern-card {
    flex: 0 0 88% !important;
    min-width: 0 !important;
    min-height: auto !important;
    scroll-snap-align: start;
    padding: 30px 24px !important;
  }

  .concern-card span {
    margin-bottom: 24px;
    font-size: 32px;
  }

  .concern-card h3 {
    font-size: 23px;
  }

  .concern-card p {
    font-size: 17px;
  }

  .doctor-card,
  .doctors-track .doctor-card {
    flex: 0 0 82% !important;
    max-width: 82% !important;
    min-width: 0 !important;
  }

  .doctor-short {
    font-size: 14px;
    line-height: 1.45;
  }

  .slider-track {
    padding-right: 40px;
  }

  .doctors-track {
    padding-right: 36px;
  }

  .doctor-photo {
    height: 430px;
  }

  .equipment-list {
    gap: 36px;
  }

  .equipment-text {
    padding: 28px;
  }

  .brands-grid {
    gap: 12px;
  }

  .brand-logo {
    flex: 0 0 calc((100% - 12px) / 2);
    min-height: 82px;
    padding: 18px;
  }

  .brand-logo img {
    max-height: 52px;
  }

  .brand-logo-large img {
    transform: scale(1.2);
  }

  .footer {
    padding: 52px 0 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-map {
    min-height: 260px;
  }

  .footer-map iframe {
    height: 260px;
  }

  .reveal {
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .doctor-detail-section {
    padding-top: 70px;
  }

  .doctor-detail-content {
    padding: 32px 26px;
  }

  .doctor-detail-photo img {
    min-height: 440px;
  }

  .doctor-detail-text p {
    font-size: 16px;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .certificate-card img {
    height: 240px;
  }

  .certificate-modal {
    padding: 70px 18px;
  }

  .certificate-modal-close {
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    font-size: 30px;
  }

  .certificate-modal-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .certificate-modal-prev {
    left: 24px;
  }

  .certificate-modal-next {
    right: 24px;
  }

  .certificate-modal-content img {
    max-height: 78vh;
  }

  .legal-content {
    padding: 28px 22px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 16px;
  }

  .cookie-banner {
    bottom: 14px;
    padding: 0 12px;
  }

  .cookie-banner__content {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
    border-radius: 16px;
  }

  .cookie-banner__content p {
    font-size: 14px;
    line-height: 1.5;
  }

  .cookie-banner__button {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 32px;
  }

  .doctor-photo {
    height: 360px;
  }

  .footer-map iframe {
    height: 240px;
  }
}