/* ============================================================
   SYS_lda — site styles
   An editorial, photographic car-audio catalogue.
   Paper ground, cobalt blue, signal yellow. No neon, no glow.
   ============================================================ */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #0B5FD9;
  --blue-dark: #073F9E;
  --yellow: #F5C518;
  --ink: #111820;
  --ink-soft: #42505E;
  --paper: #F5F6F2;
  --white: #FFFFFF;
  --line: #D9DFE6;
  --line-soft: #E8ECF1;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Segoe UI", Inter, Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #B9C4D1; border: 3px solid var(--paper); border-radius: 8px; }

.skip-link { position: fixed; top: -80px; left: 16px; z-index: 500; background: var(--yellow); color: var(--ink); padding: 10px 18px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 300;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1320px; margin: 0 auto;
  min-height: 72px; padding: 10px clamp(18px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 5px; background: #fff; object-fit: contain; padding: 3px; border: 1px solid var(--line); }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.site-nav a { text-decoration: none; font-size: .9rem; font-weight: 700; color: var(--ink-soft); padding: 8px 0; border-bottom: 2px solid transparent; transition: color .18s ease, border-color .18s ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); border-color: var(--blue); }
.site-header__cta { min-height: 44px; padding: 10px 20px; }
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(17, 24, 32, .10); }

/* ---------- hero: still image, parallax, no pinned stage ---------- */
.hero { position: relative; z-index: 1; min-height: min(880px, 92svh); display: flex; align-items: center; overflow: hidden; background: var(--paper); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245,246,242,.94) 0%, rgba(245,246,242,.86) 38%, rgba(245,246,242,.12) 68%, rgba(245,246,242,0) 100%); }
.hero__media img {
  width: 100%; height: 116%; position: absolute; top: -8%;
  object-fit: cover; object-position: center 48%;
  transform: translate3d(0, var(--parallax, 0px), 0);
  will-change: transform;
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(60px, 8vw, 110px) clamp(18px, 4vw, 40px); }
.hero__copy { max-width: 620px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3.2rem, 8vw, 6rem); line-height: .9; letter-spacing: -.03em;
  margin: 0 0 22px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p { font-size: clamp(1.04rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); max-width: 52ch; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn--ghost { border: 1px solid var(--ink); background: transparent; color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.hero__contact { margin-top: 22px !important; font-size: .88rem !important; color: var(--ink) !important; font-weight: 700; }
.hero__hint {
  position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%);
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap;
}
.hero__hint span { display: inline-block; margin-left: 8px; color: var(--blue); animation: hintDrop 1.8s ease-in-out infinite; }
@keyframes hintDrop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- shared ---------- */
.section { position: relative; z-index: 40; padding: 80px 40px; padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px); }
#catalogo, #configurador, #porque, #contacto { padding: 80px 40px; }
.section__head { max-width: 820px; margin: 0 0 clamp(36px, 5vw, 60px); }
.section__head h2,
.why h2,
.contact h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.section__head em,
.why em,
.contact em { font-style: normal; color: var(--blue); }
.section__head p { font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.65; color: var(--ink-soft); max-width: 66ch; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 26px; border: 0; border-radius: 6px;
  text-decoration: none; font-weight: 700; font-size: .96rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(17, 24, 32, .16); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 20px rgba(17, 24, 32, .16); }

h1 { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1; margin: 0 0 16px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- catalog ---------- */
.catalog { background: var(--paper); }
.catalog__bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer;
  padding: 10px 17px; border-radius: 6px; font-size: .86rem; font-weight: 700;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.filter span { margin-left: 7px; font-size: .72rem; opacity: .7; }
.filter:hover { border-color: var(--blue); color: var(--blue-dark); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter.is-active span { color: var(--yellow); opacity: 1; }
.catalog__count { font-size: .84rem; color: var(--ink-soft); }

.catalog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 28px rgba(17, 24, 32, .10);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .26s cubic-bezier(.2,.8,.2,1), box-shadow .26s ease, border-color .26s ease;
}
.card.reveal.is-in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); }
.card:hover { --ty: -5px; box-shadow: 0 20px 42px rgba(17, 24, 32, .16); border-color: #A9BFD9; }
.card.is-hidden { display: none; }

button.card__media { display: block; width: 100%; padding: 0; border: 0; font: inherit; text-align: left; }
.card__media {
  position: relative; aspect-ratio: 16 / 10; background: #EAEFF5;
  overflow: hidden; cursor: pointer;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 6px 11px; border-radius: 4px; background: var(--yellow); color: var(--ink); font-size: .7rem; font-weight: 800; letter-spacing: .09em; }
.card__featured { position: absolute; z-index: 2; right: 12px; top: 12px; padding: 6px 11px; border-radius: 4px; background: var(--ink); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .09em; }

.card__body { padding: 24px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__type { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark); }
.card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -.01em; margin: 6px 0 10px; text-transform: uppercase; }
.card__desc { font-size: .91rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 18px; }
.card__specs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 7px; }
.card__specs li { position: relative; padding-left: 18px; font-size: .84rem; color: #2B3A4B; }
.card__specs li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 2px; background: var(--blue); }
.card__view { align-self: flex-start; margin: -4px 0 18px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--blue-dark); font-size: .84rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.card__view:hover { color: var(--blue); }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.card__price { font-size: .78rem; color: var(--ink-soft); }
.card__price strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.card--featured { border-color: var(--blue); }
.card__cta { padding: 10px 15px; border-radius: 6px; background: var(--ink); color: #fff; text-decoration: none; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.card__cta:hover { background: var(--blue); }
.catalog__note { margin-top: 32px; display: inline-flex; align-items: center; gap: 11px; font-size: .91rem; color: var(--ink-soft); }
.catalog__note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); border: 1px solid #C99F00; }

/* ---------- configurator ---------- */
.config { background: #EDF1F5; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.config__inner { max-width: 1240px; margin: 0 auto; }
.config__panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 42px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(26px, 4vw, 44px);
  box-shadow: 0 12px 30px rgba(17, 24, 32, .10);
}
.config__step { display: flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 800; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 14px; }
.config__step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: var(--ink); color: var(--yellow); font-size: .72rem; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 12px 15px; cursor: pointer;
  text-align: left; min-width: 132px; transition: border-color .18s ease, background .18s ease;
}
.chip strong { display: block; font-size: .92rem; color: var(--ink); }
.chip small { display: block; margin-top: 3px; font-size: .72rem; color: var(--ink-soft); }
.chip:hover { border-color: var(--blue); }
.chip.is-active { background: var(--ink); border-color: var(--ink); }
.chip.is-active strong { color: #fff; }
.chip.is-active small { color: var(--yellow); }
.config__result {
  grid-column: 1 / -1; display: grid; grid-template-columns: 132px 1fr auto; align-items: center; gap: 24px;
  margin-top: 6px; padding: 20px; border-radius: 8px; background: #F1F5FA; border: 1px solid #C9D8EC;
  animation: resultIn .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes resultIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.config__result img { width: 132px; height: 100px; object-fit: cover; border-radius: 4px; background: #EAEFF5; }
.config__result .rec__label { font-size: .7rem; font-weight: 800; letter-spacing: .16em; color: var(--blue-dark); }
.config__result .rec__name { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; margin: 4px 0 6px; }
.config__result .rec__note { font-size: .87rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.config__result .btn { white-space: nowrap; }

/* ---------- why us ---------- */
.why { background: #142238; color: #fff; overflow: hidden; }
.why__inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.why h2 { color: #fff; }
.why h2 em { color: var(--yellow); }
.why p { font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.7; color: #C4D2E2; max-width: 56ch; }
.checks { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: #E6EEF8; font-size: .97rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 9px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(-45deg); }
.why__art { margin: 0; background: #fff; padding: 12px; border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.why__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #EAEFF5; }
.why__art figcaption { padding: 12px 4px 4px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact { background: #fff; }
.contact__card {
  max-width: 1240px; margin: 0 auto; border-radius: 12px; background: var(--ink); color: #fff;
  padding: 64px 56px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
  box-shadow: 0 18px 44px rgba(17, 24, 32, .2);
}
.contact h2 { color: #fff; margin-top: 12px; }
.contact h2 em { color: var(--yellow); }
.contact p { color: #C4D2E2; font-size: 1.04rem; line-height: 1.65; max-width: 54ch; margin: 0; }
.contact__action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact__wa { font-size: .9rem; font-weight: 700; color: var(--yellow); }
.contact__phone { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: #fff; text-decoration: none; }
.contact__phone:hover { color: var(--yellow); }
.contact__hours { font-size: .84rem; color: #C4D2E2; letter-spacing: .03em; }
.contact__address { font-size: .9rem; color: #fff; font-weight: 600; }
.contact__social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.contact__social a { color: var(--yellow); font-size: .84rem; font-weight: 700; text-decoration: none; }
.contact__social a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 40; background: var(--ink); color: #C4D2E2; padding: 58px clamp(20px, 5vw, 72px) 26px; }
.footer__inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 12px; }
.footer__brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; text-transform: uppercase; }
.footer__brand img { width: 44px; height: 44px; border-radius: 6px; background: #fff; object-fit: contain; padding: 4px; }
.footer__inner p { margin: 4px 0; }
.footer__wa { color: var(--yellow); text-decoration: none; font-weight: 700; }
.footer__wa:hover { text-decoration: underline; }
.footer__tel { color: #C4D2E2; text-decoration: none; font-size: .9rem; }
.footer__tel:hover { color: #fff; text-decoration: underline; }
.footer__address { font-size: .88rem; }
.footer__social { display: flex; gap: 18px; margin-top: 6px; }
.footer__social a { color: #fff; font-size: .86rem; font-weight: 700; text-decoration: none; }
.footer__social a:hover { color: var(--yellow); }
.footer__bottom { max-width: 1240px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #35445A; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .8rem; }

/* ---------- global progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 450; background: var(--line); pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .12s linear; }

/* ---------- quick view ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .24s ease, visibility .24s ease; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(17, 24, 32, .76); }
.modal__dialog {
  position: relative; z-index: 1; width: min(1040px, 100%); max-height: min(88vh, 820px); overflow: auto;
  background: #fff; border-radius: 12px; display: grid; grid-template-columns: 1.05fr .95fr;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3); transform: translateY(16px); transition: transform .26s cubic-bezier(.2,.8,.2,1);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 4px; background: var(--ink); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal__close:hover { background: var(--blue); }
.modal__media { background: #EDF1F5; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.modal__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: #EAEFF5; }
.modal__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.modal__thumbs img { width: 74px; height: 58px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: .62; border: 2px solid transparent; transition: opacity .18s ease, border-color .18s ease; flex: 0 0 auto; }
.modal__thumbs img:hover { opacity: 1; }
.modal__thumbs img.is-active { opacity: 1; border-color: var(--blue); }
.modal__info { padding: clamp(26px, 3.5vw, 42px); display: flex; flex-direction: column; }
.modal__badge { align-self: flex-start; padding: 6px 11px; border-radius: 4px; background: var(--yellow); color: var(--ink); font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.modal__type { margin-top: 18px; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark); }
.modal__info h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.9rem); text-transform: uppercase; letter-spacing: -.01em; margin: 6px 0 14px; }
.modal__desc { font-size: .95rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 12px; }
.modal__research { font-size: .76rem; line-height: 1.5; color: var(--blue-dark); background: #EDF1F5; border-left: 3px solid var(--blue); padding: 8px 10px; margin: 0 0 18px; }
.modal__research:empty { display: none; }
.modal__specs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.modal__specs li { position: relative; padding-left: 20px; font-size: .88rem; color: #2B3A4B; }
.modal__specs li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 2px; background: var(--blue); }
.modal__highlights { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.modal__highlights span { padding: 6px 10px; border-radius: 4px; background: #EDF1F5; color: var(--blue-dark); font-size: .74rem; font-weight: 700; }
.modal__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.modal__price { font-size: .78rem; color: var(--ink-soft); }
.modal__price strong { display: block; font-size: 1.12rem; color: var(--ink); }
body.modal-open { overflow: hidden; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; z-index: 390; right: 22px; bottom: 22px; width: 46px; height: 46px; border: 0; border-radius: 6px;
  background: var(--ink); color: #fff; font-size: 1.35rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 24, 32, .24); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-2px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__inner, .contact__card { grid-template-columns: 1fr; }
  .why__art { max-width: 520px; }
}
@media (max-width: 620px) {
  .catalog { padding-left: 18px; padding-right: 18px; }
  .catalog__grid { grid-template-columns: 1fr; }
  .card__media { aspect-ratio: 16 / 9; }
  .section__head h2, .why h2, .contact h2 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .site-nav { display: none; }
  .hero { min-height: 82svh; }
  .hero__media img { object-position: 68% center; }
  .config__panel { grid-template-columns: 1fr; }
  .config__result { grid-template-columns: 1fr; text-align: center; gap: 14px; justify-items: center; }
  .config__result img { width: 100%; max-width: 220px; height: 150px; }
  .contact__phone { font-size: 1.5rem; }
  .footer__bottom { flex-direction: column; }
  .modal { padding: 10px; }
  .modal__dialog { grid-template-columns: 1fr; max-height: 94vh; border-radius: 8px; }
  .modal__media { padding: 14px; }
  .modal__image { aspect-ratio: 16 / 9; }
  .modal__info { padding: 22px; }
  .modal__foot { flex-direction: column; align-items: stretch; }
  .modal__foot .btn { width: 100%; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .to-top:hover { transform: none; }
  .config__result { animation: none; }
  .hero__media img { transform: none; }
  .hero__hint span { animation: none; }
}
