body {
  font: var(--font-body);
  font-family: var(--font-family-base);
  background: var(--bg-1);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.accent { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.9rem 4.8rem;
  border-radius: 1.2rem;
  font: var(--font-button);
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}
.btn--solid {
  background: var(--accent);
  color: var(--text-white);
  border: 1px solid var(--accent);
}
.btn--solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--accent);
}
.btn--outline:hover { background: rgba(164, 100, 71, .12); }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ===== Section heading ===== */
.section-title {
  font: var(--font-h2);
  margin-bottom: 4rem;
}
.section-lead {
  max-width: 63.1rem;
  font: var(--font-body);
  color: var(--text-white);
  margin: -2rem 0 4rem;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-light);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 9rem;
  gap: 2.4rem;
}

.header__mobile-phone { display: none; }

.logo {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  flex-shrink: 0;
}
.logo__mark { width: 6rem; height: auto; flex-shrink: 0; }
.logo__wordmark { width: 14.7rem; height: auto; }
.logo__text { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: -1rem;}
.logo__sub {
  font: var(--font-overline);
  font-size: 0.9rem;
  letter-spacing: 0.018em;
  text-transform: uppercase;
  color: #b5ac9f;
}

.nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.nav__list {
  display: flex;
  align-items: baseline;
  gap: 3rem;
}
.nav__link {
  font: var(--font-nav);
  color: var(--text-white);
  opacity: .85;
  transition: opacity .2s ease;
}
.nav__link:hover, .nav__link.is-active { opacity: 1; }

.nav__item { position: relative; }
.nav__item-row { display: flex; align-items: center; }
.nav__item--dropdown.is-open .nav__link { opacity: 1; color: var(--accent); }
.nav__caret { display: none; }
.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  min-width: 26rem;
  flex-direction: column;
  gap: 1.8rem;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.2rem;
  padding: 2.4rem;
  z-index: 120;
}
.nav__item--dropdown.is-open .nav__dropdown { display: flex; }
.nav__dropdown a {
  font: var(--font-nav);
  color: rgba(255, 255, 255, .8);
  white-space: nowrap;
  transition: color .2s ease;
}
.nav__dropdown a:hover { color: var(--accent); }

.nav__mobile-foot { display: flex; align-items: center; gap: 3rem; }
.nav__topbar { display: none; }
.nav__foot-mobile { display: none; }
.header__phone {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font: var(--font-nav);
  color: var(--text-white);
  white-space: nowrap;
}
.header__phone svg { color: var(--accent); flex-shrink: 0; width: 1.8rem; height: 1.8rem; }
.header .btn--outline { padding: 1.1rem 2.8rem; }
.header__phone img {
  width: 2.8rem;
  height: 2.8rem;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  width: 3.2rem;
  height: 3.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--text-white);
  border-radius: 1px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 64.3rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 12, 9, .8), rgba(15, 12, 9, .6));
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
}
.hero__heading {
  display: flex;
  flex-direction: column;
  gap: 2.3rem;
  max-width: 100.2rem;
}
.hero__title {
  font: var(--font-h1);
}
.hero__text {
  font: var(--font-body);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 3.4rem 2rem 2.8rem;
  border-radius: 6rem;
  border: 1px solid rgba(255, 255, 255, .27);
  background: radial-gradient(circle at 0% 100%, rgba(183, 154, 114, .35), transparent 60%), rgba(91, 91, 91, .12);
  backdrop-filter: blur(10.5px);
  color: var(--text-white);
  font: var(--font-body);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.badge svg { width: 3.6rem; height: 3.6rem; color: var(--accent-icon); flex-shrink: 0; }

/* ===== Portfolio ===== */
.portfolio { background: var(--bg-1); padding: 7.9rem 0; border-top: 1px solid var(--border-light); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}

/* ===== Projects page ===== */
.projects-page { background: var(--bg-1); padding: 8rem 0; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--bg-2);
  background-image: url(../decor/portfolio-tile.svg);
  background-repeat: no-repeat;
  background-position: bottom left;
}
.project-card__image {
  overflow: hidden;
}
.project-card img {
  width: 100%;
  aspect-ratio: 473 / 429;
  object-fit: cover;
  transform: scale(1);
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover img { transform: scale(1.15) translate(-1.5%, -1.5%); }
.project-card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 2.2rem 3rem;
}
.project-card__name {
  font: var(--font-card-name);
}
.project-card__meta {
  font: var(--font-body-sm);
  color: var(--text-muted-60);
  white-space: nowrap;
}

/* ===== Process ===== */
.process { background: var(--bg-2); padding: 7.9rem 0; border-top: 1px solid var(--border-light); }
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}
.process-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 1.2rem;
  padding: 3rem;
  background: rgba(51, 51, 51, .2);
  min-height: 32rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-image: url(../decor/cicle-tile.svg);
  background-repeat: no-repeat;
  background-position: bottom right;
  transition: border-color .2s ease;
}
.process-card:hover { border-color: var(--accent); }
.process-card__num {
  font: var(--font-overline);
  color: var(--accent-icon);
  position: relative;
  z-index: 1;
}
.process-card__body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
  margin-top: 4.1rem;
}
.process-card h3 {
  font: var(--font-h3);
}
.process-card p {
  font: var(--font-body);
  color: var(--text-muted-60);
  margin: 0;
}
.link-more {
  display: inline-block;
  margin-top: 2rem;
  font: var(--font-caption);
  color: var(--accent-icon);
  position: relative;
  z-index: 1;
  transition: color .2s ease;
}
.process-card:hover .link-more { color: var(--accent); }
.process-card .link-more {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ===== Pricing ===== */
.pricing { background: var(--bg-1); padding: 7.9rem 0; border-top: 1px solid var(--border-light); }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}
.pricing-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 1.2rem;
  padding: 3rem;
  background: rgba(51, 51, 51, .2);
  min-height: 30.6rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  background-image: url(../decor/price-tile.svg);
  background-repeat: no-repeat;
  background-position: top left;
}

.pricing-card__icon { width: 4.4rem; height: 4.4rem; color: var(--accent-icon); position: relative; z-index: 1; }
.pricing-card__body { display: flex; flex-direction: column; gap: 2rem; position: relative; z-index: 1; }
.pricing-card h3 {
  font: var(--font-h3);
}
.pricing-card p {
  font: var(--font-body);
  color: var(--text-muted-60);
  margin: 0;
}

/* ===== CTA banner ===== */
.cta-banner { background: var(--bg-2); padding: 7.9rem 0; border-top: 1px solid var(--border-light); }
.cta-banner__box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1rem;
}
.cta-banner__photo {
  border-radius: 1.2rem;
  overflow: hidden;
  height: 43.4rem;
}
.cta-banner__photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner__content {
  min-width: 0;
  min-height: 43.4rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4rem;
  gap: 3rem;
  background: url(../decor/sta-tile.svg) no-repeat top left, url(../decor/sta_b-tile.svg) no-repeat bottom right;
}
.cta-banner__content .btn { max-width: 100%; white-space: normal; text-align: center; }

/* ===== Quiz ===== */
.quiz__body { display: flex; flex-direction: column; gap: 2.8rem; width: 100%; }

.quiz__progress { display: flex; flex-direction: row; gap: 0.8rem; width: 100%; align-items: center; }
.quiz__step-count { font: var(--font-caption); color: var(--accent-icon); flex: none;}
.quiz__bar { position: relative; width: 100%; max-width: 57.9rem; height: 0.3rem; border-radius: 1rem; background: rgba(183, 154, 114, .2); }
.quiz__bar-fill { position: absolute; inset: 0; width: 20%; border-radius: 1rem; background: var(--accent-icon); transition: width .3s ease; }

.quiz__step { display: none; flex-direction: column; gap: 2rem; }
.quiz__step.is-active { display: flex; }

.quiz__title { font: var(--font-h3); font-size: 3.8rem; line-height: 1; margin: 0; }
.quiz__intro-text { font: var(--font-h3); font-size: 4rem; line-height: 1.25; margin: 0; max-width: 63rem; }

.quiz__options { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.quiz__options--row { flex-direction: row; gap: 2rem; flex-wrap: wrap; }

.quiz__radio { display: flex; align-items: center; gap: 0.8rem; font: var(--font-body); color: var(--text-white); cursor: pointer; }
.quiz__radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.quiz__radio-dot {
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: url(../icons/quiz-radio-b.svg) no-repeat center / contain;
}
.quiz__radio input:checked + .quiz__radio-dot {
  background-image: url(../icons/quiz-radio-a.svg);
}

.quiz__field { position: relative; width: 30.8rem; max-width: 100%; }
.quiz__input {
  width: 100%;
  height: 6rem;
  padding: 0 2rem;
  background: rgba(183, 154, 114, .2);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1.2rem;
  font: var(--font-body);
  color: var(--text-white);
}
.quiz__input::placeholder { color: rgba(255, 255, 255, .5); }
.quiz__field .quiz__input { padding-right: 4.5rem; }
.quiz__field-suffix {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font: var(--font-body);
  color: rgba(255, 255, 255, .5);
  pointer-events: none;
}

.quiz__fields-row { display: flex; gap: 1.9rem; }
.quiz__fields-row .quiz__input { width: 30.8rem; max-width: 100%; }

.quiz__consent { display: flex; align-items: flex-start; gap: 0.8rem; cursor: pointer; max-width: 60.2rem; }
.quiz__consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.quiz__consent-box {
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 0.25rem;
  background: rgba(183, 154, 114, .2);
}
.quiz__consent input:checked + .quiz__consent-box {
  background: url(../icons/quiz-checkbox-check.svg) no-repeat center / contain;
  border: none;
}
.quiz__consent-text { font: var(--font-body-sm); opacity: .6; color: var(--text-white); font-size: 1.2rem; }

.quiz__done-text { font: var(--font-body); color: var(--text-muted-60); margin: 0; }

.quiz__nav { display: flex; gap: 1rem; width: 100%; }
.quiz__nav .btn { width: auto; max-width: none; white-space: nowrap; padding: 1.9rem 3.8rem; }

/* ===== Service page ===== */
.service-hero { position: relative; background: var(--bg-1); overflow: hidden; }
.service-hero__bg { position: absolute; inset: 0; height: 92rem; z-index: 0; }
.service-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.service-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(29, 26, 23, .8), var(--bg-1));
}
.service-hero__inner {
  position: relative;
  z-index: 1;
  padding: 10rem 0 8rem;
  display: flex;
  flex-direction: column;
  gap: 10rem;
}
.service-hero__intro { display: flex; flex-direction: column; gap: 2rem; max-width: 83.1rem; }
.service-hero__title { font: var(--font-h2); }
.service-hero__price { font: var(--font-body); max-width: 70.1rem; margin: 0; margin-bottom: 2rem;}
.service-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.service-features-head h2 { font: var(--font-h3); font-size: 4rem; line-height: 1; max-width: 71.5rem; margin: 0; }
.service-features-head p { font: var(--font-body); opacity: .6; max-width: 71.5rem; margin: 2rem 0 0; }

.service-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 4rem; }
.service-feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 1.2rem;
  padding: 3rem;
  background: rgba(51, 51, 51, .2);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-image: url(../decor/dis-tile.svg);
  background-repeat: no-repeat;
  background-position: top left;
}

.service-feature-card__icon { width: 4.4rem; height: 4.4rem; position: relative; z-index: 1; }
.service-feature-card h3 { font: var(--font-h3); position: relative; z-index: 1; }
.service-feature-card p { font: var(--font-body); opacity: .6; margin: 0; position: relative; z-index: 1; }

/* ===== Service pricing table ===== */
.service-pricing { background: var(--bg-1); padding: 8rem 0; }
.service-pricing__title { font: var(--font-h3); font-size: 4rem; margin: 0 0 3rem; }

.pricing-table { display: grid; grid-template-columns: 55.5rem repeat(3, 1fr); }
.pricing-table > div { border-top: 1px solid rgba(255, 255, 255, .06); border-left: 1px solid rgba(255, 255, 255, .06); padding: 1.8rem 2rem; }
.pricing-table > div:nth-child(4n) { border-right: 1px solid rgba(255, 255, 255, .06); }

.pt-head { background: rgba(51, 51, 51, .4); display: flex; align-items: center;}
.pt-head:first-child { border-top-left-radius: 1.2rem; }
.pt-head:nth-child(4) { border-top-right-radius: 1.2rem; }
.pt-head--pkg { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.pt-head--pkg span { font: var(--font-body-sm); opacity: .6; = }
.pt-head--pkg strong { font: 400 2.6rem var(--font-family-display); color: var(--accent); font-weight: 400;}
.pt-label { font: var(--font-nav); opacity: .6; }
.pt-row-alt { background: rgba(51, 51, 51, .2); }
.pt-check { display: flex; }
.pt-check img { width: 2.2rem; height: 2.2rem; }
.pt-price { background: rgba(51, 51, 51, .4); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.pt-price.pt-price--label { border-bottom-left-radius: 1.2rem; }
.pt-price:last-child { border-bottom-right-radius: 1.2rem; border-right: 1px solid rgba(255, 255, 255, .06); }
.pt-price--label { display: flex; align-items: center; font: var(--font-nav); }
.pt-price--value { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1.8rem; padding-bottom: 2.7rem; }
.pt-price--value .amount { font: var(--font-nav); color: #a6a5a5; }
.pt-price--value .amount strong { font: 400 5rem var(--font-family-display); line-height: 1; color: var(--accent); margin: 0 0.4rem; }
.pt-price--value a { font: var(--font-nav); color: #a6a5a5; text-decoration: underline; margin-bottom: 1rem;}

.pricing-table--mobile { display: none; }

/* ===== About page ===== */
.about-hero { position: relative; background: var(--bg-1); overflow: hidden; }
.about-hero__bg { position: absolute; inset: 0; height: 92rem; z-index: 0; }
.about-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(29, 26, 23, .8), var(--bg-1));
}
.about-hero__inner { position: relative; z-index: 1; padding: 10rem 0 8rem; }
.about-hero__title { font: var(--font-h2); margin: 0 0 3rem; }

.about-row { display: flex; align-items: center; gap: 8rem; margin-bottom: 1rem; }
.about-row:last-child { margin-bottom: 0; }
.about-row--reverse { flex-direction: row-reverse; }
.about-row__text { display: flex; flex-direction: column; gap: 4rem; flex: 0 0 64.5rem; max-width: 64.5rem; align-items: flex-start; }
.about-row__image { flex: 1; align-self: stretch; border: 1px solid rgba(255, 255, 255, .16); border-radius: 1.2rem; overflow: hidden; min-height: 59rem; }
.about-row__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-row__heading { display: flex; flex-direction: column; gap: 2rem; color: var(--text-white); }
.about-row__heading h2 { font: var(--font-h3); font-size: 4rem; line-height: 1; margin: 0; }
.about-row__heading p { font: var(--font-body); opacity: .6; margin: 0; }

.about-bio__title { display: flex; flex-direction: column; gap: 1.2rem; }
.about-bio__title h2 { font: var(--font-h3); font-size: 4rem; line-height: 1; color: var(--accent); margin: 0; }
.about-bio__title p { font: var(--font-body); color: var(--text-white); margin: 0; }
.about-bio__text { font: var(--font-body); color: var(--text-white); opacity: .6; display: flex; flex-direction: column; gap: 2rem; margin: 0; }
.about-bio__text p { margin: 0; }

.approach { background: var(--bg-2); padding: 8rem 0; border-top: 1px solid var(--border-light); }
.approach__title { font: var(--font-h2); margin: 0 0 4rem; }
.approach__grid { display: flex; gap: 1rem; align-items: stretch; }
.approach-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 1.2rem;
  padding: 3rem;
  background: rgba(51, 51, 51, .2);
  display: flex;
  flex-direction: column;
  gap: 4rem;
  flex: 1;
  background-image: url(../decor/about-tile.svg);
  background-repeat: no-repeat;
  background-position: bottom right;
}
.approach-card__num { font: var(--font-caption); color: var(--accent-icon); position: relative; z-index: 1; }
.approach-card__body { display: flex; flex-direction: column; gap: 2rem; color: var(--text-white); position: relative; z-index: 1; }
.approach-card__body h3 { font: var(--font-h3); margin: 0; }
.approach-card__body p { font: var(--font-body); opacity: .6; margin: 0; }
.approach-card__decor { position: absolute; left: 13.9rem; top: 9.9rem; width: 28.9rem; height: 28.9rem; pointer-events: none; }

.gallery { background: var(--bg-1); padding: 8rem 0; border-top: 1px solid var(--border-light); }
.gallery__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4rem; }
.gallery__title { font: var(--font-h2); margin: 0; }
.gallery__nav { display: flex; gap: 1rem; }
.gallery__nav-btn { display: flex; align-items: center; justify-content: center; width: 6.2rem; height: 6.2rem; border: 1px solid var(--accent); border-radius: 1.2rem; background: none; cursor: pointer; padding: 0; color: var(--text-white); flex-shrink: 0; }
.gallery__nav-btn img { width: 2.4rem; height: 2.4rem; }
.gallery__nav-btn--next img { transform: rotate(180deg); }
.gallery__grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: max(2rem, calc((100vw - var(--container-width)) / 2 + 2rem));
  padding-right: 2rem;
}
.gallery__grid::-webkit-scrollbar { display: none; }
.gallery__grid img { border-radius: 1.2rem; border: 1px solid rgba(255, 255, 255, .15); height: 38rem; object-fit: cover; display: block; }
.gallery__grid img:first-child { flex: 0 0 57rem; width: 57rem; }
.gallery__grid img:not(:first-child) { flex: 0 0 30.4rem; width: 30.4rem; }

/* ===== Contacts page ===== */
.contacts-grid { display: flex; gap: 1rem; align-items: stretch; }

.contacts-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 71.5rem;
  border: 1px solid var(--border-card);
  border-radius: 1.2rem;
  background: rgba(51, 51, 51, .2);
  padding: 3.9rem;
}
.contacts-card__glow { position: absolute; pointer-events: none; z-index: 0; }
.contacts-card__glow--a { left: -17.4rem; top: 42rem; width: 42.2rem; height: 42.2rem; }
.contacts-card__glow--b { right: -31rem; top: -21.4rem; width: 46.4rem; height: 46.4rem; }
.contacts-card__note { position: relative; z-index: 1; font: var(--font-body); font-weight: 500; color: var(--text-white); margin: 0 0 3rem; }
.contacts-card__list { position: relative; z-index: 1; display: flex; flex-direction: column; }
.contacts-item { display: flex; align-items: center; gap: 2rem; padding: 1.8rem 0; border-top: 1px solid rgba(255, 255, 255, .05); }
.contacts-item:first-child { border-top: none; padding-top: 0; }
.contacts-item__icon { width: 6.6rem; height: 6.6rem; flex-shrink: 0; }
.contacts-item__label { font: var(--font-body); opacity: .6; margin: 0 0 .2rem; }
.contacts-item__value { font: 500 3rem/3.5rem var(--font-family-display); color: var(--accent); margin: 0; }
.contacts-card__social { position: relative; z-index: 1; display: flex; gap: 1rem; margin-top: 3rem; }
.contacts-card__social img { width: 4rem; height: 4rem; }

.contacts-form-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 1.2rem;
  background: rgba(51, 51, 51, .2);
  padding: 3.9rem;
}
.contacts-form { display: flex; flex-direction: column; gap: 3rem; height: 100%; }
.contacts-form__title { font: var(--font-h3); font-size: 4rem; line-height: 1; margin: 0; color: var(--text-white); }
.contacts-form__fields { display: flex; flex-direction: column; gap: 2rem; }
.quiz__textarea { height: 10.9rem; padding: 1.8rem 2rem; resize: none; font-family: inherit; }
.contacts-form .quiz__consent { max-width: none; }
.contacts-form .btn { align-self: flex-start; }

.contacts-map { position: relative; overflow: hidden; border: 1px solid var(--border-card); border-radius: 1.2rem; background: rgba(51, 51, 51, .2); height: 51.6rem; margin-top: 1rem; }
.contacts-map img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; display: block; }
.contacts-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== Project page ===== */
.project-hero { position: relative; background: var(--bg-1); overflow: hidden; }
.project-hero__bg { position: absolute; inset: 0; height: 86.2rem; z-index: 0; }
.project-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.project-hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(29, 26, 23, .8); }
.project-hero__inner { position: relative; z-index: 1; padding: 25rem 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4rem; }

.project-badge {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 3.4rem 2rem 2.8rem;
  border-radius: 3.7rem 3.9rem 3.9rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, .27);
  background: rgba(91, 91, 91, .12);
  backdrop-filter: blur(10.5px);
  color: var(--text-white);
  font: var(--font-body);
  white-space: nowrap;
}
.project-badge__glow { position: absolute; left: -2.4rem; top: -2.4rem; width: 11.6rem; height: 11.6rem; z-index: 0; pointer-events: none; }
.project-badge img:not(.project-badge__glow) { width: 3.6rem; height: 3.6rem; position: relative; z-index: 1; flex-shrink: 0; }
.project-badge span { position: relative; z-index: 1; }

.project-hero__heading { display: flex; flex-direction: column; gap: 2rem; color: var(--text-white); max-width: 71.4rem; }
.project-hero__heading h1 { font: var(--font-h2); margin: 0; }
.project-hero__heading p { font: var(--font-body); margin: 0; }

.project-about { background: var(--bg-1); padding: 8rem 0; border-top: 1px solid var(--border-light); }
.project-about__row { display: flex; gap: 6rem; align-items: flex-start; }
.project-about__text { flex: 1; min-width: 0; }
.project-about__text h2 { font: var(--font-h2); margin: 0 0 4rem; }
.project-about__text p { font: var(--font-body); opacity: .6; margin: 0 0 2rem; }
.project-about__text p:last-child { margin-bottom: 0; }
.project-about__plan {
  position: relative;
  flex: 0 0 71.5rem;
  height: 55.5rem;
  border: 1px solid var(--border-card);
  border-radius: 1.2rem;
  background: rgba(51, 51, 51, .2);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-about__plan img.project-about__plan-img { max-width: 100%; max-height: 100%; mix-blend-mode: lighten; }
.project-about__zoom {
  position: absolute;
  top: 2.4rem;
  right: 2.4rem;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.project-about__zoom img { display: block; width: 100%; height: 100%; }
.project-about__plan-img.js-lightbox { cursor: zoom-in; }

.gallery--alt { background: var(--bg-2); }

/* ===== Before / After ===== */
.before-after { background: var(--bg-1); padding: 8rem 0; border-top: 1px solid var(--border-light); }
.before-after__track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: max(2rem, calc((100vw - var(--container-width)) / 2 + 2rem));
  padding-right: 2rem;
}
.before-after__track::-webkit-scrollbar { display: none; }
.before-after__slide { flex: 0 0 min(90rem, 100%); scroll-snap-align: center; }
.before-after__compare {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}
.before-after__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.before-after__img--before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.before-after__tag {
  position: absolute;
  top: 2rem;
  z-index: 2;
  font: var(--font-caption);
  color: var(--text-white);
  background: rgba(15, 12, 9, .6);
  backdrop-filter: blur(4px);
  padding: .6rem 1.6rem;
  border-radius: 2rem;
  pointer-events: none;
}
.before-after__tag--before { left: 2rem; }
.before-after__tag--after { right: 2rem; }
.before-after__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  transform: translateX(-50%);
  width: .2rem;
  background: var(--text-white);
  z-index: 3;
  pointer-events: none;
}
.before-after__handle img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.4rem;
  height: 4.4rem;
  padding: 1rem;
  border-radius: 50%;
  background: var(--text-white);
}

/* ===== Lightbox (план квартиры / фото галереи) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  background: rgba(13, 10, 8, .92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 1.2rem;
  object-fit: contain;
}
.lightbox__close {
  position: fixed;
  top: 3rem;
  right: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .27);
  background: rgba(255, 255, 255, .08);
  color: var(--text-white);
  cursor: pointer;
  transition: background-color .2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .18); }
.lightbox__close svg { width: 2.2rem; height: 2.2rem; }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .27);
  background: rgba(255, 255, 255, .08);
  color: var(--text-white);
  cursor: pointer;
  transition: background-color .2s ease;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .18); }
.lightbox__nav img { width: 2.4rem; height: 2.4rem; }
.lightbox__nav--prev { left: 3rem; }
.lightbox__nav--next { right: 3rem; }
.lightbox__nav--next img { transform: rotate(180deg); }
.lightbox__nav[hidden] { display: none; }

.js-lightbox { cursor: zoom-in; }

/* ===== Прокрутка галерей перетаскиванием мышью ===== */
.is-draggable { cursor: grab; }
.is-draggable.is-dragging { cursor: grabbing; user-select: none; }
.is-draggable.is-dragging img { cursor: grabbing; }
.is-draggable img { -webkit-user-drag: none; user-drag: none; }

/* ===== Попап быстрой заявки («Узнайте стоимость дизайн-проекта») ===== */
.quote-popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(15, 12, 9, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  max-width: 100vw;
}
.quote-popup.is-open { opacity: 1; visibility: visible; }
.quote-popup__card {
  position: relative;
  overflow: hidden;
  width: 47.4rem;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 4.9rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 3rem;
  background: url(../decor/form-tl-tile.svg) no-repeat top left, url(../decor/form-br-tile.svg) no-repeat bottom right, var(--bg-2);
}
.quote-popup__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  color: var(--text-white);
  cursor: pointer;
  transition: background-color .2s ease;
}
.quote-popup__close svg { width: 3rem; height: 3rem; }
.quote-popup__glow {
  position: absolute;
  width: 42.2rem;
  height: 42.2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 154, 114, .35), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.quote-popup__glow--a { left: -21rem; top: -25rem; }
.quote-popup__glow--b { right: -21rem; bottom: -18rem; }
.quote-popup__title {
  position: relative;
  font: var(--font-h3);
  font-size: 4rem;
  line-height: 4rem;
  margin: 0 0 3rem;
}
.quote-popup__form { position: relative; display: flex; flex-direction: column; gap: 3rem; }
.quote-popup__fields { display: flex; flex-direction: column; gap: 1rem; }
.quote-popup__fields > p span:first-child input { margin-bottom: 1rem; }
.quote-popup__fields .quiz__input { height: 6rem; }
.quote-popup .quiz__consent { max-width: none; }
.quote-popup .btn { width: fit-content; }

/* ===== Footer ===== */
.footer {
  position: relative;
  background: var(--bg-footer-base);
  overflow: hidden;
}
.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding-bottom: 6.3rem;
}
.footer__bg img { width: 100%; height: 100%; object-fit: cover; }
.footer__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 10, 8, .92), rgba(13, 10, 8, .8));
}
.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.7fr 1.1fr 1.3fr 1.4fr;
  gap: 2rem;
  padding-top: 8rem;
  padding-bottom: 5.6rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 5.6rem; justify-content: space-between;}
.footer__col-group { position: relative; display: flex; flex-direction: column; gap: 4rem; }
.footer__col-group::before,
.footer__contacts::before {
  content: "";
  position: absolute;
  left: -7rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .2);
}
.footer__col-group::before {
  max-height: 20rem;
}
.footer__contacts { position: relative; }

.footer__social span { display: block; font: var(--font-body-sm); color: var(--text-footer); margin-bottom: 1.4rem; }
.footer__social-icons { display: flex; gap: 0.9rem; }
.footer__social-icons a {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s ease;
}
.footer__social-icons a svg { width: 1.6rem; height: 1.6rem; }
.footer__social-icons a svg path { fill: #ffffff; }
.footer__social-icons a:hover { background: var(--accent-hover); }
.footer__social-icons--muted a { background: rgba(255, 255, 255, .2); }
.footer__social-icons--muted a:hover { background: var(--accent); }

.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
.footer__col h4 {
  font: var(--font-footer-heading);
  color: var(--accent);
  margin: 0;
}
.footer__col a { font: var(--font-caption); color: var(--text-footer); transition: color .2s ease; }
.footer__col a:hover { color: var(--text-white); }


.footer__contacts { gap: 1.3rem; }
.footer__contact-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  font: var(--font-caption);
  color: var(--text-footer);
}
.footer__contact-line svg { color: var(--accent); flex-shrink: 0; width: 2.4rem; height: 2.4rem; margin-top: -0.3rem; }
.footer__contact-line img {
  width: 2.4rem;
  height: 2.4rem;
}

.footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-light);
  padding: 2.2rem 0;
  font: var(--font-body-sm);
  color: var(--text-footer);
  text-align: center;
}

.overlay { display: none; }

/* ===== Responsive ===== */
@media (max-width: 1099px) {
  .footer__col-group::before, .footer__contacts::before {
    left: -3rem;
  }
}

@media (max-width: 900px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; }
  .cta-banner__box { grid-template-columns: 1fr; }
  .cta-banner__photo { height: 26rem; }
  .nav__list {
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .container { padding-inline: 1rem; }

  .nav__item-row {
    justify-content: space-between;
    width: 100%;
  }
  .nav__item--dropdown.is-open .nav__item-row {
    border-bottom: 1px solid var(--border-light);
  }
  .nav__item--dropdown .nav__link { border-bottom: none; width: auto; flex: 1; }

  .nav__caret {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    color: var(--text-white);
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    transition: transform .2s ease;
  }
  .nav__caret svg { width: 1.8rem; height: 1.8rem; }
  .nav__item--dropdown.is-open .nav__caret { transform: rotate(90deg); }

  .nav__dropdown {
    position: static;
    display: none;
    flex-direction: column;
    gap: 0;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
  }
  .nav__item--dropdown.is-open .nav__dropdown { display: flex; }
  .nav__dropdown a {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--border-light);
    color: rgba(255, 255, 255, .8);
    font-size: 1.4rem;
    padding-left: 1rem;
  }
  .nav__dropdown a:last-child {
    border-bottom: none;
  }

  .nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100%;
    background: var(--bg-header);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 110;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }

  .nav__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: 5.2rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border-light);
  }
  .nav__topbar-phone { display: flex; color: var(--text-white); }
  .nav__topbar-logo { height: 3.3rem; width: auto; margin-top: -0.7rem; }
  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    color: var(--text-white);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  .nav__close svg { width: 2.4rem; height: 2.4rem; }

  .nav__list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav__list li { width: 100%; border-bottom: 1px solid var(--border-light); padding: 0 1rem; }
  .nav__link {
    display: block;
    width: 100%;
    padding: 2rem 0;
    font-size: 1.5rem;
    opacity: 1;
  }
  .nav__mobile-foot { display: none; }

  .nav__foot-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: auto;
    padding: 3.2rem 1rem;
    padding-bottom: 1rem;
    width: 100%;
  }
  .nav__foot-mobile .btn { width: 100%; }
  .nav__phone-btn { gap: 0.9rem; }
  .nav__phone-btn img { flex-shrink: 0; }

  .burger { display: flex; align-items: center; justify-content: center; }
  .burger img { width: 2.8rem; height: 2.8rem; }

  .overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 80;
  }
  .overlay.is-visible { opacity: 1; pointer-events: auto; }

  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 5.2rem;
  }
  .header__mobile-phone {
    display: flex;
    justify-self: start;
    color: var(--text-white);
  }
  .header__mobile-phone img { width: 2.8rem; height: 2.8rem; }
  .logo { justify-self: center; margin-top: -0.7rem; }
  .logo__mark { width: 3.87rem; }
  .logo__text { display: none; }
  .burger { justify-self: end; }

  .hero { height: auto; padding: 5rem 0; }
  .hero .btn { margin-top: 2rem; width: 100%; }
  .hero__title { font: var(--font-h1-mobile); }
  .hero__title br { display: none;  }
  .hero__badges { gap: 0.5rem; }
  .badge { padding: 1.2rem 1.6rem; font-size: 1.6rem; width: calc(50% - 0.25rem); }
  .badge svg { width: 2.8rem; height: 2.8rem; }

  .portfolio, .process, .pricing, .cta-banner { padding: 5rem 0; }

  .cta-banner__box { display: block; position: relative; }
  .cta-banner__photo {
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: 1.2rem;
  }
  .cta-banner__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--bg-2), rgba(37, 37, 34, .8));
  }
  .cta-banner__content {
    position: relative;
    z-index: 1;
    min-height: 48.4rem;
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 1.2rem;
    background: rgba(51, 51, 51, .2);
    justify-content: space-between;
    padding: 2rem;
    gap: 0;
  }
  .cta-banner__text { font-size: 2.4rem; line-height: 1.3; max-width: 30rem; }
  .cta-banner__content .btn { width: 100%; }

  .quiz__title { font-size: 2.4rem; line-height: 1.083; }
  .quiz__intro-text { font-size: 2.4rem; line-height: 1.3; max-width: 30rem; }
  .quiz__bar { max-width: 24.4rem; }
  .quiz__radio { font-size: 1.4rem; }
  .quiz__field, .quiz__fields-row .quiz__input { width: 100%; }
  .quiz__input { height: 5rem; }
  textarea.quiz__input { height: 11rem; }
  .quiz__nav .btn { flex: 1; padding: 1.6rem 2rem; }
  .quiz__consent-text { font-size: 1.2rem; }
  .process__grid { grid-template-columns: 1fr; gap: 1rem; }
  .quiz__fields-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .portfolio__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -1rem;
    padding-inline: 1rem;
  }
  .portfolio__grid::-webkit-scrollbar { display: none; }
  .portfolio__grid .project-card {
    flex: 0 0 30rem;
    width: 30rem;
    scroll-snap-align: start;
  }
  .project-card__info { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .project-card__meta { white-space: normal; }
  .section-title { font: var(--font-h2-mobile); margin-bottom: 2.8rem; }
  .section-lead { margin-top: -1.4rem; }

  .projects-grid { grid-template-columns: 1fr; gap: 1rem; }

  .footer__inner { grid-template-columns: 1fr; padding-top: 6.4rem; padding-bottom: 4rem; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 2.8rem; }
  .footer .logo__text {
    display: flex;
    height: 2.8rem;
    margin-bottom: -1rem;
  }
  .footer .logo__mark {
    width: 5.3rem;
  }
  .footer .logo__wordmark {
    width: 13rem;
  }
  .footer .logo__sub {
    font-size: 0.8rem;
  }
  .projects-page {
    padding: 5rem 0;
  }

  .service-hero__inner { padding: 5rem 1rem; gap: 5rem; }
  .service-hero__title { font: var(--font-h2-mobile); }
  .service-hero__actions { flex-direction: column; width: 100%; }
  .service-hero__actions .btn { width: 100%; }
  .service-features-head h2 { font-size: 2.4rem; line-height: 1.083; }
  .service-features-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.8rem; }
  .service-features-head br {
    display: none;
  }
  .service-features-head p {
    font-size: 1.4rem;
  }
  .service-feature-card h3 {
    font-size: 2.4rem;
  }
  .service-feature-card p {
    font-size: 1.4rem;
  }
  .service-feature-card {
    padding: 2rem;
  }

  .service-pricing { padding: 5rem 0; }
  .service-pricing__title { font-size: 2.4rem; margin-bottom: 3rem; }
  .pricing-table { display: none; }
  .pricing-table--mobile {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -1rem;
    padding-inline: 1rem;
  }
  .pricing-table--mobile::-webkit-scrollbar { display: none; }
  .pt-mobile-card { flex: 0 0 30rem; width: 30rem; border-radius: 1.2rem; overflow: hidden; scroll-snap-align: start; }
  .pt-mobile-head { background: rgba(51, 51, 51, .4); padding: 2rem; display: flex; flex-direction: column; gap: 0.4rem; border: 1px solid rgba(255, 255, 255, .06); border-bottom: none; border-top-left-radius: 1.2rem; border-top-right-radius: 1.2rem; }
  .pt-mobile-head span { font: var(--font-body-sm); opacity: .6; }
  .pt-mobile-head strong { font: 400 2.6rem var(--font-family-display); color: var(--accent); font-weight: 400; }
  .pt-mobile-row { display: flex; align-items: flex-start; gap: 1.2rem; padding: 1.8rem 2rem; border: 1px solid rgba(255, 255, 255, .06); border-top: none; }
  .pt-mobile-row.pt-row-alt { background: rgba(51, 51, 51, .2); }
  .pt-mobile-row .pt-label { flex: 1; }
  .pt-mobile-row img { width: 2rem; height: 2rem; flex-shrink: 0; }
  .pt-mobile-price { background: rgba(51, 51, 51, .4); border: 1px solid rgba(255, 255, 255, .06); border-top: none; border-bottom-left-radius: 1.2rem; border-bottom-right-radius: 1.2rem; padding: 1.8rem 2rem 2.7rem; display: flex; flex-direction: column; gap: 1.3rem; }
  .pt-mobile-price .amount strong { font: 400 5rem var(--font-family-display); color: var(--accent); margin: 0 0.4rem; }
  .pt-mobile-price .amount { font: var(--font-nav); color: #a6a5a5; }
  .pt-mobile-price a { font: var(--font-nav); color: #a6a5a5; text-decoration: underline; }

  .about-hero__inner { padding: 5rem 1rem; }
  .about-hero__title { font: var(--font-h2-mobile); margin-bottom: 2rem; }

  .about-row { flex-direction: column; align-items: stretch; gap: 2rem; margin-bottom: 2rem; }
  .about-row--reverse { flex-direction: column; }
  .about-row__text { flex: none; max-width: none; gap: 3rem; }
  .about-row__image { min-height: 28rem; height: 28rem; order: -1; flex: auto; }
  .about-row__heading h2 { font-size: 2.4rem; }
  .about-bio__title h2 { font-size: 2.4rem; }
  .about-bio__text { font-size: 1.4rem; }
  .about-bio__title p, .about-row__heading p { font-size: 1.4rem; }

  .approach { padding: 5rem 0; }
  .approach__title { font: var(--font-h2-mobile); margin-bottom: 3rem; }
  .approach__grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -1rem;
    padding-inline: 1rem;
  }
  .approach__grid::-webkit-scrollbar { display: none; }
  .approach-card { flex: 0 0 30rem; width: 30rem; padding: 2rem; scroll-snap-align: start; }
  .approach-card__body h3 { font-size: 2.4rem; }
  .approach-card__body p { font-size: 1.4rem; }

  .gallery { padding: 5rem 0; }
  .gallery__head { margin-bottom: 3rem; }
  .gallery__title { font: var(--font-h2-mobile); }
  .gallery__nav { display: none; }
  .gallery__grid { padding-left: 1rem; padding-right: 1rem; }
  .gallery__grid img { height: 18rem; }
  .gallery__grid img:first-child { flex: 0 0 27rem; width: 27rem; }
  .gallery__grid img:not(:first-child) { flex: 0 0 14.4rem; width: 14.4rem; }

  .contacts-grid { flex-direction: column; gap: 1rem; }
  .contacts-card { flex: none; padding: 2rem; }
  .contacts-card__glow--a { left: -17.4rem; top: 27rem; }
  .contacts-item { gap: 1rem; }
  .contacts-item__icon { width: 5.4rem; height: 5.4rem; }
  .contacts-item__value { font-size: 2.4rem; line-height: 2.6rem; }

  .contacts-form-wrap { padding: 2rem; }
  .contacts-form__title { font-size: 2.4rem; }
  .quiz__fields-row { flex-direction: column; }
  .contacts-form .btn { width: 100%; }

  .contacts-map { height: 33.2rem; }

  .project-hero__bg { height: 57.9rem; }
  .project-hero__inner { padding: 12rem 1rem 5rem; gap: 3rem; }
  .project-badge { padding: 1.5rem 3.9rem 1.5rem 2.3rem; border-radius: 3.2rem 3.3rem 3.3rem 0.5rem; }
  .project-hero__heading { gap: 1.8rem; max-width: none; }
  .project-hero__heading h1 { font: var(--font-h2-mobile); }
  .project-hero__actions,
  .project-hero__inner > .btn { width: 100%; }

  .project-about { padding: 5rem 0; }
  .project-about__row { flex-direction: column; gap: 3rem; }
  .project-about__text h2 { font: var(--font-h2-mobile); margin-bottom: 3rem; }
  .project-about__text p { font-size: 1.4rem; }
  .project-about__plan { flex: none; width: 100%; height: 32.8rem; padding: 2rem; }
  .project-about__zoom { display: none; }

  .before-after { padding: 5rem 0; }
  .before-after__track { padding-left: 1rem; padding-right: 1rem; }
  .before-after__slide { flex-basis: 90%; }
  .before-after__handle img { width: 3.6rem; height: 3.6rem; }

  .lightbox { padding: 2rem; }
  .lightbox__close { top: 1.5rem; right: 1.5rem; width: 4.2rem; height: 4.2rem; }
  .lightbox__close svg { width: 1.9rem; height: 1.9rem; }
  .lightbox__nav { width: 4.2rem; height: 4.2rem; }
  .lightbox__nav img { width: 1.9rem; height: 1.9rem; }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }

  .quote-popup__card { width: 34rem; padding: 2.9rem 1.9rem; border-radius: 2rem; }
  .quote-popup__title { font-size: 2.4rem; line-height: 2.6rem; margin-bottom: 2rem; }
  .quote-popup__form { gap: 2rem; }
  .quote-popup__close { top: 0.5rem; right: 0.5rem; }
}

@media (max-width: 420px) {
  .btn { padding: 1.4rem 2.4rem; font-size: 1.4rem; width: 100%; }
}

/* ===== Contact Form 7 integration ===== */
/* CF7 оборачивает каждое поле в <span class="wpcf7-form-control-wrap">;
   "растворяем" обёртку в layout, чтобы сам инпут остался прямым
   flex-элементом родителя (как было в исходной вёрстке). */
.wpcf7-form-control-wrap { display: contents; }
.wpcf7-not-valid-tip { display: block; font: var(--font-caption); font-size: 1.2rem; color: #e0776d; margin-top: 0.6rem; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  display: block;
  margin-top: 1.6rem;
  font: var(--font-body-sm);
  color: #e0776d;
  border: 1px solid #e0776d;
  border-radius: 0.8rem;
  padding: 1.2rem 1.6rem;
}
.wpcf7-spinner { display: none; }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
