﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.header h1 {
  font-size: 24px;
  letter-spacing: 1px;
}

main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.product img {
  width: 100%;
  border-radius: 16px;
}

.product-info h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.price {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

.sizes {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.size {
  padding: 12px 18px;
  border: 1px solid #111;
  background: none;
  cursor: pointer;
  font-weight: 500;
}

.size.active {
  background: #111;
  color: #fff;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 15px;
}

.buy {
  width: 100%;
  padding: 16px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
}

.buy:hover {
  opacity: 0.9;
}

.size-table {
  margin-top: 30px;
  width: 100%;
  border-collapse: collapse;
}

.size-table th,
.size-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.size-table th {
  font-weight: 600;
}

.cart-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-info h3 {
  margin-bottom: 5px;
}

.unwanted {
  font-size: 13px;
  color: #777;
}

.remove-btn {
  margin-top: 10px;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.delivery label {
  display: block;
  margin-bottom: 15px;
}

.cart-total {
  margin-top: 30px;
  font-size: 20px;
  font-weight: bold;
}

.measure-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.measure-content {
  background: #fff;
  max-width: 400px;
  margin: 120px auto;
  padding: 20px;
  border-radius: 16px;
}

.product-img {
  width: 300px;
  height: auto;
  border-radius: 24px;
}

.product-img {
   display: grid;
   gap: 500px;
   flex-wrap: wrap;
}

.product-img {
    flex: 0 0 200px;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.products-img {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
}

.product-img {
    width: 45%;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
}

.product-img {
    width: 40%;
    height: auto;
    border-radius: 8px;
}

.product-img button {
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.product-card {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  border-radius: 16px;
}

.product-card h3 {
  margin-top: 10px;
  font-size: 18px;
}

.product-card p {
  font-size: 16px;
  color: #555;
}

@media (max-width: 768px) {
  .products {
    grid-template-columns: 1fr;
  }
}

/* ===== HERO ===== */
.hero {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.55)
  ),
  url("images/hero.jpg") center / cover no-repeat;
  color: #fff;
  padding: 20px;
}

.hero-content h2 {
  font-size: 48px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.hero-btn {
  display: inline-block;
  padding: 16px 30px;
  background: #fff;
  color: #000;
  border-radius: 30px;
  font-weight: 500;
  transition: 0.3s;
}

.hero-btn:hover {
  background: #000;
  color: #fff;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-btn {
  padding: 10px 18px;
  border: 1px solid #111;
  border-radius: 30px;
  font-size: 14px;
  transition: 0.3s;
}

.cart-btn:hover {
  background: #111;
  color: #fff;
}

/* ===== BACK BUTTON ===== */
.back-btn {
  font-size: 14px;
  color: #111;
  padding: 8px 14px;
  border-radius: 30px;
  transition: 0.3s;
  white-space: nowrap;
}

.back-btn:hover {
  background: #111;
  color: #fff;
}

/* ===== BOTTOM BLOCK ===== */
.bottom-block {
  margin-top: 80px;
  padding: 60px 20px;
  background: #f9f9f9;
}

.bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.bottom-inner img {
  width: 50%;
  border-radius: 20px;
}

.bottom-text {
  width: 50%;
}

.bottom-text h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.bottom-text p {
  font-size: 24px;
  line-height: 1.6;
}

/* 📱 мобильная версия */
@media (max-width: 768px) {
  .bottom-inner {
    flex-direction: column;
  }

  .bottom-inner img,
  .bottom-text {
    width: 100%;
  }
}

/* ===== MOBILE VERSION (MAIN PAGE) ===== */
@media (max-width: 768px) {

  /* шапка */
  .header-inner {
    padding: 15px;
  }

  .header-inner h1 {
    font-size: 18px;
  }

  /* товары на главной */
  .products {
    flex-direction: column;
    gap: 25px;
    padding: 0 15px;
  }

  .product-card {
    width: 100%;
  }

  /* фото товара */
  .product-card img {
    width: 100%;
    height: auto;
    border-radius: 16px;
  }

  /* кнопки */
  button,
  .cart-btn,
  .back-btn {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  /* нижний блок */
  .bottom-inner {
    flex-direction: column;
    gap: 20px;
  }

  .bottom-inner img,
  .bottom-text {
    width: 100%;
  }

  .bottom-text h2 {
    font-size: 22px;
  }

  .bottom-text p {
    font-size: 15px;
  }
}

/* ===== MOBILE PRODUCT PAGE (FIXED) ===== */
@media (max-width: 768px) {

  /* контейнеры */
  .product-image,
  .product-info {
    padding: 0 15px;
  }

  /* фото товара */
  .product-img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    margin-bottom: 20px;
  }

  /* заголовок */
  .product-info h1 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  /* описание */
  .product-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  /* цена */
  .price {
    font-size: 20px;
    margin-bottom: 20px;
  }

  /* размеры */
  .sizes {
    margin-bottom: 25px;
  }

  .sizes p {
    margin-bottom: 10px;
  }

  .sizes .size {
    width: 48%;
    margin-bottom: 10px;
    padding: 12px 0;
    border-radius: 30px;
    font-size: 14px;
  }

  /* размерная таблица */
  .size-table-wrapper {
    overflow-x: auto;
    margin-bottom: 25px;
  }

  .size-table {
    width: 100%;
    font-size: 13px;
  }

  /* нежелательные клубы */
  .unwanted-clubs input {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
    margin-top: 8px;
  }

  /* кнопка купить */
  .buy {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
    border-radius: 30px;
    margin-top: 20px;
  }
}

/* ===== MOBILE CART PAGE ===== */
@media (max-width: 768px) {

  /* контейнер корзины */
  .cart {
    padding: 0 15px;
  }

  /* товар в корзине */
  .cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
  }

  /* фото товара */
  .cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
  }

  /* информация */
  .cart-info {
    flex: 1;
  }

  .cart-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .cart-info p {
    font-size: 14px;
    margin-bottom: 4px;
  }

  /* доставка */
  .delivery label {
    display: block;
    margin-bottom: 15px;
  }

  .delivery input {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }

  .delivery-note {
    font-size: 13px;
  }

  /* итого */
  .cart-total {
    margin-top: 25px;
  }

  .cart-total p {
    font-size: 18px;
    margin-bottom: 15px;
  }

  /* кнопка */
  .buy {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
    border-radius: 30px;
  }
}

.mini-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 1000;
}

.mini-header a {
  text-decoration: none;
  color: #000;
  font-size: 20px;
}

.header-title {
  font-weight: 600;
  font-size: 16px;
}

body {
  padding-top: 60px;
}

/* ===== PAYMENT PAGE ===== */

.payment-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.payment-page h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 16px;
}

/* карточка оплаты */
.payment-box {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

.payment-box p {
  margin: 8px 0;
  font-size: 15px;
}

/* таймер */
.payment-timer {
  background: #fff3f3;
  color: #d9534f;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 16px;
}

/* QR */
.qr-box {
  margin-top: 16px;
  text-align: center;
}

.qr-box img {
  width: 220px;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.qr-box p {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

/* кнопка */
.pay-done {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.pay-done:active {
  transform: scale(0.97);
}

.pay-done:disabled {
  background: #999;
  cursor: not-allowed;
}

/* подпись */
.payment-note {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 10px;
}

/* ===== АНИМАЦИЯ ТОВАРОВ НА ГЛАВНОЙ ===== */

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card:hover img {
  transform: scale(1.06);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(0,0,0,0.03);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover::after {
  opacity: 1;
}

/* ===== БЛОК СВЯЗИ ===== */

.contact-cta {
  margin-top: 60px;
  padding: 30px 20px;
  background: #f7f7f7;
  border-radius: 20px;
  text-align: center;
}

.contact-cta p {
  font-size: 64px;
  margin-bottom: 25px;
  line-height: 1,4;
}

.contact-btn {
  display: inline-block;
  padding: 30px 50px;
  background: #000;
  color: #fff;
  border-radius: 45px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== КОЛИЧЕСТВО ТОВАРА ===== */

.quantity-control {
  margin-top: 20px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.qty-value {
  font-size: 18px;
  min-width: 20px;
  text-align: center;
}

.add-to-cart {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

/* =========================
   PAYMENT PAGE
========================= */

.payment {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* карточки */
.payment-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.payment-card h2,
.payment-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

/* сумма */
.payment-total {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: 10px 0;
}

/* таймер */
.payment-timer {
  text-align: center;
  font-size: 15px;
  color: #555;
}

#payment-timer {
  font-weight: 600;
  color: #e53935;
}

/* реквизиты */
.payment-card p {
  font-size: 15px;
  margin: 6px 0;
}

.payment-note {
  margin-top: 12px;
  font-size: 14px;
  color: #777;
  text-align: center;
}

/* кнопка оплаты */
.paid-btn,
#paid-btn {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

#paid-btn:hover {
  background: #111;
  transform: translateY(-1px);
}

#paid-btn:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
}

/* верхняя плашка */
.success-banner {
  position: fixed;
  top: -60px;
  left: 0;
  right: 0;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  transition: top 0.4s ease;
  z-index: 9999;
}

.success-banner.show {
  top: 0;
}

/* header */
.header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.header a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
}

.header h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 auto;
}

/* мобильная адаптация */
@media (max-width: 480px) {
  .payment {
    padding: 16px 12px 32px;
  }

  .payment-total {
    font-size: 24px;
  }
}

/* ===== PAYMENT SUCCESS ===== */

.payment-success {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.payment-success.hidden {
  display: none;
}

.success-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #111;
  max-width: 420px;
}

.back-home-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease;
}

.back-home-btn:hover {
  background: #111;
  transform: translateY(-2px);
}

.hidden {
  display: none;
}

/* Экран спасибо */
.payment-success {
  text-align: center;
  padding: 60px 20px;
}

.payment-success h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.payment-success p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.back-home-btn {
  display: inline-block;
  padding: 16px 30px;
  background: black;
  color: white;
  text-decoration: none;
  font-size: 16px;
  border-radius: 10px;
}

/* ============================= */
/* 📱 MOBILE VERSION */
/* ============================= */
@media (max-width: 768px) {

  /* ===== ОБЩЕЕ ===== */
  body {
    font-size: 15px;
  }

  .container {
    padding: 12px;
  }

  h1, h2 {
    font-size: 20px;
  }

  button {
    font-size: 15px;
    padding: 14px;
    border-radius: 12px;
  }

  /* ===== HEADER ===== */
  header {
    padding: 10px 14px;
  }

  header .logo {
    font-size: 18px;
  }

  header nav {
    display: none; /* свернутый header */
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* ===== КАРТОЧКИ ТОВАРОВ (главная) ===== */
  .products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-card {
    border-radius: 14px;
    padding: 10px;
  }

  .product-card img {
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
  }

  .product-card h3 {
    font-size: 14px;
  }

  .product-card .price {
    font-size: 15px;
    font-weight: 600;
  }

  /* hover-эффект на мобиле — убираем */
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* ===== СТРАНИЦА ТОВАРА ===== */
  .product-page {
    display: block;
  }

  .product-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .size {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 10px;
  }

  /* ===== КНОПКА ДОБАВИТЬ / КОЛИЧЕСТВО ===== */
  .add-to-cart,
  .qty-box {
    width: 100%;
  }

  .qty-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .qty-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  /* ===== КОРЗИНА ===== */
  .cart-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
  }

  .cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
  }

  .cart-info h3 {
    font-size: 14px;
  }

  .cart-info p {
    font-size: 13px;
  }

  .remove-btn {
    margin-top: 6px;
    font-size: 13px;
    padding: 8px;
  }

  /* ===== СУММЫ ===== */
  .cart-summary {
    padding: 14px;
    border-radius: 16px;
  }

  .cart-summary p {
    font-size: 14px;
  }

  .cart-summary .total {
    font-size: 18px;
  }

  /* ===== PAYMENT ===== */
  .payment {
    padding: 16px;
  }

  .payment-box {
    padding: 18px;
    border-radius: 18px;
  }

  #payment-total {
    font-size: 22px;
    margin: 10px 0;
  }

  #payment-timer {
    font-size: 18px;
    margin-bottom: 14px;
  }

  /* ===== SUCCESS ===== */
  .payment-success {
    padding: 20px;
    text-align: center;
  }

  .payment-success h2 {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .payment-success p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .payment-success .home-btn {
    font-size: 16px;
    padding: 16px;
    border-radius: 14px;
  }

  /* ===== ФИКСИРОВАННАЯ КНОПКА (удобство) ===== */
  .fixed-bottom-btn {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 100;
  }

}

/* ===== FIX IMAGE ON MOBILE ===== */
@media (max-width: 768px) {

  .product-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .product-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    object-fit: contain;
  }

}

/* ===== MOBILE PRODUCT LAYOUT ===== */
@media (max-width: 768px) {

  .product {
    display: flex;
    flex-direction: column;
  }

  .product-image {
    order: 1;
    width: 100%;
    margin-bottom: 20px;
  }

  .product-info {
    order: 2;
    width: 100%;
  }

}


/* ===== SIZE BUTTONS MOBILE FIX ===== */
@media (max-width: 768px) {

  .sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }

  .sizes .size {
    width: auto;
    min-width: 60px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    text-align: center;
  }

}

.seo-text {
  max-width: 900px;
  margin: 60px auto;
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}

