@font-face {
  font-family: "Monsieur La Doulaise";
  src: url("assets/monsieur-la-doulaise-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --canvas-width: 1440px;
  --screen-height: 1024px;
  --content-width: 1216px;
  --black: #000000;
  --white: #ffffff;
  --muted: #b2b2b2;
  --pill: #6a5f5f;
  --field: #221f1f;
  --sans: "Myriad Pro", "Helvetica Neue", Arial, sans-serif;
  --section-script: "Monsieur La Doulaise", cursive;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

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

.site {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--black);
}

.intro,
.services,
.order {
  position: relative;
  width: 100%;
  height: var(--screen-height);
  overflow: hidden;
}

.intro {
  background: linear-gradient(180deg, #b5a9a9 0%, var(--black) 73.642%);
}

.site-header {
  position: relative;
  z-index: 3;
  height: 195px;
  background: var(--black);
}

.site-header__brand {
  position: absolute;
  top: 48px;
  left: max(32px, calc((100% - 1186px) / 2));
  width: 188px;
  height: 104px;
}

.site-header__brand img,
.hero__brand {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  position: absolute;
  top: 89px;
  right: max(32px, calc((100% - 1184px) / 2));
  display: flex;
  align-items: center;
  gap: 118px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav a {
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.contacts a:hover,
.contacts a:focus-visible {
  opacity: 0.68;
}

.site-nav a:focus-visible,
.contacts a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 7px;
}

.hero {
  position: relative;
  z-index: 1;
  height: 245px;
  overflow: hidden;
}

.hero__picture {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.47;
}

.hero__picture img {
  position: absolute;
  top: -235.05%;
  left: 0.02%;
  width: 100%;
  height: 470.2%;
  max-width: none;
  object-fit: fill;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.44), rgba(181, 169, 169, 0.44) 71.436%);
}

.hero__copy {
  position: absolute;
  z-index: 1;
  top: 59px;
  left: max(32px, calc((100% - 1184px) / 2));
}

.hero__copy h1,
.hero__copy p {
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
}

.hero__copy h1 {
  margin-bottom: 47px;
  letter-spacing: 6px;
}

.hero__brand {
  position: absolute;
  z-index: 1;
  top: 2px;
  right: max(55px, calc((100% - 1216px) / 2));
  width: 437px;
  height: 243px;
}

.projects {
  position: relative;
  min-height: 584px;
  padding-top: 34px;
}

.projects h2,
.services__header h2,
.order__content h2,
.contacts h2 {
  font-size: 64px;
  font-weight: 400;
  line-height: normal;
}

.projects h2,
.services__header h2,
.contacts h2 {
  font-family: var(--section-script);
}

.order__content h2 {
  font-family: var(--sans);
}

.projects h2 {
  height: 75px;
  text-align: center;
}

.projects-carousel {
  position: relative;
  width: min(var(--content-width), calc(100% - 128px));
  margin: 34px auto 0;
}

.projects-carousel:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 8px;
}

.projects-carousel__viewport {
  position: relative;
  overflow: hidden;
}

.projects__gallery {
  display: flex;
  width: 100%;
  gap: 24px;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y;
  will-change: transform;
}

.project-card {
  flex: 0 0 calc((100% - 48px) / 3);
  height: 332px;
  overflow: hidden;
  background: #111111;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projects-carousel__button {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.projects-carousel__button--prev {
  left: 14px;
}

.projects-carousel__button--next {
  right: 14px;
}

.projects-carousel__button:hover,
.projects-carousel__button:focus-visible {
  background: rgba(106, 95, 95, 0.9);
  border-color: var(--white);
}

.projects-carousel__button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.projects-carousel__dots {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
}

.projects-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.34);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.projects-carousel__dot[aria-current="true"] {
  background: var(--white);
  transform: scale(1.35);
}

.projects-carousel__dot:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 4px;
}

.services,
.order {
  background: var(--black);
}

.services__background,
.order__background {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1131px;
  overflow: hidden;
  pointer-events: none;
}

.services__background {
  top: 0;
}

.order__background {
  top: -246px;
}

.services__background img,
.order__background img {
  width: 100%;
  height: 169.81%;
  max-width: none;
  opacity: 0.28;
}

.services__veil,
.order__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.services__veil {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(181, 169, 169, 0.55));
}

.order__veil {
  height: 860px;
  background: linear-gradient(180deg, rgba(181, 169, 169, 0.55), rgba(0, 0, 0, 0.55));
}

.services__header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}

.services__header h2 {
  height: 75px;
}

.services__header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.12;
}

.services__header strong {
  font-weight: 400;
}

.service-groups {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.service-group {
  position: absolute;
  left: 108px;
  width: calc(100% - 216px);
  font-size: 24px;
}

.service-group--finished {
  top: 177px;
}

.service-group--planned {
  top: 368px;
}

.service-group--extra {
  top: 564px;
}

.service-group h3 {
  display: flex;
  width: max-content;
  height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  color: var(--muted);
  background: var(--pill);
  border-radius: 50px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.12;
}

.service-group--finished h3 {
  min-width: 321px;
}

.service-group--planned h3 {
  min-width: 427px;
}

.service-group--extra h3 {
  min-width: 282px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(330px, max-content) minmax(0, 1fr) minmax(245px, max-content);
  align-items: start;
  min-height: 41px;
  color: var(--muted);
  line-height: 1.12;
}

.service-group h3 + .service-row {
  margin-top: 24px;
}

.service-group--planned h3 + .service-row {
  margin-top: 29px;
}

.service-row h4,
.service-row p {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.12;
}

.service-row > * {
  min-width: 0;
}

.service-row h4 {
  position: relative;
  padding-right: 16px;
  padding-left: 26px;
  color: var(--white);
  white-space: nowrap;
}

.service-row h4::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 8px;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  transform: translateY(-50%);
}

.service-row > p:not(.service-row__price) {
  padding: 0 16px;
  text-align: center;
  white-space: normal;
}

.service-row__price {
  color: var(--white);
  text-align: center;
  white-space: nowrap;
}

.service-row__desktop-line {
  display: block;
}

.service-group__note {
  margin: 1px 245px 0 330px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.12;
  text-align: center;
  white-space: nowrap;
}

.services__gallery {
  position: absolute;
  z-index: 2;
  top: 797px;
  left: 109px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 1249px;
  height: 250px;
  overflow: hidden;
}

.services__gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  opacity: 0.8;
}

.order__watermark {
  position: absolute;
  z-index: 2;
  top: 238px;
  left: 69px;
  width: 1302px;
  height: 724px;
  max-width: none;
  object-fit: cover;
  opacity: 0.6;
  pointer-events: none;
}

.order__content {
  position: absolute;
  z-index: 3;
  top: 32px;
  left: 50%;
  width: 732px;
  text-align: center;
  transform: translateX(-50%);
}

.order__content h2 {
  height: 75px;
}

.order-form {
  display: grid;
  gap: 6px;
  margin-top: 34px;
}

.order-form label,
.order-form input,
.order-form select {
  display: block;
  width: 100%;
}

.order-form input,
.order-form select {
  height: 56px;
  padding: 0 21px;
  color: var(--muted);
  background: var(--field);
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  font-size: 24px;
  line-height: 1.12;
}

.order-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.order-form select {
  appearance: none;
  padding-right: 54px;
  background-image: url("assets/select-arrow.svg");
  background-repeat: no-repeat;
  background-position: right 17px center;
  background-size: 16px 13px;
}

.order-form input:focus-visible,
.order-form select:focus-visible,
.order-form__submit:focus-visible {
  border-color: rgba(255, 255, 255, 0.75);
}

.order-form__submit {
  width: min(100%, 280px);
  height: 50px;
  margin: 12px auto 0;
  color: var(--white);
  background: var(--pill);
  border: 1px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  font-size: 21px;
  transition: opacity 180ms ease, background-color 180ms ease;
}

.order-form__submit:hover {
  background: #786c6c;
}

.order-form__submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.order-form__status {
  min-height: 23px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.25;
  text-align: center;
}

.order-form__status[data-state="success"] {
  color: var(--white);
}

.order-form__status[data-state="error"] {
  color: #f3c1c1;
}

.contacts {
  position: absolute;
  z-index: 3;
  top: 806px;
  left: 69px;
  width: 1302px;
}

.contacts h2 {
  height: 75px;
}

.contacts address {
  display: grid;
  grid-template-columns: 382px 629px 291px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 24px;
  font-style: normal;
  line-height: 1.12;
  text-align: center;
}

.contacts a {
  transition: opacity 180ms ease;
}

@media (min-width: 1281px) {
  .service-group {
    left: 50%;
    width: 1224px;
    transform: translateX(-50%);
  }

  .services__gallery {
    left: 50%;
    transform: translateX(-50%);
  }

  .order__watermark {
    left: 50%;
    transform: translateX(-50%);
  }

  .contacts {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1280px) and (min-width: 901px) {
  .site-nav {
    gap: clamp(46px, 8vw, 104px);
  }

  .hero__brand {
    right: 2.5vw;
  }

  .projects__gallery {
    gap: 18px;
  }

  .project-card {
    flex-basis: calc((100% - 36px) / 3);
  }

  .service-group {
    left: 4vw;
    width: 92vw;
  }

  .service-row h4,
  .service-row p,
  .service-group h3,
  .services__header p {
    font-size: clamp(18px, 1.75vw, 22px);
  }

  .service-group__note {
    margin-right: 22%;
    margin-left: 29%;
    font-size: 14px;
    white-space: normal;
  }

  .services__gallery {
    left: 4vw;
    width: 92vw;
  }

  .order__watermark {
    left: 4.8vw;
    width: 90.4vw;
  }

  .contacts {
    left: 4.8vw;
    width: 90.4vw;
  }

  .contacts address {
    grid-template-columns: repeat(3, 1fr);
    font-size: clamp(17px, 1.8vw, 22px);
  }
}

@media (max-width: 900px) {
  .site {
    overflow: visible;
  }

  .intro,
  .services,
  .order {
    height: auto;
    overflow: hidden;
  }

  .intro {
    background: linear-gradient(180deg, #605a5a 0%, var(--black) 58%);
  }

  .site-header {
    height: 160px;
  }

  .site-header__brand {
    top: 14px;
    left: 50%;
    width: 150px;
    height: 83px;
    transform: translateX(-50%);
  }

  .site-nav {
    top: auto;
    right: 20px;
    bottom: 25px;
    left: 20px;
    justify-content: space-between;
    gap: 18px;
    font-size: clamp(14px, 3.6vw, 18px);
  }

  .hero {
    display: flex;
    min-height: 410px;
    height: auto;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 24px 38px;
  }

  .hero__picture {
    opacity: 0.42;
  }

  .hero__picture img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 51% 61%;
  }

  .hero__veil {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  }

  .hero__brand {
    top: 4px;
    right: 50%;
    width: min(390px, 92vw);
    height: auto;
    aspect-ratio: 437 / 243;
    transform: translateX(50%);
  }

  .hero__copy {
    position: relative;
    top: auto;
    left: auto;
  }

  .hero__copy h1,
  .hero__copy p {
    font-size: clamp(17px, 4.3vw, 22px);
  }

  .hero__copy h1 {
    margin-bottom: 28px;
    letter-spacing: 0;
  }

  .hero__copy p br {
    display: none;
  }

  .projects {
    min-height: 0;
    padding: 24px 16px 64px;
  }

  .projects h2,
  .services__header h2,
  .contacts h2 {
    height: auto;
    font-family: var(--section-script);
    font-size: clamp(52px, 16vw, 70px);
  }

  .order__content h2 {
    height: auto;
    font-family: var(--sans);
    font-size: clamp(42px, 12vw, 64px);
  }

  .projects-carousel {
    width: min(100%, 591px);
    margin: 24px auto 0;
  }

  .projects__gallery {
    gap: 16px;
  }

  .project-card {
    flex-basis: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .project-card img {
    object-fit: contain;
  }

  .projects-carousel__button {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.68);
  }

  .projects-carousel__button--prev {
    left: 10px;
  }

  .projects-carousel__button--next {
    right: 10px;
  }

  .services {
    padding: 38px 20px 0;
  }

  .services__background,
  .order__background {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .services__background img,
  .order__background img {
    width: 100%;
    height: 169.81%;
    object-fit: cover;
    object-position: center top;
  }

  .services__header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .services__header p {
    margin-top: 8px;
    font-size: clamp(17px, 4.5vw, 22px);
    white-space: normal;
  }

  .service-groups {
    position: relative;
    inset: auto;
    display: grid;
    gap: 38px;
    margin-top: 48px;
  }

  .service-group {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    font-size: 18px;
  }

  .service-group h3 {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    padding: 9px 16px;
    font-size: clamp(16px, 4.2vw, 20px);
    text-align: center;
  }

  .service-row,
  .service-group h3 + .service-row,
  .service-group--planned h3 + .service-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    margin-top: 23px;
    padding-left: 4px;
  }

  .service-row + .service-row {
    margin-top: 25px;
  }

  .service-row h4,
  .service-row p {
    font-size: clamp(16px, 4.3vw, 20px);
    white-space: normal;
  }

  .service-row > p:not(.service-row__price),
  .service-row__price {
    padding-left: 26px;
    text-align: left;
    white-space: normal;
  }

  .service-row__desktop-line {
    display: inline;
  }

  .service-group__note {
    margin: 25px 0 0 30px;
    font-size: 13px;
    text-align: left;
    white-space: normal;
  }

  .services__gallery {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: calc(100% + 40px);
    height: auto;
    margin: 46px -20px 0;
  }

  .services__gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .services__gallery img:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
  }

  .order {
    min-height: 890px;
    padding: 36px 20px 42px;
  }

  .order__veil {
    height: 100%;
  }

  .order__content {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 732px);
    margin: 0 auto;
    transform: none;
  }

  .order-form {
    gap: 8px;
    margin-top: 24px;
  }

  .order-form input,
  .order-form select {
    height: 54px;
    padding-left: 16px;
    font-size: clamp(17px, 4.4vw, 21px);
  }

  .order-form__submit {
    width: min(100%, 300px);
    font-size: 19px;
  }

  .order__watermark {
    top: 410px;
    left: 50%;
    width: min(112%, 620px);
    height: auto;
    aspect-ratio: 1063 / 591;
    transform: translateX(-50%);
  }

  .contacts {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-top: 390px;
  }

  .contacts address {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
    font-size: clamp(16px, 4.2vw, 20px);
    text-align: left;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 410px;
  }

  .services {
    padding-right: 16px;
    padding-left: 16px;
  }

  .services__gallery {
    width: calc(100% + 32px);
    margin-right: -16px;
    margin-left: -16px;
  }

  .order {
    min-height: 820px;
  }

  .order__watermark {
    top: 420px;
    width: 125%;
  }

  .contacts {
    margin-top: 350px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-nav a,
  .contacts a,
  .projects__gallery,
  .projects-carousel__button,
  .projects-carousel__dot {
    transition: none;
  }
}
