/*
Theme Name: LTM Landing (лендинг)
Description: Лендинг «Лист Трейд Мастер»
Version: 1.1
Text Domain: ltm-landing
*/

:root {
  --gold: #d9b84f;
  --gold-line: rgba(217, 184, 79, .6);
  --glass: rgba(255, 255, 255, .08);
  --night: #1e1e1e;
  --steel: #46525c;
  --wrap: 1170px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Montserrat', system-ui, sans-serif; color: #fff; background: var(--night); line-height: 1.45; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.glass { background: var(--glass); border: 1px solid var(--gold-line); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.section-title { color: var(--gold); font-weight: 700; line-height: 1.1; }

/* ---------- Первый экран ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: 960px; background: url(assets/img/bg-hero.jpg) center / cover, #2b3843; overflow: hidden; }
.site-header { position: relative; z-index: 2; }
.site-header .glass { height: 133px; display: flex; align-items: center; padding-left: 100px; border-top: 0; border-radius: 0 0 55px 55px; background: rgba(255, 255, 255, .1); }
.site-header img { width: 56px; }
.site-header span { margin-left: 8px; font-size: .75rem; font-weight: 600; line-height: 1.2; }
.hero__boards { position: absolute; top: 150px; right: 0; width: min(54%, 700px); z-index: 0; pointer-events: none; }
.hero__body { position: relative; z-index: 1; flex: 1; padding-top: 80px; }
.hero__logo { width: min(100%, 680px); }
.hero__tagline { 
  margin-top: fixed;
  margin-bottom: 40px;
  margin-left: 30px;
  font-size: 1.5rem;
  font-weight: 600;
  font-size: 2.5rem; font-weight: 600; }

.main-nav { position: relative; z-index: 2; margin-top: 250px; margin-bottom: 64px; }
.main-nav ul { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 10px; min-height: 96px; padding: 14px 24px; background: rgba(255, 255, 255, .06); border: 1px solid var(--gold-line); border-radius: 999px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.main-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; font-size: 1.5rem; font-weight: 500; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; transition: border-color .2s, color .2s; }
.main-nav svg { width: 1.1rem; height: 1.1rem; flex: none; }
.main-nav a:hover, .main-nav a:focus-visible { border-color: var(--gold); color: var(--gold); outline: none; }

/* ---------- О нас ---------- */
.about { padding-block: 58px 110px; background: url(assets/img/bg-about.jpg) center / cover, #4b3d33; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.about__photo { margin-top: 20px; aspect-ratio: 571 / 526; border: 1px solid var(--gold-line); border-radius: 48px; overflow: hidden; background: #6d5f55; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__card { min-height: 548px; padding: 40px 44px; text-align: center; border-radius: 48px; background: linear-gradient(160deg, rgba(40, 24, 16, .75), rgba(120, 90, 70, .35)); }
.about__card .section-title { font-size: clamp(3.5rem, 8vw, 6.4rem); }
.about__card hr { width: 86%; margin: 18px auto 24px; border: 0; border-top: 1px solid var(--gold-line); }
.about__card p { font-size: 1.45rem; font-weight: 700; line-height: 1.4; }

/* ---------- Галерея ---------- */
.gallery { padding-block: 40px 100px; background: url(assets/img/bg-gallery.jpg) center / cover, #3d3a3a; }
.gallery .section-title { text-align: center; font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 20px; }
.gallery__grid { display: grid; grid-template-columns: 1fr 433px; gap: 24px 60px; align-items: start; }
.gallery__preview { position: relative; min-height: 560px; display: flex; justify-content: center; align-items: flex-start; }
.gallery__preview > img.sample { max-height: 575px; width: auto; filter: drop-shadow(0 0 60px rgba(255, 255, 255, .35));  max-width: 100%; object-fit: contain; }
.gallery__photo { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); width: min(420px, 90%); border: 4px solid #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); cursor: pointer; }
.gallery__photo[hidden] { display: none; }
.gallery__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.swatch { aspect-ratio: 1; padding: 0; border: 4px solid transparent; background: center / cover no-repeat; cursor: pointer; }
.swatch:disabled { cursor: default; }
.swatch[aria-pressed="true"] { border-color: var(--gold); }
.swatch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gallery__thumbs { display: flex; gap: 18px; padding-left: 20px; }
.gallery__thumbs button { padding: 0; width: 205px; max-width: 31%; aspect-ratio: 205 / 159; border: 3px solid #fff; border-radius: 28px; overflow: hidden; background: none; cursor: pointer; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--gold); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__caption { align-self: center; text-align: center; font-size: 2rem; font-weight: 700; line-height: 1.2; text-shadow: 0 3px 8px rgba(0, 0, 0, .7); }

/* ---------- Магазины ---------- */
.shop { padding-block: 100px 90px; background: #46586a center / cover; transition: background-image .3s; }
.shop__slide[hidden] { display: none; }
.shop__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.shop__photo { position: relative; aspect-ratio: 668 / 523; border: 1px solid var(--gold-line); border-radius: 48px; overflow: hidden; background: #6d7c88; }
.shop__photo img { width: 100%; height: 100%; object-fit: cover; }
.shop__arrow { position: absolute; top: 50%; width: 36px; height: 36px; padding: 0; transform: translateY(-50%); background: rgba(255, 255, 255, .25); border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.shop__arrow--prev { left: 14px; } .shop__arrow--next { right: 14px; }
.shop__arrow:hover { background: rgba(255, 255, 255, .5); }
.shop__arrow svg { width: 18px; height: 18px; }
.shop__card { margin-top: 55px; padding: 34px 30px 40px; min-height: 340px; border-radius: 40px; background: rgba(255, 255, 255, .1); font-family: 'IBM Plex Mono', monospace; }
.shop__card h2 { color: var(--gold); font-size: 2.6rem; font-weight: 500; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--gold-line); }
.shop__card p { font-size: 1.15rem; font-weight: 500; line-height: 1.45; }
.shop__info { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 52px; }
.shop__info p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.shop__info svg { width: 1.3rem; height: 1.3rem; flex: none; }

/* ---------- FAQ ---------- */
.faq { padding-block: 60px 160px; background: var(--steel); }
.faq .section-title { display: table; margin: 0 auto 15px; padding: 6px 12px; text-align: center; font-size: clamp(2rem, 4vw, 3.4rem); border-radius: 40px; }
.faq__box { min-height: 560px; padding: 40px 70px; border-radius: 90px; box-shadow: inset 0 14px 40px rgba(0, 0, 0, .2); }
.faq dt { font-size: 2rem; font-weight: 700; }
.faq dt::before { content: "-"; }
.faq dd { margin-bottom: 8px; font-size: 2.3rem; font-weight: 700; color: var(--gold); line-height: 1.2; }

/* ---------- Футер ---------- */
.site-footer { background: #1e1e1e; padding: 48px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1fr 402px; gap: 48px; }
.footer__col h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 28px; }
.footer__contacts { padding-left: 0; }
.footer__contacts p { margin-bottom: 4px; font-size: 1rem; font-weight: 700; }
.footer__contacts .label { margin-top: 12px; font-size: 1.4rem; }
.footer__contacts .email { font-size: 1.4rem; margin-bottom: 14px; }
.footer__logo { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; line-height: 1.2; }
.footer__logo img { width: 62px; }
.footer__form h2 { text-align: center; }
.footer__form input, .footer__form textarea { width: 100%; margin-bottom: 12px; padding: 12px 18px; font: inherit; font-weight: 600; font-size: .95rem; color: #fff; background: #444242; border: 0; border-radius: 999px; }
.footer__form textarea { min-height: 220px; border-radius: 28px; resize: vertical; }
.footer__form ::placeholder { color: #8d8a8a; }
.footer__form input:focus-visible, .footer__form textarea:focus-visible { outline: 2px solid var(--gold); }
.footer__form button { width: 100%; margin-top: 14px; padding: 8px; cursor: pointer; font-size: 1.5rem; font-weight: 500; background: #111; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; transition: background .2s, color .2s; }
.footer__form button:hover, .footer__form button:focus-visible { background: var(--gold); color: #1e1e1e; outline: none; }
.hp { position: absolute; left: -9999px; }
.form-note { margin-bottom: 12px; padding: 10px 16px; border-radius: 12px; font-size: .9rem; }
.form-note--ok { background: rgba(60, 160, 90, .25); }
.form-note--err { background: rgba(200, 70, 60, .25); }
.copyright { margin-top: 40px; font-size: .75rem; font-weight: 600; }
/* ---------- Окно заказа ---------- */
.order-modal { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; color: #fff; color-scheme: dark; overflow: auto; }
.order-modal::backdrop { background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html:has(.order-modal[open]) { overflow: hidden; }
.order-form { position: relative; padding: 36px 36px 32px; background: #2a2a2a; border: 1px solid var(--gold-line); border-radius: 40px; }
.order-form h2 { margin-bottom: 22px; color: var(--gold); font-size: 2rem; font-weight: 700; text-align: center; }
.order-form input:not([type="checkbox"]):not([type="hidden"]), .order-form select, .order-form textarea { width: 100%; margin-bottom: 12px; padding: 12px 18px; font: inherit; font-weight: 600; font-size: .95rem; color: #fff; background: #444242; border: 0; border-radius: 999px; }
.order-form textarea { min-height: 110px; border-radius: 28px; resize: vertical; }
.order-form ::placeholder { color: #8d8a8a; }
.order-form input:focus-visible, .order-form select:focus-visible, .order-form textarea:focus-visible { outline: 2px solid var(--gold); }
.order-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: .8rem; line-height: 1.35; }
.order-consent input { flex: none; margin-top: 2px; accent-color: var(--gold); }
.order-consent a { text-decoration: underline; }
.order-form button[type="submit"] { width: 100%; padding: 8px; cursor: pointer; font-size: 1.5rem; font-weight: 500; background: #111; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; transition: background .2s, color .2s; }
.order-form button[type="submit"]:hover, .order-form button[type="submit"]:focus-visible { background: var(--gold); color: #1e1e1e; outline: none; }
.order-form button[type="submit"]:disabled { opacity: .6; cursor: wait; }
.order-close { position: absolute; top: 14px; right: 18px; width: 36px; height: 36px; padding: 0; font-size: 1.8rem; line-height: 1; background: none; border: 0; cursor: pointer; opacity: .7; }
.order-close:hover, .order-close:focus-visible { opacity: 1; }

/* ---------- Мобильная версия ---------- */
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .site-header .glass { height: 90px; padding-left: 24px; }
  .hero__boards { opacity: .3; width: 90%; top: 110px; }
  .hero__body { padding-block: 40px 60px; }
  .hero__tagline { margin: 20px 0 0; font-size: 1.15rem; }
  .main-nav ul { border-radius: 36px; }
  .main-nav a { font-size: 1.05rem; padding: 8px 16px; }
  .about, .gallery, .shop { padding-block: 56px; }
  .faq { padding-block: 48px 80px; }
  .about__grid, .gallery__grid, .shop__grid, .shop__info, .footer__grid { grid-template-columns: 1fr; }
  .about__card { min-height: 0; }
  .gallery__preview { min-height: 0; }
  .gallery__preview > img.sample { max-height: 380px; }
  .gallery__thumbs { padding-left: 0; justify-content: center; }
  .gallery__caption { font-size: 1.4rem; }
  .shop__card { margin-top: 0; min-height: 0; }
  .faq__box { padding: 28px 24px; border-radius: 40px; min-height: 0; }
  .faq dt { font-size: 1.2rem; } .faq dd { font-size: 1.3rem; }
  .footer__form { max-width: none; }
    .order-form { padding: 28px 20px 24px; border-radius: 28px; }
  .order-form h2 { font-size: 1.5rem; }
  .order-row { grid-template-columns: 1fr; }
}
/* ---------- Анимации ---------- */
:root { --t: 1.25; } /* скорость: 1 = как раньше, 1.5 = плавнее, 2 = медленно */

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes slideFade { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes sampleIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes photoIn { from { opacity: 0; transform: translateX(-50%) scale(.94); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes thumbIn { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes photoZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Первый экран */
.site-header .glass { animation: dropIn calc(.8s * var(--t)) ease both; }
.hero__logo { animation: fadeUp calc(.8s * var(--t)) calc(.15s * var(--t)) ease both; }
.hero__tagline { animation: fadeUp calc(.8s * var(--t)) calc(.3s * var(--t)) ease both; }
.main-nav { animation: fadeUp calc(.8s * var(--t)) calc(.45s * var(--t)) ease both; }
.hero__boards { animation: slideInRight calc(1s * var(--t)) calc(.2s * var(--t)) ease both; }

/* Появление блоков при прокрутке (класс .reveal ставит main.js) */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity calc(.7s * var(--t)) ease, transform calc(.7s * var(--t)) ease; transition-delay: calc(var(--d, 0s) * var(--t)); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Меню и плашки: наведение (быстро) */
.main-nav a { transition: transform .2s ease, border-color .2s, color .2s; }
.main-nav a:hover, .main-nav a:focus-visible { transform: translateY(-3px); }
.swatch { transition: transform .2s ease, border-color .2s; }
.swatch:not(:disabled):hover { transform: translateY(-4px) scale(1.04); }

/* Интерьерные фото под плитой */
.gallery__thumbs button { overflow: hidden; transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.gallery__thumbs button.swap { animation: thumbIn calc(.45s * var(--t)) ease backwards; animation-delay: calc(var(--i, 0) * .09s * var(--t)); }
.gallery__thumbs button:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.gallery__thumbs button[aria-pressed="true"] { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(217, 184, 79, .4); }
.gallery__thumbs img { transition: transform .5s ease; }
.gallery__thumbs button:hover img { transform: scale(1.08); }
.gallery__preview > img.sample.swap { animation: sampleIn calc(.45s * var(--t)) ease; }
.gallery__photo { overflow: hidden; }
.gallery__photo:not([hidden]) { animation: photoIn calc(.3s * var(--t)) ease; }
.gallery__photo:not([hidden]) img { animation: photoZoom calc(.6s * var(--t)) ease; }

/* Магазины и окно заказа */
.shop__slide:not([hidden]) { animation: slideFade calc(.5s * var(--t)) ease; }
.order-modal[open] { animation: modalIn calc(.3s * var(--t)) ease; }
.order-modal[open]::backdrop { animation: fadeIn calc(.3s * var(--t)) ease; }

/* Для тех, кто отключил анимации в системе */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
