:root {
  color-scheme: light;
  --ink: #243a25;
  --accent: #df104a;
  --surface: #fdf6f7;
  --soft: #fde0e7;
  font: 100%/1.5 Arial, sans-serif;
  color: var(--ink);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #365d3b; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.025em; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.hero {
  position: relative;
  margin: 15px;
  border-radius: 22px;
  min-height: min(720px, 70vw);
  background: #e9eaed url("assets/hero.jpg") center center / cover no-repeat;
}
.hero > .wrap { position: relative; display: flow-root; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { object-fit: contain; }
.desktop-nav, .header-actions { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.desktop-nav a:hover, .menu a:hover, .phone:hover { color: var(--accent); }
.phone { white-space: nowrap; font-weight: 700; }
.max-icon, .menu-button { display: grid; place-content: center; width: 40px; height: 40px; border-radius: 5px; }
.menu-button { background: var(--accent); border: 0; gap: 4px; }
.menu-button span { width: 23px; height: 1px; background: #fff; }
.menu { position: absolute; z-index: 2; top: 71px; right: 0; display: grid; gap: 12px; min-width: 215px; padding: 24px; background: var(--surface); border-radius: 12px; box-shadow: 0 8px 28px #26342625; }
.hero-card { width: min(700px, 67%); margin: clamp(45px, 6.7vw, 105px) 0 95px; background: var(--surface); padding: clamp(25px, 2.2vw, 34px); border-radius: 11px; }
.eyebrow { display: inline-block; padding: 5px 17px; border-radius: 99px; background: var(--soft); color: #a90b37; }
h1 { font-size: clamp(2rem, 3.55vw, 3.15rem); letter-spacing: -.035em; line-height: 1.02; margin: 32px 0 20px; }
.hero-description { font-size: clamp(1rem, 1.7vw, 1.25rem); }
.offer { margin: 24px 0 18px; font-weight: 700; font-size: 1.07rem; color: #a90b37; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 11px 20px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: white; font-weight: 700; text-align: center; }
.button:hover { background: #bf083c; border-color: #bf083c; }
.button.outline { background: transparent; color: #ba0a3d; }
.button.outline:hover { background: var(--soft); }
.section { margin-block: 76px; }
.intro { margin: 14px 0 28px; }
.catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.catalog article { overflow: hidden; border-radius: 15px; background: var(--surface); }
.catalog img { width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.catalog h3 { padding: 15px 18px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 20px; overflow: hidden; }
.feature > img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.feature-copy { align-self: center; padding: clamp(24px, 4vw, 54px); }
.feature-copy p, .delivery p { margin-top: 17px; }
.reverse > img { order: 1; }
.delivery { padding: clamp(35px, 6vw, 85px) clamp(24px, 5vw, 64px); border-radius: 20px; background: var(--surface) url("assets/map.webp") center / cover; }
.delivery h2 { max-width: 660px; }
.steps { padding-left: 22px; margin: 22px 0 0; }
.steps li { padding-left: 5px; margin-top: 13px; }
.steps span { display: block; }
.faq h2 { margin-bottom: 25px; }
details { border-bottom: 1px solid #eedce1; padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 10px; }
footer { background: var(--surface); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; }
dialog { color: var(--ink); width: min(460px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 26px; }
dialog::backdrop { background: #18231ab3; }
dialog h2 { font-size: 1.65rem; }
dialog p { margin: 14px 0 22px; }
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .hero-card { width: min(620px, 75%); }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 32px); }
  .hero { margin: 8px; border-radius: 16px; background-size: auto 370px; background-position: 66% top; }
  .hero .phone { display: none; }
  .topbar { min-height: 65px; }
  .hero-card { width: 100%; margin: 226px 0 16px; padding: 21px; }
  h1 { margin: 20px 0 14px; }
  .actions > a { width: 100%; }
  .section { margin-block: 48px; }
  .catalog { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { grid-template-columns: 1fr; }
  .feature > img { min-height: 0; height: auto; aspect-ratio: 1.65; }
  .reverse > img { order: 0; }
  .footer-content { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

.cabinet-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.cabinet-links a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cabinet-links a:hover, .cabinet-links a[aria-current="page"] { color: var(--accent); }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(260px, 310px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 64px);
  margin: clamp(45px, 6vw, 95px) 0 clamp(48px, 6.4vw, 95px);
}
.hero-layout .hero-card { width: 100%; margin: 0; }
.cabinet-preview {
  width: min(100%, 310px);
  justify-self: end;
  color: var(--ink);
  background: #223627;
  border-radius: 29px;
  padding: 8px;
  box-shadow: 0 15px 42px #13221945;
}
.preview-camera {
  width: 46px;
  height: 5px;
  margin: 2px auto 8px;
  border-radius: 5px;
  background: #a6b4a5;
}
.preview-app { padding: 16px; background: #fff; border-radius: 20px; }
.preview-brand { font-size: .9rem; font-weight: 700; color: #ac1240; }
.preview-title { font-size: 1.38rem; font-weight: 700; line-height: 1.2; margin-top: 8px; }
.preview-demo { color: #506653; font-size: .875rem; margin-top: 5px; }
.preview-products { list-style: none; margin: 9px 0 12px; padding: 0; }
.preview-products li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eee2e5;
  padding: 9px 0;
  font-size: .875rem;
}
.preview-products img { border-radius: 7px; object-fit: cover; }
.preview-app small { display: block; color: #506653; font-size: .875rem; }
.preview-basket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--surface);
  font-size: .875rem;
}
.office-benefit-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.office-benefit-grid article { padding: 22px; border-radius: 15px; background: var(--surface); }
.office-benefit-grid p { margin-top: 8px; }
@media (max-width: 720px) {
  .hero { background-size: auto 370px; background-position: 66% top; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 216px 0 24px; }
  .cabinet-preview { justify-self: center; }
  .office-benefit-grid { grid-template-columns: 1fr; gap: 10px; }
}
