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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== ШАПКА ===== */
.site-header {
  width: 100%;
  padding: 35px 0;
  background-color: rgba(25, 25, 25, 0.72);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 15px 0;
  background-color: rgba(25, 25, 25, 0.9);
}

.site-header.scrolled .header-logo {
  font-size: 28px;
}

.site-header.scrolled .header-contacts span,
.site-header.scrolled .header-contacts a {
  font-size: 23px;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-size: 23px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.header-contacts {
  display: flex;
  gap: 40px;
  align-items: center;
}

.header-contacts span,
.header-contacts a {
  font-size: 23px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.phone-link:hover {
  text-decoration: underline;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* ===== ПЕРВЫЙ ЭКРАН ===== */
.first-screen {
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 120px;
  background: radial-gradient(
    circle at 0% 50%,
    #0a1a3a 0%,
    #000 25%,
    #000 100%
  );
}

.first-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: radial-gradient(
    ellipse at 0% 50%,
    rgba(10, 80, 160, 0.592) 0%,
    rgba(10, 80, 160, 0.111) 50%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 0;
}

.fs-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.fs-nav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 40px;
  padding-top: 20px;
}

.nav-list {
  display: flex;
  gap: 50px;
  list-style: none;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding-bottom: 8px;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 4px;
  background-color: #ff0000;
  border-radius: 2px;
}

.nav-link:not(.active):hover::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 4px;
  background-color: #ff0000;
  border-radius: 2px;
  animation: underlineGrow 0.3s ease forwards;
}

@keyframes underlineGrow {
  from {
    width: 0;
  }
  to {
    width: 30px;
  }
}

.dropdown-li {
  position: relative;
}

.brands-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background: #1a1a1a;
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  margin-top: 10px;
  z-index: 50;
}

.dropdown-li:hover .brands-dropdown {
  opacity: 1;
  visibility: visible;
}

.brands-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px 0;
}

.brand-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.brand-item:hover {
  background: #333;
}

.brand-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  /* filter: brightness(0) invert(1); */
}

.brands-list::-webkit-scrollbar {
  width: 6px;
}
.brands-list::-webkit-scrollbar-track {
  background: #333;
  border-radius: 3px;
}
.brands-list::-webkit-scrollbar-thumb {
  background: #ff0000;
  border-radius: 3px;
}

/* Обертка для контента и картинки */
.fs-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  position: relative;
}

.fs-content {
  flex: 1;
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.fs-image {
  flex: 1;
  text-align: right;
  position: relative;
  z-index: 0;
}

.fs-image img {
  max-width: 120%;
  height: auto;
}

.fs-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 40px;
}

.fs-features {
  list-style: none;
  margin-bottom: 50px;
}

.fs-features li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 18px;
}

.feature-icon {
  width: 35px;
  height: 35px;
  filter: brightness(0) invert(1);
}

.fs-btn {
  background: linear-gradient(180deg, #ff2a2a 0%, #cc0000 100%);
  color: #fff;
  border: none;
  padding: 20px 48px;
  font-size: 30px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 25px rgba(217, 7, 7, 0.78);
  width: auto;
  height: 125px;
  min-width: 450px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.fs-btn:hover {
  transform: translateY(4px);
  box-shadow: 0 10px 25px rgba(162, 5, 5, 0.78);
}

/* ===== ВТОРОЙ ЭКРАН: ПРЕИМУЩЕСТВА ===== */
.advantages-screen {
  padding: 80px 0;
  background: #000;
  position: relative;
}

.advantages-screen::before {
  display: none;
}

.advantages-screen::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  background: radial-gradient(
    ellipse at 100% 50%,
    rgba(10, 80, 160, 0.8) 0%,
    rgba(10, 80, 160, 0.3) 50%,
    transparent 80%
  );
  pointer-events: none;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.advantage-card {
  background: transparent;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Красные кружки на заднем фоне у advantage-icon */

.advantage-card::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 70px;
  width: 50px;
  height: 50px;
  background: rgba(235, 13, 13, 0.902);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.advantage-card.blue-circle::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 70px;
  width: 50px;
  height: 50px;
  background: rgba(13, 83, 235, 0.92);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  display: block;
  position: relative;
  z-index: 1;
}

.advantage-card h3 {
  color: #fff;
  font-size: 35px;
  margin-bottom: 12px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.advantage-card p {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.8;
  text-align: left;
  position: relative;
  z-index: 1;
}

/* ===== ТРЕТИЙ ЭКРАН: УСЛУГИ ===== */
.services-screen {
  padding: 80px 0;
  background: #000;
  position: relative;
}

.services-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: radial-gradient(
    ellipse at 0% 50%,
    rgba(10, 80, 160, 0.8) 0%,
    rgba(10, 80, 160, 0.3) 50%,
    transparent 80%
  );
  pointer-events: none;
}

.services-title {
  font-size: 48px;
  margin-bottom: 50px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card h3 {
  padding: 20px 20px 10px;
  font-size: 18px;
  font-weight: 600;
  min-height: 80px;
  text-align: left;
}

.price {
  display: inline-block;
  background: #ff0000;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 20px;
  font-weight: bold;
  margin: 10px 20px 20px 20px;
  align-self: flex-start;
  text-align: left;
}

.offer-note {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

/* ===== ФОРМА ОБРАТНОЙ СВЯЗИ ===== */
.callback-screen {
  padding: 80px 0;
  background: #000;
  position: relative;
}

.callback-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 100%;
  background: radial-gradient(
    ellipse at 0% 50%,
    rgba(10, 26, 58, 0.4) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.callback-screen::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  height: 100%;
  background: radial-gradient(
    ellipse at 100% 50%,
    rgba(10, 26, 58, 0.4) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.callback-wrapper {
  background: #111;
  border-radius: 30px;
  padding: 50px;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, #111 15%);
  z-index: 1;
}

.blink-effect {
  position: absolute;
  top: -62px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 80px;
  z-index: 2;
}

.ellipse-left {
  position: absolute;
  left: 35%;
  transform: translateX(-60px);
  width: 100px;
  height: 70px;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(255, 215, 0, 0.8) 0%,
    rgba(255, 215, 0, 0.2) 60%,
    transparent 100%
  );
  border-radius: 50%;
  animation: blinkLeft 1.5s infinite ease-in-out;
}

.ellipse-right {
  position: absolute;
  left: 35%;
  transform: translateX(20px);
  width: 100px;
  height: 70px;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(255, 215, 0, 0.8) 0%,
    rgba(255, 215, 0, 0.2) 60%,
    transparent 100%
  );
  border-radius: 50%;
  animation: blinkRight 1.5s infinite ease-in-out;
}

.flash-icon {
  position: relative;
  width: 65px;
  height: 65px;
  z-index: 2;
}

@keyframes blinkLeft {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-60px) scale(0.7);
  }
  25%,
  50% {
    opacity: 1;
    transform: translateX(-60px) scale(1.1);
  }
  75% {
    opacity: 0.3;
    transform: translateX(-60px) scale(0.9);
  }
}

@keyframes blinkRight {
  0%,
  25% {
    opacity: 0;
    transform: translateX(20px) scale(0.7);
  }
  50%,
  75% {
    opacity: 1;
    transform: translateX(20px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateX(20px) scale(0.9);
  }
}

.callback-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 60px;
  margin-top: 20px;
}

.callback-form-block {
  flex: 1;
}

/* Чекбокс в попапе */
.popup-content .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

/* Чекбокс в блоке адресов */
.addresses-form .checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.callback-form-block h3 {
  font-size: 28px;
  margin-bottom: 25px;
}

.callback-form-block input {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 15px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 40px;
  color: #fff;
  font-size: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 13px;
  margin: 15px 0;
  flex-wrap: nowrap;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}

.checkbox-label span,
.checkbox-label .policy-link-form {
  white-space: nowrap; /* текст в одну строку */
}

.policy-link-form {
  text-decoration: underline;
  cursor: pointer;
  color: #fff;
}

.callback-form-block button {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.callback-text-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.callback-text-block h2 {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 40px;
  color: #fff;
}

.callback-text-block p {
  font-size: 25px;
  color: #fff;
  opacity: 0.9;
}

/* ===== КОНТРАКТНЫЕ АКПП ===== */
.contract-screen {
  position: relative;
  overflow: visible;
}

.contract-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 100%;
  background: radial-gradient(
    ellipse at 0% 50%,
    rgba(10, 26, 58, 0.3) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.contract-screen::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  height: 100%;
  background: radial-gradient(
    ellipse at 100% 50%,
    rgba(10, 26, 58, 0.3) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.contract-wrapper {
  position: relative;
  z-index: 2;
  padding: 50px 0;
}

.contract-wrapper h2 {
  color: #ff0000;
  font-size: 36px;
  margin-bottom: 20px;
}

.contract-wrapper p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 16px;
  color: #ccc;
}

.contract-btn {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== ФУТЕР ===== */
.footer {
  background: #0a0a0a;
  padding: 60px 0 40px;
  margin-top: 60px;
  position: relative;
  overflow: visible; /* было hidden — меняем на visible */
  border-top: 1px solid #1a1f2e;
}

/* Красный градиент из нижнего правого угла */
.footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at 100% 100%,
    rgba(255, 0, 0, 0.636) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  position: relative;
  z-index: 1;
}

.offer-warning {
  font-size: 11px;
  color: #888;
  margin-bottom: 15px;
  border-left: 2px solid #ff0000;
  padding-left: 12px;
}

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

.policy-link {
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  color: #fff;
}

/* ===== ПОПАП ===== */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

.popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.popup-content h3 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 24px;
}

.popup-content input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 15px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 40px;
  color: #fff;
  font-size: 16px;
}

.popup-content button[type="submit"] {
  width: 100%;
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== МОДАЛКА ПОЛИТИКИ ===== */
.policy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  z-index: 1300;
}

.policy-modal.show {
  display: flex;
}

.policy-modal-content {
  background: #1a1a1a;
  max-width: 550px;
  width: 90%;
  padding: 30px;
  border-radius: 20px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

.policy-modal-content h3 {
  color: #ff0000;
  margin-bottom: 15px;
}

.policy-modal-content p {
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1200px) {
  .fs-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .fs-image {
    text-align: center;
  }
  .callback-inner {
    flex-direction: column;
  }
  .callback-text-block h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 10px;
  }
  .callback-text-block p {
    font-size: 20px;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .advantages-grid,
  .services-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fs-btn {
    width: 100%;
    font-size: 22px;
    padding: 18px 30px;
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .header-contacts {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .header-contacts span,
  .header-contacts a {
    font-size: 18px;
  }
  .fs-nav {
    justify-content: center;
  }
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .advantages-grid,
  .services-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .fs-title {
    font-size: 36px;
  }
  .fs-features li {
    font-size: 14px;
  }
  .fs-btn {
    font-size: 20px;
    padding: 15px 25px;
    border-radius: 40px;
    height: auto;
  }
  .callback-text-block h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px;
  }
  .callback-text-block p {
    font-size: 16px;
    text-align: center;
  }
  .callback-wrapper {
    padding: 30px 20px;
  }
  .contract-wrapper h2 {
    font-size: 28px;
  }
  .brands-dropdown {
    left: auto;
    right: 0;
  }
  .fs-nav {
    padding-top: 120px;
  }
}

/* ===== КОНТРАКТНЫЕ АКПП (с картинкой) ===== */
.contract-wrapper {
  background: none;
  border-radius: 30px;
  padding: 50px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  overflow: hidden;
}

.contract-content {
  max-width: 600px;
  text-align: left;
}

.contract-content h2 {
  color: #ffffff;
  font-size: 60px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.contract-content p {
  font-size: 26px;
  margin-bottom: 30px;
  color: #ccc;
}

.contract-image {
  width: 100%;
  text-align: right;
  overflow: visible;
}

.contract-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 100, 255, 0.3));
  display: block;
  margin-left: auto;
}

.contract-wrapper h2 {
  color: #ffffff;
  font-size: 60px;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: left;
}

.contract-wrapper p {
  max-width: 600px;
  margin-bottom: 30px;
  font-size: 26px;
  color: #ccc;
  text-align: left;
}

.contract-btn {
  background: linear-gradient(180deg, #2a6eff 0%, #0044cc 100%);
  color: #fff;
  border: none;
  padding: 20px 48px;
  font-size: 30px;
  font-weight: 700;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 68, 204, 0.78);
  min-width: 450px;
}

.contract-btn:hover {
  transform: translateY(4px);
  box-shadow: 0 10px 25px rgba(0, 68, 204, 0.5);
}

.contract-image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  display: flex;
  margin-right: 120px;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

/* Адаптив для контрактного блока */
/* Адаптив */
@media (max-width: 1024px) {
  .contract-image-wrapper {
    margin-right: 0; /* обнуляем отступ на мобильных */
    position: relative;
    width: 100%;
    margin-top: 30px;
    justify-content: center;
  }
}
.contract-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 100, 255, 0.3)) grayscale(20%)
    brightness(1.05) contrast(1.1);
  transition: filter 0.3s ease;
}
.contract-content {
  text-align: center;
  max-width: 100%;
}
.contract-btn {
  min-width: auto;
  width: 100%;
  font-size: 24px;
  padding: 18px 30px;
}

@media (max-width: 768px) {
  .contract-image-wrapper {
    margin-right: 0; /* на телефонах убираем */
  }
  .contract-content h2 {
    font-size: 36px;
  }
  .contract-content p {
    font-size: 18px;
  }
  .contract-btn {
    font-size: 20px;
    padding: 15px 25px;
  }
}
/* ===== АДРЕСА СЕРВИСОВ ===== */
.addresses-screen {
  padding: 80px 0;
  background: #000;
  position: relative;
}

.addresses-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  position: relative;
  background: #111; /* фон как у других блоков */
  border-radius: 30px;
  overflow: hidden;
}

.addresses-content {
  flex: 1;
  text-align: left;
  position: relative;
  z-index: 2;
  padding: 50px 0 50px 50px;
}

/* Карта Москвы на фоне слева */
.addresses-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -80px;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background-image: url("images/map-msk.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}

.addresses-content h2 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 30px;
}

.addresses-list {
  list-style: none;
}

.addresses-list li {
  margin-bottom: 16px;
  font-size: 18px;
  padding-left: 30px;
  position: relative;
}

.addresses-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3Ccircle cx='12' cy='9' r='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.addresses-form {
  flex: 1;
  padding: 50px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.addresses-form h3 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #fff;
}

.addresses-form input {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 15px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 40px;
  color: #fff;
  font-size: 16px;
}

.addresses-form .checkbox-label {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 10px;
  font-size: 12px;
  margin: 15px 0;
}

.addresses-form .checkbox-label input {
  width: auto;
  margin: 0;
}

.addresses-form button {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

/* Адаптив */
@media (max-width: 1024px) {
  .addresses-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }
  .addresses-content {
    padding: 0;
  }
  .addresses-content h2 {
    text-align: center;
  }
  .addresses-list li {
    text-align: left;
  }
  .addresses-content::before {
    width: 400px;
    height: 400px;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
  }
}

@media (max-width: 768px) {
  .addresses-screen {
    padding: 50px 0;
  }
  .addresses-wrapper {
    padding: 25px;
  }
  .addresses-content h2 {
    font-size: 36px;
  }
  .addresses-list li {
    font-size: 16px;
  }
  .addresses-form {
    padding: 20px;
  }
  .addresses-form h3 {
    font-size: 24px;
  }
  .addresses-content::before {
    width: 300px;
    height: 300px;
  }
}

/* ===== ФУТЕР (НОВЫЙ) ===== */
.footer {
  background: #0a0a0a;
  padding: 60px 0 40px;
  margin-top: 60px;
  position: relative;
  border-top: 1px solid #1a1f2e;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.footer-about h3,
.footer-contacts-block h3,
.footer-rekv h3 {
  color: #ff0000;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.5;
  color: #ccc;
  max-width: 300px;
}

.footer-phone {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 15px;
  transition: color 0.2s;
}

.footer-phone:hover {
  color: #ff0000;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: #ccc;
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ff0000;
}

.footer-rekv p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 15px;
}

.footer-email {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-email:hover {
  color: #ff0000;
  text-decoration: underline;
}

/* Адаптив для футера */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .footer-about p {
    max-width: 100%;
  }
  .footer-links {
    align-items: center;
  }
}

/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ МАРКИ АВТО ===== */
.brand-modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  align-items: center;
  justify-content: center;
  z-index: 1200;
  overflow-y: auto;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.brand-modal.show {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.95);
}

.brand-modal-content {
  background: #0f121c;
  max-width: 1200px;
  width: 100%;
  border-radius: 30px;
  border: 1px solid #ff0000;
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-modal.show .brand-modal-content {
  opacity: 1;
  transform: scale(1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.brand-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 35px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

.brand-modal-close:hover {
  color: #ff0000;
}

.brand-modal-inner {
  display: flex;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
}

.brand-modal-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.brand-modal-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.3));
}

.brand-modal-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-modal-info h2 {
  font-size: 48px;
  color: #ff0000;
  margin-bottom: 10px;
}

.brand-modal-info p {
  font-size: 16px;
  line-height: 1.6;
  color: #ccc;
}

.brand-modal-btn {
  background: linear-gradient(180deg, #ff2a2a 0%, #cc0000 100%);
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 25px rgba(217, 7, 7, 0.5);
  margin-top: 20px;
  align-self: flex-start;
}

.brand-modal-btn:hover {
  transform: translateY(3px);
  box-shadow: 0 5px 15px rgba(217, 7, 7, 0.4);
}

/* Адаптив для модалки марок */
@media (max-width: 768px) {
  .brand-modal {
    padding: 20px;
  }
  .brand-modal-inner {
    padding: 25px;
    flex-direction: column;
  }
  .brand-modal-info h2 {
    font-size: 32px;
  }
  .brand-modal-btn {
    align-self: center;
  }
}

/* ===== COOKIE БАННЕР ===== */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 30px;
  right: 30px;
  background: #0f121c;
  border-radius: 20px;
  padding: 20px 30px;
  z-index: 1100;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #e0e4f0;
  flex: 1;
}

.cookie-text i {
  color: #ffd700;
  font-size: 18px;
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cookie-btn-secondary {
  background: transparent;
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  order: 1;
}

.cookie-btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #ff2a2a 0%, #cc0000 100%);
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.3);
  order: 2;
}

.cookie-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
}

@media (max-width: 680px) {
  .cookie-banner {
    left: 15px;
    right: 15px;
    bottom: 15px;
    padding: 15px 20px;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  .cookie-btn-primary,
  .cookie-btn-secondary {
    padding: 10px 24px;
  }
}

/* ===== ФИКС ЧЕКБОКСА В ФОРМАХ ===== */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}

.checkbox-label span,
.checkbox-label .policy-link-form {
  display: inline;
  white-space: normal;
}

/* На десктопе — в одну строку */
@media (min-width: 481px) {
  .checkbox-label {
    flex-wrap: nowrap;
  }
  .checkbox-label span {
    white-space: nowrap;
  }
}

/* Выравнивание блоков футера */
.footer-contacts-block {
  text-align: center;
}

.footer-contacts-block .footer-links {
  align-items: center;
}

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

.footer-rekv .footer-email {
  display: inline-block;
}

/* Адаптив — на мобильных всё по центру */
@media (max-width: 768px) {
  .footer-contacts-block,
  .footer-rekv {
    text-align: center;
  }
  .footer-rekv .footer-email {
    display: inline-block;
  }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (ДОПОЛНИТЕЛЬНЫЕ ПРАВКИ) ===== */
@media (max-width: 768px) {
  /* Убираем текст "09:00-22:00 без выходных" */
  .header-contacts .contact-item:first-child {
    display: none;
  }

  /* Шапка при скролле — текст не увеличивается */
  .site-header.scrolled .header-contacts span,
  .site-header.scrolled .header-contacts a {
    font-size: 14px; /* было 23px */
  }

  .site-header.scrolled .header-logo {
    font-size: 16px; /* было 28px */
  }

  /* Преимущества — 2 колонки, уменьшенные карточки */
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .advantage-card {
    padding: 15px 12px;
  }

  .advantage-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }

  .advantage-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .advantage-card p {
    font-size: 11px;
  }

  /* Расстояние между блоками */
  .advantages-screen,
  .services-screen,
  .callback-screen,
  .contract-screen,
  .addresses-screen {
    padding: 40px 0;
  }

  /* Услуги — 2 колонки */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .service-card img {
    height: 150px;
  }

  .service-card h3 {
    font-size: 14px;
    min-height: auto;
    padding: 12px 12px 6px;
  }

  .price {
    font-size: 16px;
    padding: 6px 12px;
    margin: 0 12px 12px 12px;
  }

  /* Контрактный блок — убираем описание */
  .contract-content p {
    display: none;
  }

  .contract-content h2 {
    font-size: 28px;
    text-align: center;
  }

  .contract-btn {
    min-width: auto;
    width: 100%;
    font-size: 18px;
    padding: 12px 20px;
  }
}

/* Для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
  .advantages-grid {
    gap: 10px;
  }

  .advantage-card h3 {
    font-size: 16px;
  }

  .services-grid {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .first-screen {
    position: relative;
    overflow: hidden;
  }

  .fs-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .fs-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
  }

  .fs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .fs-content {
    position: relative;
    z-index: 1;
    padding: 60px 20px;
  }

  /* Убираем лишние отступы */
  .fs-container {
    padding: 0;
  }
}

/* Фикс цен в карточках услуг */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card .price {
  margin-top: auto;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .advantage-card::after,
  .advantage-card.blue-circle::after {
    left: 35px !important;
  }
  .first-screen {
    padding: 65px 0 0;
  }
  .contract-screen {
    position: relative;
    overflow: hidden;
  }

  .contract-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
  }

  .contract-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
    margin: 0;
  }

  .contract-image {
    width: 100%;
    height: 100%;
  }

  .contract-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .contract-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 0;
  }

  .contract-content p {
    display: block; /* показываем описание */
    font-size: 16px;
  }

  .contract-content h2 {
    font-size: 32px;
  }

  .contract-btn {
    min-width: auto;
    width: 100%;
    font-size: 18px;
    padding: 12px 20px;
  }
}

/* Планшеты (768px - 1024px) и телефоны (до 768px) */

/* Планшеты */
@media (max-width: 1024px) and (min-width: 769px) {
  .fs-wrapper {
    flex-direction: column;
    position: relative;
  }

  .fs-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
  }

  .fs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .fs-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 100%;
    padding: 60px 40px;
  }

  /* Контрактный блок */
  .contract-wrapper {
    flex-direction: column;
    position: relative;
  }

  .contract-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    margin: 0;
  }

  .contract-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 100%;
  }

  .contract-content h2 {
    text-align: center;
  }

  .contract-content p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Телефоны */
@media (max-width: 768px) {
  .fs-wrapper {
    flex-direction: column;
    position: relative;
  }

  .fs-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.25;
  }

  .fs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .fs-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 100%;
    padding: 40px 20px;
  }

  .fs-title {
    font-size: 36px;
  }

  .fs-features li {
    font-size: 14px;
    text-align: left;
  }

  /* Контрактный блок */
  .contract-wrapper {
    flex-direction: column;
    position: relative;
    padding: 40px 20px;
  }

  .contract-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.25;
    margin: 0;
  }

  .contract-image {
    width: 100%;
    height: 100%;
  }

  .contract-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .contract-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 100%;
    padding: 20px 0;
  }

  .contract-content h2 {
    font-size: 28px;
    text-align: center;
  }

  .contract-content p {
    font-size: 14px;
    text-align: center;
  }

  .contract-btn {
    width: 100%;
    min-width: auto;
    font-size: 18px;
    padding: 12px 20px;
  }
}

/* Ноутбуки и маленькие десктопы (1025px - 1200px) */
@media (max-width: 1200px) and (min-width: 1025px) {
  .fs-wrapper {
    flex-direction: column;
    position: relative;
  }

  .fs-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
  }

  .fs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .fs-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 100%;
    padding: 60px 40px;
  }

  /* Контрактный блок */
  .contract-wrapper {
    flex-direction: column;
    position: relative;
  }

  .contract-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    margin: 0;
  }

  .contract-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 100%;
  }

  .contract-content h2 {
    text-align: center;
  }

  .contract-content p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1024px) {
  .addresses-content::before {
    display: none;
  }
}
