/* Base styles */
:root {
  --color-primary: rgb(0, 168, 38);
  --color-white: #fff;
  --color-black: #000;
  --color-gray: rgb(51, 51, 51);
  --color-light-gray: rgb(149, 149, 149);
  --transition-base: 0.3s ease;
  --z-index-header: 1000;
  --z-index-modal: 2000;
}

body {
  font-family: 'Kanit', sans-serif;
  background-color: var(--color-black);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

html {
  margin: 0;
  padding: 0;
}

.main {
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1440px;
  padding: 0 10px;
  margin: 0 auto;
}

.btn {
  font-size: 16px;
  padding: 10px 30px;
  background-color: #fff;
  transition: .4s;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background-color: rgb(0, 168, 38);
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn:hover {
  opacity: .8;
}

.btn--white {
  background-color: #fff;
  color: rgb(0, 168, 38);
}

.btn--blue {
  background-color: rgb(0, 84, 164);
}

.btn--sky {
  background-color: rgb(102, 202, 224);
}

.btn--offer {
  font-size: 36px;
  max-width: 300px;
  margin-bottom: 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: var(--z-index-header);
  padding: 15px 0;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header__logo {
  color: var(--color-white);
  font-size: 32px;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-base);
}

.site-header__logo:hover {
  color: var(--color-primary);
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: var(--z-index-header);
}

.menu-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  position: absolute;
  left: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.menu-toggle__line:nth-child(1) { top: 0; }
.menu-toggle__line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle__line:nth-child(3) { bottom: 0; }

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Navigation */
.main-nav__list {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav__link {
  color: var(--color-white);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 0;
  transition: color var(--transition-base);
  position: relative;
}

.main-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.main-nav__link:hover {
  color: var(--color-primary);
}

.main-nav__link:hover::after {
  width: 100%;
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 10px;
  margin-left: 32px;
}

.auth-buttons__btn {
  padding: 10px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.auth-buttons__btn:hover {
  opacity: 0.8;
}

.auth-buttons__btn--login {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.auth-buttons__btn--signup {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-index-modal);
}

.modal.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal__container {
  position: relative;
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  margin: 20px;
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-gray);
  transition: color var(--transition-base);
}

.modal__close:hover {
  color: var(--color-black);
}

.modal__title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 600;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 14px;
  color: var(--color-gray);
}

.form-group input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-header__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 80px 20px 20px;
    transition: transform var(--transition-base);
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-header__menu.is-active {
    transform: translateX(0);
  }

  .main-nav__list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .auth-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
  }

  .auth-buttons__btn {
    width: 100%;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* offer */
.offer {
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.offer:nth-child(2n) {
  background-color: rgba(250, 250, 250, 1);
}

.offer:nth-child(1) {
  padding-top: 100px;
}

.offer__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offer__text {
  max-width: 700px;
}

.offer__subtitle {
  color: #000;
  font-size: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.offer__title {
  font-weight: 900;
  font-size: 64px;
  line-height: 1.3em;
  margin: 0 0 20px 0;
}

.offer__info {
  color: rgb(51, 51, 51);
}

.offer__img {
  width: 100%;
  height: 100%;
}

.offer__img img {
  width: 100%;
  height: 100vh;
  object-fit: contain;
}

/* footer */
.footer {
  background-color: rgb(17, 17, 17);
  padding: 20px 0;
}

.footer__menu {
  padding: 10px 0 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgb(51, 51, 51);
}

.footer__menu a {
  text-decoration: none;
  color: rgb(149, 149, 149);
  transition: .3s;
  cursor: pointer;
  font-size: 14px;
}

.footer__menu a:hover {
  color: #fff;
}

.footer__info {
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgb(51, 51, 51);
}

.footer__logo {
  font-size: 32px;
  color: #fff;
  font-weight: 900;
}

.footer__text {
  color: rgb(158, 158, 158);
}

.footer__copyright {
  text-align: center;
  padding: 20px 0;
  color: rgb(158, 158, 158);
  font-size: 14px;
}

.footer__help {
  padding: 20px 0;
  margin: 0;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgb(51, 51, 51);
}

.footer__help a {
  transition: .3s;
  width: 100%;
  max-width: 100px;
  display: block;
  height: 40px;
}

.footer__help a:hover {
  opacity: .6;
}

.footer__help img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.footer--partners a {
  max-width: 200px;
  height: 100px;
}

.footer--partners a:first-child {
  max-width: 400px;
}




/* Regmodal */
.regmodal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background-color: rgba(0, 0, 0, .7);
  display: none;
  justify-content: center;
  align-items: center;
}

.regmodal--active {
  display: flex;
}

.regmodal__inner {
  padding: 20px;
  border-radius: 16px;
  background-color: #fff;
  position: relative;
  max-width: 320px;
  width: 100%;
}

.regmodal__inner h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.regmodal__inner p {
  text-align: center;
  margin-top: 20px;
  color: blue;
  cursor: pointer;
}

.regmodal__close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #000;
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
}

.regmodal__inner form {
  display: flex;
  flex-direction: column;
  max-width: 300px;
}

.regmodal__inner form label {
  width: 100%;
  display: block;
  margin-bottom: 10px;
}

.regmodal__inner form input {
  width: 100%;
  border: 1px solid lightgrey;
  border-radius: 8px;
  padding: 10px;
  margin-top: 5px;
  outline: none;
}

.regmodal__inner form button {
  max-width: 150px;
  margin: 0 auto;
  margin-top: 20px;
  width: 100%;
  background: inherit;
  border: 1px solid rgb(0, 168, 38);
  padding: 10px;
  border-radius: 8px;
  text-transform: uppercase;
  color: rgb(0, 168, 38);
  font-weight: 700;
  cursor: pointer;
}



/* Agemodal */
.agemodal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background-color: rgba(0, 0, 0, .9);
  display: none;
  justify-content: center;
  align-items: center;
}

.agemodal--active {
  display: flex;
}

.agemodal__inner {
  padding: 20px;
  border-radius: 16px;
  background-color: #fff;
  position: relative;
  max-width: 320px;
}

.agemodal__inner h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.agemodal__btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.agemodal__inner button {
  max-width: 150px;
  margin: 0 auto;
  margin-top: 20px;
  width: 100%;
  background: inherit;
  border: 1px solid rgb(0, 168, 38);
  padding: 10px;
  border-radius: 8px;
  text-transform: uppercase;
  color: rgb(0, 168, 38);
  font-weight: 900;
  cursor: pointer;
}

#agemodalYes {
  background-color: rgb(0, 168, 38);
  color: #fff;
}

.agemodal__warning {
  text-align: center;
  color: red;
  margin-top: 20px;
}


.policy {
  background: #fff;
  margin-top: 0;
  padding-top: 100px;
  padding-bottom: 50px;
}