@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
  --font-base: 'Montserrat', sans-serif;
  --color-accent: #FBED00;
    --color-accent-text: #f0c60a;
  --color-accent-gray: #2B292A;
  --color-light: #FDFBFC;
  --color-gray: #e9e9e9;
  --text-dark: #333;
  --text-light: #FDFBFC;
  --transition: all 0.3s ease;
}
 /* --color-accent: #FBED00; */

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.02em;
  background: url('../img/background-5.png') center/auto repeat;
  color: var(--text-dark);
  animation: fadeInUp 0.8s ease-out forwards;
}
.body-background {
    background: #fffef7bf;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
}
ul,
ol {
	margin: 0;
	padding-left: 0;
  list-style: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
	width: 100%;
}
a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--color-accent);
  transform: scale(1.02);
}
button {
	font-family: inherit;
	cursor: pointer;
	transition: color var(--transition-property),
		background-color var(--transition-property),
		box-shadow var(--transition-property),
		border-color var(--transition-property);
  border: none;
  transition: var(--transition);
}
button:hover,
button:focus {
	font-family: inherit;
	background-color: var(--button-hover-color);
	color: #ffffff;
  border: none
}
.no-scroll {
	overflow: hidden;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	white-space: nowrap;
	clip-path: inset(100%);
	clip: rect(0 0 0 0);
	overflow: hidden;
}
.is-hidden {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 30px 0;
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition);
}
.invisible {
  opacity: 0;
  transform: translateY(30px);
}
.animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ---------- HEADER ------------ */

.container-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--color-accent-gray);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

.header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  flex-wrap: wrap;
}

.header.shrink {
  padding: 10px 20px;
}

.logo img {
  width: 160px;
  transition: width 0.3s ease;
}

.header.shrink .logo img {
  width: 120px;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
}

.menu-content {
  display: flex;
  height: 60px;
  justify-content: center;
  gap: 24px;
  align-items: center;
}

/* ----------- nav ---------- */

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  transition: var(--transition);
}

.contacts {
  display: flex;
  align-items: center;
  gap: 36px;
}

.contacts a {
  color: var(--text-light);
  font-size: 14px;
  text-decoration: none;
}

.socials {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.socials img {
  height: 30px;
}

/* ----------- Мобільна адаптивність ---------- */

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .menu-content {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
    height: 100vh;
    gap: 30px;
    height: 100vh;    
  }

  .menu-content.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  nav a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--text-light);
  }

  .contacts,
  .socials {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .contacts a {
    font-size: 16px;
  }

  .logo img {
    width: 140px;
  }

  .header.shrink .logo img {
    width: 100px;
  }
}

/*---------- HERO ------------ */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-accent-gray);
  background: url('../img/hero.png') center/cover no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.474); /* основна тінь */
}
.hero::after {
 content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.hero-content {
  position: relative;
  color: #fff;
  text-align: center;
  width: 100%;
  z-index: 2;
}
.hero-content h1 {
  font-size: 48px;
  margin-bottom: 16px;
  font-weight: 700;
}
.hero-content p {
  font-size: 20px;
  margin-bottom: 24px;
}
.btn {
  background: var(--color-accent);
  color: #333;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
}
.btn:hover {
  background-color: var(--color-accent-text);
  color: var(--color-light);  
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}



/* ------------------------- SERVICES -------------------- */

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #111;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  
}

.service-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.service-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #222;
}

.service-card p {
  font-size: 16px;
  color: #666;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ----------------------------- Секція декларації з сімейним лікарем ----------------------*/

#declaration > div > p {
  font-size: 1.12rem;
  color: #333;
  margin-bottom: 22px;
  text-align: center;
  line-height: 1.7;
}

#declaration h3 {
  font-size: 1.18rem;
  color: #000000;
  margin-bottom: 18px;
  font-weight: 600;
  text-align: center;
}

.declaration-list {
  margin: 0 auto;
  max-width: 1000px;
  font-size: 1.07rem;
  color: #222;
  line-height: 1.7;
  list-style-type: decimal;
}

/* .declaration-list li {
  margin-bottom: 14px;
  background: #fff;
  border-radius: 8px;
  padding: 12px 18px 12px 14px;
  box-shadow: 0 1px 6px rgba(249,191,59,0.06);
  border-left: 4px solid #f9bf3b;
  transition: background 0.2s;
} */

.declaration-list li b {
  color: #edb600;
  font-weight: 600;
}

@media (max-width: 900px) {
  .declaration-list {
    padding-left: 10px;
  }
}

@media (max-width: 600px) {
  #declaration .section-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  #declaration > div > p {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  .declaration-list li {
    font-size: 0.98rem;
    padding: 10px 8px 10px 8px;
    margin-bottom: 10px;
  }
}

/* ------------------------- ABOUT US -------------------- */

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1 1 50%;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-image {
  flex: 1 1 45%;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ------------------------- WHY US -------------------- */

.why-us:hover {
  cursor: pointer;
}

.why-us .section-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.why-us-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.why-us-item {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px 25px;
  flex: 1 1 calc(33.333% - 30px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.why-us-icon {
  display: block;
  margin-bottom: 12px;
  width: 64px;
  height: 64px;
}

.why-us-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-accent-text);
  margin-bottom: 15px;
}

.why-us-text {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .why-us-item {
    flex: 1 1 calc(50% - 30px);
  }
}

@media (max-width: 576px) {
  .why-us-item {
    flex: 1 1 100%;
  }

  .why-us .section-title {
    font-size: 28px;
  }
}

/* ------------------------- SPECIALISTS -------------------- */

.specialists:hover {
  cursor: pointer;
}

.specialists-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: #1e1e1e;
  font-weight: 600;
}

.specialist-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.specialist-item {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  padding: 25px 20px;
  max-width: 280px;
  flex: 1 1 260px;
  transition: transform 0.3s ease;
}

.specialist-item:hover {
  transform: translateY(-5px);
}

.specialist-item img {
  height: 250px;
  object-fit: cover;
  border-radius: 5%;
  margin-bottom: 20px;
}

.specialist-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color:  var(--text-dark);
}

.specialist-role {
  font-size: 16px;
  color: #757575;
}

/* --------------------- ACHIEVEMENTS ---------------------------- */

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.slider-wrapper {
  position: relative;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.cert-slider {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px 0;
  list-style: none;
  scroll-snap-type: none; /* за замовчуванням без snap */
}

.cert-item {
  flex: 0 0 auto;
  width: 360px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  scroll-snap-align: none;
}

.cert-item img {
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: block;
  width: 100%;
  height: auto;
}

.cert-item img:hover {
  transform: scale(1.05);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: var(--text-dark);
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  user-select: none;
  transition: background-color 0.3s;
}

.slider-btn.left {
  left: -60px;
}

.slider-btn.right {
  right: -60px;
}

.slider-btn:hover,
.slider-btn:focus {
  background: var(--color-accent);
  color: var(--text-dark);
}

@media (max-width: 900px) {
  .slider-btn.left {
    left: -10px;
  }
  .slider-btn.right {
    right: -10px;
  }
}


/* --------------------- LIGHTBOX ---------------------------- */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(46, 47, 66, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox-img {
  max-width: 50vw;
  max-height: auto;
  border-radius: 12px;
  box-shadow: 0 0 32px rgba(0,0,0,0.25);
  background: #fff;
  display: block;
}

.close-lightbox {
  position: absolute;
  top: 32px;
  right: 40px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.close-lightbox:hover,
.close-lightbox:focus {
  background: #f0f0f0;
}

.close-lightbox img {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

/* Адаптивність */
@media (max-width: 768px) {
  .lightbox-img {
    max-width: 98vw;
    max-height: 60vh;
  }
  .close-lightbox {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 480px) {
  .lightbox-img {
    max-width: 98vw;
    max-height: 40vh;
  }
  .close-lightbox {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
  }
}


/* --------------------- INSTAGRAM ---------------------------- */
.instagram {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.instagram-header {
    display: flex;
  justify-content: space-between;
  flex-direction: row;
  gap: 60px;
}

.text-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 20px;
}

.instagram-title {
  font-size: 24px;  
  font-weight: 700;
}

.instagram-follow-btn {
  padding: 14px 30px;
  font-size: 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background-color color 0.5s;
}
.instagram-follow-btn:hover, .instagram-follow-btn:focus  {
  background-color: var(--color-accent-text);
  color: var(--color-light);  
}
.instagram-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.instagram img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.instagram-gallery-post-1 {
  max-width: 600px;
}

.instagram img:hover {
  transform: scale(1.05);
}

/* Адаптивність */
@media (max-width: 768px) {
  .text-content {justify-content: center}
  .instagram-title {
    font-size: 26px;
    text-align: center;
    width: 100%;
  }

  .instagram-header {
    flex-direction: column;
    text-align: center;
  }

  .instagram-follow-btn {
    font-size: 15px;
    padding: 12px 24px;
  }
}
@media (min-width: 768px) {
 .text-content {min-width: 450px;}
}


/* --------------------- CONTACTS ---------------------------- */

.contacts-section {
  margin-bottom: 40px;
  padding: 50px 20px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contacts-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.contacts-info {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.clinic-logo img {
  width: 180px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts-item h4 {
  font-size: 18px;
  color: var(--color-dark);
}

.contact-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--color-accent);
}

.contacts-map {
  flex: 1 1 350px;
  min-height: 320px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Соціальні мережі */
.contacts-socials {
  margin-top: 20px;
}

.contacts-socials h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--color-dark);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.social-links a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
}

.social-links img {
  width: 30px;
  height: 30px;
}

/* ----------- Mobile styles ----------- */
@media (max-width: 768px) {
  .contacts-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    
  }

  .contacts-info {
    align-items: center;
    text-align: center;
  }

  .contacts-map {
    width: 100%;
    height: 300px;
  }

  .section-title {
    font-size: 28px;
    text-align: center;
  }

  .contacts-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .contacts-list {
    align-items: center;
  }
}

.instagram-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
}

/* Адаптивність */
@media (max-width: 768px) {
  .instagram-title {
    font-size: 22px;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .instagram-title {
    font-size: 20px;
  }
}


/*---------- FOOTER ------------ */

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
}

/*---------- scrollToTopBtn ------------ */

#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 1000;
  background-color: var(--color-accent); /* світлий жовтий */
  border: none;
  padding: 12px 18px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(249, 236, 59, 0.4);
  transition: background-color 0.3s ease, opacity 0.3s ease;
  opacity: 0; /* прихована за замовчуванням */
  pointer-events: none; /* блокує кліки, коли прихована */
}

#scrollToTopBtn:hover {
  background-color: var(--color-accent-text);
  color: var(--color-light);  
}

#scrollToTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

/*---------- MODAL ------------*/
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(46, 47, 66, 0.4);
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.backdrop.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal{
  position: relative;
  height: 700px;
  width: 900px;
  padding: 40px 16px 24px 16px;
  background-color: #fff;
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.18);
  border-radius: 25px;
  transition: transform 0.3s;
  z-index: 1000;
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal iframe{
  height: 600px;
  width: 800px;
    max-width: 96vw;

}

.backdrop.is-hidden .modal {
  transform: scale(0.95);
}

.modal-button {
  position: absolute;
  top: 16px;
  right: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
  z-index: 1100;
}
.modal-button img {
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.modal-button:hover,
.modal-button:focus {
  background-color: #f0f0f0;
}

/* Адаптивність */
@media (max-width: 900px) {
  .modal {
    width: 98vw;
    max-width: 98vw;
    height: 90vh;
    min-width: unset;
    padding: 18px 4px 12px 4px;
    border-radius: 18px;
    margin: 12px 0;
  }
  .modal iframe {
    width: 96vw;
    max-width: 96vw;
    height: 96vh;
    min-width: unset;
  }
}

@media (max-width: 600px) {
  .modal {
    width: 100vw;
    max-width: 100vw;
    height: 98vh;
    padding: 8px 2px 8px 2px;
    border-radius: 10px;
    margin: 4px 0;
  }
  .modal iframe {
    width: 98vw;
    max-width: 98vw;
    height: 98vh;
  }
}

/* doctors page */
.page-title {
  text-align: center;
  margin: 8px 0 8px 0;
  font-size: 2.2rem;
  font-weight: 700;
}

.doctors-list {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.doctor-card {
  display: flex;
  gap: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 32px 24px;
  align-items: flex-start;
  transition: box-shadow 0.3s;
}
.doctor-card:hover {
  box-shadow: 0 4px 24px rgba(0,86,179,0.10);
}

.doctor-photo {
  width: 360px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #e9e9e9;
  flex-shrink: 0;
  transition: width 0.3s, height 0.3s;
}

.doctor-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doctor-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #222;
}

.doctor-role {
  font-size: 1.1rem;
  color: var(--color-accent-text);
  margin-bottom: 6px;
}

.doctor-exp {
  font-size: 1rem;
  color: #666;
  margin-bottom: 8px;
}

.doctor-desc {
  font-size: 1rem;
  color: #444;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .doctor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 24px 24px;
  }
  .doctor-photo {
    width: 320px;
    height: 350px;
  }
}

@media (max-width: 600px) {
  .page-title {
    font-size: 1.3rem;
    margin: 20px 0 16px 0;
  }
  .doctors-list {
    gap: 18px;
  }
    .doctor-photo {
    width: 220px;
    height: 250px;
  }
}

.btn-doctors {
  display: block;
  margin: 18px auto 0 auto;
  max-width: 300px;
  text-align: center;
}

@media (max-width: 600px) {
  .btn-doctors {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    margin: 12px auto 0 auto;
    text-align: center;
  }
}