/* 
  Landing: "Городская ритуальная служба — Червень"
  Style: modern municipal (2026), fast + accessible.
*/

/* ===== Reset (light) ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid rgba(var(--green-rgb), .45); outline-offset: 3px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ===== Theme ===== */
:root{
  --bg: #fff9f8;
  --bg2: #fff1f0;
  --card: #ffffff;
  --text: #0c1524;
  --muted: #4d5a6a;
  --line: rgba(16, 24, 40, .10);
  --shadow: 0 18px 40px rgba(15, 36, 76, .12);
  --shadow2: 0 10px 24px rgba(15, 36, 76, .10);

  /* Belarus-inspired palette (red + green) */
  --brand: #D22730;     /* red */
  --brand2: #B01C23;    /* dark red */
  --brand-rgb: 210 39 48;

  --green: #007C3E;     /* green */
  --green2: #006B35;    /* dark green */
  --green-rgb: 0 124 62;

  --gold: #c9a227;
  --good: var(--green);

  --radius: 18px;
  --radius2: 14px;

  --container: 1160px;
}

body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 10% 0%, rgba(var(--brand-rgb), .14), transparent 60%),
    radial-gradient(900px 600px at 95% 12%, rgba(var(--green-rgb), .14), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg) 60%);
  line-height: 1.5;
}

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

.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 1000;
}
.skip-link:focus{ left: 16px; }

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 650;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }
.btn:active{ transform: translateY(0px); box-shadow: none; }

.btn-sm{ padding: 9px 12px; font-weight: 650; }
.btn-lg{ padding: 14px 18px; font-size: 1rem; }

.btn-primary{
  background: linear-gradient(180deg, var(--green), var(--green2));
  color: #fff;
}
.btn-primary:hover{ filter: brightness(1.05); }

.btn-ghost{
  background: rgba(255,255,255,.65);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover{ background: rgba(255,255,255,.92); }

.btn-outline{
  background: transparent;
  border-color: rgba(var(--brand-rgb), .35);
  color: var(--brand2);
}
.btn-outline:hover{
  background: rgba(var(--brand-rgb), .06);
  border-color: rgba(var(--brand-rgb), .55);
}

.req{ color: #b42318; }

/* ===== Topbar ===== */
.topbar{
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar::before{
  content:"";
  position:absolute;
  left:0; top:0;
  width:100%; height:3px;
  background: linear-gradient(90deg, var(--brand) 0 70%, var(--green) 70% 100%);
}
.topbar__inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  font-size: .93rem;
}
.topbar__left, .topbar__center{ display: flex; align-items: center; gap: 10px; }
.topbar__right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.topbar__phone{ text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.topbar__phone:hover{ background: rgba(var(--brand-rgb), .06); }
.dot{ width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 6px rgba(15,118,110,.12); }

/* ===== Header ===== */
.header{
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(12px);
  position: relative;
}
.header::after{
  content:"";
  position:absolute;
  left:0; bottom:-1px;
  width:100%; height:3px;
  background: linear-gradient(90deg, var(--brand) 0 70%, var(--green) 70% 100%);
  opacity:.85;
}
.header__inner{
  display: grid;
  /* Make room for the menu without overlapping other header elements */
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.header--simple .header__inner{ grid-template-columns: 1fr auto; }

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__logo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 6px;
}
.brand__name{ font-weight: 800; letter-spacing: .2px; }
.brand__sub{ color: var(--muted); font-size: .92rem; }

.nav{ position: relative; justify-self: end; max-width: 100%; }
.nav__toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  cursor: pointer;
}
.nav__toggle span{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 999px;
}
.nav__menu{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 18px rgba(15, 36, 76, .08);
  max-width: 100%;
}
.nav__link{
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.nav__link:hover{
  color: var(--text);
  background: rgba(var(--brand-rgb), .08);
}
.nav__link.is-active{
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 36, 76, .12);
}
.nav__link.is-active:hover{ filter: brightness(1.02); }

.header__cta{ display: flex; gap: 10px; }


/* Desktop nav sizing (extra compact, prevents overlap) */
@media (min-width: 981px){
  .header__inner{ padding: 8px 0; gap: 12px; }
  .nav__menu{ padding: 3px; gap: 3px; }
  .nav__link{ font-size: .78rem; padding: 5px 7px; }
}

/* ===== Hero ===== */
.hero{ padding: 42px 0 26px; }
.hero__grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: start;
}
.badge-row{ display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.badge{
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), .10);
  color: var(--brand2);
  font-weight: 700;
  border: 1px solid rgba(var(--brand-rgb), .16);
}
.badge--soft{
  background: rgba(255,255,255,.55);
  color: var(--muted);
  border-color: var(--line);
}
h1{
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -.2px;
}
.lead{
  font-size: 1.06rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.hero-list{
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hero-list li{
  padding-left: 26px;
  position: relative;
}
.hero-list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--good);
  font-weight: 900;
}
.hero-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.fineprint{ margin: 0; color: var(--muted); font-size: .92rem; }

.hero__card{
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.hero__cardCover{
  position: relative;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 14px;
}
.hero__cardCover picture, .hero__cardCover img{
  width: 100%;
  height: 100%;
}
.hero__cardCover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}
.hero__cardCover::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.52) 100%);
  z-index: 1;
}
.hero__cardCoverStripe{
  position:absolute;
  left:0; right:0; bottom:0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand) 0 70%, var(--green) 70% 100%);
  z-index: 2;
}
.hero__cardCoverLabel{
  position:absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  color:#fff;
  font-weight: 900;
  letter-spacing: .2px;
  text-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.hero__cardTop{
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.hero__emblem{
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  object-fit: cover;
  background: #fff;
}
.hero__cardTitle{ font-weight: 800; }
.hero__cardSubtitle{ color: var(--muted); font-size: .92rem; }

.hero__facts{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.fact{
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
}
.fact__k{ color: var(--muted); font-size: .84rem; }
.fact__v{ font-weight: 800; }

.hero__cardCta{ display: flex; gap: 10px; margin-top: 10px; }
.hero__cardNote{ margin: 12px 0 0; color: var(--muted); font-size: .92rem; }

/* ===== Prompt ===== */
.prompt{ padding: 14px 0 8px; }
.prompt__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--brand-rgb), .18);
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .10), rgba(var(--green-rgb), .12));
}
.h3{ margin: 0 0 6px; font-size: 1.15rem; }
.prompt__text p{ margin: 0; color: var(--muted); }
.prompt__actions{ display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Sections ===== */
.section{ padding: 46px 0; }
.section--alt{
  background: rgba(255,255,255,.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head{ max-width: 820px; margin-bottom: 18px; }
.section__head h2{ margin: 0 0 10px; font-size: 1.65rem; letter-spacing: -.2px; }
.muted{ color: var(--muted); }

.grid{
  display: grid;
  gap: 14px;
}
.grid--2{ grid-template-columns: repeat(2, 1fr); }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: 0 8px 18px rgba(15, 36, 76, .08);
}
.card h3{ margin: 0 0 8px; font-size: 1.05rem; }
.card p{ margin: 0; color: var(--muted); }
.card--price p{ margin-bottom: 10px; }

.list{ margin: 0; padding-left: 18px; color: var(--muted); }
.list li{ margin: 6px 0; }

.steps{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.step{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 14px;
}
.step__n{
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--brand2);
  background: rgba(var(--brand-rgb), .10);
  border: 1px solid rgba(var(--brand-rgb), .16);
}
.step__body h3{ margin: 0 0 6px; font-size: 1.06rem; }
.step__body p{ margin: 0; color: var(--muted); }

.cta-card{
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--brand-rgb), .18);
  background: rgba(255,255,255,.72);
}
.cta-card--compact{ margin-top: 18px; }
.cta-card__title{ margin: 0 0 6px; font-size: 1.22rem; }
.cta-card__actions{ display: flex; gap: 10px; flex-wrap: wrap; }

.cta-row{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.note{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(var(--green-rgb), .08);
  border: 1px solid rgba(var(--green-rgb), .14);
}

/* ===== Trust mini blocks ===== */
.mini{
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 14px;
}
.mini__k{ color: var(--muted); font-size: .86rem; }
.mini__v{ font-weight: 900; margin-top: 6px; }

/* ===== Catalog ===== */
.filters{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
}
.filter{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}
.filter:hover{ background: rgba(255,255,255,.95); color: var(--text); }
.filter.is-active{
  background: rgba(var(--brand-rgb), .10);
  border-color: rgba(var(--brand-rgb), .22);
  color: var(--brand2);
}

.products{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.product-card{
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 36, 76, .08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.product-media{
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.product-media img{
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
}
.product-tag{
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: .82rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
}
.product-body{ padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.product-title{ margin: 0; font-size: 1.02rem; }
.product-price{ font-weight: 900; color: var(--brand2); }
.product-note{ color: var(--muted); font-size: .88rem; }
.product-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ===== Prose ===== */
.prose{ max-width: 860px; }
.prose h1{ margin-top: 0; }
.prose p{ color: var(--muted); }

/* ===== FAQ ===== */
.faq{ display: grid; gap: 10px; max-width: 860px; }
.faq__item{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.80);
  border-radius: 16px;
  padding: 10px 12px;
}
.faq__item summary{
  cursor: pointer;
  font-weight: 800;
  padding: 6px 4px;
}
.faq__item p{ color: var(--muted); margin: 6px 4px 10px; }

/* ===== Contacts ===== */
.contact-card{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--brand-rgb), .18);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow2);
}
.contact-card__title{ font-weight: 900; margin-bottom: 6px; }
.contact-card__phone{
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand2);
  text-decoration: none;
}
.contact-card__phone:hover{ text-decoration: underline; }
.contact-card__meta{ color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sep{ opacity: .6; }
.contact-card__actions{ display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ===== Footer ===== */
.footer{
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.70);
}
.footer__grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
}
.footer__brand{ display: flex; gap: 12px; align-items: center; }
.footer__logo{
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 6px;
}
.footer__name{ font-weight: 900; }
.footer__meta{ color: var(--muted); font-size: .92rem; }
.footer__links{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.footer__links a{ color: var(--muted); text-decoration: none; }
.footer__links a:hover{ color: var(--text); text-decoration: underline; }
.footer__contact{ text-align: right; }
.footer__phone{ font-weight: 900; text-decoration: none; color: var(--brand2); }
.footer__phone:hover{ text-decoration: underline; }
.footer__small{ color: var(--muted); font-size: .92rem; }
.footer__bottom{
  border-top: 1px solid var(--line);
  padding: 12px 0 90px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--muted);
}
.footer__copy{ color: var(--muted); }

/* ===== Sticky mobile bar ===== */
.stickybar{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 60;
  display: none;
  gap: 10px;
}
.stickybar__btn{
  flex: 1;
  border-radius: 16px;
  padding: 12px 14px;
  text-decoration: none;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  font-weight: 900;
}
.stickybar__btn--primary{
  background: linear-gradient(180deg, var(--green), var(--green2));
  color: #fff;
  border-color: rgba(255,255,255,.22);
}
.stickybar__icon{ font-size: 1.1rem; }

/* ===== Modal ===== */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 100;
}
.modal.is-open{ display: grid; }
.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, .55);
  backdrop-filter: blur(6px);
}
.modal__panel{
  position: relative;
  width: min(520px, calc(100% - 28px));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: 18px;
}
.modal__close{
  position: absolute;
  right: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  cursor: pointer;
}
.modal h2{ margin: 0 0 8px; }
.form{ margin-top: 12px; display: grid; gap: 12px; }
.field span{ display: block; margin-bottom: 6px; font-weight: 800; }
.field input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, .18);
  background: #fff;
}
.check{ display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .92rem; }
.check input{ margin-top: 4px; }
.form__actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.form__note{ margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .topbar__inner{ grid-template-columns: 1fr; gap: 8px; }
  .topbar__center{ display: none; }
  .topbar__right{ justify-content: flex-start; flex-wrap: wrap; }
  .header__inner{ grid-template-columns: 1fr auto auto; }
  .nav__toggle{ display: inline-grid; place-items: center; }
  .nav__menu{
    display: none;
    position: absolute;
    right: 0;
    top: 54px;
    flex-direction: column;
    align-items: stretch;
    width: 260px;
    padding: 10px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow2);
    z-index: 20;
  }
  .nav__menu.is-open{ display: flex; }
  .nav__link{ border-radius: 14px; }
  .hero__grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
  .grid--3{ grid-template-columns: repeat(2, 1fr); }
  .products{ grid-template-columns: repeat(2, 1fr); }
  .contact-card{ grid-template-columns: 1fr; }
  .contact-card__actions{ justify-content: flex-start; }
  .footer__grid{ grid-template-columns: 1fr; text-align: left; }
  .footer__contact{ text-align: left; }
}

@media (max-width: 560px){
  .header__cta{ display: none; } /* rely on sticky bar */
  .stickybar{ display: flex; }
  .products{ grid-template-columns: 1fr; }
  .cta-card{ flex-direction: column; align-items: flex-start; }
  .prompt__inner{ flex-direction: column; align-items: flex-start; }
}
