:root {
  --cream: #fffae9;
  --accent: #14a989;
  --text: #353535;
  --contacts-bg: #d5d2d2;
  --black: #000000;
  --white: #ffffff;
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--black);
}

.site-nav {
  width: min(100%, var(--content-width));
  min-height: 64px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  opacity: 0.72;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.section {
  min-height: 550px;
  padding: 72px 56px;
  background: var(--cream);
}

.section--compact {
  min-height: 430px;
}

.container {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 34px;
  color: var(--accent);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 0.96;
}

h2 {
  margin-bottom: 28px;
  color: var(--accent);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
}

.hero {
  min-height: 620px;
}

.hero__quote {
  margin-bottom: 42px;
  color: var(--black);
  font-size: clamp(16px, 1.8vw, 20px);
  font-style: italic;
  text-align: center;
}

.hero__quote span {
  display: block;
}

.hero__content {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.hero__image {
  width: 340px;
  height: auto;
  object-fit: contain;
}

.hero__subtitle {
  margin: 0;
  color: rgba(53, 53, 53, 0.74);
  font-size: clamp(22px, 2.5vw, 24px);
  font-weight: 600;
  line-height: 1.25;
}

.text-section {
  max-width: 980px;
}

.text-section p {
  margin-bottom: 22px;
  font-size: 20px;
  line-height: 1.38;
}

.text-section--large p {
  font-size: clamp(22px, 3vw, 28px);
}

.accent-lines {
  display: flex;
  gap: 18px;
  margin-bottom: 34px;
}

.accent-lines span {
  width: 102px;
  height: 5px;
  background: var(--accent);
}

.requests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-top: 44px;
}

.request-list {
  margin: 0;
  padding-left: 26px;
  color: var(--black);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.request-list li {
  margin-bottom: 18px;
}

.price-section {
  text-align: left;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
}

.price-card {
  text-align: center;
}

.price-card h3 {
  margin-bottom: 18px;
  color: var(--black);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.1;
}

.price-card p {
  min-height: 54px;
  margin-bottom: 18px;
  font-size: 20px;
  line-height: 1.35;
}

.price-card strong {
  color: var(--black);
  font-size: clamp(38px, 5vw, 50px);
  font-weight: 800;
}

.price-cta {
  max-width: 780px;
  margin: 30px auto 0;
  font-size: 20px;
  text-align: center;
}

.contacts {
  padding: 56px 24px 48px;
  background: var(--contacts-bg);
  text-align: center;
}

.contacts h2 {
  margin-bottom: 18px;
}

.contacts__phone {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--black);
  font-size: 26px;
  font-weight: 800;
  text-decoration: underline;
}

.contacts__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 26px;
}

.contacts__links a {
  color: var(--black);
  font-size: 22px;
  font-weight: 800;
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-links a {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  opacity: 0.78;
}

.proof {
  min-height: 820px;
}

.proof h2 {
  text-align: center;
}

.gallery {
  position: relative;
  margin-top: 38px;
}

.gallery__viewport {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 calc((100% - min(100%, 760px)) / 2) 18px;
  scroll-padding-inline: calc((100% - min(100%, 760px)) / 2);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery__slide {
  flex: 0 0 min(100%, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  scroll-snap-align: center;
}

.gallery__slide img {
  max-height: 600px;
  width: auto;
  max-width: 100%;
  cursor: zoom-in;
  object-fit: contain;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 24px;
  background: rgba(0, 0, 0, 0.9);
}

.image-modal[hidden] {
  display: none;
}

.image-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-nav {
    min-height: 58px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 58px;
    right: 12px;
    display: none;
    width: min(260px, calc(100vw - 24px));
    padding: 14px;
    flex-direction: column;
    gap: 8px;
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 10px 12px;
  }

  .section {
    min-height: 460px;
    padding: 46px 22px;
  }

  .hero {
    min-height: 660px;
  }

  .hero__quote {
    margin-bottom: 28px;
    font-size: clamp(11px, 3.2vw, 14px);
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero__image {
    width: min(220px, 78vw);
  }

  .hero__text {
    text-align: center;
  }

  h1 {
    margin-bottom: 24px;
    font-size: clamp(30px, 9.5vw, 38px);
  }

  h2 {
    font-size: clamp(32px, 9vw, 38px);
  }

  .hero__subtitle {
    font-size: 17px;
  }

  .text-section p {
    font-size: 16px;
  }

  .text-section--large p {
    font-size: 20px;
  }

  .accent-lines span {
    width: 54px;
    height: 3px;
  }

  .requests-grid,
  .price-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .request-list {
    font-size: 18px;
  }

  .price-card p {
    min-height: 0;
  }

  .contacts {
    padding: 46px 20px;
  }

  .contacts__phone {
    font-size: 24px;
  }

  .contacts__links a {
    font-size: 20px;
  }

  .proof {
    min-height: 620px;
  }

  .gallery {
    margin-inline: -22px;
  }

  .gallery__viewport {
    gap: 18px;
    padding-inline: 22px;
    scroll-padding-inline: 22px;
  }

  .gallery__slide {
    flex-basis: calc(100vw - 44px);
  }

  .gallery__slide img {
    max-height: 420px;
  }
}

@media (max-width: 420px) {
  .section {
    padding-inline: 18px;
  }

  .hero__image {
    width: min(190px, 74vw);
  }

  .request-list {
    padding-left: 22px;
    font-size: 17px;
  }

  .gallery__slide img {
    max-height: 360px;
  }
}
