/* Шапка */
header {
  display: flex;
  justify-content: stretch;
  align-items: center;
  padding: 10px 0px;
  gap: 330px; /* add gap between logo and nav */
}

.logo-img img {
  width: 100%;
  height: auto;
  border-radius: 38% 62% 52% 48% / 40% 72% 28% 60%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-img:hover img {
  cursor: pointer;
  transform: scale(1.05);
  transition: transform 0.5s;
}

header nav {
  display: flex;
  gap: 30px;
}

header nav a {
  text-decoration: solid;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #2d2d2d;
  font-weight: 700;
  vertical-align: middle;
}

/* Главный блок */
.hero {
  padding: 40px 0;
  border-radius: 50px;
  margin-bottom: 30px;
  margin-top: 40px;
  background-color: #f7df9e;
  border-radius: 38% 62% 52% 48% / 40% 70% 28% 60%;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 70px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 350px;
  overflow: hidden;
  outline: none;
  border-radius: 19% 81% 57% 43% / 90% 63% 37% 10%;
  position: absolute;
  grid-column: 1/3;
  right: 0;
  top: 58%;
  transform: translateY(-35%);
  background-size: cover;
}

.hero-text h2 {
  font-family: "Aleo", serif;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.hero-text {
  font-family: "Aleo", serif;
  font-size: 18px;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 12px;
  color: #222;
  text-align: left;
}

.hero-text span {
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
  color: #222;
  line-height: 1.5;
}

.hero-cta-round {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 20px 0;
}
.hero-cta-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 50px;
  background: #72876a;
  color: #000000;
  font-size: 1.1rem;
  font-family: "Aleo", serif;
  font-weight: 700;
  border-radius: 30% 55% 30% / 30% 55% 30%;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, transform 0.2s;
  border: none;
  margin-top: 30px;
}

.hero-cta-link:hover {
  transform: scale(1.05);
  transition: transform 0.5s;
}

.hero-cta-link span {
  pointer-events: none;
}

.hero-author {
  margin-top: 19px;
  font-weight: 600;
  padding: 6px 12px;
}

.hero-anketa-cta {
  margin-left: -220px;
}
/* Карточки */
.services {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 27px;

  padding: 50px 20px;
}

.card {
  background-color: #f7df9e;
  border-radius: 15px;
  padding: 28px;
  width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* распределяет верх-низ */
  min-height: 520px;
}

.card h3 {
  font-family: serif, "Aleo";
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2d2d2d;
  text-align: center; /* чтобы был ровно под картинкой */
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card-list {
  list-style-type: none;
}

.button-service {
  margin-top: 2rem;
  cursor: pointer;
  width: 120px;
  height: 40px;
  background: #72876a;
  color: #000000;
  font-size: 1.1rem;
  font-family: "Aleo", serif;
  font-weight: 700;
  border-radius: 30% 55% 30% / 30% 55% 30%;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.card button:hover {
  transform: scale(1.08);
}
.button-service a {
  color: #000000;
  text-decoration: none;
}
.note {
  font-size: 1rem;
  color: #2d2d2d;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 500;
}

.note-grid-1 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 32px;
}

.note-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}

.note-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.note-imgs img {
  width: 100%;

  border-radius: 30% 55% 30% / 30% 55% 30%;
  object-fit: cover;
}
.note-imgs img:first-child {
  grid-column: 1 / span 1;
  grid-row: 1 / span 2;
  max-width: 80%;
  display: block;
}
.note-imgs img:last-child {
  grid-column: 1 / span 2;
  grid-row: 2 / span 1;
  max-width: 70%;
  margin: 40px 0 0 0; /* adds space above the last image */
}

.note-text p {
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.note-tip {
  background: #72876a;
  color: #fff;
  border-radius: 12px;
  padding: 18px;
  margin-top: 12px;
  font-size: 1.1rem;
}
.note3-grid {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 20px;
  align-items: start;
}

.note3-grid .content-wrapper {
  grid-column: 1;
}
.note3-grid li {
  list-style: none;
}
.note3-grid .about-item {
  grid-column: 2;

  width: 100px;
}

.note3-grid h2 {
  margin: 0 0 20px 0;
}
.notes-btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  margin: 32px 0 0 0;
}

/* Сервисы */

.service-list {
  font-size: 1rem;
  font-weight: 400;
  margin-top: 12px;
  color: rgb(38, 38, 38);
  padding: 0px 40px;
  list-style-type: none;
}

ul.no-bullets li::before {
  content: "\2713\0020";
  color: green;
  font-weight: bold;
}

.service-price {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 20px;
  color: #343434;
  text-align: center;
}

.service-description {
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 12px;
  color: black;
  padding: 0px 40px;
}

.hero--service::before {
  content: "";
  display: block;
  width: 50%;
  height: 40%;
  background-color: #72876a;
  opacity: 0.3;
  border-radius: 38% 62% 52% 48% / 40% 70% 28% 60%;
  position: absolute;
  top: 60%;
  z-index: -1;
}
/* Блок "Сертификаты" */
.certificates {
  width: 100%;
  margin: 100px auto;
  padding: 5px;
  border-radius: 8px;
}
/* .certificates-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
} */

.splide__slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  position: relative;
}
.splide {
  max-width: 900px;
  margin: 0 auto;
}
.splide__arrow {
  background: #72876a;
  border: none;
  border-radius: 60%;
  height: 32px;
  width: 32px;
  cursor: pointer;
  color: #000000;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.splide__arrow:hover {
  background: #bac2b7;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(7, 2fr);
  gap: 40px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.certificates-item img {
  width: 200%;
  max-width: 480px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Пресс-блок */

.press-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.press-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.press-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 60%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.press-item img {
  width: 60px;
  height: 60px;
  object-fit: fill;
}

.press-text {
  background: #f7df9e;
  border-radius: 20px;
  padding: 24px 28px;
  font-size: 1.1rem;
  color: #222;
  line-height: 1.6;
  flex: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.press-author {
  margin-top: 16px;
  font-weight: 600;
  color: #a55c42;
  font-size: 1rem;
  align-self: flex-end;
}

/* Контактная форма */
.contact {
  background: #f7df9e;
  border-radius: 38% 62% 52% 48% / 40% 70% 28% 60%;
  max-width: auto;
  margin: 48px auto 32px auto;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 27px;
  align-items: center, right;
  max-width: 1200px;
}

.hero---1 {
  padding: 0px 150px;
  margin-bottom: 100px;
  margin-top: 55px;
}

.hero-image2 img {
  width: 100%;
  max-width: 270px;
  border-radius: 30% 55% 30% / 30% 55% 30%;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  display: block;
  grid-column: 2 / 3; /* чтобы картинка была справа */
  justify-self: center; /* центрирует картинку в своей ячейке */
}

.contact-telegram {
  margin-top: 20px;
  display: inline-block;
  vertical-align: middle;
  gap: 10px;
  margin-left: 20px;
}

.contact-telegram img {
  width: 46px;
  height: 46px;
  background: #c4bea3;
  border-radius: 60%;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-telegram:hover img {
  cursor: pointer;
  transform: scale(1.05);
  transition: transform 0.5s;
}
/* Блок "О нас" */
.about {
  border-radius: 35px;
  padding: 9, 6rem 0;
  margin-top: 30px;
  margin-bottom: 30px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 30px;
}

.about-content {
  padding: 5px 0px;
}

.about-item {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: left;

  position: relative;
}
.about-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-atributes {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.about-item-img {
  max-width: 100%;
  height: 400px;
  margin-bottom: 2rem;
  border-radius: 30% 55% 30% / 30% 55% 30%;
  display: flex;
  align-self: center;
}

.about-cta {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100%;
}

/* Анкета */

.yandex-form {
  width: 100%;
  height: 800px;
  padding: 10px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.anketa {
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Подвал */
footer {
  text-align: center;
  /* padding: 0px; */
}

.main-footer {
  /* padding: 10px 0 0 0; */
  color: #000000;
  font-family: "Aleo", serif;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  /* margin: 0 auto; */
  gap: 50px;
}

.footer-logo img {
  height: 200px;
  border-radius: 30% 55% 30% / 30% 55% 30%;
  vertical-align: left;
  object-fit: cover;
}

.footer-section h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #000000;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #000000;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #f7df9e;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  color: #181715;
  font-size: 1.2rem;
}
