/* ===== CSS CUSTOM PROPERTIES (VARIABLES) ===== */
:root {
  /* Primary Colors */
  --primary-color: #058789;
  --primary-hover: #047072;
  --primary-light: #06a0a3;
  --primary-lighter: #0bb5b8;
  --primary-dark: #046a6c;

  /* Secondary Colors */
  --secondary-color: #ed0606;

  /* Text Colors */
  --text-primary: #373737;
  --text-secondary: #4f4f4f;
  --text-dark: #2f2f2f;
  --text-muted: #464646;
  --text-light: #6c757d;
  --text-white: #ffffff;

  /* Background Colors */
  --bg-primary: #f8f8f8;
  --bg-secondary: #f2f2f2;
  --bg-white: #ffffff;
  --bg-dark: #232323;
  --bg-light-gray: #f8f9fa;
  --bg-overlay: rgba(0, 0, 0, 0.9);
  --bg-overlay-light: rgba(0, 0, 0, 0.8);

  /* Border Colors */
  --border-light: #bdbdbd;
  --border-lighter: #e0e0e0;
  --border-lightest: #e9ecef;
  --border-gray: #c4c4c4;
  --border-medium: #999;
  --border-dark: #ccc;

  /* Status Colors */
  --error-color: #ff0000;
  --success-color: #4caf50;
  --warning-bg: #fff3cd;
  --warning-border: #ffeeba;
  --warning-text: #856404;
  --info-bg: #e3f2fd;
  --info-text: #1976d2;

  /* Shadow Colors */
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --shadow-darker: rgba(0, 0, 0, 0.25);
  --shadow-darkest: rgba(0, 0, 0, 0.3);

  /* Interactive Colors */
  --hover-light: #f5f5f5;
  --hover-lighter: #f8f8f8;
  --focus-outline: rgba(5, 135, 137, 0.1);
  --focus-outline-strong: rgba(5, 135, 137, 0.2);
  --error-outline: rgba(255, 0, 0, 0.1);
  --error-outline-strong: rgba(255, 0, 0, 0.2);
}

/* ===== RESET & BASE STYLES ===== */
html,
body {
  width: 100%;
  overflow-x: hidden;
}

.iti__country-list {
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  margin: 0;
  padding: 0;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
}

.flex-item {
  flex: 0 0 auto;
}

.flex-item--half {
  width: 50%;
}

.flex-item--third {
  width: 33.333%;
}

.flex-item--quarter {
  width: 25%;
}

.flex-item--full {
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  position: relative;
}

.header__logo {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-link,
.header__logo-image {
  margin: 0;
  padding: 0;
}

.header__logo-image {
  width: 140px;
  display: block;
}

.header__hero {
  position: relative;
}

.header__image {
  width: 100%;
  height: auto;
  margin: 0;
}

.header__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.header__hero {
  background: url("../images/h.webp") no-repeat center;
  background-size: cover;
  background-position: center;
  height: 580px;
}

.header__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgb(254 254 254 / 60%) 0%,
    rgb(255 255 255 / 48%) 100%
  );

  z-index: 1;
  pointer-events: none;
}

.header__container {
  padding: 0;
  margin: 0;
  overflow: hidden;
  padding-top: 6vw;
  max-width: 86%;
  margin: 0 auto;
}

.header__form-container {
  margin-top: 1rem;
}

/* ===== HERO ===== */
.hero__subtitle {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  font-weight: 400;
  text-align: center;
  max-width: 100%;
  font-size: 6.5634782609vw;
  line-height: 8vw;
  margin: 0.5rem auto 0.8rem;
}

.hero__accent {
  font-weight: 700;
  color: var(--secondary-color);
}

.hero__title {
  font-family: "Montserrat", sans-serif;
  color: var(--secondary-color);
  font-weight: 800;
  font-size: 10.4347826087vw;
  line-height: 10.0591304348vw;
  max-width: 80vw;
  margin: 0 auto 0.5rem;
  text-align: center;
  text-transform: uppercase;
}

.hero__description {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  text-align: center;
  max-width: 92%;
  margin: 0 auto 1rem;
  font-size: 6.3739130435vw;
  line-height: 7.7686956522vw;
}

/* ===== CTA BANNER ===== */
.black-banner {
  font-family: "Montserrat", sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 3.2vw 0;
}

.black-banner__content {
  color: var(--text-white);
  text-decoration: none;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  width: 80vw;
  gap: 2rem;
}

.black-banner__text {
  margin: 0;
  font-weight: 400;
  font-size: 4.6765217391vw;
  line-height: 5.2608695652vw;
}

.black-banner__arrow {
  transform: scale(0.8);
}

.black-banner__arrow--desktop {
  display: none;
}

/* ===== REGISTRATION FORM ===== */
.registration-form {
  font-family: "Poppins", sans-serif;
  background: var(--bg-secondary);
  box-shadow: 0px 0px 10px var(--shadow-medium);
  border-radius: 10px;
  margin: 0px auto 0 auto;
  max-width: 345px;
  z-index: 10;
  scroll-margin-top: 15px;
  max-width: initial;
}

.registration {
  z-index: 10;
}

.registration__form-wrapper {
  padding: 0;
}

.registration__header {
  padding: 20px 15px 0px;
}

.registration__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 27px;
  text-align: center;
  color: var(--text-secondary);
  margin: 0;
}

.registration__fields {
  padding: 0 15px;
  display: flex;
  flex-direction: column;
}

.registration__field {
  /* margin-bottom: 20px; */
}

.registration__submit-button {
  border: 0;
  border-radius: 4px;
  background: var(--primary-color);
  color: var(--text-white);
  cursor: pointer;
  display: block;
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  margin: auto;
  margin-bottom: 0;
  padding: 25px 5px;
  white-space: normal;
  width: 100%;
}

.registration__submit-button:hover {
  transition: 0.1s all linear;
  transform: scale(1.03);
}

.registration__error-message {
  color: var(--error-color);
  padding: 0;
  text-align: center;
  font-size: 14px;
}

.registration__error-message a {
  color: var(--error-color);
  text-decoration: underline;
}

.registration__disclaimer {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 120%;
  margin: 0;
  padding: 16px;
  text-align: center;
}

.registration__terms {
  margin: 1.5rem 0;
}

/* ===== FORM FIELDS ===== */
.form-field {
  position: relative;
  margin-bottom: 20px;
  overflow: visible;
}

.form-field__input {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  height: 45px;
  margin-bottom: 0px;
  width: 100%;
  padding: 0 15px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-field__input:focus {
  border: 1px solid var(--border-medium);
  box-shadow: none;
  outline: none;
}

.form-field__input[readonly] {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gray);
  box-shadow: inset 0px 4px 4px var(--shadow-darker);
  color: var(--text-muted);
}

.form-field__select {
  background: var(--bg-white);
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23999' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  height: 45px;
  width: 100%;
  padding: 0 40px 0 15px;
  font-size: 14px;
  color: var(--text-primary);
  box-sizing: border-box;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field__select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--focus-outline);
}

.form-field__select:hover {
  border-color: var(--border-medium);
}

.form-field__error {
  margin-top: 5px;
  font-size: 12px;
  color: var(--error-color);
  display: none;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s ease, margin-top 0.3s ease;
}

.form-field__error[style*="block"] {
  opacity: 1;
}

/* Стили для полей с ошибками */
.form-field__input.error,
.form-field__select.error {
  border-color: var(--error-color) !important;
  box-shadow: 0 0 0 2px var(--error-outline) !important;
}

.form-field__input.error:focus,
.form-field__select.error:focus {
  border-color: var(--error-color) !important;
  box-shadow: 0 0 0 2px var(--error-outline-strong) !important;
}

/* Стили для checkbox с ошибкой */
.checkbox__input.error + .checkbox__label .checkbox__slider {
  border: 2px solid var(--error-color);
}

.form-field--hidden {
  display: none;
}

.form-field--phone .form-field__phone-wrapper {
  position: relative;
  overflow: visible;
  z-index: 10;
}

.form-field--phone .form-field__input {
  padding-left: 60px;
}

.form-field--phone {
  position: relative;
  z-index: 10;
  overflow: visible;
}

/* Дополнительные стили для родительских контейнеров */
.registration__field {
  position: relative;
  overflow: visible;
}

/* ===== CHECKBOX ===== */
.checkbox {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.checkbox__input {
  display: none;
}

.checkbox__label {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 18px;
  margin: 0;
  margin-right: 5px;
  vertical-align: middle;
}

.checkbox__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: dimgray;
  transition: 0.4s;
  border-radius: 34px;
}

.checkbox__slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 2px;
  background-color: var(--bg-white);
  transition: 0.4s;
  border-radius: 50%;
}

.checkbox__input:checked + .checkbox__label .checkbox__slider {
  background-color: var(--primary-color);
}

.checkbox__input:checked + .checkbox__label .checkbox__slider:before {
  background-color: var(--bg-white);
  transform: translateX(20px);
}

.checkbox__text {
  display: inline-block;
  color: var(--text-muted);
  width: calc(92% - 45px);
  text-align: left;
  margin-left: 10px;
  vertical-align: top;
  font-size: 13px;
  font-weight: 300;
  /* margin-bottom: 20px; */
}

/* ===== MAIN ===== */
.main {
  padding: 0;
}

/* ===== about ===== */
.about {
  text-align: center;
  margin: 1rem 0;
}

.about__container {
  padding-left: 1rem;
  padding-right: 1rem;
}

.about__content {
  display: flex;
  flex-direction: column;
  max-width: 590px;
  margin: 0 auto;
}

.about__media {
  margin-bottom: 1rem;
}

.about__image {
  width: 100%;
  height: auto;
}

.about__title {
  font-family: "Poppins";
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.about__paragraph {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 15px;
}

/* ===== FEATURES ===== */
.features {
  padding: 40px 0;
}

.features__container {
  padding: 0 1rem;
}

.features__header {
  margin-bottom: 2rem;
}

.features__title {
  font-family: "Poppins", "Montserrat", sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 5rem;
  margin-bottom: 2em;
  text-align: center;
  font-size: 18px;
}

.features__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features__item {
  margin-bottom: 1rem;
}

.features__card {
  padding: 1rem 0 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-lighter);
  border-radius: 4px;
  margin: 0 auto 0.5rem;
  height: 100%;
}

.features__icon {
  margin-top: 0;
}

.features__text {
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  color: var(--text-dark);
  max-width: 430px;
  margin: 0 auto;
}

/* ===== CTA SECTION ===== */
.cta-section {
  margin-top: 2rem;
}

.cta-section__container {
  padding: 0 1rem;
  text-align: center;
}

.cta-section__button {
  display: block;
  max-width: 262px;
  text-decoration: none;
  background: var(--primary-color);
  border-radius: 4px;
  padding: 25px 10px;
  color: var(--text-white);
  border: 0;
  cursor: pointer;
  margin: auto;
  margin-bottom: 1em;
  width: 100%;
  display: block;
  font-weight: 700;
  font-size: 18px;
}

.cta-section__button:hover {
  transition: 0.1s all linear;
  transform: scale(1.03);
}

/* ===== PAYMENT METHODS ===== */
.payment-methods {
  margin: 1.5rem auto 0;
  max-width: 100%;
  text-align: center;
}

.payment-methods__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  /* gap: 0.5rem; */
}

.payment-methods__item {
  display: inline-block;
  padding: 0 0.5rem;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.payment-methods--form .payment-methods__list {
  justify-content: space-between;
  margin: 0 auto;
  width: 100%;
}

.payment-methods--form .payment-methods__item {
  padding-right: 10px;
  min-width: 0;
  min-height: 0;
  /* margin: 10px 0; */
}

.payment-methods--form .payment-methods__item:last-of-type {
  padding-right: 0;
}

/* ===== FOOTER ===== */
.footer {
  font-family: "Poppins", sans-serif;
  padding-top: 10px;
  padding-bottom: 50px;
  text-align: center;
  color: var(--text-muted);
}

.footer__container {
  padding: 0 1rem;
}

.footer__logo {
  margin: 1rem 0;
}

.footer__logo-image {
  width: 120px;
  height: 47px;
  margin: 20px 0;
}

.footer__nav {
  margin: 1rem 0;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__nav-link {
  color: var(--text-muted);
  font-size: 15px;
  display: block;
  text-decoration: underline;
}

.footer__disclaimer {
  margin: 0 auto;
  margin-top: 1rem;
  max-width: 1110px;
}

.footer__disclaimer-text {
  line-height: 18px;
  font-size: 15px;
  text-align: center;
  color: var(--text-muted);
}

.footer__disclaimer-text a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Tablet styles */
@media screen and (min-width: 576px) {
  .header__form-container {
    max-width: 540px;
    margin: 0 auto;
  }

  .header__picture {
    display: block;
  }

  .header__container {
    padding-top: 15.2vw;
    /* padding-left: 7vw; */
    max-width: 100%;
    margin: 0;
  }

  .hero__subtitle {
    margin: 0.5rem auto 1rem;
    font-size: 3.1476230192vw;
    line-height: 3.836530442vw;
    max-width: 92%;

    max-width: 64vw;
  }

  .hero__title {
    margin: 0 auto 0.6rem;
    font-size: 5.2083333333vw;
    line-height: 6.25vw;
    text-align: center;
    max-width: 63%;
  }

  .hero__description {
    font-size: 3.0567139283vw;
    line-height: 3.7256046706vw;

    max-width: 64vw;
  }

  .black-banner {
    background: var(--bg-dark);
    padding: 6px 0;
    height: 65px;
    margin-bottom: 36px;
  }

  .black-banner__text {
    font-weight: 600;
    font-size: 2.0308590492vw;
    line-height: 2.0308590492vw;
  }

  .about__container {
    padding-left: 1.9rem;
    padding-right: 1.9rem;
  }

  .features__title {
    margin-top: 2rem;
  }

  .features__list {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 570px;
    margin: 0 auto;
  }

  .features__item {
    flex: 0 0 50%;
    margin-bottom: 1.7rem;
  }

  .features__card {
    max-width: 270px;
    margin: 0 auto 0.5rem;
  }

  .cta-section__button {
    padding: 25px 40px;
    width: initial;
  }

  .payment-methods {
    width: 560px;
  }

  .payment-methods__item {
    padding: 0 1rem;
  }
}

/* Large tablet styles */
@media screen and (min-width: 768px) {
  .header__container {
    padding-top: 15.2vw;
  }

  .hero__title {
    font-size: 5.0041701418vw;
    line-height: 4.8240200167vw;
    max-width: 60%;
  }

  .features__title {
    margin-top: 1rem;
  }

  .payment-methods__item {
    padding: 0 1.2rem;
  }

  .footer__nav-list {
    justify-content: center;
    gap: 2rem;
  }
}

/* Desktop styles */
@media screen and (min-width: 992px) {
  .footer__nav-list {
    gap: 0.5rem;
  }
  .features__list {
    max-width: initial;
  }

  .features__item {
    flex: 0 0 23.97%;
  }

  .payment-methods {
    width: 100%;
  }

  .payment-methods__item {
    padding: 0 1.2rem;
  }
}

/* Large desktop styles */
@media screen and (min-width: 1200px) {
  .header__hero {
    background: url("../images/h.webp") no-repeat center;
    background-size: cover;
    background-position: center;
    height: 580px;
  }

  .header__picture {
    display: none;
  }

  .header__container {
    padding-top: 7vw;
    padding: 4.4rem 0 0;
    padding-right: 5rem;
    padding-left: 0;
    max-width: 1170px;
    margin: 0 auto;
  }

  .hero__subtitle {
    padding-left: 0;
    font-size: 34.1px;
    line-height: 41.57px;
    margin-right: auto;
    max-width: 500px;
    margin: 4rem auto 1rem;
  }

  .hero__title {
    max-width: 40%;
    padding-left: 0;
    font-size: 50px;
    line-height: 57.84px;
    margin: 0 auto 1rem;
  }

  .hero__description {
    padding-left: 0;
    font-size: 33.12px;
    line-height: 40.37px;
    margin-right: auto;
    max-width: 480px;
  }

  .black-banner {
    margin-top: -1px;
    margin-bottom: 67px;
  }

  .black-banner__content {
    gap: 1.4rem;
    width: 720px;
    flex-direction: row;
    top: 0;
    left: -226px;
  }

  .black-banner__text {
    font-size: 22px;
    line-height: 22px;
  }

  .black-banner__arrow--left,
  .black-banner__arrow--right {
    display: none;
  }

  .black-banner__arrow--desktop {
    display: block;
  }

  .header__form-container {
    max-width: 0px;
    padding-left: 32rem;
    margin: 0 auto;
  }

  .registration-form {
    position: absolute;
    top: 5.86rem;
    max-width: 345px;
    margin: 0px auto 50px auto;
  }

  .about {
    text-align: left;
    max-width: 1170px;
    margin: 0 auto;
  }

  .about__container {
    padding: 0;
  }

  .about__content {
    flex-direction: row;
    max-width: none;
    gap: 2rem;
  }

  .about__media {
    flex: 0 0 50%;
    margin-bottom: 0;
  }

  .about__text {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .about__title {
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-align: left;
  }

  .features__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0;
  }

  .features__title {
    margin-top: 1rem;
    text-align: left;
  }

  .features__item:first-child {
    padding-left: 0;
  }

  .features__item:last-child {
    padding-right: 0;
  }

  .features__text {
    max-width: 230px;
  }

  .payment-methods__item {
    padding: 0 1.8rem;
  }

  .registration__field .payment-methods__list {
    gap: 0;
  }

  .registration__field .payment-methods {
    margin: 0 auto 0 !important;
  }

  .registration__field .payment-methods__item {
    margin: 0;
  }
}

/* Large screens */
@media screen and (min-width: 1600px) {
  .header__hero {
    background-position: center;
  }
}

/* Mobile specific styles */
@media screen and (max-width: 480px) {
  .wa-flow {
    display: block;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    transform: none;
    padding: 0;
    overflow: hidden;
  }

  .wa-flow__content {
    display: block;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 40px 30px;
  }

  .wa-flow__headline {
    padding: 15px;
  }

  .calculator__button {
    max-width: 100%;
    padding: 13px 10px;
  }

  .payment-methods__item {
    padding: 0 0.5rem;
  }

  .iti__country-list {
    max-height: 150px;
  }

  .form-field--phone .form-field__input {
    padding-left: 45px !important;
  }

  .iti__selected-flag {
    padding: 0 6px 0 10px;
  }
}

@media screen and (min-width: 320px) {
  .calculator__button {
    max-width: 100%;
  }
}

@media screen and (min-width: 360px) {
  .calculator__button {
    padding: 13px 10px;
  }
}

@media screen and (min-width: 420px) {
  .calculator__button {
    padding: 13px 20px;
  }
}

@media screen and (min-width: 520px) {
  .payment-methods__item {
    padding: 0 1.4rem;
  }
}

/* Focus animation */
.focusForm {
  animation: focusForm 0.7s ease-in-out 2;
}

@keyframes focusForm {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

/* Verification styles */
.verification {
  margin-top: 1rem;
}

.verification__toggle {
  margin-bottom: 1rem;
}

.verification__field .form-field--hidden {
  display: none;
}

/* ITI phone input compatibility */
body:not(.iti-mobile) .iti__country-list {
  white-space: normal;
  width: 315px;
  right: 0;
}

/* Advertorial */
.advertorial {
  text-decoration: underline;
  color: gray;
  padding-top: 40px;
  padding-bottom: 33px;
}

@media screen and (min-width: 576px) {
  .advertorial {
    padding-bottom: 0px;
  }
}

/* Additional utility classes for backward compatibility */

.video-pic {
  cursor: pointer;
}

#myVideo {
  display: none;
}

/* Form focus states */
textarea:focus,
input:focus,
button:focus {
  outline: none;
}

button:hover {
  cursor: pointer;
}

/* Error states */
.error-msg-calc {
  font-size: 14px;
  color: var(--error-color);
  text-align: left;
  display: none;
}

.error-msg-calc.d-none {
  display: none !important;
}

/* Text utilities */
.text-left {
  text-align: left;
}

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

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

/* Display utilities */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-flex {
  display: flex !important;
}

/* Margin utilities */
.m-0 {
  margin: 0 !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Padding utilities */
.p-0 {
  padding: 0 !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Position utilities */
.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

/* Width utilities */
.w-100 {
  width: 100% !important;
}

/* Height utilities */
.h-100 {
  height: 100% !important;
}

/* Image utilities */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Responsive display utilities */
@media screen and (max-width: 575.98px) {
  .d-xs-block {
    display: block !important;
  }

  .d-sm-none {
    display: none !important;
  }
}

@media screen and (min-width: 576px) {
  .d-sm-block {
    display: block !important;
  }

  .d-sm-inline-block {
    display: inline-block !important;
  }
}

@media screen and (min-width: 768px) {
  .d-md-block {
    display: block !important;
  }
}

@media screen and (min-width: 1200px) {
  .d-xl-none {
    display: none !important;
  }

  .d-xl-block {
    display: block !important;
  }
}

/* ===== FAQ SECTION ===== */
.faq {
  background-color: var(--bg-primary);
  padding: 40px 0;
}

.faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.faq__header {
  text-align: center;
  margin-bottom: 40px;
}

.faq__title {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq__item {
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow-light);
  overflow: hidden;
}

.faq__question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq__question:hover {
  background-color: var(--hover-light);
}

.faq__question h3 {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.faq__icon {
  font-size: 24px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item.active .faq__answer {
  padding: 0 20px 20px;
  max-height: 1000px;
}

.faq__answer p {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

@media screen and (min-width: 768px) {
  .faq {
    padding: 60px 0;
  }

  .faq__title {
    font-size: 40px;
  }

  .faq__question h3 {
    font-size: 20px;
  }
}

@media screen and (min-width: 1200px) {
  .faq__container {
    padding: 0 30px;
  }
}

/* ===== PHONE INPUT STYLES ===== */
.iti {
  width: 100%;
  display: block;
  position: relative;
  z-index: 10;
}

.iti__flag-container {
  display: flex;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 12;
  background: transparent;
}

.form-field--phone .form-field__input {
  padding-left: 69px !important;
  background: var(--bg-white);
}

.iti__selected-flag {
  padding: 0 8px 0 12px;
  background: var(--bg-white);
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: 4px 0 0 4px;
  border-right: 1px solid var(--border-lighter);
}

.iti__selected-flag:hover {
  background: var(--hover-lighter);
}

.iti__selected-flag:focus {
  outline: none;
}

/* Скрываем код страны, но показываем стрелку */
.iti__selected-dial-code {
  display: none !important;
}

.iti__arrow {
  display: block !important;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--border-medium);
  width: 0;
  height: 0;
  transition: transform 0.2s ease;
}

/* Поворот стрелки при открытии списка */
.iti--show-dropdown .iti__arrow {
  transform: rotate(180deg);
}

.iti__flag {
  margin-right: 4px;
  width: 20px;
  height: 15px;
  flex-shrink: 0;
}

.iti__country-list {
  position: absolute !important;
  top: calc(100% + 2px) !important;
  left: 0 !important;
  right: 0 !important;
  max-height: 200px !important;
  min-height: 50px !important;
  height: auto !important;
  overflow-y: auto;
  z-index: 1000 !important;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  box-shadow: 0 4px 12px var(--shadow-medium);
  background: var(--bg-white) !important;
  list-style: none;
  padding: 0;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: auto !important;
  transform: none !important;
}

.iti__country {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  background: var(--bg-white);
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  transition: background-color 0.2s ease;
}

.iti__country:hover {
  background: var(--hover-light);
}

.iti__country.iti__highlight {
  background: rgba(237, 6, 6, 0.1);
}

.iti__flag-box {
  width: 20px;
  margin-right: 8px;
}

.iti__country-name {
  margin-right: 8px;
  font-size: 14px;
  color: var(--text-primary);
}

.iti__dial-code {
  color: var(--border-medium);
  font-size: 14px;
}

/* Исправляем позиционирование для контейнера iti */
.iti--container {
  position: absolute !important;
  z-index: 1000 !important;
  top: calc(100% + 2px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  transform: none !important;
  margin: 0 !important;
  background: var(--bg-white);
  border-radius: 4px;
}

/* Убираем любое центрирование */
.form-field--phone .iti--container {
  position: absolute !important;
  top: calc(100% + 2px) !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  margin: 0 !important;
}

/* Исправляем позиционирование для выпадающего списка внутри контейнера */
.iti--container .iti__country-list {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 200px !important;
  min-height: 50px !important;
  border-radius: 4px;
  box-shadow: 0 4px 12px var(--shadow-medium);
  border: 1px solid var(--border-dark);
  background: var(--bg-white) !important;
  overflow-y: hidden;
}

@media screen and (max-width: 480px) {
  .iti__country-list {
    max-height: 150px;
  }

  .form-field--phone .form-field__input {
    padding-left: 45px !important;
  }

  .iti__selected-flag {
    padding: 0 6px 0 10px;
  }
}

/* ===== LOADER STYLES ===== */
.loader-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay-light);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

.loader-backdrop.show {
  display: flex;
}

.loader-container {
  max-width: 400px;
  width: 90%;
  background: var(--bg-white);
  border-radius: 15px;
  box-shadow: 0 20px 40px var(--shadow-darkest);
  padding: 2rem;
  text-align: center;
  animation: slideIn 0.4s ease-out;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loader-spinner {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
}

.spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
  animation-delay: 0.1s;
  border-top-color: var(--primary-light);
  width: 85%;
  height: 85%;
  top: 7.5%;
  left: 7.5%;
}

.spinner-ring:nth-child(3) {
  animation-delay: 0.2s;
  border-top-color: var(--primary-lighter);
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
}

.loader-title {
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

.loader-message {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.loader-progress {
  width: 100%;
  height: 4px;
  background: var(--bg-light-gray);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 2px;
  width: 0%;
  animation: progressFill 2.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  30% {
    width: 30%;
  }
  60% {
    width: 60%;
  }
  90% {
    width: 90%;
  }
  100% {
    width: 100%;
  }
}

/* Responsive adjustments for loader */
@media screen and (max-width: 480px) {
  .loader-container {
    width: 95%;
    padding: 1.5rem;
  }

  .loader-title {
    font-size: 1.1rem;
  }

  .loader-message {
    font-size: 0.8rem;
  }

  .loader-spinner {
    width: 50px;
    height: 50px;
  }
}

.thanks {
  display: flex;
  justify-content: center;
  align-items: center;
}

.thanks-page {
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--border-lightest) 100%
  );
  height: 400px;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  width: 95%;
  margin: 0 auto;
  max-width: 1200px;
  z-index: 100;
  box-shadow: 0 10px 30px var(--shadow-dark);
  border-radius: 15px;
}

.thanks-container {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 20px 60px var(--shadow-light);
  max-width: 100%;
  width: 100%;
  height: 100%;
  max-height: 370px;
  padding: 25px 35px;
  text-align: center;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  overflow: hidden;
}

.thanks-left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.thanks-right-column {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.thanks-logo {
  margin-bottom: 10px;
}

.thanks-logo img {
  width: 80px;
  height: auto;
}

.thanks-icon {
  width: 50px;
  height: 50px;
  background: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  animation: checkmark 0.8s ease-in-out;
}

.thanks-icon::after {
  content: "✓";
  color: var(--text-white);
  font-size: 25px;
  font-weight: bold;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.thanks-title {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.1;
}

.thanks-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.thanks-message {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.thanks-message p {
  margin-bottom: 15px;
}

.thanks-next-steps {
  background: var(--bg-light-gray);
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
  text-align: left;
}

.thanks-next-steps h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-align: left;
}

.thanks-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.thanks-steps-list li {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
}

.thanks-steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-color);
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.thanks-steps-list {
  counter-reset: step-counter;
}

.thanks-contact {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}

.thanks-contact p {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  color: var(--warning-text);
  margin: 0;
}

.thanks-button {
  display: inline-block;
  max-width: 250px;
  margin: 0 auto;
  text-align: center;
  background: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.thanks-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.thanks-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-lightest);
}

.thanks-footer p {
  font-family: "Poppins", sans-serif;
  font-size: 9px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .thanks-page {
    width: 98%;
    height: 400px;
    top: 35%;
  }

  .thanks-container {
    padding: 20px 15px;
    margin: 0;
    grid-template-columns: 1fr;
    gap: 15px;
    max-height: 360px;
  }

  .thanks-right-column {
    text-align: center;
  }

  .thanks-title {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .thanks-subtitle {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .thanks-message {
    font-size: 10px;
  }

  .thanks-next-steps {
    padding: 12px;
  }

  .thanks-next-steps h3 {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .thanks-steps-list li {
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .thanks-contact p {
    font-size: 10px;
  }

  .thanks-button {
    font-size: 11px;
    padding: 8px 16px;
  }

  .thanks-footer p {
    font-size: 8px;
  }
}

/* ===== LEGAL PAGES STYLES (Privacy, Terms, Cookies) ===== */
.privacy-section,
.terms-section {
  padding: 80px 20px 60px;
  background: var(--bg-light-gray);
  min-height: 100vh;
}

.privacy-container,
.terms-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-light);
  overflow: hidden;
}

.privacy-content,
.terms-content {
  padding: 40px 50px;
  line-height: 1.7;
}

.privacy-content h1,
.terms-content h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
}

.effective-date {
  display: inline-block;
  background: var(--info-bg);
  color: var(--info-text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 30px;
}

.privacy-content section,
.terms-content section {
  margin-bottom: 35px;
}

.privacy-content h2,
.terms-content h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 30px 0 15px 0;
  padding-left: 15px;
  border-left: 4px solid var(--primary-color);
}

.privacy-content h3,
.terms-content h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 25px 0 12px 0;
  padding: 10px 15px;
  background: var(--bg-light-gray);
  border-radius: 6px;
  border-left: 3px solid var(--primary-light);
}

.privacy-content h5,
.terms-content h5 {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 20px 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.privacy-content p,
.terms-content p {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  text-align: justify;
}

.privacy-content ul,
.terms-content ul {
  padding-left: 25px;
  margin-bottom: 20px;
}

.privacy-content li,
.terms-content li {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.privacy-content a,
.terms-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.privacy-content a:hover,
.terms-content a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Table of Contents Styles */
.table-of-contents {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-lightest);
  border-radius: 8px;
  padding: 25px;
  margin: 20px 0 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}

.table-of-contents a {
  display: block;
  padding: 10px 15px;
  background: var(--bg-white);
  border: 1px solid var(--border-lighter);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.table-of-contents a:hover {
  background: var(--primary-color);
  color: var(--text-white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--focus-outline-strong);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .privacy-section,
  .terms-section {
    padding: 60px 15px 40px;
  }

  .privacy-content,
  .terms-content {
    padding: 30px 25px;
  }

  .privacy-content h1,
  .terms-content h1 {
    font-size: 26px;
  }

  .privacy-content h2,
  .terms-content h2 {
    font-size: 20px;
  }

  .privacy-content h3,
  .terms-content h3 {
    font-size: 18px;
    padding: 8px 12px;
  }

  .privacy-content p,
  .terms-content p,
  .privacy-content li,
  .terms-content li {
    font-size: 14px;
  }

  .table-of-contents {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .table-of-contents a {
    padding: 12px;
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .privacy-section,
  .terms-section {
    padding: 50px 10px 30px;
  }

  .privacy-content,
  .terms-content {
    padding: 25px 20px;
  }

  .privacy-content h1,
  .terms-content h1 {
    font-size: 22px;
  }

  .privacy-content h2,
  .terms-content h2 {
    font-size: 18px;
    padding-left: 12px;
  }

  .privacy-content h3,
  .terms-content h3 {
    font-size: 16px;
  }

  .privacy-content p,
  .terms-content p,
  .privacy-content li,
  .terms-content li {
    font-size: 13px;
    text-align: left;
  }

  .effective-date {
    font-size: 12px;
    padding: 6px 12px;
  }
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-overlay);
  color: var(--text-white);
  padding: 20px;
  z-index: 1000;
  font-family: "Arial", sans-serif;
  display: none;
  box-shadow: 0 -2px 5px var(--shadow-dark);
}

.cookie-consent.show {
  display: block;
}

.cookie-consent__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.cookie-consent__text {
  flex: 1;
  margin-right: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.cookie-consent__text p {
  margin: 0 0 10px;
}

.cookie-consent__text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-consent__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-consent__button {
  background-color: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-family: "Arial", sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.cookie-consent__button--deny {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--text-white);
}

.cookie-consent__button--deny:hover {
  background-color: var(--primary-hover);
  color: var(--text-white);
}

@media (max-width: 768px) {
  .cookie-consent__content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent__text {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .cookie-consent__buttons {
    justify-content: center;
  }
}
