:root {
  --paper: #f5f2ef;
  --cream: #f5f1eb;
  --terracotta: #a35d47;
  --terracotta-dark: #8b4a38;
  --terracotta-deep: #964f3c;
  --text: #2c2520;
  --text-muted: #6b5e56;
  --line: rgba(44, 37, 32, 0.12);
  --bronze: #9a6b4f;
  --panel-tint: #ebe7e2;
  --white: #ffffff;
  --content-max: 1440px;
  --gutter: clamp(20px, 4vw, 48px);
  --container: min(var(--content-max), calc(100% - var(--gutter) * 2));
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: clamp(72px, 10vw, 88px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --panel-overscan: 4%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.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;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  --section-bg: var(--paper);
  position: relative;
  isolation: isolate;
  padding-block: clamp(56px, 8vw, 96px);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100vw;
  background: var(--section-bg);
  z-index: 0;
}

.section > .container,
.section > .section__grid,
.section > .hero__inner {
  position: relative;
  z-index: 1;
}

.section__grid {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, min(42vw, 720px));
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}

.section__media {
  width: 100%;
  max-width: 720px;
  justify-self: end;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  min-height: var(--header-h);
}

.logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.logo__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.logo__tag {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  margin-inline: auto;
}

.nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.header__right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  flex-shrink: 0;
}

.header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.header__phone {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.header__hours {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn--primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--terracotta-dark);
}

.btn--ghost {
  background: rgba(44, 37, 32, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: rgba(44, 37, 32, 0.1);
}

.btn--light {
  background: var(--cream);
  color: var(--text);
  min-width: min(280px, 100%);
  margin-left: auto;
  font-weight: 600;
}

.btn--light:hover {
  background: var(--white);
  color: var(--text);
}

.btn--header {
  min-height: 44px;
  padding-inline: 18px;
  white-space: nowrap;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.link-btn:hover {
  color: var(--text);
}

/* Hero */
.hero {
  --section-bg: var(--cream);
  --hero-text-width: min(560px, calc(var(--content-max) * 0.46));
  padding-block: 0;
  overflow: hidden;
}

.hero__stage {
  position: relative;
  min-height: clamp(520px, 72vh, 700px);
  overflow: hidden;
}

.hero__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--cream) 0%,
    var(--cream) 22%,
    rgba(245, 241, 235, 0.96) 34%,
    rgba(245, 241, 235, 0.72) 44%,
    rgba(245, 241, 235, 0.28) 54%,
    transparent 64%
  );
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 58% 42%;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding-block: clamp(40px, 5vw, 72px);
}

.hero__content {
  max-width: var(--hero-text-width);
}

.hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 14ch;
  text-wrap: balance;
}

.hero__lead {
  margin: 0 0 32px;
  max-width: 42ch;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  padding-block: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
  background: var(--cream);
  overflow: visible;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow: visible;
}

.hero-feature__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  max-width: none;
  object-fit: contain;
}

.hero-feature__text {
  min-width: 0;
  flex: 1;
  padding-left: 2px;
}

.hero-feature strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-feature span {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Section head */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-head__title,
.why__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.portfolio-card__link {
  display: block;
}

.portfolio-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 14px;
}

.portfolio-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio-card__link:hover .portfolio-card__img img {
  transform: scale(1.03);
}

.portfolio-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.portfolio-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Materials */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(24px, 4vw, 36px);
}

.material-card {
  margin: 0;
}

.material-card__img {
  aspect-ratio: 1;
  margin-bottom: 10px;
  padding: 18%;
  background: var(--panel-tint);
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.44);
}

.material-card figcaption {
  font-size: 0.82rem;
  text-align: center;
  color: var(--text-muted);
}

.materials-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.5vw, 44px);
  padding: clamp(36px, 3.5vw, 44px) clamp(40px, 4.5vw, 56px) clamp(44px, 4vw, 52px);
  background: var(--panel-tint);
  min-height: clamp(152px, 11.5vw, 168px);
  overflow: visible;
}

.materials-banner__icon {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  max-width: none;
  object-fit: contain;
  transform: scale(1.5);
  transform-origin: center center;
}

.materials-banner p {
  margin: 0;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.materials-banner .link-btn {
  position: absolute;
  right: clamp(40px, 4.5vw, 56px);
  bottom: clamp(28px, 3vw, 36px);
  font-size: 0.875rem;
  color: var(--bronze);
}

.materials-banner .link-btn:hover {
  color: var(--terracotta-dark);
}

/* Approach */
.approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.3fr) minmax(240px, 0.95fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: stretch;
}

.approach__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 40%;
}

.approach__main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.approach__main h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.5rem + 1vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
}

.approach__intro {
  margin: 0 0 clamp(20px, 2.5vw, 32px);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: none;
}

.approach-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  min-height: 0;
}

.approach-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(8px, 1.2vh, 14px) 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  overflow: visible;
}

.approach-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(154, 107, 79, 0.38);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bronze);
  line-height: 1;
  transform: scale(1.375);
  transform-origin: center center;
}

.approach-benefits {
  list-style: none;
  margin: 0;
  padding: clamp(22px, 2.5vw, 28px) clamp(20px, 2vw, 28px);
  background: var(--panel-tint);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
}

.approach-benefits li {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
}

.approach-benefits__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  max-width: none;
  object-fit: contain;
  transform: scale(1.44);
  transform-origin: center center;
}

.approach-benefits li > div {
  padding-left: 8px;
}

.approach-benefits strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.25;
}

.approach-benefits span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Why */
.why__head {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(32px, 5vw, 48px);
}

.why__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.why__title {
  text-align: center;
  margin: 0;
  flex-shrink: 0;
  padding-inline: clamp(16px, 3vw, 32px);
  background: var(--section-bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

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

.why-card__icon {
  display: block;
  width: 76px;
  height: 76px;
  max-width: none;
  margin: 0 auto 16px;
  object-fit: contain;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.2;
}

.why-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 28ch;
  margin-inline: auto;
}

/* Reviews */
.reviews-slider {
  position: relative;
}

.reviews-slider__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  overflow: hidden;
}

.review-card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 28px);
  background: var(--cream);
  border: 1px solid var(--line);
}

.review-card__quote {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--bronze);
  margin-bottom: 8px;
}

.review-card p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}

.review-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 12px;
}

.review-card footer {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Contact — type D: scaled vase left, text + form grid */
.contact.section {
  /* сэмпл стены decor-vase.jpg возле вазы (x≈18%) */
  --section-bg: #8a4127;
  --contact-vase-h: clamp(420px, 38vw, 520px);
  --contact-vase-slot: clamp(240px, 22vw, 340px);
  --contact-vase-shift: clamp(36px, 5vw, 72px);
  /* подрезка секции сверху; media/img не трогаем */
  --contact-trim-top: clamp(20px, 2.5vw, 32px);
  --contact-body-pad: clamp(32px, 4vw, 48px);
  --contact-content-pad-top: clamp(24px, 3vw, 36px);
  padding-block-start: clamp(12px, 1.5vw, 20px);
  padding-block-end: 0;
  overflow: hidden;
  clip-path: inset(var(--contact-trim-top) 0 0 0);
  margin-block-start: calc(-1 * var(--contact-trim-top));
  color: var(--white);
}

.contact__strip {
  position: relative;
  width: 100%;
  max-width: 100vw;
  margin-inline: auto;
  background: var(--section-bg);
  overflow: hidden;
  isolation: isolate;
}

.contact__media {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--content-max)) / 2));
  bottom: calc(-1 * var(--contact-vase-shift));
  height: var(--contact-vase-h);
  z-index: 0;
  pointer-events: none;
  line-height: 0;
  background: var(--section-bg);
}

.contact__media img {
  display: block;
  height: var(--contact-vase-h);
  width: auto;
  max-width: none;
  transform: scale(1.06);
  transform-origin: left bottom;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 2%,
    rgba(0, 0, 0, 0.28) 4.5%,
    rgba(0, 0, 0, 0.5) 7%,
    rgba(0, 0, 0, 0.72) 9.5%,
    rgba(0, 0, 0, 0.88) 11.5%,
    rgba(0, 0, 0, 0.97) 13.5%,
    #000 15%,
    #000 42%,
    rgba(0, 0, 0, 0.98) 48%,
    rgba(0, 0, 0, 0.92) 53%,
    rgba(0, 0, 0, 0.82) 58%,
    rgba(0, 0, 0, 0.68) 64%,
    rgba(0, 0, 0, 0.52) 70%,
    rgba(0, 0, 0, 0.36) 76%,
    rgba(0, 0, 0, 0.22) 82%,
    rgba(0, 0, 0, 0.1) 88%,
    rgba(0, 0, 0, 0.03) 93%,
    transparent 97%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 2%,
    rgba(0, 0, 0, 0.28) 4.5%,
    rgba(0, 0, 0, 0.5) 7%,
    rgba(0, 0, 0, 0.72) 9.5%,
    rgba(0, 0, 0, 0.88) 11.5%,
    rgba(0, 0, 0, 0.97) 13.5%,
    #000 15%,
    #000 42%,
    rgba(0, 0, 0, 0.98) 48%,
    rgba(0, 0, 0, 0.92) 53%,
    rgba(0, 0, 0, 0.82) 58%,
    rgba(0, 0, 0, 0.68) 64%,
    rgba(0, 0, 0, 0.52) 70%,
    rgba(0, 0, 0, 0.36) 76%,
    rgba(0, 0, 0, 0.22) 82%,
    rgba(0, 0, 0, 0.1) 88%,
    rgba(0, 0, 0, 0.03) 93%,
    transparent 97%
  );
}

.contact__body {
  position: relative;
  z-index: 1;
  /* низ уменьшаем на величину отступа сверху у grid — высота секции не растёт */
  padding-bottom: calc(var(--contact-body-pad) - var(--contact-content-pad-top));
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  padding-block-start: var(--contact-content-pad-top);
  padding-left: calc(var(--contact-vase-slot) + clamp(12px, 2vw, 28px));
}

.contact__main {
  display: flex;
  align-items: flex-start;
}

.contact__text {
  flex: 1;
  min-width: 0;
  max-width: min(100%, 480px);
}

.contact__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.15rem + 1.3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 16ch;
  text-wrap: balance;
}

.contact__text > p {
  margin: 0 0 24px;
  opacity: 0.9;
  max-width: 38ch;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact__list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.85;
  margin-top: 2px;
}

.contact__list a,
.contact__list span {
  display: block;
  font-size: 0.92rem;
}

.contact__list a:hover {
  text-decoration: underline;
}

.contact__list li > div span:last-child {
  opacity: 0.75;
  font-size: 0.82rem;
  margin-top: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.contact-form .btn--light {
  margin-top: 2px;
  align-self: flex-start;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  font: inherit;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: border-color 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.7);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  opacity: 0.85;
  cursor: pointer;
}

.checkbox input {
  margin-top: 3px;
  accent-color: var(--cream);
}

/* Footer */
.footer {
  background: var(--cream);
  border-top: none;
  padding: 20px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__inner > p {
  margin: 0;
  flex-shrink: 0;
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__links button {
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  line-height: 0;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  color: var(--bronze);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer__social a:hover {
  color: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  background: rgba(154, 107, 79, 0.06);
}

.footer__social a svg,
.footer__social-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer__social-icon--instagram {
  fill: none;
}

.footer__social-icon--instagram rect,
.footer__social-icon--instagram circle[stroke] {
  stroke: currentColor;
}

.footer__social-icon--pinterest,
.footer__social-icon--houzz {
  fill: currentColor;
}

/* Modal */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 37, 32, 0.55);
}

.modal-card {
  position: relative;
  width: min(820px, calc(100vw - 40px));
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: clamp(28px, 4vw, 40px);
  background: var(--cream);
  box-shadow: 0 24px 64px rgba(44, 37, 32, 0.2);
}

.modal-card--wide {
  width: min(1120px, calc(100vw - 40px));
}

.modal-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin: 0 0 20px;
  padding-right: 40px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

.modal-form {
  display: grid;
  gap: 14px;
}

.modal-form .field input,
.modal-form .field textarea,
.modal-form .field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font: inherit;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
}

.modal-form .field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.modal-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-form .btn--primary {
  width: 100%;
  margin-top: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.materials-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.materials-modal-grid figure {
  margin: 0;
  text-align: center;
}

.materials-modal-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.reviews-modal-list {
  display: grid;
  gap: 16px;
}

.reviews-modal-list .review-card {
  display: flex;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 14px 24px;
  background: var(--text);
  color: var(--white);
  font-size: 0.9rem;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.toast[hidden] {
  display: none;
}

@media (min-width: 901px) {
  .hero__stage {
    --shell-left: max(var(--gutter), calc((100vw - var(--content-max)) / 2));
    --shell-right: max(var(--gutter), calc((100vw - var(--content-max)) / 2));
    --hero-text-width: min(560px, calc(var(--content-max) * 0.46));
    --hero-overlay-width: min(640px, calc(var(--hero-text-width) + 80px));
    --hero-media-left: calc(var(--shell-left) + var(--hero-text-width));
    --hero-media-max: calc(var(--content-max) - var(--hero-text-width));
  }

  .hero__stage::before {
    inset: auto;
    top: 0;
    bottom: 0;
    left: var(--shell-left);
    width: var(--hero-overlay-width);
    background: linear-gradient(
      90deg,
      var(--cream) 0%,
      var(--cream) 68%,
      rgba(245, 241, 235, 0.92) 82%,
      rgba(245, 241, 235, 0.45) 92%,
      transparent 100%
    );
  }

  .hero__media {
    inset: auto;
    top: 0;
    bottom: 0;
    left: var(--hero-media-left);
    right: var(--shell-right);
    width: auto;
    max-width: var(--hero-media-max);
    overflow: hidden;
  }

  .hero__photo {
    object-position: 56% 40%;
  }
}

/* Responsive */
@media (max-width: 1180px) {
  .header__contact {
    display: none;
  }

  .approach__grid {
    grid-template-columns: 1fr 1fr;
  }

  .approach-benefits {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 20px var(--gutter);
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .burger {
    display: flex;
  }

  .btn--header {
    display: none;
  }

  .section__grid {
    grid-template-columns: 1fr;
  }

  .section__media {
    justify-self: stretch;
    max-width: none;
  }

  .materials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reviews-slider__track {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {
  .contact.section {
    --contact-vase-h: clamp(240px, 58vw, 300px);
    --contact-vase-slot: min(36vw, 132px);
    --contact-vase-shift: clamp(20px, 6vw, 40px);
    --contact-trim-top: clamp(14px, 4vw, 22px);
    --contact-body-pad: clamp(24px, 5vw, 36px);
    --contact-content-pad-top: clamp(16px, 4vw, 24px);
    padding-block-start: clamp(8px, 2vw, 14px);
    padding-block-end: 0;
  }

  .contact__media {
    left: var(--gutter);
    height: var(--contact-vase-h);
  }

  .contact__media img {
    height: var(--contact-vase-h);
    transform: scale(1.08);
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.12) 3%,
      rgba(0, 0, 0, 0.38) 7%,
      rgba(0, 0, 0, 0.72) 11%,
      rgba(0, 0, 0, 0.94) 14%,
      #000 17%,
      #000 34%,
      rgba(0, 0, 0, 0.95) 42%,
      rgba(0, 0, 0, 0.85) 48%,
      rgba(0, 0, 0, 0.7) 55%,
      rgba(0, 0, 0, 0.52) 62%,
      rgba(0, 0, 0, 0.34) 70%,
      rgba(0, 0, 0, 0.18) 78%,
      rgba(0, 0, 0, 0.06) 86%,
      transparent 94%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.12) 3%,
      rgba(0, 0, 0, 0.38) 7%,
      rgba(0, 0, 0, 0.72) 11%,
      rgba(0, 0, 0, 0.94) 14%,
      #000 17%,
      #000 34%,
      rgba(0, 0, 0, 0.95) 42%,
      rgba(0, 0, 0, 0.85) 48%,
      rgba(0, 0, 0, 0.7) 55%,
      rgba(0, 0, 0, 0.52) 62%,
      rgba(0, 0, 0, 0.34) 70%,
      rgba(0, 0, 0, 0.18) 78%,
      rgba(0, 0, 0, 0.06) 86%,
      transparent 94%
    );
  }

  .contact__grid {
    grid-template-columns: 1fr;
    padding-left: calc(var(--contact-vase-slot) + 12px);
    gap: 24px;
  }

  .contact__text {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .hero__stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero__stage::before {
    display: none;
  }

  .hero__media {
    position: relative;
    inset: auto;
    order: -1;
    height: clamp(300px, 56vw, 440px);
    width: 100%;
  }

  .hero__photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    object-position: center 38%;
  }

  .hero__inner {
    min-height: auto;
    padding-block: clamp(28px, 4vw, 40px);
  }

  .hero__content {
    max-width: none;
  }

  .hero__content h1 {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-banner {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px 24px 32px;
    text-align: center;
    min-height: 0;
  }

  .materials-banner__icon {
    transform: scale(1);
  }

  .materials-banner p {
    max-width: none;
  }

  .materials-banner .link-btn {
    position: static;
    margin-top: 4px;
  }

  .approach__grid {
    grid-template-columns: 1fr;
  }

  .approach-benefits {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why__line {
    display: none;
  }

  .hero__features {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form__row,
  .modal-form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__social {
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__features,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
