* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f0e6;
  color: #1f1b18;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Шапка */

.header {
  padding: 24px 0;
  border-bottom: 1px solid rgba(31, 27, 24, 0.12);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}

.menu {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.menu a {
  transition: 0.2s;
}

.menu a:hover {
  color: #9b6d24;
}

.header__button {
  padding: 12px 20px;
  border: 1px solid #1f1b18;
  font-size: 14px;
  transition: 0.2s;
}

.header__button:hover {
  background: #1f1b18;
  color: #ffffff;
}

/* Первый экран */

.hero {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  padding: 70px 0;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.hero__label {
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: 2px;
  color: #9b6d24;
}

.hero h1 {
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.03;
  font-weight: 500;
}

.hero h1 span {
  color: #9b6d24;
}

.hero__description {
  max-width: 610px;
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.55;
  color: #625a53;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-block;
  padding: 17px 24px;
  font-size: 15px;
  transition: 0.2s;
}

.button--gold {
  background: #a9792b;
  color: #ffffff;
}

.button--gold:hover {
  background: #805c22;
}

.button--dark {
  border: 1px solid #1f1b18;
}

.button--dark:hover {
  background: #1f1b18;
  color: #ffffff;
}

/* Карточка справа */

.hero__card {
  min-height: 420px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #29221c;
  color: #f5f0e6;
  box-shadow: 18px 18px 0 #d8c8aa;
}

.hero__card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.hero__card-line {
  width: 70px;
  height: 2px;
  background: #c9a45d;
}

.hero__card-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.3;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__tags span {
  padding: 8px 12px;
  border: 1px solid rgba(245, 240, 230, 0.4);
  font-size: 13px;
}

/* Телефон */

@media (max-width: 800px) {
  .menu {
    display: none;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero {
    padding: 55px 0;
  }

  .hero__card {
    min-height: 330px;
  }

  .hero__description {
    font-size: 17px;
  }
}
/* Услуги */

.services {
  padding: 110px 0;
  background: #e8dfcf;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 48px;
}

.section-label {
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: 2px;
  color: #9b6d24;
}

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.08;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  min-height: 360px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: #f8f4eb;
  border: 1px solid rgba(31, 27, 24, 0.12);
  transition: 0.25s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 10px 10px 0 #c7ae81;
}

.service-card__number {
  margin-bottom: 48px;
  color: #9b6d24;
  font-size: 14px;
  letter-spacing: 2px;
}

.service-card h3 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
}

.service-card p:not(.service-card__number) {
  color: #625a53;
  font-size: 16px;
  line-height: 1.55;
}

.service-card a {
  margin-top: auto;
  padding-top: 30px;
  font-size: 15px;
  font-weight: 700;
}

.service-card a:hover {
  color: #9b6d24;
}

@media (max-width: 800px) {
  .services {
    padding: 75px 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 290px;
  }
}
/* Портфолио */

.portfolio {
  padding: 110px 0;
  background: #f5f0e6;
}

.portfolio__top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}

.portfolio__top .section-heading {
  margin-bottom: 0;
}

.portfolio__link {
  padding-bottom: 10px;
  border-bottom: 1px solid #1f1b18;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.portfolio__link:hover {
  color: #9b6d24;
  border-color: #9b6d24;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project {
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(31, 27, 24, 0.12);
}

.project__category {
  margin-bottom: 18px;
  color: #9b6d24;
  font-size: 12px;
  letter-spacing: 2px;
}


.project--site .project__visual {
  background: #3f4a3d;
}

.project--social .project__visual {
  background: #9c6c55;
}

.project--presentation .project__visual {
  background: #26211d;
}
.project--video .project__visual {
  background: #6d5a7d;
}

.project--ads .project__visual {
  background: #7a5b2f;
}
.project h3 {
  margin-top: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.project > p:last-child {
  margin-top: 10px;
  color: #625a53;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .portfolio {
    padding: 75px 0;
  }

  .portfolio__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .project__visual {
    min-height: 260px;
  }
}
/* Отзывы */

.reviews {
  padding: 110px 0;
  background: #e8dfcf;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  min-height: 290px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: #f8f4eb;
  border: 1px solid rgba(31, 27, 24, 0.12);
}

.review-card__text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.42;
}

.review-card__author {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-card__author strong {
  font-size: 15px;
}

.review-card__author span {
  color: #625a53;
  font-size: 14px;
}

/* Контакты */

.contacts {
  padding: 110px 0;
  background: #29221c;
  color: #f5f0e6;
}

.contacts__content {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.contacts .section-label {
  color: #c9a45d;
}

.contacts h2 {
  max-width: 650px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.08;
  font-weight: 500;
}

.contacts__text > p:last-child {
  max-width: 580px;
  margin-top: 28px;
  color: #d8cec1;
  font-size: 18px;
  line-height: 1.55;
}

.contacts__card {
  padding: 36px;
  background: #f5f0e6;
  color: #1f1b18;
  box-shadow: 14px 14px 0 #a9792b;
}

.contacts__card-label {
  margin-bottom: 22px;
  color: #9b6d24;
  font-size: 12px;
  letter-spacing: 1.6px;
}

.contact-button {
  width: 100%;
  margin-top: 12px;
  padding: 17px 18px;
  display: block;
  border: 1px solid #1f1b18;
  font-size: 16px;
  transition: 0.2s;
}

.contact-button:hover {
  background: #1f1b18;
  color: #ffffff;
}

.contact-button--email {
  background: #a9792b;
  border-color: #a9792b;
  color: #ffffff;
}

.contact-button--email:hover {
  background: #805c22;
  border-color: #805c22;
}

.contacts__note {
  margin-top: 24px;
  color: #625a53;
  font-size: 14px;
  line-height: 1.45;
}

/* Подвал */

.footer {
  padding: 28px 0;
  background: #1f1b18;
  color: #f5f0e6;
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer .logo {
  font-size: 24px;
}

.footer p {
  color: #cfc4b6;
  font-size: 13px;
}

@media (max-width: 800px) {
  .reviews,
  .contacts {
    padding: 75px 0;
  }

  .reviews__grid,
  .contacts__content {
    grid-template-columns: 1fr;
  }

  .contacts__content {
    gap: 45px;
  }

  .footer__content {
    align-items: flex-start;
    flex-direction: column;
  }
}
button.contact-button {
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.contact-button--phone {
  background: #1f1b18;
  color: #ffffff;
}

.contact-button--phone:hover {
  background: #000000;
}
.project__visual {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: #ded6c8;
}

.project__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: 0.35s;
}

.project:hover .project__visual img {
  transform: scale(1.05);
}

.project__number {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 10px;
  background: rgba(31, 27, 24, 0.82);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 1px;
}

@media (max-width: 800px) {
  .project__visual {
    height: 260px;
  }
}
/* Исправление портфолио */

.portfolio__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: start;
}

.project {
  min-width: 0;
  overflow: hidden;
}

.project__visual {
  position: relative;
  width: 100%;
  height: 240px !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: block !important;
  overflow: hidden;
  background: #ded6c8;
}

.project__visual img,
.project__visual video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain !important;
  background: #ded6c8;
  transform: none !important;
}

.project__number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  background: rgba(31, 27, 24, 0.85);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .portfolio__grid {
    grid-template-columns: 1fr !important;
  }
}
/* Портфолио: сетка карточек */

.portfolio__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: start;
}

.project {
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(31, 27, 24, 0.12);
}

.project__visual {
  position: relative;
  height: 250px;
  margin-top: 18px;
  overflow: hidden;
  background: #ded6c8;
}

.project__visual img,
.project__visual video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #ded6c8;
}

.project__number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  background: rgba(31, 27, 24, 0.85);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 1px;
}

.project h3 {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .portfolio__grid {
    grid-template-columns: 1fr !important;
  }
}
/* Кнопки в портфолио */

.project {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project > p:not(.project__category) {
  margin-top: 10px;
  color: #625a53;
  line-height: 1.5;
}

.project__button {
  margin-top: auto;
  padding-top: 22px;
  color: #1f1b18;
  font-size: 15px;
  font-weight: 700;
}

.project__button:hover {
  color: #9b6d24;
}
/* Окно заказа */

.project__button {
  margin-top: auto;
  padding: 22px 0 0;
  border: 0;
  background: transparent;
  color: #1f1b18;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.project__button:hover {
  color: #9b6d24;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 27, 24, 0.72);
}

.modal__window {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 42px;
  background: #f5f0e6;
  box-shadow: 16px 16px 0 #a9792b;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #1f1b18;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.modal__label {
  margin-bottom: 14px;
  color: #9b6d24;
  font-size: 12px;
  letter-spacing: 1.8px;
}

.modal__window h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.08;
}

.modal__project {
  margin-top: 18px;
  color: #625a53;
  line-height: 1.5;
}

.order-form {
  margin-top: 28px;
}

.order-form label {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid rgba(31, 27, 24, 0.28);
  background: #ffffff;
  color: #1f1b18;
  font: inherit;
}

.order-form textarea {
  min-height: 110px;
  resize: vertical;
}

.order-form__button {
  width: 100%;
  margin-top: 24px;
  padding: 17px;
  border: 0;
  background: #a9792b;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.order-form__button:hover {
  background: #805c22;
}

.order-form__note {
  margin-top: 14px;
  color: #625a53;
  font-size: 13px;
  line-height: 1.45;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal__window {
    padding: 34px 22px;
    box-shadow: 8px 8px 0 #a9792b;
  }

  .modal__window h2 {
    font-size: 34px;
  }
}
/* Как работаем */

.process {
  padding: 110px 0;
  background: #f5f0e6;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  min-height: 260px;
  padding: 28px;
  border-top: 2px solid #a9792b;
  background: #ffffff;
}

.process-card span {
  display: block;
  margin-bottom: 48px;
  color: #9b6d24;
  font-size: 14px;
  letter-spacing: 2px;
}

.process-card h3 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.15;
}

.process-card p {
  color: #625a53;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .process {
    padding: 75px 0;
  }

  .process__grid {
    grid-template-columns: 1fr;
  }
}
/* Частые вопросы */

.faq {
  padding: 110px 0;
  background: #e8dfcf;
}

.faq__list {
  max-width: 860px;
}

.faq__item {
  border-top: 1px solid rgba(31, 27, 24, 0.22);
}

.faq__item:last-child {
  border-bottom: 1px solid rgba(31, 27, 24, 0.22);
}

.faq__item summary {
  padding: 24px 42px 24px 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 0;
  color: #9b6d24;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 300;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  max-width: 720px;
  padding: 0 0 24px;
  color: #625a53;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .faq {
    padding: 75px 0;
  }

  .faq__item summary {
    font-size: 22px;
  }
}
/* Почему Свѣтлица */

.advantages {
  padding: 110px 0;
  background: #29221c;
  color: #f5f0e6;
}

.advantages__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.advantages .section-label {
  color: #c9a45d;
}

.advantages h2 {
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.08;
}

.advantages__text > p {
  max-width: 540px;
  margin-bottom: 32px;
  color: #d8cec1;
  font-size: 18px;
  line-height: 1.6;
}

.advantages__list {
  display: grid;
  gap: 16px;
}

.advantage-card {
  padding: 26px;
  background: rgba(245, 240, 230, 0.08);
  border-left: 2px solid #a9792b;
}

.advantage-card span {
  display: block;
  margin-bottom: 22px;
  color: #c9a45d;
  font-size: 13px;
  letter-spacing: 2px;
}

.advantage-card h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.advantage-card p {
  color: #d8cec1;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .advantages {
    padding: 75px 0;
  }

  .advantages__content {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}
/* Стоимость */

.pricing {
  padding: 110px 0;
  background: #f5f0e6;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.price-card {
  min-height: 470px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(31, 27, 24, 0.14);
}

.price-card--accent {
  background: #29221c;
  color: #f5f0e6;
  box-shadow: 12px 12px 0 #c7ae81;
}

.price-card__label {
  margin-bottom: 30px;
  color: #9b6d24;
  font-size: 12px;
  letter-spacing: 2px;
}

.price-card h3 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
}

.price-card__price {
  margin-bottom: 28px;
  color: #625a53;
  font-size: 16px;
}

.price-card--accent .price-card__price {
  color: #d8cec1;
}

.price-card__price strong {
  color: #1f1b18;
  font-size: 28px;
}

.price-card--accent .price-card__price strong {
  color: #f5f0e6;
}

.price-card ul {
  margin: 0;
  padding-left: 20px;
  color: #625a53;
  line-height: 1.8;
}

.price-card--accent ul {
  color: #d8cec1;
}

.price-card__button {
  margin-top: auto;
  padding-top: 30px;
}

.price-card--accent .price-card__button {
  color: #f5f0e6;
}

.pricing__note {
  max-width: 760px;
  margin-top: 28px;
  color: #625a53;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .pricing {
    padding: 75px 0;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: auto;
  }
}