/* Chameleon Lab — Cute outside. Brutal inside. */
:root {
  --light: #F4F1EC;
  --ink: #141414;
  --pink: #E0487A;
  --pink-soft: #F7D3DE;
  --muted: #5C5850;
  --muted-dark: #C9C4BC;
  --line-dark: #5C5850;
  --white: #FFFFFF;
  --display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --body: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); background: var(--light); color: var(--ink); line-height: 1.5; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
h1, h2, h3, p, ul { margin: 0; }
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 0.88; }
.pink { color: var(--pink); }

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-size: 20px; text-transform: uppercase; text-decoration: none; padding: 16px 26px; border: 2px solid transparent; cursor: pointer; }
.btn-pink { background: var(--pink); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--light); }
.btn-outline { border-color: var(--ink); background: transparent; }
.btn:hover { filter: brightness(0.92); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px var(--pad); }
.logo { font-family: var(--display); font-size: 28px; font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }
.logo span { color: var(--pink); }
.nav { display: flex; gap: 32px; font-family: var(--display); font-size: 18px; text-transform: uppercase; letter-spacing: 0.05em; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--pink); }
.site-header .btn { font-size: 17px; padding: 12px 22px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 32px; padding: 0 var(--pad) 32px; min-height: calc(100vh - 104px); min-height: calc(100svh - 104px); }
.hero-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.badge { font-family: var(--display); font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; border: 1.5px solid var(--ink); padding: 6px 12px; }
.hero h1 { font-size: clamp(52px, min(6.4vw, 13vh), 124px); }
.hero-sub { font-family: var(--display); font-size: clamp(20px, 1.8vw, 28px); text-transform: uppercase; letter-spacing: 0.02em; }
.hero-text > p:not(.hero-sub) { font-size: 19px; max-width: 30em; }
.hero-scene { position: relative; margin: 0; justify-self: center; padding: clamp(20px, 3.5vw, 56px); }
.hero-scene::before { content: ''; position: absolute; inset: 0; background: var(--pink-soft); border-radius: 28px; }
.hero-scene img { position: relative; z-index: 1; transform: translateX(-7%) scale(1.4); width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 230px); max-height: calc(100svh - 230px); }

/* Dark — brutal inside */
.dark { background: var(--ink); color: var(--light); padding: 80px var(--pad) 0; }
.dark h2 { font-size: clamp(56px, 10vw, 150px); color: var(--pink); margin-bottom: 48px; }
.kicker { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pink); font-size: 18px; margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border: 2px solid var(--light); padding: 16px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.card:hover { border-color: var(--pink); }
.card-img { aspect-ratio: 4 / 5; background: var(--white); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-family: var(--display); font-size: 26px; font-weight: 500; text-transform: uppercase; line-height: 1.1; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.card-meta b { color: var(--pink); white-space: nowrap; }
.card-feature { grid-column: span 2; grid-row: span 2; }
.card-feature .card-img { aspect-ratio: auto; flex: 1 1 auto; }
.card-feature h3 { font-size: 40px; }
.dark-note { margin-top: 24px; color: var(--muted-dark); font-size: 16px; }
.band { margin-top: 40px; background: var(--pink); color: var(--ink); padding: 32px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.band p { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 4vw, 52px); line-height: 1; }
.ticker { margin: 72px calc(var(--pad) * -1) 0; border-top: 2px solid var(--light); padding: 14px var(--pad); font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; }
.ticker span { color: var(--pink); }

/* Custom work */
.light-sec { padding: 96px var(--pad); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(48px, 7vw, 110px); grid-row: span 2; }
.sec-head p { font-size: 19px; max-width: 32em; }
.sec-head .btn { justify-self: start; }
.roz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.roz { margin: 0; padding: 0; font: inherit; color: inherit; text-align: left; background: var(--white); border: 2px solid var(--ink); display: flex; flex-direction: column; cursor: pointer; }
.roz:hover { border-color: var(--pink); }
.roz img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.roz span { padding: 10px 12px; font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: 17px; line-height: 1.15; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.roz span::after { content: '+'; color: var(--pink); font-weight: 700; }

/* Modal */
dialog.roz-modal { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; background: var(--light); color: var(--ink); }
dialog.roz-modal::backdrop { background: rgba(20, 20, 20, 0.75); }
.modal-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.modal-gallery { background: var(--white); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.modal-main { width: 100%; max-height: 62vh; object-fit: contain; }
.modal-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-thumbs button { padding: 0; border: 2px solid var(--ink); background: var(--white); width: 92px; height: 92px; cursor: pointer; }
.modal-thumbs button[aria-pressed="true"] { border-color: var(--pink); }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-text { padding: 28px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; max-height: 92vh; }
.modal-text h3 { font-family: var(--display); font-size: 36px; text-transform: uppercase; line-height: 1; }
.modal-text h4 { font-family: var(--display); font-weight: 500; font-size: 17px; text-transform: uppercase; color: var(--pink); margin: 6px 0 4px; }
.modal-text p, .modal-text li { font-size: 16px; line-height: 1.55; }
.modal-text ul { padding-left: 1.1em; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: var(--ink); color: var(--light); font-size: 24px; cursor: pointer; z-index: 2; }

/* Contacts */
.contacts { padding: 96px var(--pad); }
.contacts h2 { font-size: clamp(48px, 7vw, 110px); margin-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact { border: 2px solid var(--ink); background: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.contact small { font-size: 14px; color: var(--muted); }
.contact b { font-family: var(--display); font-weight: 500; font-size: 24px; text-transform: uppercase; line-height: 1.1; }
a.contact:hover { background: var(--pink); }
.contact b.mail { text-transform: none; font-size: 22px; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 32px var(--pad) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 15px; border-top: 1px solid var(--line-dark); }
.foot-brand b { font-family: var(--display); color: var(--light); font-size: 22px; }
.foot-brand b span { color: var(--pink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--light); text-decoration: none; }
.site-footer a:hover { color: var(--pink); }

/* Product page */
.crumbs { padding: 0 var(--pad) 24px; font-size: 15px; color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 56px; padding: 0 var(--pad) 80px; }
.gallery-main { background: var(--white); border: 2px solid var(--ink); aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.thumbs button { padding: 0; border: 2px solid var(--ink); background: var(--white); aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--pink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.tag { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 18px; padding: 8px 16px; background: var(--pink); transform: rotate(-3deg); }
.product-info h1 { font-size: clamp(56px, 7vw, 104px); }
.versions { display: flex; border: 2px solid var(--ink); font-family: var(--display); font-size: 18px; text-transform: uppercase; }
.versions a { text-decoration: none; padding: 12px 22px; border-right: 2px solid var(--ink); }
.versions a:last-child { border-right: 0; }
.versions a[aria-current="page"] { background: var(--ink); color: var(--light); }
.product-info > p { font-size: 20px; max-width: 30em; }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); background: var(--white); width: 100%; }
.prices div { padding: 16px 18px; border-right: 2px solid var(--ink); }
.prices div:last-child { border-right: 0; }
.prices small { display: block; font-size: 14px; color: var(--muted); }
.prices strong { font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); }
.vprices { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
.vname { background: var(--light); }
.vname strong { font-size: 24px; text-transform: uppercase; }
.note { font-size: 15px; color: var(--muted); }
.inside-lead { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 56px; margin: -16px 0 56px; }
.inside-lead .display { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.inside-lead p + p { font-size: 20px; color: var(--muted-dark); align-self: end; }
.inside { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 56px; margin-bottom: 64px; }
.inside-img { border: 2px solid var(--light); overflow: hidden; aspect-ratio: 3 / 2; }
.inside-img img { width: 100%; height: 100%; object-fit: cover; }
.features { list-style: none; padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
.features li { border-top: 2px solid var(--light); padding: 18px 0; font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); text-transform: uppercase; line-height: 1.15; }
.features li:last-child { border-bottom: 2px solid var(--light); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.two-col h3 { font-family: var(--display); font-weight: 500; font-size: 20px; color: var(--pink); margin-bottom: 12px; text-transform: uppercase; }
.two-col ul { padding-left: 1.1em; font-size: 20px; line-height: 1.7; }
.two-col p { font-size: 20px; line-height: 1.6; }
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.compare article { border: 2px solid var(--line-dark); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.compare article.current { border-color: var(--pink); background: #1F1F1F; }
.compare .card-img { aspect-ratio: 4 / 3; }
.compare h3 { font-family: var(--display); font-weight: 500; font-size: 30px; text-transform: uppercase; display: flex; justify-content: space-between; align-items: baseline; }
.compare h3 small { font-family: var(--body); font-size: 14px; text-transform: none; color: var(--muted-dark); }
.compare .current h3 { color: var(--pink); }
.compare ul { padding-left: 1.1em; color: var(--muted-dark); font-size: 17px; line-height: 1.6; flex-grow: 1; }
.compare strong { font-family: var(--display); font-size: 32px; }

/* Legal */
.legal { max-width: 860px; padding: 24px var(--pad) 96px; }
.legal h1 { font-size: clamp(44px, 6vw, 80px); margin-bottom: 24px; }
.legal h2 { font-family: var(--display); font-size: 26px; text-transform: uppercase; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; }
.legal .warn { background: var(--pink); padding: 14px 18px; font-weight: 700; }

@media (min-width: 1201px) { .roz-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } .roz span { font-size: 15px; } }
@media (max-width: 1400px) and (min-width: 961px) { .hero-scene img { transform: translateX(-3%) scale(1.28); } }
@media (max-width: 1200px) { .cards-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card-feature { grid-row: span 1; } }

/* Mobile */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; overflow-x: hidden; }
  .hero-scene { order: -1; }
  .hero-scene img { transform: scale(1.1); }
  .hero-text { padding: 8px 0 24px; }
  .product, .inside, .inside-lead, .two-col, .sec-head, .modal-in { grid-template-columns: 1fr; }
  .sec-head h2 { grid-row: auto; }
  .cards:not(.cards-4), .compare, .contact-grid { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 10px; gap: 10px; }
  .card h3 { font-size: 19px; }
  .card-feature h3 { font-size: 26px; }
  .card-meta { flex-direction: column; gap: 2px; font-size: 13px; }
  .roz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .roz span { font-size: 14px; }
  .light-sec, .contacts { padding: 64px var(--pad); }
  .vprices { grid-template-columns: 1fr 1fr; }
  .band { padding: 28px 24px; }
  .dark { padding-top: 56px; }
  .ticker { font-size: 18px; margin-top: 56px; }
  .modal-main { max-height: 46vh; }
  .modal-text { max-height: none; }
  dialog.roz-modal { max-height: 94vh; overflow-y: auto; }
}
@media (max-width: 520px) {
  .logo { font-size: 22px; }
  .site-header .btn { padding: 10px 16px; font-size: 15px; }
  .prices { grid-template-columns: 1fr; }
  .prices div { border-right: 0; border-bottom: 2px solid var(--ink); }
  .prices div:last-child { border-bottom: 0; }
  .versions a { padding: 10px 14px; }
  .btn { font-size: 18px; }
}

/* Order form */
dialog.order-modal { width: min(720px, 94vw); }
.order-form { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.order-form h3 { font-family: var(--display); font-size: 36px; text-transform: uppercase; line-height: 1; }
.order-product { font-family: var(--display); font-size: 20px; text-transform: uppercase; color: var(--pink); }
.order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.order-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.order-grid .wide { grid-column: 1 / -1; }
.order-grid input, .order-grid select, .order-grid textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); border-radius: 0; width: 100%; }
.order-grid input:focus, .order-grid select:focus, .order-grid textarea:focus { outline: 3px solid var(--pink); outline-offset: 0; }
.order-note { font-size: 14px; color: var(--muted); }
.order-form .btn { align-self: flex-start; }
.order-form .btn:disabled { opacity: 0.6; cursor: default; }
.order-status { font-weight: 700; min-height: 1.5em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) { .order-grid { grid-template-columns: 1fr; } .order-form { padding: 24px 18px; } }
