:root {
  --cream: #f7f2ea;
  --paper: #fffdf9;
  --paper-soft: #f0e9df;
  --ink: #263029;
  --muted: #687067;
  --sage: #75866f;
  --sage-dark: #596954;
  --blush: #d9aaa2;
  --blush-soft: #efdcd6;
  --line: rgba(38, 48, 41, 0.13);
  --shadow: 0 24px 70px rgba(73, 61, 47, 0.13);
  --radius-large: 34px;
  --radius-medium: 24px;
  --radius-small: 16px;
  --max-width: 1240px;
  --header-height: 86px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(239, 220, 214, 0.8), transparent 27rem),
    radial-gradient(circle at 95% 20%, rgba(205, 220, 196, 0.55), transparent 29rem),
    var(--cream);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 28px), var(--max-width));
  min-height: 72px;
  padding: 10px 12px 10px 20px;
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: 0 14px 50px rgba(71, 62, 51, 0.09);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.brand {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 9px;
  text-decoration: none;
  line-height: 1;
}
.brand-mark {
  grid-row: 1 / 3;
  color: var(--blush);
  font-size: 31px;
}
.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-note {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-action {
  padding: 13px 19px;
  color: white;
  background: var(--sage);
  border-radius: 999px;
}
.site-nav .nav-action:hover {
  color: white;
  background: var(--sage-dark);
  transform: translateY(-2px);
}
.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px;
  background: transparent;
  border: 0;
  border-radius: 50%;
}
.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

.section {
  position: relative;
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
  padding-block: 112px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--sage);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.045em;
}
h1 { font-size: clamp(64px, 8.3vw, 132px); }
h1 em { color: var(--blush); font-weight: 600; }
h2 { font-size: clamp(48px, 6vw, 86px); }
.section-heading {
  display: grid;
  grid-template-columns: 1.1fr .75fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 46px;
}
.section-heading > p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: clamp(45px, 7vw, 100px);
  align-items: center;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 85px);
  padding-bottom: 80px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-text {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
}
.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary {
  color: white;
  background: var(--sage);
  box-shadow: 0 13px 30px rgba(89, 105, 84, .23);
}
.button-primary:hover { background: var(--sage-dark); }
.button-secondary {
  color: var(--ink);
  background: rgba(255,255,255,.48);
  border-color: var(--line);
}
.button-secondary:hover { background: var(--paper); }
.hero-facts {
  display: flex;
  gap: 34px;
  padding: 0;
  margin: 50px 0 0;
  list-style: none;
}
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  line-height: 1;
}
.hero-facts span { max-width: 110px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.hero-visual { position: relative; min-height: 650px; }
.hero-frame {
  position: absolute;
  inset: 25px 0 20px 70px;
  overflow: hidden;
  border: 12px solid rgba(255,255,255,.68);
  border-radius: 46% 46% 25% 25% / 34% 34% 18% 18%;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(31, 42, 34, .08));
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 215px;
  padding: 17px 20px;
  background: rgba(255,253,249,.88);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 18px;
  box-shadow: 0 15px 42px rgba(69, 58, 45, .14);
  backdrop-filter: blur(15px);
}
.hero-card span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.hero-card strong { font-family: "Cormorant Garamond", serif; font-size: 20px; }
.hero-card-top { top: 65px; left: 0; }
.hero-card-bottom { right: -12px; bottom: 72px; }
.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(5px);
  pointer-events: none;
}
.hero-glow-one { width: 280px; height: 280px; top: 14%; left: -11%; background: rgba(239,220,214,.85); }
.hero-glow-two { width: 330px; height: 330px; right: -10%; bottom: 5%; background: rgba(197,214,187,.62); }


.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  background: var(--paper-soft);
  border: 0;
  border-radius: var(--radius-medium);
  box-shadow: 0 12px 32px rgba(69, 58, 45, .08);
  isolation: isolate;
}

.work-card img,
.category-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform .65s cubic-bezier(.2,.65,.2,1), filter .35s ease;
}

/* Точная точка кадрирования каждой избранной работы */
.featured-position-sunflower { object-position: 50% 48%; }
.featured-position-bust { object-position: 50% 50%; }
.featured-position-basket { object-position: 50% 51%; }
.featured-position-pink-bag { object-position: 50% 50%; }
.featured-position-vertical { object-position: 50% 45%; }
.featured-position-wedding { object-position: 50% 48%; }
.featured-position-light-bag { object-position: 50% 50%; }

.work-card::after,
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(21,29,23,.68));
  pointer-events: none;
}

.work-card:hover img,
.category-card:hover img {
  transform: scale(1.035);
}

.work-caption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: grid;
  color: white;
  text-align: left;
}

.work-caption small {
  margin-bottom: 3px;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
}

.work-caption strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  line-height: 1;
}

.categories::before {
  content: "";
  position: absolute;
  inset: 42px -55vw;
  z-index: -1;
  background: rgba(255,253,249,.57);
  border-block: 1px solid rgba(255,255,255,.6);
}
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.category-card {
  position: relative;
  height: 420px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--paper-soft);
  border: 0;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
  text-align: left;
}
.category-card span {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 28px;
  left: 30px;
  display: grid;
  color: white;
}
.category-card small { font-size: 10px; letter-spacing: .11em; text-transform: uppercase; opacity: .75; }
.category-card strong { margin: 5px 0 13px; font-family: "Cormorant Garamond", serif; font-size: clamp(34px, 4vw, 54px); line-height: .95; }
.category-card i { font-size: 12px; font-style: normal; font-weight: 700; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-button {
  padding: 11px 17px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255,255,255,.48);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.filter-button:hover { transform: translateY(-2px); }
.filter-button.is-active { color: white; background: var(--sage); border-color: var(--sage); }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.portfolio-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  background: var(--paper-soft);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(69, 58, 45, .08);
  transition: opacity .3s ease, transform .3s ease;
}
.portfolio-item.is-hidden { display: none; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-item:hover img { transform: scale(1.045); }
.portfolio-item::after {
  content: attr(data-title);
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 11px 13px;
  color: white;
  background: rgba(35,46,38,.7);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  backdrop-filter: blur(9px);
}
.portfolio-item:hover::after { opacity: 1; transform: translateY(0); }
.portfolio-empty { padding: 50px; text-align: center; color: var(--muted); }

.about {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}
.about-art { position: relative; }
.about-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -28px 35px 30px -28px;
  background: var(--blush-soft);
  border-radius: 46% 54% 52% 48% / 37% 43% 57% 63%;
  transform: rotate(-4deg);
}
.about-art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 42%; border-radius: 52% 48% 25% 25% / 42% 42% 20% 20%; box-shadow: var(--shadow); }
.about-stamp {
  position: absolute;
  right: -22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  color: white;
  background: var(--sage);
  border: 7px solid var(--cream);
  border-radius: 50%;
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: .9;
  text-align: center;
  transform: rotate(8deg);
}
.about-copy h2 { margin-bottom: 27px; }
.about-copy > p { max-width: 650px; color: var(--muted); }
.about-copy .about-lead { color: var(--ink); font-family: "Cormorant Garamond", serif; font-size: clamp(25px, 3vw, 38px); line-height: 1.15; }
.about-points { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0; }
.about-points span { padding: 9px 13px; color: var(--sage-dark); background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; }
.text-link { display: inline-block; color: var(--sage-dark); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }

.contact {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 620px;
  overflow: hidden;
  margin-bottom: 80px;
  padding: 0;
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 44px;
  box-shadow: var(--shadow);
}
.contact-panel { padding: clamp(50px, 7vw, 90px); align-self: center; }
.contact-panel h2 { margin-bottom: 28px; }
.contact-panel > p:not(.eyebrow) { max-width: 590px; color: var(--muted); }
.contact-collage { position: relative; min-height: 580px; background: var(--blush-soft); overflow: hidden; }
.contact-photo { position: absolute; width: 58%; aspect-ratio: 1; padding: 14px; overflow: hidden; background: #fbf7f1; border: 10px solid rgba(255,255,255,.72); border-radius: 28px; box-shadow: var(--shadow); }
.contact-photo-image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; border-radius: 16px; }
.contact-photo-one { top: 45px; left: 42px; transform: rotate(-7deg); }
.contact-photo-two { right: 35px; bottom: 30px; transform: rotate(7deg); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 36px 0 50px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.footer-brand { justify-self: start; }
.footer-brand .brand-note { display: none; }

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  color: white;
  background: rgba(20, 25, 21, .91);
  border: 0;
  backdrop-filter: blur(18px);
}
.lightbox::backdrop { background: rgba(20,25,21,.75); }
.lightbox[open] { display: grid; grid-template-columns: 80px minmax(0, 1fr) 80px; place-items: center; }
.lightbox figure { display: grid; gap: 16px; max-width: min(80vw, 840px); max-height: 88vh; margin: 0; }
.lightbox img { max-width: 100%; max-height: 75vh; margin: auto; object-fit: contain; border-radius: 20px; box-shadow: 0 25px 90px rgba(0,0,0,.35); }
.lightbox figcaption { display: grid; text-align: center; }
.lightbox figcaption small { color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.lightbox figcaption strong { font-family: "Cormorant Garamond", serif; font-size: 26px; }
.lightbox-close, .lightbox-arrow {
  color: white;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
}
.lightbox-close { position: fixed; top: 22px; right: 22px; width: 48px; height: 48px; font-size: 28px; }
.lightbox-arrow { width: 52px; height: 52px; font-size: 38px; line-height: 1; }
.lightbox-prev { grid-column: 1; }
.lightbox figure { grid-column: 2; }
.lightbox-next { grid-column: 3; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.22,.75,.22,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-parallax] { transform: none !important; }
}

@media (max-width: 1050px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 560px; }
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  :root { --header-height: 75px; }
  .site-header { top: 10px; min-height: 62px; }
  .menu-button { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px;
    background: rgba(255,253,249,.96);
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease;
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav a { padding: 13px 12px; }
  .site-nav .nav-action { margin-top: 5px; text-align: center; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { width: min(calc(100% - 28px), var(--max-width)); padding-block: 82px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: calc(var(--header-height) + 65px); }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .hero-visual { min-height: 590px; margin-top: 12px; }
  .hero-frame { inset: 20px 40px 20px 40px; }
  .hero-card-top { left: 5px; }
  .hero-card-bottom { right: 5px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { height: 350px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .about { grid-template-columns: 1fr; }
  .about-art { max-width: 520px; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; }
  .contact-collage { min-height: 470px; }
  .site-footer { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .footer-brand { justify-self: center; }
}

@media (max-width: 560px) {
  .brand-note { display: none; }
  .brand-mark { grid-row: auto; }
  .site-header { padding-left: 14px; }
  h1 { font-size: clamp(56px, 18vw, 82px); }
  h2 { font-size: clamp(43px, 14vw, 66px); }
  .hero { gap: 22px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-facts { gap: 18px; }
  .hero-facts strong { font-size: 27px; }
  .hero-visual { min-height: 450px; }
  .hero-frame { inset: 10px 18px 10px 18px; border-width: 8px; }
  .hero-card { min-width: 0; max-width: 190px; padding: 12px 14px; }
  .hero-card strong { font-size: 17px; }
  .hero-card-top { top: 15px; }
  .hero-card-bottom { bottom: 18px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work-caption { right: 13px; bottom: 13px; left: 13px; }
  .work-caption strong { font-size: 20px; }
  .category-grid { grid-template-columns: 1fr; gap: 12px; }
  .category-card { height: 310px; border-radius: 25px; }
  .category-card span { right: 22px; bottom: 22px; left: 22px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .portfolio-item { border-radius: 14px; }
  .portfolio-item::after { display: none; }
  .about-stamp { right: -5px; width: 96px; height: 96px; font-size: 16px; }
  .contact { border-radius: 28px; }
  .contact-panel { padding: 45px 24px; }
  .contact-collage { min-height: 390px; }
  .contact-photo { border-width: 6px; }
  .lightbox[open] { grid-template-columns: 1fr; padding: 65px 12px 18px; }
  .lightbox figure { grid-column: 1; max-width: 100%; }
  .lightbox-arrow { position: fixed; bottom: 20px; width: 48px; height: 48px; }
  .lightbox-prev { left: 20px; }
  .lightbox-next { right: 20px; }
}

/* Enhanced depth and motion */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -3;
  width: 44vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .32;
  pointer-events: none;
  transform: translate3d(0, var(--ambient-shift, 0), 0);
}
body::before { top: 12vh; left: -20vw; background: rgba(235, 198, 190, .48); }
body::after { right: -19vw; bottom: 3vh; background: rgba(177, 198, 169, .52); }

.hero-visual { perspective: 1200px; isolation: isolate; }
.hero-frame {
  transform: rotate(2deg) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform .22s ease-out;
  will-change: transform, translate;
}
.hero-frame img,
[data-parallax-image] {
  --image-shift: 0px;
  transform: translate3d(0, var(--image-shift), 0) scale(1.09);
  will-change: transform;
}
.hero-frame img { transition: transform .2s linear; }
.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(83, 104, 78, .24);
  border-radius: 50%;
  pointer-events: none;
}
.hero-orbit-one { width: 470px; height: 470px; top: 4%; right: -8%; transform: rotate(18deg); }
.hero-orbit-two { width: 610px; height: 300px; right: -18%; bottom: 8%; border-color: rgba(191, 143, 136, .22); transform: rotate(-21deg); }
.hero-flower-word {
  position: absolute;
  z-index: -2;
  top: 42%;
  right: -9%;
  color: rgba(71, 88, 67, .065);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(110px, 15vw, 230px);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: .7;
  pointer-events: none;
}

.motion-ribbon {
  width: 100%;
  overflow: hidden;
  padding: 22px 0 34px;
}
.motion-ribbon-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  white-space: nowrap;
  will-change: transform;
}
.motion-ribbon span {
  color: rgba(45, 57, 47, .84);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(54px, 8.2vw, 128px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .85;
}
.motion-ribbon i { color: var(--blush); font-size: clamp(28px, 4vw, 58px); font-style: normal; }

.work-card,
.category-card,
.portfolio-item,
.about-art,
.about-copy,
.hero-card,
.hero-orbit,
.hero-flower-word,
.about-stamp,
.about-line,
.about-word { will-change: translate; }

.work-card img,
.category-card img {
  transform: translate3d(var(--hover-x, 0px), calc(var(--image-shift, 0px) + var(--hover-y, 0px)), 0) scale(1.1);
}
.work-card:hover img,
.category-card:hover img { transform: translate3d(var(--hover-x, 0px), calc(var(--image-shift, 0px) + var(--hover-y, 0px)), 0) scale(1.16); }

.category-card {
  perspective: 900px;
  transform-style: preserve-3d;
  transition: box-shadow .35s ease;
}
.category-card span { transform: translateZ(36px); }
.category-card:hover { box-shadow: 0 32px 80px rgba(69, 58, 45, .18); }

.portfolio-item:nth-child(4n + 2) { top: 14px; }
.portfolio-item:nth-child(4n + 4) { top: -10px; }

.about { position: relative; }
.about-art { isolation: isolate; }
.about-word {
  position: absolute;
  z-index: -2;
  top: 5%;
  left: -19%;
  color: rgba(70, 91, 67, .085);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(100px, 15vw, 220px);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: .7;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.about-line {
  position: absolute;
  z-index: -1;
  width: 72%;
  height: 72%;
  right: -14%;
  bottom: -9%;
  border: 1px solid rgba(179, 130, 124, .25);
  border-radius: 50%;
  transform: rotate(24deg);
}

@media (max-width: 820px) {
  .motion-ribbon { padding-block: 5px 25px; }
  .hero-orbit-one { width: 390px; height: 390px; }
  .hero-orbit-two { width: 450px; height: 230px; }
  .about-word { left: -6%; opacity: .65; }
  .portfolio-item:nth-child(n) { translate: 0 0; }
}

@media (max-width: 560px) {
  .hero-flower-word { right: -2%; font-size: 95px; }
  .hero-orbit { opacity: .55; }
  .motion-ribbon span { font-size: 49px; }
  .about-word { display: none; }
}


@media (max-width: 390px) {
  .featured-grid { grid-template-columns: 1fr; gap: 12px; }
  .work-card { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { transform: none; }
  .motion-ribbon-track { transform: none !important; }
  .hero-frame { transform: rotate(2deg); }
  [data-parallax-image] { --image-shift: 0px !important; }
}


/* V5: responsive refinement and unified typography */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-size: 16px;
  line-height: 1.65;
}

main,
section,
header,
footer,
nav,
div {
  min-width: 0;
}

h1,
h2,
.brand-name,
.work-caption strong,
.category-card strong,
.hero-card strong,
.about-lead,
.lightbox figcaption strong {
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* Russian text wraps only at normal word boundaries.
   Automatic hyphenation is enabled for paragraphs and list text. */
p,
li {
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

a,
button,
span,
small,
strong {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

/* Interface headings must never break at an arbitrary letter. */
h1,
h2,
.brand-name,
.site-nav a,
.button,
.filter-button,
.work-caption strong,
.category-card strong,
.hero-card strong,
.about-lead,
.lightbox figcaption strong {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

/* These three compact labels may hyphenate according to Russian rules
   when the screen is genuinely too narrow. */
.hero-facts strong {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.section-heading > p,
.hero-text,
.about-copy > p,
.contact-panel > p:not(.eyebrow) {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
}

.eyebrow,
.brand-note,
.site-nav a,
.button,
.filter-button,
.about-points span {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: .08em;
}

/* Compact “About the florist” block */
.about {
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 6vw, 82px);
  align-items: center;
  padding-block: 76px;
}

.about-art {
  width: 100%;
  max-width: 430px;
  height: clamp(300px, 34vw, 430px);
  margin-inline: auto;
}

.about-art::before {
  inset: -18px 26px 20px -18px;
}

.about-art img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 34px 34px 22px 22px;
}

.about-copy h2 {
  margin-bottom: 18px;
}

.about-copy .about-lead {
  font-size: clamp(24px, 2.5vw, 34px);
}

.about-copy > p {
  margin-block: 0 14px;
}

.about-points {
  margin: 20px 0;
}

.about-stamp {
  right: -16px;
  bottom: -15px;
  width: 96px;
  height: 96px;
  border-width: 6px;
  font-size: 16px;
}

.about-word {
  top: 7%;
  left: -12%;
  font-size: clamp(82px, 10vw, 150px);
}

.about-line {
  width: 64%;
  height: 64%;
}

/* Keep decorative motion inside the viewport */
.motion-ribbon,
.categories,
.hero,
.about,
.contact,
.site-footer {
  max-width: 100%;
}

.hero-orbit,
.hero-flower-word,
.about-word,
.about-line,
.hero-glow,
body::before,
body::after {
  pointer-events: none;
}

@media (max-width: 1200px) {
  .section {
    width: min(calc(100% - 36px), var(--max-width));
  }

  h1 { font-size: clamp(62px, 8vw, 108px); }
  h2 { font-size: clamp(45px, 5.5vw, 76px); }
}

@media (max-width: 900px) {
  .section {
    width: min(calc(100% - 28px), var(--max-width));
    padding-block: 72px;
  }

  .about {
    grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
    gap: 34px;
  }

  .about-art {
    height: 350px;
  }
}

@media (max-width: 820px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-header {
    width: calc(100% - 20px);
    max-width: calc(100vw - 20px);
  }

  .hero,
  .section,
  .contact,
  .site-footer {
    max-width: calc(100vw - 20px);
  }

  .hero-orbit,
  .hero-flower-word,
  .about-word,
  .about-line {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
    padding-block: 64px;
  }

  .about-art {
    width: min(100%, 560px);
    max-width: 560px;
    height: clamp(280px, 64vw, 390px);
  }

  .about-copy {
    width: min(100%, 680px);
    margin-inline: auto;
  }

}

@media (max-width: 560px) {
  :root {
    --radius-large: 26px;
    --radius-medium: 20px;
  }

  body {
    font-size: 15px;
  }

  .section {
    width: calc(100% - 20px);
    padding-block: 58px;
  }

  .site-header {
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    transform: none;
  }

  .brand-name { font-size: 25px; }
  h1 { font-size: clamp(50px, 15vw, 70px); }
  h2 { font-size: clamp(40px, 12vw, 58px); }

  .hero-text,
  .section-heading > p,
  .about-copy > p,
  .contact-panel > p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-visual,
  .hero-frame,
  .category-card,
  .work-card,
  .portfolio-item,
  .contact,
  .contact-collage {
    max-width: 100%;
  }

  .hero-card {
    max-width: min(180px, 52vw);
  }

  .about {
    padding-block: 52px;
  }

  .about-art {
    width: 100%;
    height: 270px;
  }

  .about-art::before {
    inset: -10px 12px 12px -10px;
  }

  .about-art img {
    border-radius: 24px;
    object-position: center 32%;
  }

  .about-stamp {
    right: 8px;
    bottom: -18px;
    width: 82px;
    height: 82px;
    border-width: 5px;
    font-size: 14px;
  }

  .about-copy .about-lead {
    font-size: clamp(23px, 7vw, 29px);
  }

  .motion-ribbon {
    width: 100vw;
    max-width: 100vw;
  }
}

/* Stable layout for the three hero directions on narrow screens. */
@media (max-width: 560px) {
  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
  }

  .hero-facts li {
    min-width: 0;
    align-content: start;
  }

  .hero-facts strong {
    font-size: clamp(21px, 6.8vw, 27px);
    line-height: 1.02;
  }

  .hero-facts span {
    max-width: none;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .hero-facts {
    gap: 8px;
  }

  .hero-facts strong {
    font-size: 21px;
  }
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}


/* V7 final polish */
:root {
  --header-height: 80px;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: 0;
}

.no-wrap {
  white-space: nowrap;
}

h1,
h2,
.brand-name,
.work-caption strong,
.category-card strong,
.hero-card strong,
.about-lead,
.lightbox figcaption strong {
  letter-spacing: -0.02em;
}

p,
li,
a,
button,
small,
span {
  letter-spacing: normal;
}

.eyebrow,
.brand-note,
.site-nav a,
.button,
.filter-button,
.about-points span,
.hero-card span {
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: .06em;
}

.section {
  padding-block: 74px;
}

.hero {
  min-height: auto;
  padding-top: calc(var(--header-height) + 34px);
  padding-bottom: 48px;
}

.hero-copy {
  padding-top: 0;
}

.hero-facts {
  width: 100%;
  justify-content: space-between;
  gap: clamp(20px, 5vw, 64px);
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-facts li {
  flex: 1 1 0;
  min-width: 0;
}

.hero-facts strong {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(16px, 1.65vw, 22px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  white-space: nowrap;
  hyphens: none;
}

.hero-facts span {
  max-width: none;
  margin-top: 4px;
  font-size: 10px;
}

.hero-visual {
  min-height: clamp(520px, 48vw, 625px);
}

.hero-frame {
  inset: 24px 2px 20px 66px;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-position: center center;
  transform: translate3d(0, var(--image-shift), 0) scale(1.045);
}

.motion-ribbon {
  padding: 10px 0 22px;
}

.motion-ribbon-track {
  padding-left: 7vw;
}

.lightbox-arrow {
  font-size: 0;
}

.lightbox-arrow::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  opacity: .72;
}

.lightbox-prev::before {
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 15px solid white;
}

.lightbox-next::before {
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid white;
}

@media (max-width: 900px) {
  .section {
    padding-block: 58px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 26px);
    padding-bottom: 34px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-top: calc(var(--header-height) + 20px);
    gap: 16px;
  }

  .hero-facts {
    margin-top: 34px;
  }

  .motion-ribbon {
    width: 100%;
    padding: 8px 0 18px;
    overflow: hidden;
  }

  .motion-ribbon-track {
    padding-left: 20vw;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  .motion-ribbon span {
    font-size: clamp(34px, 10vw, 48px);
    letter-spacing: -.025em;
  }

  .motion-ribbon i {
    font-size: 25px;
  }
}

@media (max-width: 560px) {
  .section {
    padding-block: 42px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 24px;
  }

  h1 {
    font-size: clamp(50px, 15.5vw, 68px);
    line-height: .98;
    letter-spacing: -.025em;
  }

  .hero-text {
    margin-top: 22px;
  }

  .hero-actions {
    margin-top: 25px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 30px;
    padding-top: 17px;
  }

  .hero-facts strong {
    font-size: clamp(13px, 3.9vw, 17px);
    line-height: 1.2;
    text-align: left;
  }

  .hero-facts span {
    font-size: 9px;
    line-height: 1.35;
    text-align: left;
  }

  .hero-visual {
    min-height: 430px;
    margin-top: 0;
  }

  .hero-frame {
    inset: 10px 18px;
  }

  .motion-ribbon-track {
    padding-left: 24vw;
    gap: 22px;
  }

  .motion-ribbon span {
    font-size: clamp(31px, 9.5vw, 41px);
  }

  .lightbox[open] {
    position: fixed;
    display: grid;
    grid-template-columns: 1fr;
    padding: 58px 10px 20px;
  }

  .lightbox figure {
    position: relative;
    grid-column: 1;
    width: 100%;
    max-width: 100%;
  }

  .lightbox img {
    max-height: 68vh;
  }

  .lightbox-arrow {
    position: fixed;
    z-index: 5;
    top: 47%;
    bottom: auto;
    width: 42px;
    height: 62px;
    padding: 0;
    background: rgba(20, 25, 21, .18);
    border-color: rgba(255,255,255,.22);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transform: translateY(-50%);
  }

  .lightbox-prev { left: 14px; }
  .lightbox-next { right: 14px; }

  .lightbox-prev::before {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-right-width: 12px;
  }

  .lightbox-next::before {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 12px;
  }
}

@media (max-width: 380px) {
  .hero-facts strong {
    font-size: 13px;
  }

  .hero-facts span {
    font-size: 8.5px;
  }
}

/* V8: мобильное кадрирование нижнего фотоколлажа и центрирование стрелок */

.lightbox-arrow {
  display: grid;
  place-items: center;
}

.lightbox-arrow::before {
  margin: 0;
  transform: none;
}

@media (max-width: 560px) {
  .contact-collage {
    min-height: 520px;
    padding: 22px 14px;
  }

  .contact-photo {
    width: min(78%, 300px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fbf7f1;
    border-width: 6px;
  }

  .contact-photo-one {
    top: 24px;
    left: 14px;
    right: auto;
    bottom: auto;
    object-position: 50% 50%;
    transform: rotate(-4deg);
  }

  .contact-photo-two {
    top: auto;
    right: 14px;
    bottom: 24px;
    left: auto;
    object-position: 50% 50%;
    transform: rotate(4deg);
  }

  .lightbox-arrow {
    display: grid;
    place-items: center;
  }

  .lightbox-arrow::before {
    position: static;
    margin: 0;
  }
}

/* V9 — плотность версии 7 и полноширинная полоса направлений */

.section {
  padding-block: 74px;
}

.hero {
  min-height: auto;
  padding-top: calc(var(--header-height) + 34px);
  padding-bottom: 48px;
}

.hero-facts {
  grid-column: 1 / -1;
  width: 100vw;
  max-width: none;
  margin: 18px calc(50% - 50vw) 0;
  padding: 23px max(20px, calc((100vw - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  background: rgba(255, 253, 249, .38);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts li {
  min-width: 0;
  padding: 0 clamp(20px, 3vw, 52px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
}

.hero-facts li:first-child {
  padding-left: 0;
}

.hero-facts li:last-child {
  padding-right: 0;
}

.hero-facts li + li {
  border-left: 1px solid var(--line);
}

.hero-facts strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(27px, 2.6vw, 42px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.025em;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-facts span {
  max-width: 145px;
  margin: 0;
  color: var(--muted);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(10px, .82vw, 13px);
  line-height: 1.35;
  text-align: right;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.hero-facts li:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
}

/* Точное центрирование треугольников в полноэкранной галерее */
.lightbox-arrow {
  position: fixed;
  display: block;
}

.lightbox-arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
}

.lightbox-prev::before {
  transform: translate(-58%, -44%);
}

.lightbox-next::before {
  transform: translate(-42%, -44%);
}

@media (max-width: 900px) {
  .section {
    padding-block: 58px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 26px);
    padding-bottom: 34px;
  }

  .hero-facts {
    margin-top: 12px;
    padding-block: 18px;
  }

  .hero-facts li {
    padding-inline: 18px;
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .hero-facts {
    grid-template-columns: 1fr;
    padding-block: 0;
  }

  .hero-facts li,
  .hero-facts li:first-child,
  .hero-facts li:last-child {
    padding: 15px 0;
  }

  .hero-facts li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-facts strong {
    font-size: clamp(25px, 8vw, 34px);
  }

  .hero-facts span {
    max-width: 150px;
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .section {
    padding-block: 42px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 24px;
  }

  .hero-facts {
    margin-top: 8px;
  }
}


/* V10: движущаяся строка направлений вместо списка */
.directions-ribbon {
  width: 100%;
  padding: 4px 0 18px;
  overflow: hidden;
  border-top: 1px solid rgba(37, 51, 43, 0.12);
  border-bottom: 1px solid rgba(37, 51, 43, 0.12);
}

.directions-ribbon-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  padding: 15px 0 13px 8vw;
  white-space: nowrap;
  will-change: transform;
}

.directions-ribbon-track span {
  flex: 0 0 auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4.2vw, 66px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.018em;
  color: rgba(45, 57, 47, .9);
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.directions-ribbon-track i {
  flex: 0 0 auto;
  color: var(--blush);
  font-size: clamp(20px, 2vw, 31px);
  font-style: normal;
  line-height: 1;
}

@media (max-width: 820px) {
  .directions-ribbon {
    padding: 2px 0 12px;
  }

  .directions-ribbon-track {
    gap: 18px;
    padding: 13px 0 11px 16vw;
  }

  .directions-ribbon-track span {
    font-size: clamp(29px, 8vw, 42px);
    letter-spacing: -.012em;
  }

  .directions-ribbon-track i {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .directions-ribbon-track {
    transform: none !important;
  }
}


/* V16 — уменьшаем только фотографии внутри двух наклонённых открыток */
@media (max-width: 560px) {
  .contact-photo {
    padding: 10px;
  }

  .contact-photo-image {
    border-radius: 12px;
  }
}
