@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary: #005f73;
    --secondary: #0a9396;
    --accent: #94d2bd;
    --dark: #1d3557;
    --light: #f1faee;
    --white: #ffffff;
    --gray: #e5e5e5;
    --text: #333333;
    --danger: #e63946;


    --color-bg: #ffffff;
    --color-accent: #005f73;
    --color-text: #005f73;
    --color-text-light: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.burger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero-strip {
    background: linear-gradient(90deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
}

.strip-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.countdown {
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1rem;
}

.btn-strip {
    background-color: var(--accent);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.btn-strip:hover {
    transform: scale(1.05);
}

main {
    flex: 1;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 13px 28px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    margin-left: 10px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.widget-section {
    background-color: var(--white);
    margin-top: -50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    z-index: 10;
}

.widget-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: flex-end;
}

.input-group {
    flex: 1;
    min-width: 250px;
}

.input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.input-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f9f9f9;
}

.price-display {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.info-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.odds-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.odds-table th,
.odds-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

.odds-table th {
    background-color: var(--light);
    color: var(--dark);
}

.win-example {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
}

.win-example h3 {
    color: var(--white);
}

.ball-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.ball {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    margin-bottom: 30px;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

.remove-btn {
    color: var(--danger);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2rem;
}

.cart-summary {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    margin-left: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    border-top: 2px solid var(--gray);
    padding-top: 15px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    max-width: 500px;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray);
    border-radius: 5px;
}

.result-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
}

.result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-imgs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-imgs img {
    padding: 12px;
    margin: 12px;
    height: 55px;
    background: white;
    border-radius: 10px;
}

.responsible-block {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.legal-text h2 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-text p {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }

    .widget-container {
        flex-direction: column;
    }

    .input-group,
    .btn-primary {
        width: 100%;
    }
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

.checkout-left .form-card,
.checkout-right .summary-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


.form-row {
    display: flex;
    gap: 20px;
}

.form-row .input-group {
    flex: 1;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--secondary);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}


.cart-items-list {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray);
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-row:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
}

.item-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    display: block;
}

.item-desc {
    font-size: 0.85rem;
    color: #666;
}

.item-price {
    font-weight: 600;
    margin: 0 15px;
}

.summary-totals {
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
}

.total-row {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.2rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--gray);
}


@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }


    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-card {
    text-align: center;
}


.ball.hot {
    background-color: #e76f51;
    color: white;
    border: 1px solid #e76f51;
}


.ball.cold {
    background-color: #a8dadc;
    color: #1d3557;
    border: 1px solid #457b9d;
}


@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
.age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 95, 115, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.age-overlay.visible {
  display: flex;
}

.age-modal {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 2rem 2.25rem;
  max-width: 420px;
  width: 90%;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.age-modal h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.age-modal p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.age-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-light);
  box-shadow: 0 6px 16px rgba(0, 95, 115, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 95, 115, 0.45);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-text-light);
}

.cookie-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  width: calc(100% - 2rem);
  max-width: 960px;
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  padding: 1rem 1.25rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 9990;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-text h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.cookie-settings-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9995;
}

.cookie-settings-backdrop.visible {
  display: flex;
}

.cookie-modal {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 1.6rem 1.8rem;
  max-width: 520px;
  width: 90%;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.cookie-modal h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.cookie-modal p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(0, 95, 115, 0.15);
  align-items: center;
}

.cookie-option:first-of-type {
  border-top: none;
}

.cookie-option strong {
  display: block;
  margin-bottom: 0.2rem;
}

.cookie-option p {
  margin: 0;
  font-size: 0.85rem;
}

.cookie-buttons {
  margin-top: 1.2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 95, 115, 0.25);
  transition: 0.2s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.2s;
  border-radius: 50%;
}

.switch input:checked + .switch-slider {
  background-color: var(--color-accent);
}

.switch input:checked + .switch-slider:before {
  transform: translateX(22px);
}

.switch input:disabled + .switch-slider {
  background-color: rgba(0, 95, 115, 0.5);
  cursor: default;
}