/* Общие стили */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #fefefe;
  color: #222;
  text-align: center;
}

/* Шапка - верхнее меню */
header {
  background: #0d101e;
  padding: 10px 0;
}

.top-menu a {
  color: #ccc;
  margin: 0 10px;
  text-decoration: none;
  font-size: 14px;
}

.top-menu a:hover {
  border-bottom-color: #f0a500;
  color: #f0a500;
  text-decoration: underline;
}

/* Логотип и название */
.logo-section {
  padding: 40px 0 0;
  background: rgb(0, 0, 0);
}

.logo-section img {
  display: block;
  margin: 0 auto;
  height: 80px;  
}

/* Главное меню (вкладки) - ГОРИЗОНТАЛЬНАЯ ПРОКРУТКА */
.main-menu {
  margin: 0 0 0px;
  background: rgb(0, 0, 0);
  margin: 0 0 50px 0;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 20px;
  -webkit-overflow-scrolling: touch;
}

.main-menu::-webkit-scrollbar {
  display: none;
}

.main-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.main-menu a {
  display: inline-block;
  margin: 25px 15px 15px;
  color: #fffcfc;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.3rem;
  padding-bottom: 6px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s, color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.main-menu a:hover,
.main-menu a.active {
  border-bottom-color: #f0a500;
  color: #f0a500;
}

/* Основной контент */
main {
  max-width: 80%;
  margin: 0 auto 50px;
  background: rgb(255, 255, 255);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  text-align: left;
}

/* ТАНКИ - АДАПТИВНАЯ СЕТКА */
.tank-grid {
  display: flex;
  flex-wrap: wrap; 
  padding: 20px 0px 40px;
  gap: 45px;
  justify-content: center;
}

.tank-item {
  width: calc(50% - 45px);
  box-sizing: border-box;
  text-align: center;
  background: rgb(255, 255, 255);
  box-shadow:0 0 8px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; 
}

.tank-item:hover{
  transform: translateY(-5px);
  box-shadow: 0px 0px 15px rgb(36, 183, 7);
}

.tank-item img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.6s;
}

.tank-item img:hover {
  transform: scale(1.05);
}

.tank-name{
  margin-top: 8px;
  font-weight: bold;
  color: #333;
}

.tank-item a {
  text-decoration: none;
}

.tank-item p {
  color: rgb(0, 0, 0);
  text-decoration: none;
}

.tank-item p:hover {
  color: #f0a500;
}

/* Цены */
.prices {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
}

.old-price {
  text-decoration: line-through;
  color: #000000;
}

.new-price {
  color: #e63946;
  font-weight: bold;
}

.promo-text {
  margin: 15px auto;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #ed0115;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Arial Black', Arial, sans-serif;
}

.promo-text span {
  font-size: 28px;
  color: #ffffff;
  background-color: #ed0115;
  padding: 4px 12px;
  border-radius: 10px;
  margin-left: 10px;
  display: inline-block;
}

/* ЗОЛОТО - АДАПТИВНАЯ СЕТКА */
.gold-grid {
  display: flex;
  flex-wrap: wrap; 
  padding: 20px 0px 40px;
  gap: 45px;
  justify-content: center;
}

.gold-item {
  width: calc(50% - 45px);
  box-sizing: border-box;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow:0 0 8px rgba(0, 0, 0, 0.5);
  padding: 15px;
  margin-bottom: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gold-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 0px 15px rgb(36, 183, 7);
}

.gold-item img {
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gold-item img:hover {
  transform: scale(1.05);
}

.gold-name {
  margin-top: 8px;
  font-weight: bold;
  color: #333;
}

.gold-item a,
.tank-item a {
  text-decoration: none;
  color: inherit;
}

.gold-item p:hover {
  color: #f0a500;
}

.gold-item p {
  color: rgb(0, 0, 0);
  text-decoration: none;
}

/* Остальные стили (страницы "Почему дешевле?", отзывы, модалки и т.д.) */
.why-wrapper {
  max-width: 900px;
  margin: 24px auto 60px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 22px rgba(0,0,0,0.18);
  padding: 28px 28px 36px;
}

.why-wrapper h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .2px;
}

.lead {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 6px 0 22px;
}

.card {
  background: #0f1322;
  color: #fff;
  border: 1px solid rgba(240,165,0,0.25);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(240,165,0,0.10);
}

.card h3 {
  margin: 0 0 8px;
  color: #f7c44b;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: #d6d6d6;
  line-height: 1.6;
  font-size: 14.5px;
}

.methods {
  margin-top: 20px;
}

.methods h2 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #0d101e;
}

.methods ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 8px;
}

.methods li {
  background: rgba(240,165,0,0.08);
  border-left: 4px solid #f0a500;
  padding: 10px 12px;
  border-radius: 6px;
  color: #222;
}

.note {
  margin: 6px 0 0;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.faq {
  margin-top: 24px;
}

.faq h2 {
  font-size: 22px;
  margin: 0 0 10px;
}

.faq details {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #222;
}

.faq p {
  margin: 8px 0 0;
  color: #444;
  line-height: 1.6;
}

.about-wrapper,
.terms-wrapper {
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 30px 28px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 22px rgba(0,0,0,0.18);
  text-align: left;
  line-height: 1.7;
  color: #333;
}

.about-wrapper h1,
.terms-wrapper h1 {
  font-size: 32px;
  font-weight: 800;
  color: #0d101e;
  margin-bottom: 20px;
}

.about-wrapper h2,
.terms-wrapper h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0d101e;
  margin: 30px 0 15px;
}

.about-wrapper p,
.terms-wrapper p {
  margin-bottom: 16px;
  font-size: 16px;
}

.about-wrapper ul,
.terms-wrapper ul {
  margin: 16px 0;
  padding-left: 20px;
}

.about-wrapper li,
.terms-wrapper li {
  margin-bottom: 8px;
  font-size: 16px;
}

.about-wrapper a,
.terms-wrapper a {
  color: #f0a500;
  text-decoration: none;
}

.about-wrapper a:hover,
.terms-wrapper a:hover {
  text-decoration: underline;
}

.reviews {
  max-width: 600px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 20px;
}

.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

.review {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 14px;
  word-wrap: break-word;
}

.review.left {
  align-self: flex-start;
  background: #ffffff;
  border-bottom-left-radius: 0;
}

.review.right {
  align-self: flex-end;
  background: #d1f5d3;
  border-bottom-right-radius: 0;
}

#review-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  background: #efecec;
  padding: 15px;
  border-radius: 10px;
  position: sticky;
  bottom: 0;
}

#review-form label {
  color: #0a0a0a;
  align-self: flex-start;
  margin-left: 15%;
}

#review-form input,
#review-form textarea {
  width: 70%;
  max-width: 400px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

#review-form button {
  background: #f0a500;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

#review-form button:hover {
  background: #d68e00;
  color: #fff;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.modal-content p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #222;
}

#close-btn {
  background: #f0a500;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: white;
}

#close-btn:hover {
  background: #d28f00;
  color: #fff;
}

/* === КОНТЕЙНЕРЫ И ФОРМЫ === */
.buy-container,
.payment-container {
  max-width: 700px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tank-info {
  padding: 30px 0 0 0;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.tank-info img.tank-preview {
  width: 250px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.price {
  font-size: 18px;
  color: #222;
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

form input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* === КНОПКА ОПЛАТЫ - ИСПРАВЛЕНО === */
.buy-container button,
.payment-container button,
form button,
input[type="submit"] {
  display: block;
  width: 100%;
  padding: 12px;
  background: #0077cc !important;
  color: white !important;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.3s;
  font-weight: bold;
}

.buy-container button:hover,
.payment-container button:hover,
form button:hover,
input[type="submit"]:hover {
  background: #005fa3 !important;
  color: white !important;
}

.order-summary {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 16px;
}

.payment-details p {
  font-size: 16px;
  margin: 8px 0;
}

.payment-page {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

.tank-info .tank-preview {
  width: 350px;
  border-radius: 12px;
  border: 2px solid #ddd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-bottom: 15px;
}

.price {
  font-size: 20px;
  margin: 10px 0;
}

.price span {
  font-weight: bold;
  color: #d32f2f;
  font-size: 24px;
}

.payment-details {
  margin-top: 30px;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.payment-details h2 {
  margin-bottom: 15px;
  margin: 0 0 40px 0;
}

.payment-details p{
  margin: 40px 0 10px 0;
}

.card-number {
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 4px;
  color: #2b2b2b;
  background: #ffffff;
  padding: 15px;
  border-radius: 10px;
  border: 2px dashed #4caf50;
  display: inline-block;
  margin: 10px 0 20px 0;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.payment-icons img {
  height: 40px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.site-footer {
  text-align: center;
  padding: 14px 0;
  font-size: 14px;
  color: #666;
}

.site-footer hr {
  border: none;
  height: 1px;
  background-color: #989595;
  margin-bottom: 10px;
}

.site-footer p {
  margin: 0;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
  main {
    max-width: 90%;
  }
  
  .tank-grid, .gold-grid {
    gap: 30px;
  }
  
  .tank-item, .gold-item {
    width: calc(50% - 30px);
  }
}

/* Планшеты в портретной ориентации */
@media (max-width: 768px) {
  .logo-section img {
    height: 60px;
  }
  
  .main-menu a {
    font-size: 1.1rem;
    margin: 20px 12px 12px;
  }
  
  main {
    max-width: 95%;
    margin: 0 auto 30px;
  }
  
  .tank-grid, .gold-grid {
    gap: 20px;
    padding: 15px 10px 30px;
  }
  
  .tank-item, .gold-item {
    width: calc(50% - 20px);
  }
  
  .tank-name, .gold-name {
    font-size: 14px;
  }
  
  .prices {
    font-size: 14px;
  }
}

/* МОБИЛЬНЫЕ УСТРОЙСТВА - КЛЮЧЕВЫЕ ИЗМЕНЕНИЯ */
@media (max-width: 640px) {
  /* Шапка и логотип */
  .logo-section {
    padding: 20px 0 0;
  }
  
  .logo-section img {
    height: 50px;
  }
  
  /* Главное меню - горизонтальная прокрутка */
  .main-menu {
    padding: 0 15px;
    margin: 0 0 30px 0;
  }
  
  .main-menu a {
    font-size: 1rem;
    margin: 15px 10px 10px;
    padding-bottom: 4px;
  }
  
  /* Основной контент */
  main {
    max-width: 98%;
    margin: 0 auto 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  
  /* СЕТКА ТАНКОВ - 1 В СТРОКУ НА МОБИЛЬНЫХ */
  .tank-grid {
    display: block;
    padding: 15px 10px 25px;
  }
  
  .tank-item {
    width: 100%;
    margin-bottom: 20px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* СЕТКА ЗОЛОТА - 1 В СТРОКУ НА МОБИЛЬНЫХ */
  .gold-grid {
    display: block;
    padding: 15px 10px 25px;
  }
  
  .gold-item {
    width: 100%;
    margin-bottom: 20px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px;
  }
  
  .gold-item img {
    max-width: 60%;
  }
  
  /* Цены и названия */
  .tank-name, .gold-name {
    font-size: 16px;
    margin-top: 6px;
  }
  
  .prices {
    font-size: 15px;
    gap: 8px;
  }
  
  /* Промо текст */
  .promo-text {
    font-size: 20px;
    margin: 10px auto;
  }
  
  .promo-text span {
    font-size: 18px;
    padding: 3px 8px;
    margin-left: 5px;
  }
  
  /* Карточки преимуществ */
  .why-wrapper {
    padding: 18px 16px 24px;
    margin: 20px auto 40px;
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .why-wrapper h1 {
    font-size: 24px;
  }
  
  /* Страницы "О нас" и соглашения */
  .about-wrapper,
  .terms-wrapper {
    padding: 18px 16px;
    margin: 20px auto 40px;
  }
  
  .about-wrapper h1,
  .terms-wrapper h1 {
    font-size: 24px;
  }
  
  .about-wrapper h2,
  .terms-wrapper h2 {
    font-size: 20px;
  }
  
  /* Формы и кнопки */
  .buy-container,
  .payment-container {
    margin: 20px auto;
    padding: 20px 15px;
  }
  
  .tank-info {
    flex-direction: column;
    text-align: center;
    padding: 20px 0 0 0;
  }
  
  .tank-info img.tank-preview {
    width: 200px;
  }
  
  .payment-details .tank-preview {
    width: 250px;
  }
  
  /* Отзывы */
  .reviews {
    margin: 0 auto 30px;
    padding: 15px;
  }
  
  #review-form {
    padding: 12px;
  }
  
  #review-form input,
  #review-form textarea {
    width: 85%;
  }
  
  #review-form label {
    margin-left: 7.5%;
  }
  
  /* Модалка */
  .modal-content {
    margin: 20px;
    padding: 15px 20px;
    max-width: calc(100% - 40px);
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .logo-section img {
    height: 40px;
  }
  
  .main-menu a {
    font-size: 0.9rem;
    margin: 12px 8px 8px;
  }
  
  .tank-item, .gold-item {
    max-width: 280px;
  }
  
  .tank-name, .gold-name {
    font-size: 14px;
  }
  
  .prices {
    font-size: 13px;
  }
  
  .promo-text {
    font-size: 18px;
  }
  
  .promo-text span {
    font-size: 16px;
  }
  
  .why-wrapper h1 {
    font-size: 22px;
  }
  
  .about-wrapper h1,
  .terms-wrapper h1 {
    font-size: 22px;
  }
}