/* ============ Базовые настройки ============ */
:root {
  --yellow: #f5c400;
  --yellow-soft: #fff6d6;
  --dark: #17140d;
  --dark-soft: #241f13;
  --text: #1f1c15;
  --muted: #7a7466;
  --white: #ffffff;
  --radius: 14px;
  --nav-height: 54px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll { overflow: hidden; }

/* ============ Шапка ============ */
.site-header {
  background: var(--dark);
}

.site-header__logo {
  display: block;
  max-width: 1920px;
  margin: 0 auto;
  line-height: 0;
}

.site-header__logo img {
  width: 100%;
  height: auto;
}

/* ============ Навигация ============ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 2px solid var(--yellow);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.main-nav__inner {
  display: flex;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav__inner::-webkit-scrollbar { display: none; }

.main-nav__inner a {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(245, 196, 0, .12);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.main-nav__inner a:active {
  background: var(--yellow);
  color: var(--dark);
}

@media (min-width: 768px) {
  .main-nav__inner {
    justify-content: center;
    gap: 12px;
    overflow: visible;
  }
  .main-nav__inner a { font-size: 15px; }
  .main-nav__inner a:hover {
    background: var(--yellow);
    color: var(--dark);
  }
}

/* ============ Секции ============ */
.section {
  padding: 44px 0;
  scroll-margin-top: var(--nav-height);
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section__title {
  position: relative;
  margin: 0 0 18px;
  padding-left: 16px;
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 7px;
  border-radius: 4px;
  background: var(--yellow);
}

.subsection-title {
  margin: 36px 0 14px;
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 700;
}

/* ---- О нас ---- */
.section--about { background: var(--yellow-soft); }

.about-text {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(16px, 4vw, 19px);
  line-height: 1.65;
}

/* ---- Галереи ---- */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(76vw, 340px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -2px;
  padding: 2px 2px 10px;
}

.gallery a {
  display: block;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  background: var(--dark-soft);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s;
}

.gallery a:active img { transform: scale(1.04); }

@media (min-width: 768px) {
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
    margin: 0;
    padding: 0;
  }
  .gallery a:hover img { transform: scale(1.04); }
}

@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(5, 1fr); }
}

/* ---- Цены ---- */
.price-list {
  display: grid;
  gap: 16px;
}

.price-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e8e2d2;
  background: #fff;
  line-height: 0;
}

.price-item img { width: 100%; height: auto; }

@media (min-width: 900px) {
  .price-item { transition: box-shadow .2s; }
  .price-item:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
}

.tap-hint {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 768px) {
  .tap-hint { display: none; }
}

/* ---- Новые скальники ---- */
.new-shoes-text {
  margin: 0 0 20px;
  max-width: 60ch;
  font-size: clamp(16px, 4vw, 19px);
  line-height: 1.65;
}

/* ---- Доставка ---- */
.section--delivery { background: #faf8f3; }

/* ---- Связаться с нами ---- */
.section--contacts {
  background: var(--dark);
  color: #fff;
}

.section--contacts .section__title { color: #fff; }

.phone {
  display: inline-block;
  margin: 6px 0 0;
  font-size: clamp(30px, 9vw, 52px);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--yellow);
  text-decoration: none;
}

.phone:active { opacity: .8; }

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, filter .15s;
}

.btn:active { transform: scale(.97); }

.btn svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.btn--whatsapp {
  background: #25d366;
  color: #052e16;
}

.btn--telegram {
  background: #229ed9;
  color: #fff;
}

@media (min-width: 640px) {
  .contact-buttons { flex-direction: row; }
  .btn { flex: 1; }
  .btn:hover { filter: brightness(1.08); }
}

/* ============ Подвал ============ */
.site-footer {
  background: var(--dark-soft);
  color: #cfc9b8;
  padding: 28px 0;
  border-top: 2px solid var(--yellow);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.site-footer__logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

.site-footer__copy {
  margin: 0;
  font-size: 14px;
}

.site-footer__phone {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
}

/* ============ Лайтбокс ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 10, 5, .95);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.lightbox--open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 94vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.lightbox__close:hover {
  background: var(--yellow);
  color: var(--dark);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

.lightbox__nav:hover {
  background: var(--yellow);
  color: var(--dark);
}

.lightbox__counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .lightbox__nav { display: flex; }
}

.lightbox--single .lightbox__nav { display: none; }
