:root {
  --black: #050606;
  --black-soft: #0b0c0c;
  --paper: #f4f3ef;
  --red: #e32227;
  --ink: #151515;
  --muted: #666;
  --line: #dad8d2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.sectionRemote { position: fixed; z-index: 30; top: 50%; right: 10px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 5px; padding: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: rgba(5,6,6,.9); box-shadow: 0 16px 50px rgba(0,0,0,.28); backdrop-filter: blur(12px); }
.sectionRemote a { width: 36px; min-height: 38px; padding: 6px; border-left: 2px solid transparent; display: flex; flex-direction: column; justify-content: center; color: rgba(255,255,255,.55); transition: width .2s, color .2s, background .2s, border-color .2s; overflow: hidden; }
.sectionRemote strong { font-size: 16px; line-height: 1; font-weight: 950; }
.sectionRemote span { max-width: 0; height: 0; opacity: 0; white-space: nowrap; overflow: hidden; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; transition: opacity .2s; }
.sectionRemote a:hover, .sectionRemote a:focus-visible, .sectionRemote a.is-active { width: 88px; color: #fff; border-left-color: var(--red); background: rgba(255,255,255,.07); }
.sectionRemote a:hover span, .sectionRemote a:focus-visible span, .sectionRemote a.is-active span { max-width: 96px; height: auto; margin-top: 5px; opacity: 1; }

.hero, .darkSection, footer { background: var(--black); color: #fff; }
.header { min-height: 86px; display: flex; align-items: center; gap: 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 18px; }
.logoRef { width: 104px; height: 58px; flex: 0 0 auto; display: block; border-radius: 50%; background: #fff url("/public/logo-fabrika.jpg") center / 126% auto no-repeat; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.brand span { text-transform: uppercase; font-size: 11px; line-height: 1.55; font-weight: 800; letter-spacing: .03em; }
.header nav { margin-left: auto; display: flex; gap: 28px; text-transform: uppercase; font-size: 10px; font-weight: 800; }
.header nav a, footer nav a { transition: color .2s; }
.header nav a:hover, footer nav a:hover { color: var(--red); }
.header nav .contactNav { margin: -9px 0; padding: 9px 13px; border: 1px solid rgba(227,34,39,.65); border-radius: 3px; color: #fff; }
.header nav .contactNav:hover { color: #fff; background: var(--red); }
.headerPhone { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 7px 12px 7px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 4px; color: #fff; background: rgba(255,255,255,.04); transition: border-color .2s, background .2s, transform .2s; }
.headerPhone:hover { border-color: rgba(227,34,39,.8); background: rgba(227,34,39,.08); transform: translateY(-1px); }
.headerPhoneIcon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--red); }
.headerPhoneIcon svg { width: 16px; height: 16px; }
.headerPhoneText { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.headerPhoneText small { color: #9b9b9b; font-size: 8px; line-height: 1; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.headerPhoneText strong { font-size: 13px; line-height: 1; letter-spacing: .015em; }
.mailButton { background: var(--red); color: #fff; text-transform: uppercase; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .2s, background .2s; }
.mailButton.small { min-width: 156px; min-height: 50px; padding: 0 16px; border-radius: 4px; font-size: 9px; line-height: 1.25; }
.mailButton svg { width: 19px; height: 19px; flex: 0 0 auto; }

.heroGrid { min-height: 610px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; }
.heroCopy { padding: 56px 0 70px; position: relative; z-index: 2; }
.eyebrow { text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.eyebrow i { width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
h1 { font-size: clamp(52px, 5.4vw, 78px); line-height: .94; letter-spacing: -.055em; text-transform: uppercase; }
h1 em { color: var(--red); font-style: normal; }
.lead { max-width: 510px; color: #c9c9c9; font-size: 17px; line-height: 1.55; margin-top: 30px; }
.actions { display: flex; align-items: center; gap: 34px; margin-top: 36px; }
.redButton { min-height: 56px; padding: 0 24px; background: var(--red); display: inline-flex; align-items: center; gap: 34px; border-radius: 3px; text-transform: uppercase; font-size: 10px; font-weight: 800; transition: transform .2s, background .2s; }
.redButton:hover, .mailButton:hover { background: #f02c32; transform: translateY(-2px); }
.simpleLink { text-transform: uppercase; font-size: 11px; font-weight: 800; display: flex; gap: 12px; }
.heroImage { height: 610px; align-self: end; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.heroImage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.08), transparent 55%); }
.heroImage img { width: auto; max-width: 100%; height: 600px; object-fit: contain; object-position: center bottom; position: relative; z-index: 1; image-rendering: auto; }
.fresh { position: absolute; z-index: 2; right: 4px; top: 150px; background: #fff; color: #111; padding: 13px 16px; font-size: 11px; line-height: 1.35; font-weight: 700; transform: rotate(2deg); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.fresh::first-letter { color: var(--red); }

.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.factGrid { min-height: 106px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; gap: 0; }
.factGrid article, .aboutBenefits article { display: flex; align-items: center; gap: 16px; }
.factGrid article { padding: 18px 22px; }
.factGrid article + article { border-left: 1px solid var(--line); }
.factGrid svg { width: 34px; height: 34px; flex: 0 0 auto; color: var(--red); }
.factGrid strong, .aboutBenefits strong { display: block; text-transform: uppercase; font-size: 12px; margin-bottom: 6px; }
.factGrid span, .aboutBenefits span { display: block; font-size: 10px; color: var(--muted); }

.lightSection { background: var(--paper); }
.about, .assortment { padding: 76px 0; }
.sectionTag { color: var(--red); margin-bottom: 38px; display: flex; align-items: center; gap: 13px; text-transform: uppercase; }
.sectionTag strong { font-size: 27px; line-height: 1; font-weight: 950; letter-spacing: -.045em; }
.sectionTag span { font-size: 12px; line-height: 1; font-weight: 900; letter-spacing: .14em; }
.sectionTag::after { content: ""; width: 42px; height: 2px; background: currentColor; opacity: .7; }
.aboutGrid { display: grid; grid-template-columns: 1fr .9fr; gap: 11vw; }
h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.02; letter-spacing: -.05em; }
.bodyCopy { font-size: 15px; line-height: 1.65; color: #555; }
.bodyCopy p + p { margin-top: 20px; }
.aboutBenefits { margin-top: 58px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.aboutBenefits article { min-height: 112px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); }
.aboutBenefits i { width: 58px; height: 58px; border: 1px solid rgba(227,34,39,.5); border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; }
.aboutBenefits svg { width: 58px; height: 58px; padding: 16px; border: 1px solid rgba(227,34,39,.5); border-radius: 50%; color: var(--ink); }

.service { padding: 96px 0; background: #090a0a; }
.service > .shell > h2 { max-width: 760px; }
.serviceGrid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.serviceGrid article { min-height: 150px; display: flex; gap: 18px; padding: 25px; background: #111313; border: 1px solid #282a2a; transition: border-color .2s, transform .2s; }
.serviceGrid article:hover { border-color: rgba(227,34,39,.65); transform: translateY(-3px); }
.serviceGrid article:not(:nth-child(3n+1)) { border-left: 1px solid #282a2a; padding-left: 25px; }
.serviceGrid svg, .placeGrid svg { width: 44px; height: 44px; flex: 0 0 auto; color: var(--red); stroke-width: 1.5; }
.serviceGrid h3 { text-transform: uppercase; font-size: 13px; line-height: 1.25; margin-bottom: 10px; }
.serviceGrid p { color: #999; font-size: 11px; line-height: 1.5; }

.launch { padding: 82px 0; border-bottom: 1px solid var(--line); }
.launchGrid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 7vw; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 6px; }
.steps article { position: relative; text-align: left; padding: 22px; background: #fff; border: 1px solid var(--line); }
.steps i { width: 56px; height: 56px; border: 1px solid var(--red); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; font-style: normal; font-weight: 800; font-size: 12px; }
.steps article > span { display: none; }
.steps h3 { font-size: 14px; line-height: 1.25; text-transform: uppercase; margin-bottom: 16px; }
.steps p { color: var(--muted); font-size: 11px; line-height: 1.45; }

.darkGap { height: clamp(54px, 7vw, 96px); background: var(--black); border-top: 1px solid #202222; border-bottom: 1px solid #202222; }
.contactGap { height: clamp(80px, 10vw, 140px); border-bottom: 0; }

.assortmentGrid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 7vw; align-items: center; }
.foodVisual { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 18px 50px rgba(20,20,20,.09); }
.assortment img { width: 100%; display: block; }
.foodLabels { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 2.2% 3.5%; gap: 1.3%; }
.foodLabels span { padding: 12px 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-radius: 4px; }
.foodLabels b, .foodLabels small { display: block; }
.foodLabels b { font-size: 14px; margin-bottom: 4px; }
.foodLabels small { font-size: 9px; color: #555; }

.places { padding: 96px 0 88px; background: #090a0a; }
.placeGrid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; border-top: 1px solid #303232; border-bottom: 1px solid #303232; }
.placeGrid article { min-height: 126px; display: flex; align-items: center; gap: 18px; padding: 25px; transition: background .2s; }
.placeGrid article:hover { background: #111313; }
.placeGrid article + article { border-left: 1px solid #303232; }
.placeGrid h3 { text-transform: uppercase; font-size: 13px; }
.placesNote { color: #888; font-size: 11px; text-align: center; margin-top: 22px; }

.trusted { padding: 76px 0; }
.trustedHead { display: grid; grid-template-columns: 1fr .65fr; gap: 8vw; align-items: end; }
.trustedHead p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.clientGroups { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.clientGroups article { padding: 24px; background: #fff; border: 1px solid var(--line); }
.clientGroups article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.clientGroups span { display: inline-block; color: var(--red); border: 1px solid rgba(227,34,39,.45); border-radius: 999px; padding: 7px 11px; text-transform: uppercase; font-size: 9px; letter-spacing: .09em; font-weight: 800; }
.clientGroups ul { list-style: none; padding: 16px 0 0; margin: 0; }
.clientGroups li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.clientGroups li:last-child { border-bottom: 0; }
.trustPoints { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; text-transform: uppercase; font-size: 10px; font-weight: 800; }
.trustPoints i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

.contactSection { padding: 24px 0 86px; background: #090a0a; }

.contactPanel { background: var(--paper); color: var(--ink); min-height: 176px; padding: 30px 38px; display: grid; grid-template-columns: 90px 1.3fr .8fr .8fr; gap: 25px; align-items: center; border-radius: 8px; border-bottom: 6px solid var(--red); }
.headset i { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid rgba(227,34,39,.45); border-radius: 50%; color: var(--red); font-size: 38px; font-style: normal; }
.headset svg { width: 72px; height: 72px; padding: 18px; border: 1px solid rgba(227,34,39,.45); border-radius: 50%; color: var(--red); }
.contactText h2 { font-size: clamp(27px, 2.7vw, 40px); }
.contactText p { font-size: 11px; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.phone a { font-size: clamp(17px, 1.8vw, 24px); font-weight: 800; white-space: nowrap; }
.phone a::first-letter { color: var(--red); }
.phone span { display: block; color: var(--muted); margin-top: 12px; font-size: 11px; }
.mailButton.big { min-height: 66px; padding: 0 18px; border-radius: 3px; font-size: 11px; text-align: center; text-transform: none; letter-spacing: .01em; }

footer { border-top: 1px solid #222; }
.footerGrid { min-height: 120px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 32px; align-items: center; }
.footerGrid .logoRef { width: 92px; height: 52px; background-size: 126% auto; }
.footerGrid p { color: #777; font-size: 10px; line-height: 1.5; }
footer nav { display: flex; gap: 35px; text-transform: uppercase; font-size: 10px; font-weight: 800; }
.socials { display: flex; align-items: center; gap: 24px; font-weight: 800; font-size: 17px; }
.footerEmail { color: #aaa; font-size: 11px; font-weight: 700; transition: color .2s; }
.footerEmail:hover { color: var(--red); }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .header nav { display: none; }
  .header .headerPhone { margin-left: auto; }
  .heroGrid { grid-template-columns: 1fr 1fr; }
  .heroImage img { max-width: 100%; }
  .factGrid { grid-template-columns: 1fr 1fr; padding: 28px 0; }
  .launchGrid, .assortmentGrid, .trustedHead { grid-template-columns: 1fr; }
  .serviceGrid { grid-template-columns: 1fr 1fr; }
  .serviceGrid article:not(:nth-child(3n+1)), .serviceGrid article:nth-child(even) { border-left: 1px solid #282a2a; padding-left: 25px; }
  .steps { margin-top: 35px; }
  .assortment img { margin-top: 30px; }
  .placeGrid { grid-template-columns: 1fr 1fr; }
  .placeGrid article:nth-child(3) { border-left: 0; border-top: 1px solid #303232; }
  .placeGrid article:nth-child(4) { border-top: 1px solid #303232; }
  .clientGroups { grid-template-columns: 1fr; }
  .clientGroups article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .contactPanel { grid-template-columns: 72px 1fr 1fr; }
  .contactPanel .mailButton { grid-column: 2 / -1; }
}

@media (max-width: 620px) {
  .sectionRemote { top: auto; right: 50%; bottom: 10px; transform: translateX(50%); flex-direction: row; gap: 2px; width: max-content; max-width: calc(100% - 20px); padding: 6px; }
  .sectionRemote a { width: 38px; min-height: 36px; padding: 5px; border-left: 0; border-bottom: 2px solid transparent; align-items: center; }
  .sectionRemote strong { font-size: 13px; }
  .sectionRemote span { display: none; }
  .sectionRemote a:hover, .sectionRemote a:focus-visible, .sectionRemote a.is-active { width: 38px; border-left-color: transparent; border-bottom-color: var(--red); }
  .shell { width: min(100% - 32px, 1160px); }
  .header { min-height: 78px; }
  .brand { gap: 8px; }
  .logoRef { width: 82px; height: 48px; background-size: 126% auto; }
  .brand span { font-size: 8px; }
  .header { gap: 12px; }
  .headerPhone { gap: 7px; min-height: 42px; padding: 5px 8px 5px 6px; }
  .headerPhoneIcon { width: 30px; height: 30px; }
  .headerPhoneText small { display: none; }
  .headerPhoneText strong { font-size: 11px; }
  .mailButton.small { min-width: 116px; min-height: 44px; font-size: 8px; }
  .mailButton.small svg { display: none; }
  .heroGrid { min-height: auto; grid-template-columns: 1fr; }
  .heroCopy { padding: 56px 0 30px; }
  h1 { font-size: 50px; }
  .lead { font-size: 15px; }
  .actions { align-items: flex-start; flex-direction: column; }
  .heroImage { height: 510px; }
  .heroImage img { width: auto; max-width: 100%; height: 510px; object-fit: contain; }
  .fresh { top: 76px; right: 0; }
  .factGrid { grid-template-columns: 1fr 1fr; gap: 25px 15px; }
  .factGrid i { font-size: 27px; }
  .factGrid strong { font-size: 10px; }
  .about, .assortment, .launch, .service, .places, .trusted { padding: 62px 0; }
  .sectionTag strong { font-size: 23px; }
  .sectionTag span { font-size: 10px; }
  .aboutGrid { grid-template-columns: 1fr; gap: 32px; }
  .aboutBenefits { grid-template-columns: 1fr; gap: 26px; margin-top: 45px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps article > span { display: none; }
  .assortmentGrid { gap: 15px; }
  .assortment img { width: 100%; max-width: none; transform: none; }
  .serviceGrid { grid-template-columns: 1fr; }
  .serviceGrid article, .serviceGrid article:nth-child(even) { border-left: 1px solid #282a2a; padding-left: 22px; }
  .placeGrid { grid-template-columns: 1fr; }
  .placeGrid article + article, .placeGrid article:nth-child(3), .placeGrid article:nth-child(4) { border-left: 0; border-top: 1px solid #303232; }
  .trustPoints { flex-wrap: wrap; }
  .contactPanel { padding: 26px 22px; grid-template-columns: 1fr; }
  .headset { display: none; }
  .contactPanel .mailButton { grid-column: auto; }
  .footerGrid { grid-template-columns: 1fr 1fr; padding: 25px 0; }
  footer nav { display: none; }
  .socials { justify-content: flex-end; }
}

@media (max-width: 390px) {
  .brand > span:last-child { display: none; }
}
