
body {
    margin: 0;
    padding: 0;
    background-image: url("/static/main/img/purchase.e5aad289d1c5.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .logo-link {
      text-decoration: none;
      color: inherit;
    }
    .logo-link:hover {
      text-decoration: none;
      color: inherit;
    }
    .logo {
      text-align: center;
      max-width: 400px;
      width: 100%;
    }

    .logo-main {
      font-family: 'Oswald', sans-serif;
      font-size: 2em;
      font-weight: 400;
      letter-spacing: 0.05em;
      color: #fff;
    }

    .logo-sub {
        font-family: 'Roboto', sans-serif;
        font-weight: 400;
        font-size: 0.58em;
        letter-spacing: 0.057em;
        color: #fff;
        margin-top: 4px;
        margin-left: 100px;
    }

.custom-modal {
    position: relative;
    background: #fff;
    border-radius: 1em;
    width: 90%;
    max-width: 25em;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2em 2em 3em 2em;
    box-shadow: 0 0.5em 2em rgba(0, 0, 0, 0.3);
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1em;
}

.tab-btn {
    flex: 1;
    padding: 0.7em;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: 500;
    border-radius: 0.5em 0.5em 0 0;
}

.tab-btn.active {
    background-color: #FFA07A;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    margin-top: 2em;
}

.subscription-info {
    margin-bottom: 1.5em;
    text-align: center;
    margin-left: 1em;
}

.subscription-info h3 {
    margin: 0;
}

.form-group {
    margin-bottom: 1em;
}

input, button {
    font-size: 1rem;
}

.btn-submit {
    background-color: #FFA07A;
    color: white;
    border: none;
    width: 100%;
    padding: 1em;
    border-radius: 0.5em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5em;
}

.btn-submit:hover {
    background-color: #ff9464;
}

.text-center {
    text-align: center;
    margin-top: 1em;
}
.custom-modal-header {
  margin-bottom: 1em;
  text-align: center;
}

.custom-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1em;
}

.text-left {
  text-align: left;
}

.user-info-box {
  background-color: #f9f9f9;
  padding: 1em;
  border-radius: 0.5em;
  margin-bottom: 1em;
}

.user-info-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.5em;
  margin-top: 0.2em;
}

.user-info .label {
color: #101010;
font-weight: 500;
}

.user-info .value {
color: #444;
}
.modal-close-btn {
position: absolute;
top: 1.2em;
right: 1.5em;
text-decoration: none;
font-size: 1.3rem;
color: #aaa;
font-weight: bold;
transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #333;
}
.custom-navbar {
  width: 100%;
  position: fixed; /* поверх фона */
  top: 0;
  z-index: 1000;

}
.custom-navbar {
  width: 100%;
  position: fixed; /* фиксированная шапка поверх фона */
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0.75em 1em;
}

.logo {
  font-size: 1.5em;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-left: 1em;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-right: 2em;
}

.navbar-auth a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 1em;
  margin-right: 1em;
  font-size: 1em;
}

.navbar-menu {
  display: none;
  background: #fff;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-menu.open {
  display: block;
}

.navbar-menu ul {
  list-style: none;
  padding: 1em;
  margin: 0;
}

.navbar-menu li {
  margin-bottom: 1em;
}

.navbar-menu a {
  text-decoration: none;
  color: #fff;
  font-size: 1em;
}
.gradient-top-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6em;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  z-index: 500;
  pointer-events: none; /* чтобы не мешал кликам */
}
.cart-count {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.2em 0.6em;
  font-size: 0.8em;
  font-weight: bold;
  color: white;
  background-color: #ccc; /* по умолчанию серый */
  border-radius: 999px;
  min-width: 1.5em;
  text-align: center;
  opacity: 0.7;
}
.cart-count.active {
  background-color: #ff7f50; /* активный цвет */
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.6em 0.8em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 0.5em;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1em;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #FFA07A;
  box-shadow: 0 0 0 3px rgba(255, 160, 122, 0.2);
  outline: none;
}

label {
  display: block;
  margin-bottom: 0.3em;
  font-weight: 500;
  color: #444;
}
.consent{ margin-top:1rem; display:grid; gap:.5rem; }
.consent__row{ display:flex; align-items:flex-start; gap:.5rem; line-height:1.4; }
.consent input[type="checkbox"]{ transform: translateY(2px); }

.btn-submit[disabled]{
  opacity:.5; cursor:not-allowed;
  filter: grayscale(20%);
  pointer-events:none;
}

/* ссылка на оферту — без синего и подчёркивания */
.custom-modal .consent a,
.custom-modal .consent a:link,
.custom-modal .consent a:visited,
.custom-modal .consent a:hover,
.custom-modal .consent a:active{
  color:#2a1a10;
  text-decoration:none;
  border-bottom:1px solid rgba(42,26,16,.25); /* можно убрать, если не нужно */
}

/* аккуратный фокус для клавиатуры */
.custom-modal .consent a:focus{ outline:none; }
.custom-modal .consent a:focus-visible{
  outline:2px solid #FFE3D0;
  outline-offset:3px;
  border-radius:6px;
}

/* убрать синий тап-хайлайт на мобилках */
.custom-modal a{ -webkit-tap-highlight-color: transparent; }

.free-subscription-warning {
  margin-top: 1em;
  text-align: center;
  font-size: 1.05em;
  font-weight: 500;
  color: #cc4444;       /* спокойный красный */
  background-color: rgba(204, 68, 68, 0.08); /* мягкий фон */
  padding: 0.7em 1em;
  border-radius: 0.5em;
}

.tg-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.9em 1em;
  margin-top: 1.5em;

  background: #2AABEE;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;

  border-radius: 0.5em;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.tg-login-btn:hover {
  background: #229ED9;
  transform: translateY(-1px);
}

.tg-login-btn:active {
  transform: translateY(0);
}

.tg-icon {
  width: 1.3em;
  height: 1.3em;
}

.tg-promo-box {
  margin-top: 1.2em;
  margin-bottom: 1.2em;
  padding: 1em 1.2em;

  background-color: #fff6f1;
  border: 1px solid rgba(255, 160, 122, 0.35);
  border-radius: 0.75em;

  display: flex;
  flex-direction: column;
  gap: 0.9em;
}

.tg-promo-text strong {
  display: block;
  font-size: 1.05em;
  font-weight: 600;
  margin-bottom: 0.3em;
  color: #2a1a10;
}

.tg-promo-text p {
  margin: 0;
  font-size: 0.95em;
  color: #4a3a32;
  line-height: 1.4;
}

.tg-promo-accent {
  font-weight: 600;
  color: #ff7f50;
}

/* кнопка */
.tg-promo-btn {
  align-self: flex-start;

  padding: 0.55em 0.9em;
  border-radius: 0.5em;

  background-color: #2AABEE;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;

  transition: background-color 0.2s ease;
}

.tg-promo-btn:hover {
  background-color: #229ED9;
  color: #fff;
}

@media (max-width: 1024px) {

body{
    display: block;
    padding-top: 6em;
}
  .custom-modal {
    margin: 8em auto 2em auto;
    align-self: flex-start;
    max-width: 70%;
    padding: 3em 3em;
  }

 .custom-modal-title{
    font-size:3em;
 }
 .custom-modal h3 {
    font-size:2.5em;
  }
 .custom-modal p {
    font-size:2em;
  }

  .consent__row {
        font-size: 1.6em;
        gap:1em;
        margin-bottom:1em;
    }
      .consent__row input[type="checkbox"]{
    transform: translateY(-0.2em);
    width: 2em;
    height: 2em;
  }

  input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select {
        font-size: 1.2em;
    }
    .tabs {
        margin-bottom: 3em;
    }

    .modal-close-btn {
        top: 1.2em;
        right: 1.5em;
        font-size: 2em;
    }
    .form-group {
    margin-bottom: 0.5em;
    font-size: 2em;
}

  .tab-btn {
    font-size: 2em;
    padding: 0.6em;
  }

  input, button {
    font-size: 1rem;
  }

  .btn-submit {
    padding: 0.8em;
    font-size:2em
  }

  .user-info-box {
    padding:2.5em
  }
  .navbar-right {
    font-size: 1.5em
}
}
