@font-face { font-family: Gilroy; src: url("./assets/Gilroy-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
:root {
  --brand: #d22024;
  --brand-strong: #cf131d;
  --ink: #464646;
  --muted: #a7a7a7;
  --surface: #fff;
  --panel: #f2f2f2;
  --radius: 10px;
  --brand-font: Gilroy, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.65 var(--brand-font); }
a { color: inherit; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(100% - 40px, 1440px); margin-inline: auto; }
.notice { background: var(--brand-strong); color: white; padding: 9px 0 10px; text-align: center; line-height: 1.35; }
.notice span, .notice strong { display: block; }
.notice strong { margin-top: 1px; font-size: 17px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px; font-size: clamp(17px, 1.45vw, 24px); font-weight: 700; line-height: 1.4; }
.logo { flex: 0 1 400px; }
.logo img { display: block; width: 100%; height: auto; }
.muted { color: var(--muted); }
.status { padding: 16px 22px; background: var(--panel); border: 1px solid var(--brand); border-radius: var(--radius); font-size: clamp(17px, 2vw, 26px); font-weight: 700; }
.button { display: inline-block; padding: 12px 18px; border-radius: var(--radius); background: white; color: var(--brand-strong); text-decoration: none; font-weight: 700; }
.button:hover { text-decoration: underline; }
.footer { margin-top: 24px; border-top: 1px solid var(--panel); padding-block: 20px; }
@media (max-width: 800px) {
  .header { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 24px; }
  .logo { grid-column: 1 / -1; width: min(100%, 400px); }
}

/* Desktop proportions follow the supplied storefront reference. */
.wrap { width: min(100% - 40px, 960px); }
.header { padding-block: 14px 0; font-size: 17px; }
.header a { text-decoration: none; }
.logo { flex: 0 1 270px; }
.phone { white-space: nowrap; }
.callback { display: inline-block; margin-top: 2px; padding: 2px 8px; color: white; background: var(--brand-strong); border-radius: 9px; }
.menu { display: inline-flex; align-items: center; gap: 10px; }
.menu span { width: 30px; height: 20px; border-block: 2px solid; background: linear-gradient(currentColor,currentColor) center / 100% 2px no-repeat; }
.tools { display: flex; justify-content: flex-end; gap: 12px; padding-block: 26px; }
.tools span { position: relative; width: 40px; height: 44px; }
.tools small { position: absolute; right: -4px; top: 0; border-radius: 50%; background: var(--brand); color: white; width: 16px; text-align: center; line-height: 16px; }
svg { display: block; width: 100%; fill: none; stroke: currentColor; stroke-width: 2; }
.catalog { background: var(--panel); border: 1px solid var(--brand); border-radius: var(--radius); }
.catalog summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; font-size: 21px; font-weight: 700; cursor: pointer; }
.catalog summary::after { content: ""; width: 10px; height: 10px; margin-right: 5px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.catalog p { margin: 0; padding: 0 15px 12px; }
.search { display: flex; margin-top: 29px; border: 2px solid #ccc; border-radius: 8px; background: #fafafa; }
.search input { flex: 1; min-width: 0; border: 0; padding: 8px 18px; background: transparent; font: inherit; }
.search-help { display: flex; align-items: center; justify-content: center; gap: 8px; width: min(32%, 175px); border: 0; border-radius: 5px; padding: 6px; background: var(--brand); color: white; cursor: pointer; font: inherit; font-weight: 700; }
.search svg { width: 20px; }
.promo { margin-top: 39px; overflow: hidden; border-radius: var(--radius); box-shadow: 0 4px 32px #0002; }
.promo img { display: block; width: 100%; height: auto; }
.emergency { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; margin-top: 26px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--brand); border-radius: var(--radius); background: var(--brand-strong); color: white; }
.emergency::before { position: absolute; z-index: -1; inset: -15% -20% -15% 8%; background: url("./assets/header__logo.png") left center / auto 100% no-repeat; content: ""; filter: brightness(0) invert(1); opacity: .09; }
.eyebrow { margin: 0; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.emergency h1 { margin: 2px 0 8px; color: white; font-size: clamp(29px, 4vw, 46px); line-height: 1.05; font-weight: 900; }
.emergency p { margin: 0; max-width: 63ch; font-size: 18px; }
.emergency .button { flex: 0 0 auto; text-align: center; line-height: 1.35; background: #fff; color: #101010; font-weight: 700; }
.social-contact { display: inline-block; margin-top: 16px; color: #fff; font-weight: 700; text-underline-offset: 4px; }
#socials { scroll-margin-top: 24px; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 0; }
.benefits article { display: flex; align-items: center; gap: 18px; font-size: 20px; line-height: 1.18; }
.benefit-icon { display: grid; flex: 0 0 auto; width: 88px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--panel); color: var(--ink); font-size: 42px; font-weight: 400; }
.benefit-icon img { display: block; width: 58%; height: 58%; object-fit: contain; }
.benefit-icon svg { display: block; width: 58%; height: 58%; stroke: none; fill: none; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 24px; min-height: 240px; padding: 30px 15px; border: 0; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 3px 28px #0001; font: 700 20px/1.2 var(--brand-font); cursor: pointer; }
.category-card img { width: 120px; height: 120px; object-fit: contain; }
.category-card:hover { color: var(--brand); }
.category-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.social svg { stroke: none; }
.footer { background: #fff; color: var(--ink); border-top: 3px solid var(--panel); }
@media (min-width: 1500px) {
  .wrap { width: min(100% - 60px, 1440px); }
  .logo { flex-basis: 400px; }
  .header { font-size: 24px; }
  .category-card { min-height: 340px; padding: 45px 20px; font-size: 26px; }
  .category-card img { width: 170px; height: 170px; }
}
@media (max-width: 700px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .category-card { font-size: 16px; padding: 20px 10px; } }
.categories { padding: 6px 0 20px; }
.categories h2 { margin: 0; text-transform: uppercase; font-size: clamp(28px, 3vw, 36px); }
.categories p { max-width: 64ch; font-size: 18px; }
.footer { margin-top: 34px; padding: 34px 0; background: #fff; color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.05fr .9fr 1.4fr; gap: 38px; }
.footer h2 { margin: 0 0 10px; font-size: 20px; }
.footer section > a { display: block; margin: 4px 0; text-decoration: none; }
.footer p { margin: 0; }
.socials { display: flex; gap: 10px; }
.social { display: grid; width: 42px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: white; text-decoration: none; }
.social svg { width: 21px; height: 21px; stroke: none; fill: none; }
.dialog-phones { display: flex; flex-wrap: wrap; gap: 12px; }
.social.wa { background: #25d366; }
.social.tg { background: #2aabee; }
.social.vk { background: #4c75a3; }
.social.vb { background: #8f55b5; }
dialog { max-width: min(500px, calc(100% - 40px)); border: 0; border-radius: var(--radius); padding: 30px; color: var(--ink); box-shadow: 0 12px 50px #0005; font-family: var(--brand-font); }
dialog::backdrop { background: #0008; }
dialog h2 { margin-top: 0; }
.dialog-close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 30px; line-height: 1; }
.button-red { background: var(--brand-strong); color: white; }
@media (max-width: 700px) {
  .logo { width: min(100%, 270px); }
  .header { gap: 14px; font-size: 15px; }
  .hero p, .hero .label { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .emergency { align-items: flex-start; flex-direction: column; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 20px; padding: 32px 0; }
  .benefits article { font-size: 16px; }
  .benefit-icon { width: 62px; font-size: 29px; }
}
