:root {
  --paper: #fbf8f3;
  --paper-deep: #f3ebe2;
  --ink: #3d2d27;
  --muted: #74655f;
  --berry: #b84258;
  --berry-dark: #963448;
  --rose: #e9c8c5;
  --line: #ded2c8;
  --white: #fffdf9;
  --shadow: 0 18px 50px rgba(75, 48, 39, 0.09);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Snell Roundhand", "Segoe Script", cursive;
  --content: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
body::selection { background: var(--rose); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(184, 66, 88, 0.38); outline-offset: 4px; }

.demo-bar {
  position: relative;
  z-index: 20;
  padding: 8px 24px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  min-height: 88px;
  padding: 14px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid rgba(222, 210, 200, 0.72);
  background: rgba(251, 248, 243, 0.96);
}

.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--script); font-size: 29px; white-space: nowrap; }
.brand__note { margin-top: 8px; color: var(--muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav { display: flex; justify-content: center; gap: clamp(16px, 2.2vw, 36px); }
.site-nav a { position: relative; text-decoration: none; font-size: 13px; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--berry); transform: scaleX(0); transition: transform 180ms ease; }
.site-nav a:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid var(--berry);
  border-radius: 8px;
  background: var(--berry);
  color: white;
  font: 600 14px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.button:hover { background: var(--berry-dark); box-shadow: 0 12px 24px rgba(184, 66, 88, 0.18); transform: translateY(-2px); }
.button--small { min-height: 42px; padding: 11px 19px; font-size: 12px; }

.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(520px, 1.35fr);
  background: var(--white);
}
.hero__content { align-self: center; width: min(520px, calc(100% - 48px)); margin-left: max(24px, calc((100vw - 1180px) / 2)); padding: 80px 56px 80px 0; }
.eyebrow { margin: 0 0 12px; color: var(--berry); font-size: 11px; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h1 { margin-bottom: 24px; font-size: clamp(54px, 5.2vw, 78px); letter-spacing: -0.035em; }
h2 { margin-bottom: 18px; font-size: clamp(38px, 4.1vw, 58px); letter-spacing: -0.025em; }
h3 { margin-bottom: 8px; font-size: 23px; }
.accent-line { display: block; width: 52px; height: 2px; margin-bottom: 22px; background: var(--berry); }
.hero__copy { max-width: 380px; margin: 0 0 32px; color: var(--muted); font-size: 17px; }
.hero__media { position: relative; min-height: 700px; margin: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__media figcaption, .about__media figcaption { position: absolute; right: 14px; bottom: 12px; padding: 5px 8px; background: rgba(61, 45, 39, 0.78); color: white; font-size: 10px; letter-spacing: 0.05em; }

.section { width: var(--content); margin: 0 auto; padding: 112px 0; }
.section-heading { max-width: 650px; margin-bottom: 46px; }
.section-heading > p:last-child { color: var(--muted); }
.section-heading--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading--row .section-note { max-width: 320px; margin-bottom: 24px; text-align: right; }
.section-heading--center { margin-right: auto; margin-left: auto; text-align: center; }

.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.work-card { overflow: hidden; border-radius: 120px 120px 14px 14px; background: var(--white); box-shadow: var(--shadow); }
.work-card img { width: 100%; aspect-ratio: 0.78; object-fit: cover; transition: transform 450ms ease; }
.work-card:hover img { transform: scale(1.035); }
.work-card__body { padding: 22px 18px 24px; text-align: center; }
.work-card__body h3 { font-size: 22px; }
.work-card__body p { margin: 0; color: var(--muted); font-size: 12px; }

.fillings { border-top: 1px solid var(--line); }
.fillings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.filling-card { display: flex; gap: 22px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 253, 249, 0.6); }
.filling-card__number { flex: 0 0 auto; color: var(--berry); font: 36px/1 var(--serif); }
.filling-card h3 { margin-bottom: 10px; font-size: 22px; }
.filling-card p { margin: 0; color: var(--muted); font-size: 14px; }

.order { width: 100%; padding-right: max(24px, calc((100% - 1180px) / 2)); padding-left: max(24px, calc((100% - 1180px) / 2)); background: var(--paper-deep); }
.order-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.order-steps li { position: relative; text-align: center; }
.order-steps li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: calc(50% + 56px); width: calc(100% - 42px); height: 1px; background: var(--line); }
.order-steps span { display: inline-grid; width: 52px; height: 52px; margin-bottom: 26px; place-items: center; border: 1px solid var(--rose); border-radius: 50%; background: var(--white); color: var(--berry); font: 24px/1 var(--serif); }
.order-steps h3 { font-size: 24px; }
.order-steps p { max-width: 280px; margin: 0 auto; color: var(--muted); font-size: 14px; }

.about { display: grid; grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1fr); align-items: center; gap: clamp(60px, 9vw, 130px); }
.about__media { position: relative; height: 620px; margin: 0; overflow: hidden; border-radius: 48% 48% 18px 18px; }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.about__content p { max-width: 540px; color: var(--muted); }
.signature { display: block; margin-top: 28px; color: var(--berry); font: 34px/1.2 var(--script); }

.reviews { padding-top: 60px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { min-height: 210px; margin: 0; padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.review-card p { margin: 0 0 24px; color: var(--muted); }
.review-card footer { font-weight: 700; font-size: 13px; }

.contact { width: var(--content); margin: 0 auto 80px; padding: 52px 58px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; border-radius: 30px; background: var(--paper-deep); }
.contact h2 { margin-bottom: 12px; }
.contact p { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.contact__message { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }

.footer { width: var(--content); min-height: 130px; margin: 0 auto; padding: 30px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer .brand { color: var(--ink); }

.legal-page { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 120px; }
.legal-page article { margin-top: 100px; }
.legal-page h1 { font-size: clamp(48px, 7vw, 76px); }
.legal-page p { max-width: 670px; color: var(--muted); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-nav { position: absolute; top: 100%; right: 18px; left: 18px; display: none; padding: 22px; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
  .site-nav[data-open] { display: flex; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .menu-toggle { justify-self: end; display: inline-grid; grid-template-columns: 24px auto; align-items: center; gap: 0 9px; padding: 8px 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
  .menu-toggle__line { grid-column: 1; display: block; width: 24px; height: 1px; background: currentColor; }
  .menu-toggle__label { grid-column: 2; grid-row: 1 / span 2; font-size: 12px; }
  .header-action { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero__content { width: var(--content); margin: 0 auto; padding: 86px 0 60px; }
  .hero__media { min-height: 560px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .about { gap: 54px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { min-height: auto; }
}

@media (max-width: 700px) {
  :root { --content: min(100% - 32px, 560px); }
  .demo-bar { padding: 7px 16px; font-size: 10px; }
  .site-header { min-height: 72px; padding: 10px 16px; gap: 14px; }
  .brand__name { font-size: 23px; }
  .brand__note { margin-top: 6px; font-size: 8px; }
  h1 { font-size: clamp(46px, 14vw, 62px); }
  h2 { font-size: 40px; }
  .hero__content { padding: 66px 0 48px; }
  .hero__media { min-height: 430px; }
  .hero__media img { object-position: 63% center; }
  .section { padding: 82px 0; }
  .section-heading--row { display: block; }
  .section-heading--row .section-note { margin: 0; text-align: left; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card { border-radius: 120px 120px 14px 14px; }
  .work-card img { aspect-ratio: 0.92; }
  .fillings-grid { grid-template-columns: 1fr; }
  .filling-card { padding: 22px; }
  .order { padding-right: 16px; padding-left: 16px; }
  .order-steps { grid-template-columns: 1fr; gap: 44px; }
  .order-steps li:not(:last-child)::after { top: auto; bottom: -25px; left: 50%; width: 1px; height: 22px; }
  .about { grid-template-columns: 1fr; gap: 42px; }
  .about__media { height: 510px; }
  .contact { margin-bottom: 48px; padding: 38px 28px; grid-template-columns: 1fr; }
  .contact .button { width: 100%; }
  .footer { min-height: auto; padding: 34px 0; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
