* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #111111;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  padding-top: 20px;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-logo {
  flex: 0 0 auto;
}

.logo-img {
  width: clamp(140px, 12vw, 220px);
  height: auto;
  display: block;
}

.header-socials {
  display: flex;
  gap: 16px;
  margin-right: 3vw;
}

.header-social img {
  width: clamp(28px, 2.2vw, 36px);
  height: auto;
}

.hero {
  padding-top: 20px;
  font-size: clamp(10px, 0.7vw, 16px);
}

.hero-grid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 80px 140px;
  display: grid;
  grid-template-columns: 60% 3% 15% 3% 15%;
  grid-template-rows: auto auto auto;
  align-items: start;
}

.hero-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  position: relative;
}

.img-main {
  width: 100%;
  display: block;
}

.title-img {
  position: absolute;
  left: 57.5%;
  top: 54%;
  transform: translateY(-10%);
  width: 80%;
  max-width: none;
  pointer-events: none;
}

.hero-mid {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  align-self: end;
}

.hero-right-img {
  grid-column: 5 / 6;
  grid-row: 1 / 2;
  align-self: start;
}

.img-side {
  width: 100%;
  display: block;
}

.hero-info {
  grid-column: 3 / 6;
  grid-row: 2 / 3;
  margin-top: 13vw;
  font-size: 1.5em;
  line-height: 1.5;
  max-width: 26vw;
}

.hero-btn {
  margin-top: 1.2em;
  padding: 0.8em 8em;
  border-radius: 2em;
  border: 0.07em solid #000;
  background: #fff;
  cursor: pointer;
  letter-spacing: 0.1em;
  font-size: 1em;
}

.about {
  padding: 24px 0 80px;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 40px;
  align-items: stretch;
}

.about-image-wrapper {
  display: flex;
}

.about-image {
  width: 100%;
  border-radius: 4px;
}

.about-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-text {
  font-size: 18px;
  line-height: 1.7;
}

.about-text p + p {
  margin-top: 16px;
}

.about-link-wrapper {
  margin-top: 20px;
}

.about-link {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.about-link::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.requests-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.requests-bg {
  width: 100%;
  height: auto;
  display: block;
}

.requests-content {
  position: absolute;
  inset: 8% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.requests-title {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  white-space: nowrap;
  font-size: clamp(26px, 3vw, 48px);
  margin-bottom: 2.2vw;
}

.requests-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 900px;
  font-size: clamp(11px, 1.05vw, 17px);
  line-height: 1.1;
}

.requests-list li {
  margin-bottom: 0.8em;
}

.requests-list li::after {
  content: "•";
  display: block;
  margin-top: 0.45em;
  font-size: 1.2em;
}

.requests-list li:last-child::after {
  content: "";
}

@media (max-width: 1200px) {
  .requests-content {
    inset: 7% 9%;
  }
  .requests-title {
    font-size: clamp(22px, 2.6vw, 40px);
    margin-bottom: 2vw;
  }
  .requests-list {
    font-size: clamp(10px, 0.95vw, 15px);
  }
}

@media (max-width: 900px) {
  .requests-content {
    inset: 6% 8%;
  }
  .requests-title {
    font-size: clamp(20px, 2.2vw, 34px);
  }
  .requests-list {
    font-size: clamp(9px, 0.85vw, 14px);
  }
}

.services {
  padding: 50px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-image {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.service-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  font-size: 14px;
  color: #fff;
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 24px 28px;
}

.service-overlay-inner {
  max-height: 100%;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.6;
}

.service-overlay-inner h3 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  margin-bottom: 12px;
}

.service-overlay-inner p + p {
  margin-top: 8px;
}

.service-card:hover .service-image {
  filter: brightness(0.35);
}

.service-card:hover .service-overlay {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-overlay {
    padding: 18px 16px 20px;
  }

  .service-overlay-inner {
    font-size: 13px;
  }
}

.faq {
  padding: 80px 0 96px;
}

.faq-inner {
  max-width: 900px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 32px;
}

.faq-title-img {
  display: inline-block;
}

.faq-list {
  border-top: 1px solid #e0e0e0;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 14px 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "▾";
  font-size: 25px;
  margin-left: 8px;
}

.faq-item[open] summary::after {
  content: "▴";
}

.faq-content {
  margin-top: 8px;
  font-size: 20px;
  color: #444444;
}

.footer-bg {
  width: 100%;
  height: 100%;
  background-color: #000;
}

.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.contact-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(10px);
  z-index: 41;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.contact-modal-inner {
  background: #111;
  color: #fff;
  padding: 32px 32px 28px;
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  position: relative;
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.contact-modal-text {
  font-size: 14px;
  margin-bottom: 18px;
  color: #dddddd;
}

.contact-modal-row {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.contact-modal-link {
  flex: 1 1 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.contact-modal-link img {
  width: 18px;
  height: 18px;
}

.contact-modal-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .contact-modal-inner {
    margin: 0 16px;
    padding: 24px 20px 22px;
  }

  .contact-modal-row {
    flex-direction: column;
  }
}

/* скрываем мобильный блок на десктопе */
.hero-mobile {
  display: none;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* MOBILE VERSION */
@media (max-width: 768px) {

  .hero-grid {
    display: none;
  }

  .hero-mobile {
    display: block;
    padding: 16px 0 40px;
  }

  .hero-mobile-photos {
    display: flex;
    flex-direction: row;
    gap: 2%;
    padding: 0 2%;
    width: 100%;
    align-items: stretch;
  }

  .hero-mobile-left {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hero-mobile-right {
    width: 73%;
    aspect-ratio: 3 / 4;
  }

  .hero-mobile-left .img-side {
    flex: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .hero-mobile-right .img-main {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .title-img-mobile {
    display: block;
    width: 80%;
    margin: 16px auto 0;
  }

  .hero-info-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 2% 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
  }

  .hero-info-mobile p {
    margin: 0;
  }

  .hero-btn-mobile {
    width: 100%;
    margin-top: 4px;
    padding: 0.9em 1em;
    border-radius: 2em;
    border: 1px solid #000;
    background: #fff;
    letter-spacing: 0.08em;
    font-size: 1em;
    cursor: pointer;
  }
}


@media (max-width: 768px) {
  .about-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 2%;
  }

  .about-img {
    width: 100%;
    height: auto;
  }

  .about-text-wrap {
    width: 100%;
  }

  .about-text {
    text-align: center;
    width: 100%;
    font-size: 16px;
    line-height: 1.45;
  }

  .about-link {
    text-align: center;
    display: block;
    width: 100%;
    font-size: 18px;
  }
}

/* скрываем мобильный requests по умолчанию */
.requests-mobile {
  display: none;
}

@media (max-width: 768px) {

  /* скрываем старый десктопный блок */
  .requests {
    display: none;
  }

  /* включаем мобильный */
  .requests-mobile {
    display: block;
    width: 100%;
  }

  .requests-mobile-inner {
    background-image: url("problems_bg_mobile.png");
    background-size: cover;
    background-position: center top;
    width: 100%;
    aspect-ratio: 750 / 916;  /* Сохраняет пропорции без костылей */
    padding: 12% 8% 12%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .requests-mobile-title {
    font-size: 7vw;
    line-height: 1.1;
    margin-bottom: 6vw;
    max-width: 85%;
  }

  .requests-mobile-list {
    font-size: 4.2vw;
    line-height: 1.45;
    max-width: 85%;
  }

  .requests-mobile-list li {
    margin-bottom: 3vw;
  }
}

@media (max-width: 768px) {

  .requests-mobile-title,
  .requests-mobile-list,
  .requests-mobile-list li {
    color: #ffffff;
  }

}