* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  color: #f5f1eb;
  background: #e5e5e5;
}

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

.container {
  width: calc(100% - 192px);
  max-width: 1248px;
  margin: 0 auto;
}
main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.hero {
  min-height: 680px;

  background:
    linear-gradient(
      rgba(31, 31, 29, 0.42),
      rgba(31, 31, 29, 0.42)
    ),
    url("images/hero.jpg");

  background-size: cover;
  background-position: center;
}

.header {
  height: 96px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-top: 18px;
}

.logo {
  font-size: 26px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link {
  position: relative;

  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  color: #ffffff;
}

.nav__link--active::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;

  height: 1px;
 background: #a58a6a;
}

/* HOVER — МЕНЮ */

.nav__link {
  transition: color 0.3s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;

  height: 1px;
  background: #a58a6a;

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav__link--active::after {
  transform: scaleX(1);
}

@media (hover: hover) {
  .nav__link:hover {
    color: #d8c4aa;
  }

  .nav__link:hover::after {
    transform: scaleX(1);
  }
}
.hero__content {
  padding-top: 55px;
  max-width: 760px;
}

.hero__label {
  margin-bottom: 18px;

  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;

  color: #d8c4aa;
}

.hero__title {
  margin-bottom: 20px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 68px;
  line-height: 1.02;
  font-weight: 400;
  
}

.hero__title span {
  display: block;
  white-space: nowrap;
}

.hero__text {
  max-width: 550px;
  margin-bottom: 28px;

  font-size: 18px;
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  gap: 12px;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

 min-width: 220px;
 height: 56px;
 padding: 0 28px;

  background: #a58a6a;
  border: 1px solid #a58a6a;

  font-size: 15px;
  font-weight: 500;

  transition: 0.3s;
}

.hero__button--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
}

/* HOVER — КНОПКИ HERO */

@media (hover: hover) {

  .hero__button:hover {
    background: #b49a7a;
    border-color: #b49a7a;
    transform: translateY(-3px);
  }

  .hero__button--outline:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: #ffffff;
    transform: translateY(-3px);
  }
}

.advantages {
  min-height: 300px;
  background: #e9e0d4;
  color: #292722;

  display: flex;
  align-items: center;
  justify-content: center;
}

.advantages__item {
  width: 33.333%;
  min-height: 300px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 32px 40px;

  position: relative;
}

.advantages__item:not(:last-child)::after {
  content: "";
  position: absolute;

  right: 0;
  top: 60px;

  width: 1px;
  height: 180px;

  background: rgba(41, 39, 34, 0.25);
}

.advantages__icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;

  object-fit: contain;
}

.advantages__title {
  margin-bottom: 12px;

  font-size: 18px;
  font-weight: 600;
}

.advantages__text {
  max-width: 310px;

  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

.services {
  padding: 88px 0 0;
  background: #f5f1eb;
  color: #1f1f1d;
}

.services__label {
  margin-bottom: 18px;

  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;

  color: #a58a6a;
}

.services__heading {
  margin-bottom: 52px;
  max-width: 820px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 400;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.service-card {
  background: #202121;
  border-radius: 16px;
  overflow: hidden;

  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.service-card__image {
  transition: transform 0.7s ease;
}

@media (hover: hover) {

  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(31, 31, 29, 0.16);
  }

  .service-card:hover .service-card__image {
    transform: scale(1.025);
  }
}

.service-card__image {
  height: 500px;
  background: #d8d2ca;
}

.service-card__content {
  min-height: 350px;
  padding: 24px 34px 30px;

  color: #ffffff;
}

.service-card__content h3 {
  margin-bottom: 24px;

  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
}

.service-card__description {
  min-height: 92px;
  margin-bottom: 18px;

  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.service-card__line {
  width: 100%;
  height: 1px;
  margin-bottom: 16px;

  background: rgba(255, 255, 255, 0.65);
}

.service-card__price {
  margin-bottom: 18px;

  font-size: 18px;
  line-height: 1.3;
  font-weight: 400;
}

.service-card__note {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}

.service-card:nth-child(1) .service-card__image {
  background-image: url("images/Card image 01.jpg");
}

.service-card:nth-child(2) .service-card__image {
  background-image: url("images/Card image 02.jpg");
}

.service-card:nth-child(3) .service-card__image {
  background-image: url("images/Card image 03.jpg");
}

.service-card__image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* PORTFOLIO */

.portfolio {
  padding: 88px 0 90px;
  background: #f5f1eb;
  color: #1f1f1d;
}

.portfolio__label {
  margin-bottom: 16px;

  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;

  color: #a58a6a;
}

.portfolio__heading {
  margin-bottom: 36px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 400;
}


/* ГАЛЕРЕЯ */

.portfolio__slider {
  position: relative;
  width: 1248px;
}

.portfolio__gallery {
  display: grid;
  grid-template-columns: 824px 400px;
  gap: 24px;
}

.portfolio__image {
  background: #d8d2ca;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio__image--main {
  width: 824px;
  height: 520px;
}

.portfolio__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portfolio__image--small {
  width: 400px;
  height: 248px;
}


/* СТРЕЛКИ */

.portfolio__arrow {
  position: absolute;
  top: 260px;
  transform: translateY(-50%);

  padding: 0;
  border: 0;
  background: transparent;

  color: #a58a6a;
  font-size: 36px;

  cursor: pointer;
}

.portfolio__arrow--left {
  left: -42px;
}

.portfolio__arrow--right {
  right: -42px;
}


/* ТОЧКИ */

.portfolio__dots {
  display: flex;
  justify-content: center;
  gap: 10px;

  margin-top: 10px;
}

.portfolio__dot {
  width: 12px;
  height: 12px;

  padding: 0;
  border: 0;
  border-radius: 50%;

  background: #d6d6d6;
}

.portfolio__dot--active {
  background: #a58a6a;
}

.portfolio__image--main {
  background-image: url("images/portfolio-01-main.jpg");
}

.portfolio__side .portfolio__image--small:nth-child(1) {
  background-image: url("images/portfolio-01-top.jpg");
}

.portfolio__side .portfolio__image--small:nth-child(2) {
  background-image: url("images/portfolio-01-bottom.jpg");
}

/* ТЕКСТ ПОД ГАЛЕРЕЕЙ */

.portfolio__info {
  margin-top: 24px;
}

.portfolio__title {
  margin-bottom: 14px;

  text-align: center;

  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
}

.portfolio__description {
  text-align: center;

  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
}
.portfolio__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;

  margin-top: 44px;
}

.portfolio__feature {
  min-height: 74px;
  padding-left: 14px;

  border-left: 1px solid #a58a6a;
}

.portfolio__feature h4 {
  margin-bottom: 14px;

  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}

.portfolio__feature p {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
}

.portfolio__image--venetian-main {
  background-image: url("images/portfolio-02-main.jpg");
}

.portfolio__image--venetian-top {
  background-image: url("images/portfolio-02-top.jpg");
}

.portfolio__image--venetian-bottom {
  background-image: url("images/portfolio-02-bottom.jpg");
}

.portfolio__image--main.portfolio__image--venetian-main {
  background-image: url("images/portfolio-02-main.jpg");
}

.portfolio__side .portfolio__image--small.portfolio__image--venetian-top {
  background-image: url("images/portfolio-02-top.jpg");
}

.portfolio__side .portfolio__image--small.portfolio__image--venetian-bottom {
  background-image: url("images/portfolio-02-bottom.jpg");
}

.portfolio__image--main.portfolio__image--paint-main {
  background-image: url("images/portfolio-03-main.jpg");
}

.portfolio__side .portfolio__image--small.portfolio__image--paint-top {
  background-image: url("images/portfolio-03-top.jpg");
}

.portfolio__side .portfolio__image--small.portfolio__image--paint-bottom {
  background-image: url("images/portfolio-03-bottom.jpg");
}

.portfolio + .portfolio {
  padding-top: 40px;
}

/* PROCESS */

.process {
  padding: 88px 0 100px;
  background: #e9e0d4;
  color: #1f1f1d;
}

.process__label {
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #a58a6a;
}

.process__heading {
  margin-bottom: 64px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 400;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.process__step {
  position: relative;
  padding-top: 34px;
  border-top: 1px solid #a58a6a;
}

.process__number {
  position: absolute;
  top: -14px;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  border-radius: 50%;
  background: #a58a6a;
  color: #ffffff;

  font-size: 11px;
  font-weight: 500;
}

.process__step h3 {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}

.process__step p {
  font-size: 12px;
  line-height: 1.55;
  font-weight: 400;
}



/* CONTACTS */

.contacts {
  padding: 44px 0 56px;
  background: #202121;
  color: #ffffff;
}

.contacts__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.contacts__left {
  width: 56%;
}

.contacts__label {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #a58a6a;
}

.contacts__heading {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 400;
}

.contacts__line {
  width: 100px;
  height: 1px;
  margin-bottom: 28px;
  background: #a58a6a;
}

.contacts__phone {
  display: inline-block;
  margin-bottom: 24px;
  color: #a58a6a;
  text-decoration: none;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 400;
}

.contacts__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #e5e1dc;
}

.contacts__socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  width: 44%;
}

.contacts__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 96px;
  color: #ffffff;
  text-decoration: none;
  transition:
  transform 0.35s ease,
  color 0.35s ease;
}

.contacts__icon {
  width: 56px;
  height: 46px;
  margin-bottom: 18px;
  transition: transform 0.35s ease;
}

.contacts__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #a58a6a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contacts__icon--vk svg {
  fill: none;
}

.contacts__social span {
  font-size: 16px;
  font-weight: 400;
}

.contacts__divider {
  width: 1px;
  height: 70px;
  background: rgba(165, 138, 106, 0.8);
}

/* HOVER — КОНТАКТЫ */

@media (hover: hover) {
  .contacts__social:hover {
    transform: translateY(-4px);
    color: #d8c4aa;
  }

  .contacts__social:hover .contacts__icon {
    transform: scale(1.06);
  }
}

/* FOOTER */

.footer {
  background: #f5f1eb;
  color: #1f1f1d;
}

.footer__inner {
  min-height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 13px;
  line-height: 1.4;
}



/* LIGHTBOX */

.portfolio__image {
  cursor: zoom-in;

  transition:
    background-size 0.6s ease,
    filter 0.6s ease;
}

@media (hover: hover) {
  .portfolio__image:hover {
    background-size: 103%;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;

  background: rgba(20, 20, 20, 0);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.4s ease,
    background 0.4s ease,
    visibility 0.4s;
}

.lightbox.lightbox--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  background: rgba(20, 20, 20, 0.92);
}

.lightbox__image {
  width: 80vw;
  height: 80vh;

  object-fit: contain;
  background: #1f1f1d;

  opacity: 0;
  transform: scale(0.96);

  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.lightbox.lightbox--open .lightbox__image {
  opacity: 1;
  transform: scale(1);
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;

  border: 0;
  background: transparent;

  color: #ffffff;
  font-size: 52px;
  line-height: 1;

  cursor: pointer;
}

/* SCROLL REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* КАСКАД — КАРТОЧКИ УСЛУГ */

.service-card:nth-of-type(1) {
  transition-delay: 0s;
}

.service-card:nth-of-type(2) {
  transition-delay: 0.12s;
}

.service-card:nth-of-type(3) {
  transition-delay: 0.24s;
}

/* КАСКАД — ЭТАПЫ РАБОТЫ */

.process__step:nth-of-type(1) {
  transition-delay: 0s;
}

.process__step:nth-of-type(2) {
  transition-delay: 0.08s;
}

.process__step:nth-of-type(3) {
  transition-delay: 0.16s;
}

.process__step:nth-of-type(4) {
  transition-delay: 0.24s;
}

.process__step:nth-of-type(5) {
  transition-delay: 0.32s;
}

.process__step:nth-of-type(6) {
  transition-delay: 0.40s;
}

/* HERO — АНИМАЦИЯ ПРИ ЗАГРУЗКЕ */

.hero__label,
.hero__title,
.hero__text,
.hero__buttons {
  opacity: 0;
  transform: translateY(22px);

  animation: heroReveal 0.8s ease forwards;
}

.hero__label {
  animation-delay: 0.15s;
}

.hero__title {
  animation-delay: 0.30s;
}

.hero__text {
  animation-delay: 0.48s;
}

.hero__buttons {
  animation-delay: 0.65s;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
.menu-toggle {
  display: none;
}



@media (max-width: 768px) {

  .container {
    width: calc(100% - 40px);
    max-width: none;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 40px;
    height: 40px;

    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    padding-top: 55px;
  }

  .hero__title {
    width: 100%;
    max-width: 100%;
    font-size: 36px;
    line-height: 1.08;
  }

  .hero__title span {
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .hero__buttons {
  flex-direction: column;
  gap: 12px;
}

.hero__button {
  width: 100%;
}
.advantages {
  flex-direction: column;
}

.advantages__item {
  width: 100%;
  min-height: 240px;
  padding: 32px 20px;
}

.advantages__item:not(:last-child)::after {
  top: auto;
  right: 20px;
  bottom: 0;
  left: 20px;

  width: auto;
  height: 1px;
}

.advantages__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

.services {
  padding-top: 64px;
}

.services__heading {
  margin-bottom: 36px;
  font-size: 38px;
  line-height: 1.08;
}

.services__grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card__image {
  height: 420px;
}

.service-card__content {
  min-height: auto;
}

.portfolio__slider {
  width: 100%;
}

.portfolio__gallery {
  grid-template-columns: 1fr;
  gap: 12px;
}

.portfolio__image--main {
  width: 100%;
  height: 0;
  padding-bottom: 63.1%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}


.portfolio__image--small {
  width: 100%;
  height: 0;
  padding-bottom: 62%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio {
  padding: 64px 0 70px;
}

.portfolio__heading {
  margin-bottom: 30px;
  font-size: 38px;
  line-height: 1.08;
}

.portfolio__info {
  margin-top: 24px;
}

.portfolio__title {
  font-size: 21px;
}

.portfolio__description {
  font-size: 14px;
  line-height: 1.5;
}

.portfolio__description br {
  display: none;
}

.portfolio__features {
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
}

.portfolio__feature {
  min-height: auto;
  padding-left: 14px;
}

.portfolio__feature p br {
  display: none;
}

.portfolio__arrow {
  display: none;
}

.portfolio__dots {
  margin-top: 14px;
}

.process {
  padding: 64px 0 70px;
}

.process__heading {
  margin-bottom: 40px;
  font-size: 38px;
  line-height: 1.08;
}

.process__steps {
  grid-template-columns: 1fr;
  gap: 28px;
}

.process__step {
  padding-top: 0;
  padding-left: 48px;
  border-top: 0;
  border-left: 1px solid #a58a6a;
}

.process__number {
  top: 0;
  left: -14px;
}

.process__step h3 {
  margin-bottom: 10px;
}

.process__step p {
  font-size: 14px;
  line-height: 1.5;
}

.contacts {
  padding: 64px 0 70px;
}

.contacts__inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

.contacts__left {
  width: 100%;
}

.contacts__heading {
  font-size: 38px;
  line-height: 1.08;
}

.contacts__phone {
  font-size: 28px;
}

.contacts__text {
  font-size: 14px;
}

.contacts__text br {
  display: none;
}

.contacts__socials {
  width: 100%;
  justify-content: space-between;
  gap: 12px;
}

.contacts__social {
  min-width: 0;
  flex: 1;
}

.contacts__divider {
  height: 60px;
}

.footer__inner {
  min-height: 110px;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.nav.nav--open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;

  position: absolute;
  top: 78px;
  left: 20px;
  right: 20px;

  padding: 24px;

  background: rgba(32, 33, 33, 0.96);
  z-index: 1000;
}

.nav.nav--open .nav__link {
  width: 100%;
  padding-bottom: 6px;
}

}