:root {
  --color-bg: #f3efe7;
  --color-dark: #101b2d;
  --color-accent: #d9ff43;
  --color-white: #ffffff;
  --color-text: #182235;
  --color-text-light: #697181;
  --font-main: 'Manrope', system-ui, sans-serif;
  --font-display: 'Unbounded', 'Manrope', sans-serif;
  --container-width: 1240px;
  --header-height: 82px;
  --transition: .22s ease;
  --radius: 22px;
  --ink: #101b2d;
  --lime: #d9ff43;
  --paper: #f3efe7;
  --blue: #2457ff;
  --line: rgba(16,27,45,.12);
}

/* Final hero sizing */
.hero picture,.hero__img { height:clamp(301px,33.6vw,455px); }
@media (max-width: 768px) { .hero picture,.hero__img { height:273px; } }

body {
  background:
    radial-gradient(circle at 5% 18%, rgba(217,255,67,.18), transparent 24rem),
    var(--paper);
  color: var(--ink);
  letter-spacing: -.01em;
}

.container { padding-inline: 22px; }

h1, h2, h3, .header__menu-link, .category-card__name {
  font-family: var(--font-display);
}

/* Header */
.header.site-header {
  height:82px;
  color:#fff;
  background:rgba(16,27,45,.97);
  box-shadow:none;
  border-bottom:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(16px);
}
.site-header__main { height:82px; min-height:82px; }
.site-logo__fallback {
  color:#fff;
  font-family:var(--font-display);
  font-size:15px;
  line-height:1.35;
  text-transform:uppercase;
}
.site-header .header__logo-img { max-height:54px; width:auto; }
.site-header .header__nav { margin-left:auto; margin-right:34px; }
.site-header .header__menu { gap:8px; }
.site-header .header__menu-link {
  padding:11px 15px;
  border-radius:12px;
  color:#fff;
  font-size:12px;
  font-weight:600;
  letter-spacing:.015em;
}
.site-header .header__menu-link::after { display:none; }
.site-header .header__menu-link:hover { color:var(--lime); background:rgba(255,255,255,.08); }
.site-header .header__dropdown {
  top:calc(100% + 14px);
  width:560px;
  padding:12px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:20px;
  color:#fff;
  background:#17243a;
  box-shadow:0 28px 80px rgba(3,8,18,.4);
}
.site-header .header__dropdown-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.site-header .header__dropdown-list > li > a {
  padding:11px 13px;
  border-radius:10px;
  color:rgba(255,255,255,.82);
  font-size:13px;
}
.site-header .header__dropdown-list > li > a:hover { color:var(--ink); background:var(--lime); }
.site-header__phone { color:#fff; font-size:14px; }
.site-header__phone:hover { color:var(--lime); }
.header__actions { gap:12px; }
.header__cart {
  min-height:46px;
  padding:10px 15px;
  border:0;
  border-radius:15px;
  color:var(--ink);
  background:var(--lime);
  box-shadow:none;
}
.header__cart:hover { color:var(--ink); background:#e5ff7a; transform:translateY(-2px); }
.header__cart-count { color:#fff; background:var(--blue); }
.header__burger span { background:#fff; }

/* Home hero */
.hero {
  width:min(calc(100% - 44px), 1360px);
  margin:26px auto 0;
  border-radius:34px;
  overflow:hidden;
  background:var(--ink);
  box-shadow:0 24px 70px rgba(16,27,45,.16);
}
.hero picture,.hero__img { height:clamp(430px,48vw,650px); }
.hero__img { width:100%; object-fit:cover; }

.intro { padding:110px 0 95px; text-align:left; }
.section-kicker {
  margin:0 0 18px;
  color:var(--blue);
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.section-kicker--light { color:var(--lime); }
.intro__title {
  max-width:900px;
  margin:0;
  color:var(--ink);
  font-size:clamp(38px,5.3vw,76px);
  font-weight:800;
  line-height:1.02;
  letter-spacing:-.055em;
}
.intro__subtitle {
  max-width:640px;
  margin:24px 0 0;
  color:var(--color-text-light);
  font-size:18px;
  line-height:1.65;
  text-align:left;
}
.home-categories {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-top:58px;
}
.home-category-card {
  position:relative;
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  box-shadow:none;
  overflow:hidden;
}
.home-category-card:nth-child(4n+2),.home-category-card:nth-child(4n+3) { transform:translateY(24px); }
.home-category-card:hover {
  transform:translateY(-8px);
  border-color:var(--blue);
  box-shadow:0 24px 60px rgba(36,87,255,.14);
}
.home-category-card:nth-child(4n+2):hover,.home-category-card:nth-child(4n+3):hover { transform:translateY(16px); }
.home-category-card .category-card__img-wrap {
  aspect-ratio:1;
  border-radius:0;
  background:#e9e5dc;
}
.home-category-card .category-card__img { filter:saturate(.92) contrast(1.03); }
.category-card__img-wrap--empty {
  background:linear-gradient(145deg,#17243a,#253b5d)!important;
}
.category-card__img-wrap--empty::before {
  content:'';
  width:72px;
  height:72px;
  border:2px solid var(--lime);
  border-radius:50%;
  box-shadow:22px -18px 0 -14px var(--lime),-24px 20px 0 -16px #fff;
}
.category-card__img-wrap--empty::after { display:none; }
.home-category-card .category-card__name {
  min-height:86px;
  padding:24px 22px;
  color:var(--ink);
  font-size:16px;
  line-height:1.35;
}

/* Benefits */
.advantages {
  width:min(calc(100% - 44px), 1360px);
  margin:0 auto;
  padding:88px 0;
  border-radius:36px;
  color:#fff;
  background:var(--ink);
}
.advantages__grid { grid-template-columns:repeat(3,1fr); gap:14px; }
.advantage {
  min-height:250px;
  padding:28px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:24px;
  background:rgba(255,255,255,.055);
}
.advantage:nth-child(2) { background:var(--lime); color:var(--ink); }
.advantage__icon {
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  margin-bottom:42px;
  border-radius:18px;
  background:#fff;
}
.advantage__icon img { width:34px; height:34px; object-fit:contain; }
.advantage__icon--empty::after { content:''; width:24px; height:24px; border:3px solid currentColor; border-radius:50%; opacity:.45; }
.advantage__title { color:inherit; font-size:18px; text-transform:uppercase; }
.advantage__desc { max-width:280px; margin-top:12px; color:inherit; opacity:.76; font-size:15px; }

/* About */
.about { padding:130px 0; background:transparent; }
.about__grid { grid-template-columns:.9fr 1.1fr; gap:90px; align-items:center; }
.about__title {
  color:var(--ink);
  font-size:clamp(30px,4vw,54px);
  line-height:1.12;
  letter-spacing:-.045em;
}
.about__title::before { width:54px; height:8px; top:-26px; border-radius:8px; background:var(--blue); }
.about__desc { margin-top:28px; color:#5d6573; font-size:17px; line-height:1.8; }
.about__images { min-height:520px; }
.about__images--empty::after { content:'Фотографии скоро появятся'; position:absolute; inset:12%; display:grid; place-items:center; border:1px dashed rgba(80,90,105,.35); border-radius:28px; color:#737b89; font-size:14px; text-align:center; }
.about__img[hidden] { display:none !important; }
.about__img {
  border:8px solid #fff;
  border-radius:26px;
  box-shadow:0 25px 70px rgba(16,27,45,.18);
}
.about__img--front { width:62%; transform:rotate(-4deg); }
.about__img--back { width:62%; transform:rotate(5deg); }

/* Breadcrumb and category page */
.breadcrumbs { padding:24px 0 8px; background:transparent; }
.breadcrumbs__list { color:#7a8190; font-size:13px; }
.breadcrumbs__item a:hover { color:var(--blue); }
.category-header { padding:34px 0 48px; background:transparent; }
.category-header__title {
  max-width:1000px;
  color:var(--ink);
  font-size:clamp(34px,5vw,68px);
  line-height:1.05;
  letter-spacing:-.05em;
}
.category-page-nav { display:none; }
.catalog { padding:24px 0 110px; }
.catalog__container { grid-template-columns:245px minmax(0,1fr); gap:26px; align-items:start; }
.catalog__sidebar-sticky {
  top:108px;
  padding:22px 12px 14px;
  border-radius:24px;
  color:#fff;
  background:var(--ink);
  box-shadow:0 24px 60px rgba(16,27,45,.14);
}
.catalog__sidebar-title {
  padding:0 12px 17px;
  color:var(--lime);
  font:700 13px/1 var(--font-display);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.catalog__sidebar-list { gap:3px; }
.catalog__sidebar-link {
  padding:12px;
  border-radius:11px;
  color:rgba(255,255,255,.7);
  font-size:13px;
  font-weight:600;
}
.catalog__sidebar-link:hover { color:#fff; background:rgba(255,255,255,.09); }
.catalog__sidebar-item--active .catalog__sidebar-link { color:var(--ink); background:var(--lime); }
.catalog__grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.product-card {
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  box-shadow:none;
  overflow:hidden;
}
.product-card:hover {
  transform:translateY(-6px);
  border-color:rgba(36,87,255,.45);
  box-shadow:0 24px 60px rgba(36,87,255,.12);
}
.product-card__img-wrap { aspect-ratio:1.15/1; background:#e8e5de; }
.product-card__img { width:100%; height:100%; object-fit:cover; }
.product-card:hover .product-card__img { transform:scale(1.035); }
.product-card__body { padding:20px; }
.product-card__title {
  min-height:44px;
  color:var(--ink);
  font-size:14px;
  line-height:1.45;
}
.product-card__weight { color:#838a97; font-size:13px; }
.product-card__desc { margin:10px 0 14px; color:#626b78; font-size:13px; line-height:1.55; }
.product-card__info-btn { width:36px; height:32px; border-radius:10px; color:var(--ink); background:#eef0f3; }
.product-card__price { color:var(--ink); font-family:var(--font-display); font-size:18px; }
.product-card__add-btn {
  min-width:104px;
  padding:11px 14px;
  border-radius:12px;
  color:var(--ink);
  background:var(--lime);
  font-size:13px;
  box-shadow:none;
}
.product-card__add-btn:hover { color:#fff; background:var(--blue); transform:none; }

/* Product modal */
.product-modal { padding:24px; backdrop-filter:blur(6px); }
.product-modal__overlay { background:rgba(5,11,22,.74); }
.product-modal__content {
  display:grid;
  grid-template-columns:1.05fr .95fr;
  max-width:980px;
  max-height:min(760px,90vh);
  border:1px solid rgba(255,255,255,.15);
  border-radius:30px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 40px 120px rgba(0,0,0,.35);
}
.product-modal__img { min-height:560px; height:100%; border-radius:0; background:#e9e5dc; }
.product-modal__img img { width:100%; height:100%; object-fit:cover; }
.product-modal__info { min-width:0; padding:54px 44px 40px; overflow-y:auto; }
.product-modal__title { color:var(--ink); font-size:30px; line-height:1.2; }
.product-modal__weight { color:#848b97; }
.product-modal__desc { color:#59616f; line-height:1.75; }
.product-modal__bottom { border-top:1px solid var(--line); }
.product-modal__price { color:var(--ink); font-family:var(--font-display); }
.product-modal__add-btn { border-radius:14px; color:var(--ink); background:var(--lime); }
.product-modal__add-btn:hover { background:var(--blue); }
.product-modal__close { top:16px; right:16px; width:42px; height:42px; color:#fff; background:var(--ink); }

/* Cart */
.cart-page { padding:12px 0 110px; }
.cart-page__layout { grid-template-columns:minmax(0,1fr) 420px; gap:24px; align-items:start; }
.cart-page__items { gap:12px; }
.cart-page-item {
  padding:14px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:none;
}
.cart-page-item__img { width:112px; height:112px; border-radius:16px; }
.cart-page-item__name { color:var(--ink); font-family:var(--font-display); font-size:14px; }
.cart-page-item__price { color:var(--ink); font-family:var(--font-display); }
.cart-page-item__qty { border:1px solid var(--line); border-radius:12px; background:#f4f3ef; }
.cart-page-item__qty-minus,.cart-page-item__qty-plus { color:var(--ink); }
.cart-page-item__remove { border-radius:11px; background:#f1f2f4; }
.cart-page__checkout {
  top:106px;
  padding:30px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:26px;
  color:#fff;
  background:var(--ink);
  box-shadow:0 28px 70px rgba(16,27,45,.18);
}
.cart-page__checkout-title { color:#fff; font-size:22px; }
.cart-page__label { color:rgba(255,255,255,.7); }
.cart-page__input,.cart-page__textarea {
  border:1px solid rgba(255,255,255,.14);
  border-radius:13px;
  color:#fff;
  background:rgba(255,255,255,.08);
}
.cart-page__input:focus,.cart-page__textarea:focus { border-color:var(--lime); box-shadow:0 0 0 3px rgba(217,255,67,.12); }
.cart-page__input::placeholder,.cart-page__textarea::placeholder { color:rgba(255,255,255,.38); }
.cart-page__persons { border-radius:13px; background:rgba(255,255,255,.09); }
.cart-page__persons-btn { color:var(--ink); background:var(--lime); }
.cart-page__privacy,.cart-page__delivery-row { color:rgba(255,255,255,.55); }
.cart-page__privacy a { color:var(--lime); }
.cart-page__delivery-row span:last-child,.cart-page__total-row { color:#fff; }
.cart-page__summary { border-color:rgba(255,255,255,.15); }
.cart-page__total-price { color:var(--lime); font-family:var(--font-display); }
.cart-page__submit-btn { border-radius:14px; color:var(--ink); background:var(--lime); }
.cart-page__submit-btn:hover { color:#fff; background:var(--blue); }
.cart-page__back-btn { color:rgba(255,255,255,.6); }

/* Footer */
.footer.site-footer {
  width:min(calc(100% - 32px), 1420px);
  margin:0 auto 16px;
  padding:74px 0 0;
  border-radius:34px;
  color:#fff;
  background:#0b1423;
  overflow:hidden;
}
.site-footer__grid { grid-template-columns:1.3fr 1fr 1fr; gap:70px; }
.footer__logo img { max-height:64px; width:auto; }
.footer__brand-text,.footer__contacts { color:rgba(255,255,255,.55); }
.footer__heading { color:var(--lime); font:700 12px/1.3 var(--font-display); letter-spacing:.06em; text-transform:uppercase; }
.footer__links { columns:2; column-gap:18px; }
.footer__links li { break-inside:avoid; margin-bottom:8px; }
.footer__links a { color:rgba(255,255,255,.7); font-size:13px; }
.footer__links a:hover,.footer__phone:hover { color:var(--lime); }
.footer__phone { color:#fff; font-family:var(--font-display); font-size:17px; }
.footer__bottom { margin-top:60px; border-color:rgba(255,255,255,.1); background:rgba(255,255,255,.025); }
.footer__copy,.footer__legal { color:rgba(255,255,255,.42); }
.mobile-call-button { display:none; }
.mobile-call-button svg { width:27px; height:27px; fill:currentColor; }

/* Mobile navigation */
.mobile-menu__overlay { background:rgba(5,11,22,.76); backdrop-filter:blur(7px); }
.mobile-menu__panel { width:min(410px,92vw); padding:28px; color:#fff; background:var(--ink); }
.mobile-menu__heading { padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,.14); }
.mobile-menu__close { color:var(--ink); background:var(--lime); }
.mobile-menu__list > li { border-color:rgba(255,255,255,.12); }
.mobile-menu__list > li > a,.mobile-menu__expand { color:#fff; font-family:var(--font-display); font-size:15px; }
.mobile-menu__sub a { color:rgba(255,255,255,.68); }
.mobile-menu__sub a:hover { color:var(--lime); }
.mobile-menu__phone { color:var(--lime); border-color:rgba(255,255,255,.14); }

@media (max-width:1100px) {
  .home-categories { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .catalog__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cart-page__layout { grid-template-columns:minmax(0,1fr) 370px; }
}

@media (max-width:1024px) {
  .header.site-header { height:72px; --header-height:72px; }
  .site-header__main { height:72px; min-height:72px; }
  .site-header .header__nav,.site-header__phone { display:none; }
  .header__burger { display:flex; }
  .hero { width:calc(100% - 24px); margin-top:12px; border-radius:24px; }
  .catalog__container { grid-template-columns:1fr; }
  .catalog__sidebar { display:none; }
  .category-page-nav { display:block; }
  .cart-page__layout { grid-template-columns:1fr; }
  .cart-page__checkout { position:static; }
}

@media (max-width:767px) {
  .mobile-call-button { position:fixed; right:18px; bottom:18px; z-index:1200; display:flex; width:60px; height:60px; align-items:center; justify-content:center; border:2px solid #fff4de; border-radius:50% 50% 42% 58%; background:var(--blue); color:#fff; box-shadow:0 12px 28px rgba(20,61,59,.38); }
  .container { padding-inline:14px; }
  .header.site-header { height:68px; }
  .site-header__main { height:68px; min-height:68px; }
  .header__cart { min-height:42px; padding:8px 12px; }
  .hero picture,.hero__img { height:390px; }
  .intro { padding:70px 0 64px; }
  .intro__title { font-size:36px; }
  .intro__subtitle { margin-top:18px; font-size:16px; }
  .home-categories { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:38px; }
  .home-category-card:nth-child(n) { transform:none; border-radius:17px; }
  .home-category-card:nth-child(n):hover { transform:translateY(-4px); }
  .home-category-card .category-card__name { min-height:70px; padding:16px 13px; font-size:12px; }
  .advantages { width:calc(100% - 20px); padding:60px 0; border-radius:26px; }
  .advantages__grid { grid-template-columns:1fr; gap:10px; }
  .advantage { min-height:0; padding:24px; }
  .advantage__icon { margin-bottom:28px; }
  .about { padding:90px 0; }
  .about__grid { grid-template-columns:1fr; gap:50px; }
  .about__images { min-height:390px; }
  .category-header { padding:24px 0 34px; }
  .category-header__title { font-size:36px; }
  .catalog { padding-bottom:80px; }
  .catalog__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .product-card { border-radius:17px; }
  .product-card__body { padding:13px; }
  .product-card__title { min-height:36px; font-size:11px; }
  .product-card__desc { margin:8px 0 11px; font-size:12px; line-height:1.45; }
  .product-card__bottom { gap:6px; }
  .product-card__price { font-size:14px; }
  .product-card__add-btn { min-width:0; padding:9px 10px; font-size:11px; }
  .product-modal { padding:10px; }
  .product-modal__content { display:block; border-radius:23px; }
  .product-modal__img { min-height:0; height:42vh; }
  .product-modal__info { padding:28px 20px 22px; }
  .product-modal__title { font-size:22px; }
  .cart-page-item { display:grid; grid-template-columns:84px 1fr auto; gap:12px; }
  .cart-page-item__img { width:84px; height:84px; }
  .cart-page__checkout { padding:23px 18px; border-radius:21px; }
  .footer.site-footer { width:calc(100% - 16px); margin-bottom:8px; padding-top:54px; border-radius:25px; }
  .site-footer__grid { grid-template-columns:1fr; gap:38px; }
  .footer__links { columns:2; }
}

.hero picture,.hero__img { height:clamp(301px,33.6vw,455px); }
@media (max-width:768px) { .hero picture,.hero__img { height:273px; } }
