h1,
h2,
h3,
h4,
h5,
figure,
p,
ol,
ul {
	margin: 0;
}

ol[role="list"],
ul[role="list"] {
	list-style: none;
	padding-inline: 0;
}

h1,
h2,
h3,
h4,
h5 {
	font-size: inherit;
	font-weight: inherit;
}

img {
	display: block;
	max-inline-size: 100%;
}

:root{
	--light-color: #F5F5F7;
	--dark-color: #221f20;
	--container-padding-inline: 13%;
	--footer-padding-inline: 10%;
}

html {
	font-family: "Inter", sans-serif;
}

.container {
	padding: 0 var(--container-padding-inline);
}

.promo{
	position: relative;
	min-height: 100vh;
	background: url(../img/tooth.jpg) center center / cover no-repeat;
	padding-top: 75px;
	
}

.promo__title {
	color: var(--light-color , #F5F5F7);
	font-size: 60px;
	font-weight: 400;
	line-height: normal;

}

.promo__subtitle {
	color: var(--light-color , #F5F5F7);
	font-size: 32px;
	font-weight: 100;
	line-height: normal;

}

.btn{
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	min-height: 38px;
	padding: 3px 10px;
	margin-top: 20px;
	width: 160px;
	border: 1px solid var(--light-color , #F5F5F7);
	background: rgba(217, 217, 217, 0);
	color: var(--light-color , #F5F5F7);
	font-size: 16px;
	font-weight: 100;
	line-height: normal;
	cursor: pointer;
}

.promo__address {
	margin-top: 100px;
	color: var(--light-color);
	font-size: 16px;
	font-weight: 100;
	line-height: normal;
	address{
		font-style: normal;
	}
	a{	
		color: inherit;
		text-decoration: none;
	}
}

.keywords {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	padding: 12px 24px;
	width: 100%;
	position: absolute;
	bottom: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent);
	backdrop-filter: blur(6px);
	font-family: 'Inter', sans-serif;
	z-index: 10;
}

.keywords li {
	list-style: none;
}

.keywords li a {
	display: inline-block;
	color: #ffffff;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	padding: 6px 14px;
	border-radius: 6px;
	border: 1px solid transparent;
	transition: all 0.3s ease;
	cursor: pointer;
	background-color: rgba(93, 93, 93, 0.889);
}

.keywords li a:hover,
.keywords li a:focus {
	background-color: rgba(255, 255, 255, 0.9);
	color: #000000;
	border-color: #ffd1ec;
	box-shadow: 0 0 8px rgba(255, 177, 229, 0.3);
}

.about {
	background-color: var(--light-color);
	padding-top: 80px;
}

.about__title {
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 20px;
  text-align: center;
}

.about__text {
	width: 1100px;
	margin-top: 20px;
	color: var(--dark-color);
	font-size: 40px;
	font-weight: 400;
	line-height: normal;
	span {
	color: #a5a5a5;		
	}
}

.services {
	display: flex;
	column-gap: 10px;
	margin-top: 80px;

}

.services__items {
	width: 50%;
	ul {
		margin-top: 20px;
		padding: 0;
	}
	li {
		margin-top: 10px;
		list-style-type: none;
		color: var(--dark-color);
		font-size: 16px;
		font-style: normal;
		font-weight: 400;
		line-height: normal;
	}
}

.services__item-subtitle {
	color: var(--dark-color);
	font-size: 16px;
	font-style: italic;
	font-weight: 400;
	line-height: normal;
}
.services__text {
	width: 50%;
	color: var(--dark-color);
	font-style: 20px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: 0.4px;
}

section {
  padding: 80px 0;
  background-color: var(--light-color);
}

section h2 {
  color: var(--dark-color);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
}

/* Стиль для списків послуг */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.service-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  font-size: 16px;
  color: var(--dark-color);
  transition: transform 0.2s ease;
  gap: 10px;
}

.service-list li:hover {
  transform: scale(1.02);
  background-color: #f9f9f9;
}

.service-list li strong {
  font-weight: 500;
  margin-right: auto;
  color: var(--dark-color);
}

.service-list li span {
  font-weight: 600;
  color: #007fa8;
  margin-left: auto;
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
}

.back-to-menu {
  display: inline-block;
  margin: 40px auto 0;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background-color: #007fa8;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.back-to-menu:hover {
	background-color: #005e7a;
}

section .back-to-menu {
  display: block;
  width: fit-content;
}

.footer {
 background: linear-gradient(to top, #111 0%, #2a2a2a 100%);
  color: #fff;
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 0;
}

.footer__socials {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__socials .social {
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  color: #fff;
}

.social.instagram {
  background-color: #e1306c;
}

.social.instagram:hover {
  background-color: #c42c5f;
}

.social.viber {
  background-color: #7360f2;
}

.social.viber:hover {
  background-color: #5a49c1;
}

.about__text.formatted-list {
  font-size: 16px;
  line-height: 1.8;
  color: var(--dark-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: justify;
  text-justify: inter-word;
  padding: 0 10px;
  max-width: 900px;
  margin: 0 auto;
}

.about__text strong {
  font-weight: 600;
  color: #000;
}

.about__text em {
  font-style: italic;
  color: #555;
}

.about__text .note {
  color: red;
  font-size: 18px;
  vertical-align: super;
}

.info-block {
  padding: 60px 20px;
  background-color: #f9f9f9;
  color: #221f20;
  font-family: 'Inter', sans-serif;
}

.info-block h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 30px;
}

.info-block .clinic {
  margin-bottom: 40px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-block h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.info-block p {
  margin: 6px 0;
  line-height: 1.5;
}

.info-block a {
  color: #007fa8;
  text-decoration: none;
}

.info-block a:hover {
  text-decoration: underline;
}

.promo__address strong {
  display: block;
  margin-bottom: 10px; 
}

@media (max-width: 768px) {
  .promo {
    padding-top: 40px;
    background-position: center top;
  }

  .promo__title {
    font-size: 32px;
    text-align: left;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  }

  .promo__subtitle {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 30px;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  }

  .promo__wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 16px;
	  justify-content: flex-start; 
  	align-items: stretch;        
  }

  .promo__text-block,
  .promo__address-block {
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 12px;
    padding: 16px;
  }

  .promo__address {
    margin-top: 30px;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }

  .promo__address address {
    font-style: normal;
    margin-bottom: 10px;
    display: block;
  }

  .promo__address a {
    display: block;
    color: #ffb6e1;
    text-decoration: none;
    margin-top: 4px;
  }

  .promo__address a:hover {
    text-decoration: underline;
  }

  .btn {
    width: 100%;
    max-width: 240px;
    font-size: 14px;
    margin: 0 auto;
  }

  .about__text {
    width: 100%;
    font-size: 22px;
    padding: 0 20px;
  }

  .services {
    flex-direction: column;
    gap: 40px;
  }

  .services__items,
  .services__text {
    width: 100%;
  }

  .keywords {
    font-size: 10px;
    gap: 10px;
    padding: 8px 20px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .back-to-menu {
    font-size: 12px;
    padding: 6px 16px;
  }

    .about__text.formatted-list {
    font-size: 15px;
    padding: 0 16px;
    text-align: left; 
  }

  .about__title {
    font-size: 18px;
    text-align: center;
  }
}