:root {
  --color-bone-linen: #f7f5f2;
  --color-oat-milk: #eae6df;
  --color-driftwood: #d7d2cc;
  --color-ash-mauve: #5b5b61;
  --color-obsidian-plum: #2b2b30;
  --color-forest-depths: #15320f;
  --color-lime-pulse: #197a08;
  --color-peacock-teal: #126107;
  --color-logo-red: #e30606;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --scene-progress: 0;
  --life: 0;
  --scene-drift: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bone-linen);
  color: var(--color-obsidian-plum);
  font-family: var(--font-body);
  font-weight: 400;
}

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

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 850px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(21, 50, 15, .86);
  border-bottom: 1px solid rgba(247, 245, 242, .18);
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 24px;
}

.brand-link,
.header-nav,
.header-actions {
  display: inline-flex;
  align-items: center;
}

.brand-link {
  gap: 10px;
  color: var(--color-bone-linen);
}

.brand-link img {
  display: block;
  width: 44px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(3, 9, 6, .24));
}

.brand-link small {
  max-width: 150px;
  color: var(--color-oat-milk);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
}

.header-nav {
  justify-content: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(247, 245, 242, .18);
  border-radius: 8px;
}

.header-nav a,
.header-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--color-bone-linen);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.header-nav a:hover,
.header-actions a:hover {
  background: rgba(247, 245, 242, .1);
}

.header-actions {
  justify-content: flex-end;
  gap: 8px;
}

.header-actions a:last-child {
  background: var(--color-bone-linen);
  color: var(--color-forest-depths);
}

.header-actions a:first-child:hover,
.header-actions a:last-child:hover {
  background: var(--color-logo-red);
  color: var(--color-bone-linen);
}

.hero {
  position: relative;
  min-height: 175vh;
  overflow: visible;
  background: var(--color-forest-depths);
  color: var(--color-bone-linen);
}

.hero-sticky {
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 112px 0 44px;
  overflow: visible;
}

.hero-layout {
  position: static;
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: min(760px, 58vw);
  padding: 28px 0 0;
  text-shadow: 0 2px 24px rgba(3, 9, 6, .58);
}

.bloom-orb {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 0;
  background: #111f16;
}

.bloom-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateY(calc(var(--scene-drift) * .3)) scale(1.045);
  filter:
    saturate(calc(1.18 + var(--life) * .28))
    contrast(1.08)
    brightness(1.08);
}

.bloom-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 46%, rgba(255, 255, 255, .04), transparent 18%),
    radial-gradient(circle at 68% 60%, rgba(38, 216, 98, calc(.03 + var(--life) * .06)), transparent 28%),
    linear-gradient(90deg, rgba(29, 48, 35, .76) 0%, rgba(29, 48, 35, .44) 32%, rgba(29, 48, 35, .08) 64%, transparent 100%);
  pointer-events: none;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--color-ash-mauve);
  font-size: 13px;
  line-height: 1.18;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--color-oat-milk);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(58px, 9.4vw, 118px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: 0;
}

.lead {
  max-width: 520px;
  margin-bottom: 22px;
  color: var(--color-oat-milk);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.hero-actions,
.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.btn-primary {
  background: var(--color-lime-pulse);
  color: var(--color-bone-linen);
}

.btn-ghost {
  border-color: var(--color-forest-depths);
  color: var(--color-forest-depths);
}

.btn-ghost.light {
  border-color: var(--color-bone-linen);
  color: var(--color-bone-linen);
}

.hero-contact {
  position: relative;
  z-index: 40;
}

.hero-contact summary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--color-lime-pulse);
  color: var(--color-bone-linen);
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.1;
  list-style: none;
  user-select: none;
}

.hero-contact summary::-webkit-details-marker {
  display: none;
}

.hero-contact summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.hero-contact[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.hero-contact-menu {
  position: absolute;
  z-index: 50;
  bottom: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(247, 245, 242, .24);
  border-radius: 8px;
  background: rgba(247, 245, 242, .96);
  box-shadow: 0 18px 44px rgba(3, 9, 6, .34);
}

.hero-contact-menu a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--color-forest-depths);
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.hero-contact-menu a:hover {
  background: rgba(24, 52, 32, .08);
}

.hero-contact-menu img {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.statement,
.section {
  padding: 64px 0;
  scroll-margin-top: 96px;
}

.statement {
  text-align: center;
}

.statement h2,
.section-heading h2,
.section h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: 0;
}

.statement h2 span {
  color: var(--color-lime-pulse);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading.compact {
  max-width: 620px;
}

.section-heading.compact h2 {
  font-size: clamp(34px, 4.2vw, 54px);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.client-card {
  min-height: 100%;
  padding: 24px;
  border-radius: 8px;
  background: var(--color-oat-milk);
}

.client-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--color-logo-red);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: .95;
}

.client-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.08;
}

.client-card p {
  margin-bottom: 0;
  color: var(--color-ash-mauve);
  font-size: 16px;
  line-height: 1.5;
}

.assortment-section {
  padding-top: 72px;
}

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

.assortment-card {
  display: grid;
  grid-template-rows: minmax(270px, 38vh) 1fr;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-forest-depths);
  color: var(--color-bone-linen);
}

.assortment-photo {
  min-height: 270px;
  background-position: center;
  background-size: cover;
}

.assortment-card-cut .assortment-photo {
  background-image:
    linear-gradient(180deg, transparent 42%, rgba(17, 31, 22, .88)),
    url("assets/flower-purple.jpg");
}

.assortment-card-decor .assortment-photo {
  background-image:
    linear-gradient(180deg, transparent 42%, rgba(17, 31, 22, .88)),
    url("assets/decor-supplies.jpg");
}

.assortment-content {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 26px;
}

.assortment-content span {
  margin-bottom: 12px;
  color: var(--color-lime-pulse);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.assortment-content h3,
.address-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.04;
}

.assortment-content p,
.address-card p,
.contact-list a,
.footer span,
.footer a {
  color: var(--color-ash-mauve);
  font-size: 16px;
  line-height: 1.5;
}

.assortment-content p {
  margin-bottom: 18px;
  color: rgba(247, 245, 242, .82);
}

.assortment-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.assortment-content li {
  position: relative;
  padding-left: 18px;
  color: rgba(247, 245, 242, .78);
  font-size: 15px;
  line-height: 1.38;
}

.assortment-content li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-logo-red);
}

.department-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.assortment-content .department-phone {
  display: inline-flex;
  width: fit-content;
  color: var(--color-bone-linen);
  font-weight: 600;
}

.messenger-buttons {
  display: flex;
  gap: 10px;
}

.messenger-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 245, 242, .24);
  border-radius: 50%;
  background: rgba(247, 245, 242, .1);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.messenger-button:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 245, 242, .52);
  background: rgba(247, 245, 242, .18);
}

.messenger-button img {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.delivery-section {
  padding-top: 72px;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.delivery-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background-color: var(--color-forest-depths);
  background-position: center;
  background-size: cover;
}

.delivery-card::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(180deg, transparent, rgba(29, 48, 35, .88));
}

.delivery-card span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: var(--color-bone-linen);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: .95;
}

.delivery-tatarstan {
  background-image: url("assets/delivery-tatarstan-new.jpg");
  background-position: center bottom;
}

.delivery-udmurtia {
  background-image: url("assets/delivery-udmurtia.jpg");
  background-position: center top;
}

.delivery-bashkortostan {
  background-image: url("assets/delivery-bashkortostan.jpg");
  background-position: center center;
}

.contact-section {
  padding: 72px 0 80px;
  background: var(--color-oat-milk);
}

.contact-panel {
  padding: 32px;
  border-radius: 8px;
  background: var(--color-bone-linen);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 32px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-list > a,
.contact-row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-driftwood);
  color: var(--color-obsidian-plum);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-row > a {
  color: var(--color-obsidian-plum);
  font-size: 16px;
  line-height: 1.5;
}

.contact-messenger-button {
  border-color: rgba(24, 52, 32, .16);
  background: rgba(24, 52, 32, .06);
}

.contact-messenger-button:hover {
  border-color: rgba(24, 52, 32, .28);
  background: rgba(24, 52, 32, .1);
}

.address-card {
  padding: 24px;
  background: var(--color-forest-depths);
  scroll-margin-top: 120px;
}

.address-card h3 {
  color: var(--color-bone-linen);
}

.address-card p {
  color: var(--color-oat-milk);
}

.route-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.route-actions .btn {
  width: 100%;
  min-height: 64px;
  height: 64px;
  padding-left: 14px;
  padding-right: 14px;
}

.address-card .btn-ghost {
  border-color: var(--color-bone-linen);
  color: var(--color-bone-linen);
}

.footer {
  padding: 28px 0 36px;
  background: var(--color-bone-linen);
  border-top: 1px solid var(--color-driftwood);
  color: var(--color-obsidian-plum);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: end;
  gap: 20px;
}

.footer-mark {
  display: block;
  width: 48px;
  height: 54px;
  object-fit: contain;
}

.footer span,
.footer a {
  color: var(--color-ash-mauve);
}

.footer a {
  text-align: right;
}

.privacy-page {
  padding: 128px 0 72px;
}

.privacy-content {
  max-width: 860px;
}

.privacy-content h1 {
  margin-bottom: 28px;
  color: var(--color-forest-depths);
  font-size: clamp(42px, 6vw, 78px);
  line-height: .98;
}

.privacy-content h2 {
  margin: 34px 0 12px;
  color: var(--color-forest-depths);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.privacy-content p,
.privacy-content li {
  color: var(--color-ash-mauve);
  font-size: 17px;
  line-height: 1.6;
}

.privacy-content ul {
  margin: 0;
  padding-left: 22px;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: none;
  }

  .hero-inner {
    width: min(620px, 72vw);
  }

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

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

  .delivery-card {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 68px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand-link {
    gap: 8px;
  }

  .brand-link img {
    width: 38px;
    height: 42px;
  }

  .brand-link small {
    max-width: 110px;
    font-size: 11px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-actions a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero {
    min-height: 175svh;
  }

  .hero-sticky {
    position: sticky;
    height: 100svh;
    min-height: 100svh;
    padding: 96px 0 32px;
    align-items: flex-end;
  }

  .hero-layout {
    min-height: calc(100svh - 128px);
    align-items: flex-end;
  }

  .hero-inner {
    width: 100%;
    padding-top: 0;
  }

  .bloom-orb {
    background-image: url("assets/bloom-fresh.jpg");
    background-position: 62% center;
    background-size: cover;
  }

  .bloom-video {
    display: block;
    object-position: 58% center;
  }

  .bloom-orb::after {
    background:
      linear-gradient(180deg, rgba(12, 29, 16, .42) 0%, rgba(12, 29, 16, .12) 30%, rgba(12, 29, 16, .74) 100%),
      linear-gradient(90deg, rgba(12, 29, 16, .8) 0%, rgba(12, 29, 16, .32) 68%, transparent 100%);
  }

  h1 {
    max-width: 360px;
    margin-bottom: 18px;
    font-size: clamp(44px, 15vw, 62px);
    line-height: .9;
  }

  .lead {
    max-width: 350px;
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.42;
  }

  .hero-actions,
  .route-actions {
    display: grid;
  }

  .hero-contact {
    width: 100%;
  }

  .hero-contact summary {
    width: 100%;
  }

  .hero-contact-menu {
    width: 100%;
    min-width: 0;
  }

  .btn {
    width: 100%;
  }

  .statement,
  .section {
    padding: 48px 0;
  }

  .client-grid,
  .assortment-board,
  .route-actions {
    grid-template-columns: 1fr;
  }

  .client-card {
    padding: 22px;
  }

  .assortment-card {
    grid-template-rows: minmax(220px, 34vh) 1fr;
  }

  .assortment-photo {
    min-height: 220px;
  }

  .assortment-content {
    padding: 22px;
  }

  .department-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .messenger-button {
    width: 42px;
    height: 42px;
  }

  .delivery-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 78vw);
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .delivery-card {
    min-height: 0;
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
  }

  .delivery-card span {
    font-size: 36px;
  }

  .contact-panel {
    padding: 20px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .footer-mark {
    width: 42px;
    height: 46px;
  }

  .privacy-page {
    padding: 104px 0 52px;
  }

  .privacy-content h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .privacy-content h2 {
    font-size: 21px;
  }

  .footer a {
    text-align: left;
  }
}
