* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #FFFFFF;
}

.hero {
  width: 100%;
  min-height: 100vh;
  background-image: url('Photo/photo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1377px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── ШАПКА ─── */
.header {
  width: 100%;
  padding: 24px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-img {
  height: 45px;
  width: auto;
}

.header__logo-text {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.header__socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__socials-label {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.header__socials-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__socials-icons a img {
  height: 36px;
  width: 36px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header__socials-icons a:hover img {
  opacity: 0.85;
  transform: scale(1.2);
}

/* ─── КОНТЕНТ HERO ─── */
.hero__content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding-top: 22px;
  padding-bottom: 40px;
}

.hero__content .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-size: 66px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-align: center;
  line-height: 1.15;
  width: 100%;
  white-space: nowrap;
}

.hero__subtitle {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-align: center;
  line-height: 1.5;
  width: 100%;
  margin-top: 40px;
  white-space: nowrap;
}

.hero__accent { color: #FF6B35; }
.hero__dot { color: #ffffff; }

/* ─── КНОПКИ ─── */
.hero__buttons {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.btn {
  width: 307px;
  padding: 15px 25px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.2s ease, backdrop-filter 0.2s ease;
}

.btn--primary {
  background-color: #FF6B35;
  color: #ffffff;
  border: none;
}

.btn--primary:hover { background-color: #D25A2F; }

.btn--outline {
  background-color: rgba(255, 255, 255, 0.01);
  color: #ffffff;
  border: 1px solid #FF6B35;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--outline:hover {
  background-color: rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ─── КАРТОЧКИ ─── */
.hero__cards {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.card {
  width: calc((100% - 40px) / 3);
  max-width: 442px;
  min-width: 300px;
  height: 234px;
  flex-shrink: 0;
  border: 1px solid #ffffff;
  border-radius: 12px;
  background-color: rgba(0, 15, 48, 0.70);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card__header { display: block; }

.card__title {
  font-size: 22px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.3;
  padding-right: 60px;
}

.card__icon {
  position: absolute;
  top: 30px;
  right: 30px;
}

.card__text {
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  margin-top: 20px;
  line-height: 1.5;
}

/* ─── ВИДЖЕТ ─── */
.widget-section {
  margin-top: 140px;
}

/* ─── АДАПТИВ ─── */
.br-tablet { display: none; }

@media (max-width: 1400px) {
  .hero__title { white-space: normal; font-size: 52px; }
  .hero__subtitle { white-space: normal; font-size: 22px; }
}

@media (max-width: 1350px) {
  .card__title { font-size: 20px; }
  .card__text { font-size: 16px; }
}

@media (max-width: 1100px) {
  .hero__title { font-size: 42px; }
  .hero__subtitle { font-size: 18px; }
}

@media (max-width: 1024px) {
  html, body { overflow-x: hidden; }
  .container { padding: 0 50px; }
  .header__logo-text { font-size: 16px; }
  .header__socials-label { font-size: 16px; }
  .header__socials-icons a img { height: 43px; width: 43px; }
  .hero__title { font-size: 32.5px; white-space: nowrap; }
  .hero__subtitle { font-size: 20px; white-space: normal; margin-top: 24px; }
  .br-main { display: none; }
  .hero__buttons { gap: 30px; margin-top: 32px; }
  .btn { width: 319px; font-size: 16px; padding: 12px 16px; }
  .hero__cards { flex-direction: column; align-items: center; margin-top: 32px; gap: 20px; padding: 0; }
  .card { width: 100%; max-width: 100%; height: auto; min-width: unset; padding: 24px; }
  .card__header { display: flex; align-items: center; justify-content: space-between; }
  .card__title { font-size: 20px; white-space: nowrap; padding-right: 12px; }
  .card__title br { display: none; }
  .card__icon { position: static; width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; transform: none; margin-right: 10px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .header .container { display: flex; align-items: center; justify-content: space-between; }
  .header__logo { flex-direction: row; align-items: center; justify-content: flex-start; gap: 0; padding: 0; margin: 0; align-self: flex-start; }
  .header__logo-img { height: 46px; margin-top: 0px; }
  .header__logo-text { display: none; }
  .header__socials { flex-direction: column; align-items: center; gap: 6px; padding: 0; margin: 0; }
  .header__socials-icons { order: -1; }
  .header__socials-label { order: 1; display: block; font-size: 14px; font-weight: 400; font-family: 'Montserrat', sans-serif; letter-spacing: 0.01em; color: #ffffff; }
  .header__socials-icons a img { height: 45px; width: 45px; }
  .hero__title { font-size: 22px; white-space: normal; }
  .hero__subtitle { font-size: 18px; white-space: normal; margin-top: 20px; }
  .br-main { display: none; }
  .hero__buttons { flex-direction: column; align-items: center; gap: 20px; margin-top: 28px; width: 100%; max-width: 335px; }
  .btn { width: 100%; font-size: 16px; padding: 14px 16px; box-sizing: border-box; }
  .hero__cards { flex-direction: column; align-items: center; margin-top: 28px; gap: 16px; padding: 0; }
  .card { width: 335px; max-width: 100%; height: auto; min-width: unset; padding: 20px; }
  .card__header { display: flex; align-items: center; justify-content: space-between; }
  .card__title { font-size: 18px; white-space: normal; padding-right: 12px; }
  .card__title br { display: none; }
  .card__icon { position: static; width: 55px; height: 55px; object-fit: contain; flex-shrink: 0; transform: none; margin-right: 0; }
  .card__text { font-size: 16px; margin-top: 16px; }
}

/* ─── ФУТЕР ─── */
.footer {
  background-color: #0D1B3E;
  padding: 50px 0 40px;
  margin-top: 140px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 32px;
}

.footer__socials a img {
  height: 40px;
  width: 40px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer__socials a:hover img {
  opacity: 0.8;
  transform: scale(1.2);
}

.footer__divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
}

.footer__policy {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #007BFF;
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-top: 30px;
  transition: color 0.2s ease;
}

.footer__policy:hover { color: #3399ff; }

@media (max-width: 480px) {
  .footer { padding: 40px 0 32px; margin-top: 100px; }
  .footer__socials a img { height: 44px; width: 44px; }
  .footer__policy { font-size: 13px; text-align: center; }
}

/* ─── ПОПАП ─── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.popup-overlay.active { display: flex; }

.popup {
  background-color: #0D1B3E;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 560px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  padding: 4px;
}

.popup__close:hover { color: #ffffff; }

.popup__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 32px;
}

.popup__field {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.popup__input {
  width: 100%;
  padding: 14px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  outline: none;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease;
  caret-color: #FF6B35;
}

.popup__input::placeholder { color: rgba(255, 255, 255, 0.3); }
.popup__input:focus { border-color: rgba(255, 255, 255, 0.6); }
.popup__input.error { border-color: #ff4444; }

.popup__error {
  display: none;
  margin-top: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #ff4444;
  text-align: center;
}

.popup__error.visible { display: block; }

.popup__submit {
  width: 100%;
  padding: 15px 25px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #ffffff;
  background-color: #FF6B35;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.popup__submit:hover { background-color: #D25A2F; }

.popup__submit:disabled {
  background-color: rgba(255, 107, 53, 0.35);
  cursor: not-allowed;
}

/* Чекбокс */
.popup__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 24px;
  user-select: none;
  -webkit-user-select: none;
}

.popup__checkbox {
  display: none;
}

.popup__checkbox-box {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1px;
  background-color: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.popup__checkbox:checked + .popup__checkbox-box {
  background-color: #FF6B35;
  border-color: #FF6B35;
}

.popup__checkbox:checked + .popup__checkbox-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.popup__checkbox-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.popup__checkbox-link {
  color: #007BFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.popup__consent-error {
  display: none;
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #ff4444;
  text-align: center;
}

.popup__consent-error.visible {
  display: block;
}


.popup__checkbox-link:hover {
  color: #3399ff;
}

@media (max-width: 480px) {
  .popup { padding: 40px 20px 32px; }
  .popup__title { font-size: 20px; margin-bottom: 24px; }
  .popup__input { font-size: 18px; padding: 12px 16px; }
  .popup__submit { font-size: 16px; padding: 13px 16px; }
}