:root {
  --ink: #171717;
  --paper: #f6f3ec;
  --white: #fffefa;
  --coral: #ff5a36;
  --blue: #6b8cff;
  --yellow: #ffcf48;
  --line: rgba(23, 23, 23, .18);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.topbar {
  position: relative;
  z-index: 20;
  max-width: 1400px;
  min-height: 92px;
  margin: 0 auto;
  padding: 18px 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; text-decoration: none; font-weight: 800; font-size: .9rem; line-height: 1.05; letter-spacing: -.03em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--coral); border-radius: 14px; transform: rotate(-5deg); }
.brand-mark span { width: 19px; height: 15px; position: relative; display: block; background: white; border-radius: 2px; }
.brand-mark span::before { content: ""; position: absolute; width: 9px; height: 4px; top: -4px; left: 3px; border-radius: 2px 2px 0 0; background: white; }
.brand-mark span::after { content: ""; position: absolute; width: 6px; height: 6px; top: 4px; left: 6px; border: 2px solid var(--ink); border-radius: 50%; }
nav { display: flex; gap: 32px; }
nav a { font-size: .9rem; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--coral); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.main-site-link { font-size: .82rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.main-site-link:hover { color: var(--coral); }

.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 999px; color: var(--white); background: var(--ink); font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(23,23,23,.14); }
.button-small { min-height: 44px; padding: 0 18px; font-size: .82rem; }

.hero { max-width: 1400px; min-height: 660px; margin: 0 auto; padding: 60px 36px 72px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: 44px; }
.hero-copy { padding-left: clamp(0px, 4vw, 54px); }
.eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 4px; display: inline-block; background: var(--coral); border-radius: 99px; }
h1, h2 { margin: 0; font-family: "Unbounded", sans-serif; font-weight: 700; line-height: .98; letter-spacing: -.065em; }
h1 { max-width: 770px; font-size: clamp(3.4rem, 6.1vw, 6.9rem); }
h1 em, h2 em { color: var(--coral); font-style: normal; }
.lead { max-width: 610px; margin: 32px 0; font-size: clamp(1rem, 1.5vw, 1.22rem); color: #525252; }
.hero-actions { display: flex; align-items: center; gap: 28px; }

.hero-stack { position: relative; min-height: 490px; }
.polaroid { position: absolute; width: clamp(220px, 22vw, 320px); padding: 12px 12px 18px; border: 1px solid rgba(23,23,23,.2); border-radius: 12px; background: var(--white); box-shadow: 0 24px 60px rgba(23,23,23,.18); cursor: pointer; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.polaroid:hover { z-index: 5; transform: rotate(0) translateY(-10px) scale(1.02); }
.polaroid img { width: 100%; height: 360px; object-fit: cover; object-position: 50% 48%; border-radius: 6px; }
.polaroid span { display: block; padding: 13px 4px 0; font-size: .78rem; font-weight: 800; text-align: center; }
.polaroid-one { top: 20px; left: 5%; transform: rotate(-7deg); }
.polaroid-two { right: 4%; bottom: 0; transform: rotate(8deg); }
.sticker { position: absolute; z-index: 8; display: grid; place-items: center; color: var(--ink); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.sticker-heart { width: 76px; height: 76px; right: 4%; top: 22px; background: var(--yellow); border-radius: 50%; font-size: 2rem; transform: rotate(12deg); }
.sticker-star { width: 62px; height: 62px; left: 7%; bottom: 16px; background: var(--blue); border-radius: 17px; font-size: 2rem; transform: rotate(-9deg); }

.ticker { overflow: hidden; padding: 18px 0; color: var(--white); background: var(--ink); transform: rotate(-1deg) scale(1.02); }
.ticker div { width: max-content; display: flex; align-items: center; gap: 28px; animation: ticker 28s linear infinite; font-family: "Unbounded"; font-size: 1rem; text-transform: uppercase; }
.ticker b { color: var(--coral); font-size: 1.4rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { max-width: 1400px; margin: 0 auto; padding: 120px 36px; }
.quotes { display: grid; grid-template-columns: 330px 1fr; gap: clamp(42px, 7vw, 110px); align-items: start; }
.section-heading { position: sticky; top: 30px; }
h2 { font-size: clamp(2.9rem, 5vw, 5.9rem); }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.quote-card { min-height: 300px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--white); box-shadow: 7px 7px 0 var(--ink); }
.quote-card:nth-child(2) { transform: translateY(48px) rotate(1deg); }
.quote-card:nth-child(3) { transform: rotate(-1deg); }
.quote-card:nth-child(4) { transform: translateY(42px); }
.quote-card blockquote { margin: 18px 0 32px; font-size: clamp(1.08rem, 1.7vw, 1.45rem); line-height: 1.42; font-weight: 600; letter-spacing: -.025em; }
.quote-card footer { display: flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 800; line-height: 1.2; }
.quote-card footer small { color: #777; font-weight: 600; }
.quote-mark { height: 38px; color: var(--coral); font-family: Georgia, serif; font-size: 4.5rem; line-height: .8; }
.stars { color: var(--coral); letter-spacing: .18em; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: none; background: var(--coral); border: 1.5px solid var(--ink); border-radius: 50%; }
.avatar-blue { background: var(--blue); }
.avatar-yellow { background: var(--yellow); }
.quote-dark { color: var(--white); background: var(--ink); }
.quote-dark footer small { color: #aaa; }
.quote-dark .avatar-light { color: var(--ink); background: var(--white); }

.gallery-section { padding-top: 150px; }
.gallery-heading { margin-bottom: 58px; display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.gallery-heading > p { max-width: 390px; margin: 0 0 7px; color: #555; font-size: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.review-shot { position: relative; height: 410px; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #d9e4d8; cursor: zoom-in; isolation: isolate; }
.review-shot::after { content: "Открыть ↗"; position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 999px; color: var(--white); background: rgba(23,23,23,.83); font: 700 .72rem "Manrope", sans-serif; opacity: 0; transform: translateY(6px); transition: .2s; }
.review-shot:hover::after, .review-shot:focus-visible::after { opacity: 1; transform: none; }
.review-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s; }
.review-shot:hover img { transform: scale(1.025); }
.review-shot:nth-child(4n+2) { height: 360px; }
.review-shot:nth-child(4n+3) { height: 460px; }
.review-shot.is-hidden { display: none; }
.load-more { min-height: 56px; margin: 36px auto 0; padding: 0 24px; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 800 .9rem "Manrope", sans-serif; cursor: pointer; transition: .2s; }
.load-more:hover { color: var(--white); background: var(--ink); }

.avito-callout { min-height: 390px; margin-bottom: 80px; padding: 58px; display: grid; grid-template-columns: auto 1.5fr 1fr auto; align-items: center; gap: 40px; color: var(--white); background: var(--ink); border-radius: 32px; }
.avito-callout h2 { font-size: clamp(2.5rem, 4.4vw, 5rem); }
.avito-callout p { max-width: 360px; color: #bbb; }
.avito-callout .eyebrow { color: var(--white); }
.avito-badge { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 26px; background: linear-gradient(135deg, #00d3c7, #6b8cff 36%, #c869ff 70%, #ff5a73); color: white; font: 700 2.7rem "Unbounded", sans-serif; transform: rotate(-7deg); }
.button-light { color: var(--ink); background: var(--white); border-color: var(--white); white-space: nowrap; }

.footer { max-width: 1400px; margin: 0 auto; padding: 36px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 30px; border-top: 1px solid var(--line); }
.footer p { margin: 0; color: #666; font-size: .9rem; }
.footer > a:last-child { font-size: .85rem; font-weight: 800; }

.lightbox { width: min(94vw, 920px); height: min(92vh, 980px); padding: 22px 70px; border: 0; border-radius: 24px; background: rgba(16,16,16,.98); color: white; }
.lightbox::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.lightbox figure { width: 100%; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100% - 30px); border-radius: 12px; object-fit: contain; }
.lightbox figcaption { font-size: .78rem; color: #aaa; }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 2; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.12); cursor: pointer; }
.lightbox-close { width: 42px; height: 42px; top: 16px; right: 16px; font-size: 1.8rem; }
.lightbox-nav { width: 44px; height: 44px; top: 50%; font-size: 1.4rem; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--coral); }

@media (max-width: 1050px) {
  .topbar { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr 420px; }
  .quotes { grid-template-columns: 1fr; }
  .section-heading { position: static; }
  .section-heading h2 br { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .avito-callout { grid-template-columns: auto 1fr auto; }
  .avito-callout > p { display: none; }
}

@media (max-width: 760px) {
  .topbar { min-height: 74px; padding: 14px 18px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .header-actions { gap: 10px; }
  .main-site-link { font-size: 0; }
  .main-site-link::before { content: "Сайт"; font-size: .75rem; }
  .main-site-link span { font-size: .75rem; }
  .button-small { min-height: 40px; padding: 0 13px; font-size: 0; gap: 5px; }
  .button-small::before { content: "Avito"; font-size: .78rem; }
  .button-small span { font-size: .8rem; }
  .hero { min-height: auto; padding: 52px 18px 56px; grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .lead { margin: 26px 0; }
  .hero-actions { align-items: flex-start; gap: 18px; }
  .hero-actions .button { padding: 0 18px; }
  .hero-stack { min-height: 400px; }
  .polaroid { width: min(62vw, 250px); padding: 9px 9px 14px; }
  .polaroid img { height: 290px; }
  .polaroid-one { left: 5%; }
  .polaroid-two { right: 2%; }
  .sticker-heart { right: 1%; }
  .sticker-star { left: 2%; }
  .section { padding: 88px 18px; }
  .quotes { gap: 42px; }
  h2 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .quote-grid { grid-template-columns: 1fr; gap: 16px; }
  .quote-card { min-height: 280px; padding: 26px; box-shadow: 5px 5px 0 var(--ink); transform: none !important; }
  .gallery-section { padding-top: 94px; }
  .gallery-heading { align-items: flex-start; flex-direction: column; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .review-shot, .review-shot:nth-child(n) { height: 300px; border-radius: 14px; }
  .avito-callout { margin: 26px 12px 54px; padding: 34px 24px; grid-template-columns: 1fr; gap: 22px; border-radius: 24px; }
  .avito-badge { width: 64px; height: 64px; border-radius: 20px; font-size: 2rem; }
  .avito-callout .button { justify-self: stretch; }
  .footer { padding: 28px 18px; grid-template-columns: 1fr auto; }
  .footer p { display: none; }
  .lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 54px 14px 64px; border-radius: 0; }
  .lightbox-nav { top: auto; bottom: 12px; }
  .lightbox-prev { left: calc(50% - 54px); }
  .lightbox-next { right: calc(50% - 54px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
