:root {
  --ink: #172c2d;
  --muted: #627273;
  --paper: #f5f2eb;
  --white: #fff;
  --teal: #173637;
  --teal-2: #245657;
  --mint: #dce9e4;
  --accent: #f4b866;
  --accent-dark: #d9963f;
  --line: #dce3df;
  --danger: #9d342d;
  --shadow: 0 18px 55px rgba(23, 44, 45, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.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; }

.site-header { position: sticky; top: 0; z-index: 40; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 12px clamp(20px, 5vw, 78px); border-bottom: 1px solid rgba(23, 44, 45, .08); background: rgba(245, 242, 235, .9); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--accent); background: var(--teal); font-size: 16px; font-weight: 900; letter-spacing: -.04em; transform: rotate(-3deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.desktop-nav a { color: #385051; font-size: 14px; font-weight: 650; }
.desktop-nav a:hover { color: var(--accent-dark); }
.cart-button { display: inline-flex; align-items: center; gap: 10px; padding: 11px 12px 11px 20px; border: 0; border-radius: 999px; color: #fff; background: var(--teal); cursor: pointer; font-weight: 750; }
.cart-button b { min-width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: var(--accent); }

main { overflow: hidden; }
.hero { position: relative; min-height: 650px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 48%); padding: clamp(32px, 6vw, 90px) clamp(20px, 7vw, 110px); background: #e8e3db; isolation: isolate; }
.hero-image { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(232,227,219,.97) 0%, rgba(232,227,219,.92) 34%, rgba(232,227,219,.06) 64%), url("/static/images/hero.png") center/cover no-repeat; }
.hero-content { grid-column: 1; align-self: center; max-width: 680px; }
.eyebrow { margin: 0 0 12px; color: #92703c; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; }
.hero h1 { margin: 0; font-size: clamp(48px, 6.5vw, 92px); line-height: .93; letter-spacing: -.065em; }
.hero-content > p:not(.eyebrow) { max-width: 570px; margin: 28px 0; color: #465c5d; font-size: clamp(17px, 2vw, 22px); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.primary-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 0; border-radius: 15px; color: #fff; background: var(--teal); box-shadow: 0 9px 24px rgba(23,54,55,.18); font-weight: 800; cursor: pointer; transition: transform .2s, background .2s; }
.primary-button:hover { background: var(--teal-2); transform: translateY(-2px); }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; }
.primary-button.full { width: 100%; }
.text-link { border-bottom: 1px solid currentColor; color: var(--teal); font-weight: 750; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 52px; }
.hero-facts span { color: var(--muted); font-size: 12px; }
.hero-facts b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 15px; }

.gift-banner { max-width: 1280px; margin: -40px auto 0; position: relative; z-index: 2; display: grid; grid-template-columns: 104px 1fr auto; align-items: center; gap: 24px; padding: 18px 28px; border: 1px solid rgba(23,44,45,.08); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.gift-banner img { border-radius: 18px; object-fit: cover; }
.gift-banner h2 { margin: 0 0 7px; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.035em; }
.gift-banner p { margin: 0; color: var(--muted); }
.gift-banner .eyebrow { margin-bottom: 7px; }
.gift-price { padding: 12px 16px; border-radius: 99px; color: #156c51; background: #e1f3eb; font-size: 18px; font-weight: 900; white-space: nowrap; }

.catalog-section { max-width: 1420px; margin: 0 auto; padding: 100px clamp(20px, 4vw, 64px); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(300px, 520px); align-items: end; gap: 50px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 5vw, 62px); letter-spacing: -.055em; line-height: 1; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 10px 15px; border: 1px solid #ccd6d2; border-radius: 999px; color: #4b6061; background: transparent; cursor: pointer; font-size: 13px; font-weight: 750; }
.filter:hover, .filter.active { border-color: var(--teal); color: #fff; background: var(--teal); }
.search-field input { width: 210px; padding: 12px 16px; border: 1px solid #ccd6d2; border-radius: 999px; outline: none; background: #fff; }
.search-field input:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(36,86,87,.12); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(23,44,45,.08); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(23,44,45,.045); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-visual { position: relative; aspect-ratio: 1.1; overflow: hidden; background: #eee; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-visual img { transform: scale(1.035); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 7px 10px; border-radius: 999px; color: var(--teal); background: rgba(244,184,102,.93); font-size: 11px; font-weight: 850; }
.product-info { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.stock { display: flex; align-items: center; gap: 7px; color: #337157; font-size: 11px; font-weight: 750; }
.stock span { width: 7px; height: 7px; border-radius: 50%; background: #36a775; box-shadow: 0 0 0 3px #dcefe6; }
.product-type { margin: 17px 0 4px; color: #8b7656; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.product-card h3 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.product-description { min-height: 54px; margin: 11px 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.specs { margin: 0 0 20px; padding: 0; list-style: none; color: #415859; font-size: 12px; }
.specs li { padding: 5px 0; border-bottom: 1px dashed #e1e6e3; }
.specs li::before { content: "·"; margin-right: 7px; color: var(--accent-dark); font-weight: 900; }
.product-buy { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.price strong, .price del { display: block; }
.price strong { font-size: 21px; }
.price del { margin-top: 3px; color: #98a2a1; font-size: 12px; }
.add-button { min-height: 43px; padding: 0 16px; border: 1px solid var(--teal); border-radius: 12px; color: var(--teal); background: transparent; cursor: pointer; font-weight: 800; transition: .2s; }
.add-button:hover, .add-button.added { color: #fff; background: var(--teal); }
.empty-catalog { padding: 60px; border: 1px dashed #bbc9c4; border-radius: 20px; color: var(--muted); text-align: center; }

.how-section { padding: 90px max(20px, calc((100vw - 1280px) / 2)); color: #fff; background: var(--teal); }
.section-heading.light .eyebrow { color: var(--accent); }
.section-heading.light > p { color: #b9c9c7; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
.steps li { min-height: 230px; padding: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.045); }
.steps span { color: var(--accent); font-size: 12px; font-weight: 850; }
.steps h3 { margin: 52px 0 9px; font-size: 22px; }
.steps p { margin: 0; color: #b9c9c7; line-height: 1.5; }
.service-section { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 80px 20px; }
.service-section > div { padding-right: 35px; }
.service-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: var(--teal); background: var(--accent); font-weight: 900; }
.service-section h3 { margin: 20px 0 7px; font-size: 19px; }
.service-section p { margin: 0; color: var(--muted); line-height: 1.5; }

footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 55px clamp(20px, 6vw, 90px) 34px; border-top: 1px solid var(--line); background: #eeebe4; }
footer b { font-size: 14px; }
footer p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.legal { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid #d7d8d1; font-size: 11px; }

.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(11,26,27,.52); backdrop-filter: blur(3px); }
.cart-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(480px, 100%); display: flex; flex-direction: column; padding: 26px; background: #fff; box-shadow: -20px 0 55px rgba(15,35,36,.2); transform: translateX(105%); transition: transform .3s ease; }
.cart-panel.open { transform: translateX(0); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-head h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.panel-head .eyebrow { margin-bottom: 4px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; font-size: 25px; line-height: 1; }
.cart-lines { flex: 1; overflow-y: auto; margin: 25px -5px 0 0; padding-right: 5px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
.cart-line-info b, .cart-line-info span { display: block; }
.cart-line-info b { margin: 3px 0 4px; font-size: 14px; }
.cart-line-info span { color: var(--muted); font-size: 12px; }
.quantity { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; }
.quantity button { width: 25px; height: 25px; border: 1px solid #d5dedb; border-radius: 8px; background: #f8faf9; cursor: pointer; }
.quantity em { min-width: 13px; text-align: center; font-size: 12px; font-style: normal; font-weight: 800; }
.remove-line { align-self: start; border: 0; color: #83908f; background: transparent; cursor: pointer; font-size: 20px; }
.cart-gift { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; margin-top: 15px; padding: 10px; border: 1px dashed #7cad98; border-radius: 16px; background: #eef8f3; }
.cart-gift img { border-radius: 10px; }
.cart-gift span b, .cart-gift span small { display: block; }
.cart-gift span b { font-size: 13px; }
.cart-gift span small { margin-top: 3px; color: #4d7666; }
.cart-gift > strong { color: #257155; }
.cart-empty { margin: auto; max-width: 300px; text-align: center; }
.cart-empty > span { width: 68px; height: 68px; margin: 0 auto 20px; display: grid; place-items: center; border: 2px dashed #a7b6b2; border-radius: 50%; color: #81918d; font-size: 30px; }
.cart-empty h3 { margin: 0 0 8px; }
.cart-empty p { margin: 0; color: var(--muted); line-height: 1.5; }
.cart-footer { padding-top: 20px; border-top: 1px solid var(--line); }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.cart-total strong { font-size: 25px; }
.cart-footer > small { display: block; margin-top: 10px; color: var(--muted); text-align: center; }

dialog { padding: 0; border: 0; border-radius: var(--radius); color: var(--ink); box-shadow: 0 26px 85px rgba(8,26,27,.3); }
dialog::backdrop { background: rgba(9,25,26,.6); backdrop-filter: blur(4px); }
.checkout-dialog { width: min(630px, calc(100% - 24px)); }
.checkout-dialog form { padding: 30px; }
.form-intro { margin: 16px 0 24px; color: var(--muted); line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-grid label span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.form-grid label.wide { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea { width: 100%; padding: 13px 14px; border: 1px solid #cbd6d2; border-radius: 12px; outline: none; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(36,86,87,.11); }
.dialog-summary { display: flex; justify-content: space-between; margin: 23px 0; padding: 16px; border-radius: 14px; background: var(--mint); }
.dialog-summary strong { font-size: 20px; }
.form-error { margin: -10px 0 15px; padding: 10px 12px; border-radius: 10px; color: var(--danger); background: #fae7e4; font-size: 13px; }
.consent { margin: 12px 12px 0; color: #7d8988; font-size: 10px; line-height: 1.4; text-align: center; }
.success-dialog { width: min(430px, calc(100% - 24px)); padding: 34px; text-align: center; }
.success-icon { width: 68px; height: 68px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #2d9870; font-size: 28px; font-weight: 900; }
.success-dialog h2 { margin: 4px 0 12px; font-size: 30px; letter-spacing: -.04em; }
.success-dialog > p:not(.eyebrow) { margin: 0 0 23px; color: var(--muted); line-height: 1.5; }

@media (max-width: 1040px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gift-banner { margin-left: 20px; margin-right: 20px; }
  .hero { grid-template-columns: minmax(0, 1fr) 35%; }
  .hero-image { background-position: 58% center; }
}

@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .site-header { min-height: 68px; padding: 10px 16px; }
  .desktop-nav, .cart-button > span, .brand small { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .brand strong { font-size: 16px; }
  .cart-button { padding: 7px; }
  .hero { min-height: 690px; display: block; padding: 55px 20px 280px; }
  .hero-image { background: linear-gradient(180deg, rgba(232,227,219,.97) 0%, rgba(232,227,219,.9) 47%, rgba(232,227,219,.04) 70%), url("/static/images/hero.png") 66% bottom/cover no-repeat; }
  .hero h1 { font-size: clamp(46px, 14vw, 68px); }
  .hero-content > p:not(.eyebrow) { margin: 20px 0; font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-facts { gap: 20px; margin-top: 30px; }
  .gift-banner { grid-template-columns: 72px minmax(0, 1fr); margin-top: -25px; padding: 15px; overflow: hidden; border-radius: 19px; }
  .gift-banner > div { min-width: 0; }
  .gift-banner img { width: 72px; height: 72px; }
  .gift-banner .eyebrow { display: none; }
  .gift-banner h2 { font-size: 18px; overflow-wrap: anywhere; }
  .gift-banner p { font-size: 12px; }
  .gift-price { display: none; }
  .catalog-section { padding: 75px 14px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 17px; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .filters { flex-wrap: nowrap; margin: 0 -14px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
  .filter { white-space: nowrap; }
  .search-field input { width: 100%; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-visual { aspect-ratio: 1.25; }
  .product-description { min-height: auto; }
  .how-section { padding: 70px 20px; }
  .steps, .service-section { grid-template-columns: 1fr; }
  .steps li { min-height: auto; }
  .steps h3 { margin-top: 35px; }
  .service-section { gap: 45px; padding: 65px 20px; }
  footer { grid-template-columns: 1fr; gap: 25px; padding: 45px 20px 28px; }
  .legal { grid-column: auto; }
  .cart-panel { padding: 20px 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .checkout-dialog form { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
