:root {
  --bg: #f7f1f3;
  --bg-soft: #eef5f2;
  --surface: rgba(255, 252, 253, 0.82);
  --ink: #2f2a2c;
  --muted: #6d6468;
  --line: rgba(47, 42, 44, 0.08);
  --rose: #e8b7c0;
  --rose-deep: #c97b8a;
  --mint: #b7d4c6;
  --sky: #c5d7e8;
  --sand: #f0e2d8;
  --shadow: 0 18px 50px rgba(84, 55, 66, 0.08);
  --radius: 1.5rem;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font-display: "Fraunces", Georgia, serif;
  --font-hero: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background-color: #f7f1f3;
  background-image:
    radial-gradient(ellipse 80% 50% at 12% 8%, rgba(232, 183, 192, 0.42), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 18%, rgba(183, 212, 198, 0.38), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 72%, rgba(197, 215, 232, 0.32), transparent 55%),
    radial-gradient(ellipse 50% 35% at 20% 88%, rgba(240, 226, 216, 0.45), transparent 50%),
    linear-gradient(
      180deg,
      #fbf6f7 0%,
      #f7f1f3 28%,
      #f3f0f4 55%,
      #eef5f2 78%,
      #f5f1f3 100%
    );
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rose-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.narrow {
  max-width: 42rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(251, 246, 247, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 246, 247, 0.92);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 999px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand__name--footer {
  margin-bottom: 0.75rem;
}

.brand__tag {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav__link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.78;
}

.site-nav__link.is-active,
.site-nav__link:hover {
  opacity: 1;
  color: var(--ink);
}

.header-phone {
  justify-self: end;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: center;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before { top: -5px; }
.nav-toggle__bar::after { top: 5px; }

.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 50% at 78% 38%, rgba(232, 183, 192, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 45% at 18% 58%, rgba(183, 212, 198, 0.22), transparent 68%);
}

.hero__backdrop::after {
  display: none;
}

.hero__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__float {
  position: absolute;
  width: clamp(420px, 56vw, 780px);
  will-change: transform;
}

.hero__float--left {
  left: 0;
  top: 2%;
  /* Отдельное свойство translate — не конфликтует с transform параллакса */
  translate: -46% 0;
}

.hero__float--right {
  right: 0;
  top: 10%;
  width: clamp(460px, 60vw, 840px);
  translate: 46% 0;
}

.hero__float-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 36px rgba(84, 55, 66, 0.18));
  animation: hero-float-bob 7s ease-in-out infinite;
  user-select: none;
}

.hero__float--right .hero__float-img {
  animation-duration: 8.5s;
  animation-delay: -2.5s;
}

@keyframes hero-float-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2.5deg);
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 4.5rem;
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.hero__content .hero__lead,
.hero__content .hero__actions {
  margin-inline: auto;
}

.hero__content .hero__actions {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose-deep);
  margin-bottom: 1rem;
}

.eyebrow a {
  text-decoration: none;
}

.hero__title {
  font-family: var(--font-hero);
  font-size: clamp(2.75rem, 7vw, 4.85rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0.03em;
  max-width: 16ch;
  margin-bottom: 1rem;
  text-wrap: balance;
  color: #3a2f33;
}

.hero__lead,
.page-hero__lead,
.section__lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
}

.hero__actions,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn--primary {
  background: linear-gradient(135deg, #efc4cc, #d9a8b4);
  color: #3a272c;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(47, 42, 44, 0.12);
}

.page-hero {
  padding: 5.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.section {
  padding: 4rem 0;
}

.section--intro {
  padding-top: 0.5rem;
}

.section--soft {
  background: transparent;
}

.section__head {
  margin-bottom: 2rem;
}

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.category-grid,
.product-grid {
  display: grid;
  gap: 1.25rem;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid--page {
  margin-top: 2rem;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.category-tile {
  display: grid;
  grid-template-rows: 220px auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  color: inherit;
}

.category-tile__visual {
  overflow: hidden;
  position: relative;
}

.category-tile__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover .category-tile__visual img {
  transform: scale(1.04);
}

.category-tile__wash {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 40%),
    linear-gradient(145deg, var(--rose), var(--sand));
}

.category-tile__wash--mint {
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.5), transparent 42%),
    linear-gradient(145deg, var(--mint), var(--sky));
}

.category-tile__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.category-tile__body h2,
.category-tile__body h3 {
  font-size: 1.45rem;
}

.category-tile__body p {
  color: var(--muted);
  margin: 0;
}

.product-card {
  display: grid;
  gap: 0.9rem;
}

.product-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) - 0.25rem);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--sand), var(--rose));
  text-decoration: none;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.03);
}

.product-card__placeholder,
.product-card__placeholder--large {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 40%),
    linear-gradient(160deg, var(--sky), var(--rose));
}

.product-card__badge {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  background: rgba(255, 252, 253, 0.9);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-card__title {
  font-size: 1.25rem;
}

.product-card__title a {
  text-decoration: none;
}

.product-card__text {
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.product-card__price,
.product-detail__price,
.constructor__base {
  font-weight: 700;
  font-size: 1.05rem;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.product-detail__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-detail__media img {
  width: 100%;
  height: auto;
}

.product-detail__info .pill {
  margin: 0.5rem 0 1rem;
}

.product-detail__lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.constructor {
  display: grid;
  gap: 2rem;
}

.constructor__intro,
.constructor__options,
.contact-panel,
.map-placeholder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.factory-order-card {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(201, 123, 138, 0.5);
  background: rgba(232, 183, 192, 0.18);
}

.factory-order-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.factory-order-card__hint {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.factory-order-card dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.factory-order-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.factory-order-card dt {
  color: var(--muted);
}

.factory-order-card dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--mint), var(--sky));
  font-weight: 700;
  font-size: 0.85rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-list {
  margin: 1.5rem 0 0;
}

.contact-list > div {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.contact-list dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-list dd {
  margin: 0;
  font-weight: 600;
}

.hours-line {
  display: block;
}

.contact-map iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
}

.map-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 30% 30%, rgba(197, 215, 232, 0.55), transparent 45%),
    rgba(255, 255, 255, 0.55);
}

.prose :is(p, ul, ol) {
  color: var(--muted);
}

.prose ul,
.prose ol {
  padding-left: 1.1rem;
}

.prose h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.blog-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  background: rgba(255, 252, 253, 0.78);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.1rem);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 123, 138, 0.35);
}

.blog-card__link {
  display: grid;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 183, 192, 0.45), transparent 55%),
    linear-gradient(160deg, var(--sand), rgba(183, 212, 198, 0.35));
}

.blog-card__media img,
.blog-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__placeholder {
  min-height: 100%;
}

.blog-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.blog-card__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.blog-card__title {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.25;
}

.blog-card__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-card__more {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--rose-deep);
}

.blog-post__shell {
  max-width: 46rem;
}

.blog-post__header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 18ch;
}

.blog-post__meta {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-post__lead {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
}

.blog-post__cover {
  margin: 1.75rem 0 0;
  border-radius: calc(var(--radius) + 0.1rem);
  overflow: hidden;
  background: var(--sand);
}

.blog-post__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-post__content {
  margin-top: 1.75rem;
}

.blog-post__cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.35rem;
  border-radius: calc(var(--radius) + 0.1rem);
  background:
    radial-gradient(circle at 15% 20%, rgba(232, 183, 192, 0.35), transparent 50%),
    rgba(255, 252, 253, 0.85);
  border: 1px solid var(--line);
}

.blog-post__cta h2 {
  margin-bottom: 0.4rem;
}

.blog-post__cta p {
  color: var(--muted);
  margin-bottom: 0;
}

.blog-post__related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.empty-note {
  color: var(--muted);
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: transparent;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.site-footer__text,
.site-footer__copy {
  color: var(--muted);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer__links a {
  text-decoration: none;
  font-weight: 600;
}

.site-footer__copy {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .category-grid,
  .product-grid,
  .product-detail__grid,
  .contact-layout,
  .site-footer__grid,
  .blog-grid,
  .blog-grid--compact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 252, 253, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .category-grid,
  .product-grid,
  .product-detail__grid,
  .contact-layout,
  .site-footer__grid,
  .blog-grid,
  .blog-grid--compact {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-top: 5.5rem;
  }

  .hero__float--left,
  .hero__float--right {
    width: clamp(280px, 68vw, 480px);
    opacity: 0.95;
  }

  .hero__float--left {
    top: 0;
    translate: -50% 0;
  }

  .hero__float--right {
    top: 40%;
    width: clamp(300px, 72vw, 520px);
    translate: 50% 0;
  }
}

@media (max-width: 560px) {
  .hero__float {
    opacity: 0.75;
  }

  .hero__float--left {
    translate: -52% 0;
    width: min(82vw, 380px);
  }

  .hero__float--right {
    translate: 52% 0;
    width: min(86vw, 400px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__float-img {
    animation: none;
  }
}
