/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@400;500&display=swap');

/* Vetrino Font - TTF file */
@font-face {
  font-family: 'Vetrino';
  src: url('../fonts/Vetrino.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  margin-top: 0 !important;
}

body {
  font-family: 'Commissioner', sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.4;
  position: relative;
  min-height: 95vh;
}

/* Header */
.site-header {
  background: transparent;
  padding: 40px 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.site-header .logo-img {
  display: block;
  width: 177px;
  height: auto;
  margin: 0 auto;
}

/* Landing Section */
.ruble-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 170px; /* Изначально 170px от низа */
  z-index: 2;
  width: 100%;
  transition: bottom 0.3s ease;
}

/* Форма "прилипает" на минимальном расстоянии от низа при скролле */
.ruble-form.sticky-bottom {
  bottom: 50px; /* Минимальное расстояние от низа видео */
}

.form-container {
  background: #353331;
  border-radius: 10px;
  padding: 20px;
  max-width: 1060px;
  width: 100%;
}

/* Title */
.ruble-form-title {
  font-family: 'Vetrino', sans-serif;
  font-weight: 400;
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
  line-height: 95%;
  letter-spacing: 0%;
  text-transform: uppercase;
}

/* Form layout */
.ruble-landing-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}
.ruble-landing-form label {
  display: flex;
  flex-direction: column;
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFF;
  flex: 1 1 220px;
}

.ruble-landing-form label > span:first-child {
  display: flex;
  align-items: center;
}
.ruble-landing-form input,
.ruble-landing-form select {
  margin-top: 6px;
  width: 100%;
  padding: 14px 16px;
  background: #353331;
  border: 1px solid #FFFFFF33;
  border-radius: 4px;
  font-family: 'Commissioner', sans-serif;
  font-size: 16px;
  color: #fff;
  transition: border-color 0.3s;
}
.ruble-landing-form input.invalid-input,
.ruble-landing-form select.invalid-input {
    border-color: #ef4444; /* red-500 */
}
.ruble-landing-form input::placeholder {
  color: #FFFFFF33;
}
.ruble-landing-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 48px; 
  background-image: url('../images/down.svg');
  background-repeat: no-repeat;
  background-position: right 23px center;
  background-size: 10px 10px;
  color: #FFFFFF33;
}
.ruble-landing-form select:valid {
    color: #fff;
}
.ruble-landing-form select::-ms-expand { display: none; }

/* Submit button */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
  color: #10182B;
  font-family: 'Commissioner', sans-serif;
  font-weight: 500;
  font-size: 18px;
  border: none;
  padding: 5px 5px 5px 19px;
  border-radius: 4px;
  cursor: pointer;
  flex: 1 1 220px;
  min-width: 240px;
  max-height: 51px;
  transition: opacity 0.3s;
}
.submit-btn:hover {
    opacity: 0.8;
}

.submit-btn__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #353331;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.submit-btn__arrow {
  width: 10px;
  height: 10px;
  transition: transform 0.3s;
}

.submit-btn:hover .submit-btn__icon-wrapper {
  background-color: #353331;
}

.submit-btn:hover .submit-btn__arrow {
  transform: rotate(45deg);
}

/* Consent Checkbox */
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 15px;
  width: 100%;
}

.consent-checkbox input[type="checkbox"] {
  display: none;
}

.consent-label {
  display: block;
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.06em;
  color: #FFFFFF;
  cursor: pointer;
  margin: 0;
  text-decoration: none;
}

.consent-first-line {
  display: inline;
  white-space: nowrap;
}

.custom-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  border: 2px solid #FFFFFF;
  border-radius: 0;
  background: transparent;
  transition: all 0.3s;
  vertical-align: middle;
  margin-right: 5px;
}

.consent-start {
  display: inline;
  vertical-align: middle;
}

.consent-label a {
  display: inline;
  vertical-align: middle;
}

.consent-checkbox input[type="checkbox"]:checked + .consent-label .custom-checkbox {
  background: #000000;
  border-color: #FFFFFF;
}

.checkbox-icon {
  width: 7px;
  height: 5px;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.3s;
}

.consent-checkbox input[type="checkbox"]:checked + .consent-label .checkbox-icon {
  opacity: 1;
}

.consent-label a {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-offset: 0;
  text-decoration-thickness: 0.96px; /* 6% от 16px */
  text-decoration-skip-ink: auto;
  transition: opacity 0.3s;
}

.consent-label a:hover {
  opacity: 0.8;
}

.form-success {
  margin-top: 15px;
  text-align: center;
  font-size: 16px;
  color: #fff;
}

/* Стили для ошибок валидации */
.invalid-input {
  border: 1px solid #ff4444 !important;
  background-color: rgba(255, 68, 68, 0.1) !important;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.invalid-input:focus {
  border-color: #ff4444 !important;
  box-shadow: 0 0 5px rgba(255, 68, 68, 0.5) !important;
}

.consent-checkbox.error .custom-checkbox {
  border-color: #ff4444 !important;
  background-color: rgba(255, 68, 68, 0.1);
  animation: shake 0.5s ease-in-out;
}

/* Звездочки для обязательных полей */
.required-asterisk {
  color: rgba(255, 255, 255, 0.2);
  margin-left: 4px;
  font-size: 16px;
  transition: color 0.3s ease;
}

/* Звездочки становятся красными при ошибке валидации */
.ruble-landing-form label:has(.invalid-input) .required-asterisk,
#consent-container.error .required-asterisk {
  color: #ff4444;
}

/* Сообщение об ошибке для чекбокса согласия */
.consent-error-message {
  color: #ff4444;
  font-size: 14px;
  margin-top: 8px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 100%;
}

#consent-container.error + .consent-error-message {
  display: block;
  opacity: 1;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}



/* Video Container for Desktop */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden; /* Для правильной работы sticky */
}

/* Video Background */
.video-bg {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}
.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 9/16 */
  min-height: 100vh;
  min-width: 177.77vh; /* 100 * 16 / 9 */
  transform: translate(-50%, -50%);
  border: 0;
}

/* Sound toggle */
.video-sound-toggle-mobile {
    display: none;
}

.video-sound-toggle {
    background-color: rgba(0, 0, 0, 0.5);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    position: absolute;
    z-index: 3;
    right: 20px;
    top: 20px;
}
.video-sound-toggle.sound-off {
    background-image: url('../images/off.svg');
}
.video-sound-toggle:not(.sound-off) {
    background-image: url('../images/on.svg');
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1100px) {
    .ruble-form {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
  body {
    min-height: auto;
  }
  .site-header {
    background: #000;
  }

  .video-container {
    position: static;
    height: auto;
  }

  .video-bg {
    position: relative;
    z-index: 1;
    margin: 0;
    height: auto;
    width: auto;
    top: auto;
    left: auto;
    overflow: visible;
  }
  .video-bg video {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: auto;
    min-width: auto;
    top: auto;
    left: auto;
  }

  .video-sound-toggle-desktop {
      display: none;
  }
  .video-sound-toggle-mobile {
      display: block;
  }

  .video-sound-toggle {
    position: absolute;
    right: 20px;
    bottom: 20px;
    top: auto;
    width: 50px;
    height: 50px;
  }
  
  .ruble-form {
    position: relative;
    z-index: 2;
    bottom: auto;
    left: auto;
    transform: none;
    padding: 0 20px 20px 20px;
    margin-top: 30px;
  }

  .form-container {
    padding: 20px;
    background: #353331;
    max-width: none;
  }
  
  .ruble-form-title {
      font-size: 24px;
      margin-bottom: 12px;
  }

  .ruble-landing-form {
    gap: 20px;
  }
  .ruble-landing-form label {
    font-size: 12px;
  }
  .ruble-landing-form label,
  .ruble-landing-form .submit-btn {
    flex-basis: calc(50% - 10px);
  }

  /* Mobile consent checkbox styles */
  .consent-checkbox {
    gap: 5px;
  }

  .consent-label {
    gap: 5px;
    font-size: 16px;
    white-space: normal;
    flex-wrap: wrap;
  }

  .consent-text {
    display: inline;
  }

  .consent-label a {
    text-decoration-thickness: 0.96px; /* 6% от 16px */
  }

  .custom-checkbox {
    width: 15px;
    height: 15px;
    min-width: 15px;
    min-height: 15px;
  }

  .checkbox-icon {
    width: 7px;
    height: 5px;
  }

  /* Планшетные стили для сообщения об ошибке */
  .consent-error-message {
    font-size: 12px;
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 20px 0;
  }

  .ruble-form {
    margin-top: 25px;
  }

  .ruble-form-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .video-sound-toggle {
    position: absolute;
    width: 40px;
    height: 40px;
    right: 10px;
    bottom: 10px;
    top: auto;
  }

  .ruble-landing-form {
    gap: 15px;
  }
  .ruble-landing-form input,
  .ruble-landing-form select {
    padding: 15px;
  }
  .submit-btn__icon-wrapper {
      width: 32px;
      height: 32px;
  }
  .ruble-landing-form label,
  .ruble-landing-form .submit-btn {
    flex-basis: 100%;
  }

  /* Mobile consent checkbox styles */
  .consent-label {
    font-size: 10px;
    white-space: normal;
    flex-wrap: wrap;
  }

  .consent-label a {
    text-decoration-thickness: 0.6px; /* 6% от 10px */
  }

  .custom-checkbox {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
  }

  .checkbox-icon {
    width: 5px;
    height: 3px;
  }

  .form-success {
    font-size: 12px;
  }

  /* Мобильные стили для звездочек */
  .required-asterisk {
    font-size: 10px;
  }

  .consent-error-message {
    font-size: 10px;
    margin-top: 6px;
  }

}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #191919;
  border-radius: 5px;
  padding: 10px;
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 400px;
  z-index: 1000;
  display: none; /* Скрыто по умолчанию */
}

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

.cookie-notice__content {
  margin-bottom: 15px;
}

.cookie-notice__text {
  margin-bottom: 8px;
  line-height: 1.4;
}

.cookie-notice__text:last-child {
  margin-bottom: 0;
}

.cookie-notice__more {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 10px;
}

.cookie-notice__more:hover {
  color: rgba(255, 255, 255, 0.8);
}

.cookie-notice__details {
  display: none;
  margin-top: 10px;
}

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

.cookie-notice__link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-notice__link:hover {
  color: rgba(255, 255, 255, 0.8);
}

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

.cookie-notice__btn {
  padding: 10px 40px;
  border: none;
  border-radius: 5px;
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #191919;
  cursor: pointer;
  flex: 1;
  transition: opacity 0.3s;
}

.cookie-notice__btn:hover {
  opacity: 0.8;
}

.cookie-notice__btn--accept {
  background: #FFFFFF;
}

.cookie-notice__btn--decline {
  background: rgba(255, 255, 255, 0.5);
}

/* Cookie Notice Mobile */
@media (max-width: 768px) {
  .cookie-notice {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: none;
    padding: 15px;
    border-radius: 0;
  }
  
  .cookie-notice__btn {
    padding: 12px 20px;
    font-size: 16px;
  }
}

/* Privacy Page Styles */
.privacy-page {
  background: #000;
  color: #fff;
  min-height: 100vh;
  padding: 40px 0;
}

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

.privacy-title {
  font-family: 'Commissioner', sans-serif;
  font-weight: 500;
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
  color: #fff;
}

.privacy-subtitle {
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.privacy-content {
  line-height: 1.6;
}

.privacy-intro {
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  margin-bottom: 30px;
  text-align: justify;
}

.privacy-section-title {
  font-family: 'Commissioner', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  margin: 30px 0 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}

.privacy-subsection-title {
  font-family: 'Commissioner', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  margin: 25px 0 10px 0;
}

.privacy-text {
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  text-align: justify;
}

.privacy-list {
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 15px 0;
  padding-left: 20px;
}

.privacy-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.privacy-consent-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-consent-section .privacy-text {
  margin-bottom: 10px;
}

/* Mobile Styles for Privacy Page */
@media (max-width: 768px) {
  .privacy-page {
    padding: 20px 0;
  }
  
  .privacy-container {
    padding: 0 15px;
  }
  
  .privacy-title {
    font-size: 28px;
    margin-bottom: 8px;
  }
  
  .privacy-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .privacy-intro,
  .privacy-text {
    font-size: 14px;
    text-align: left;
  }
  
  .privacy-section-title {
    font-size: 18px;
    margin: 25px 0 12px 0;
  }
  
  .privacy-subsection-title {
    font-size: 16px;
    margin: 20px 0 8px 0;
  }
  
  .privacy-list {
    font-size: 14px;
    padding-left: 16px;
  }
  
  .privacy-consent-section {
    padding: 15px;
    margin-top: 25px;
  }
}

/* Additional styles for Cookie Policy page */
.privacy-company-title {
  font-family: 'Commissioner', sans-serif;
  font-weight: 500;
  font-size: 24px;
  text-align: center;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.9);
}

.privacy-date {
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.privacy-contacts {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-contacts .privacy-text {
  margin-bottom: 8px;
}

.privacy-links {
  margin-top: 20px;
}

.privacy-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  transition: color 0.3s;
}

.privacy-link:hover {
  color: #fff;
  text-decoration: none;
}

/* Mobile adjustments for Cookie Policy */
@media (max-width: 768px) {
  .privacy-company-title {
    font-size: 20px;
  }
  
  .privacy-date {
    font-size: 12px;
    margin-bottom: 30px;
  }
  
  .privacy-contacts {
    padding: 15px;
  }
}

/* Desktop Footer Block */
.desktop-footer-block {
  background: #000000;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Company Info in Footer */
.company-info {
  text-align: center;
  padding: 40px 20px;
}

.company-info__text {
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: -6%;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 5px;
}

.company-info__text:last-child {
  margin-bottom: 0;
}

/* Fix mobile phone number styling */
.company-info__text a,
.company-info__text a:link,
.company-info__text a:visited,
.company-info__text a:hover,
.company-info__text a:active {
  color: inherit !important;
  text-decoration: none !important;
}

/* Hide desktop footer block on tablets and mobile */
@media (max-width: 1024px) {
  .desktop-footer-block {
    display: none;
  }
}

/* Hide standard footer on desktop, show on tablets/mobile */
@media (min-width: 1025px) {
  .site-footer {
    display: none;
  }
}

/* Cookie Notice Styles */
#cookie-notice {
    /* ... existing styles ... */
}


