/* Существующие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
*::-webkit-scrollbar {
   height: 4px;
}
*::-webkit-scrollbar-thumb {
   background: var(--border-color);
   border-radius: 2px;
}
html {
  font-size: 18px;
}
body {
  font-family: "Pliant", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: #ffffff;
  line-height: normal;
  min-height: 100vh;
  position: relative;
  background-color: #0B0E19;
  padding: 0px 100px;
  box-sizing: border-box;
}
.main_bg {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  background-image: url(images/background.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
  filter: blur(10px);
}
.main_bg::after {
  position: absolute;
  content: '';
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(11,14,25, 70%);
}
.circle_bg {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}
.circle_bg::after {
  position: absolute;
  content: '';
  left: 100px;
  top: 50%;
  height: calc(100vh + 320px);
  aspect-ratio: 1/1;
  background-color: rgba(11,14,25, 95%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(200px);
}
.page-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0px auto;
}
header {
  position: relative;
}
.header-content {
  width: 100%;
  display: grid;
  grid-template-areas:
  'logo phone'
  'logo address';
  align-items: center;
  justify-content: space-between;
  justify-items: end;
  padding: 34px 0px;
  box-sizing: border-box;
  row-gap: 8px;
}
header .logo {
  grid-area: logo;
}
header .logo img {
  width: 208px;
  height: auto;
}
header .phone {
  grid-area: phone;
  color: #ffffff;
  text-decoration: none;
}
header .address {
  grid-area: address;
  display: flex;
  align-items: center;
  gap: 12px;
}
header .address svg {
  width: 16px;
  height: auto;
  stroke: #ffffff;
}
header .line {
  grid-area: line;
  position: absolute;
  left: -100px;
  top: 100%;
  width: calc(100% + 200px);
  height: 10px;
  transform: translate(0px, -50%);
  overflow: hidden;
}
header .line::before {
  position: absolute;
  content: '';
  left: 0px;
  top: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #efefef00, #ffffff, #efefef00);
  animation: line 10s ease-in-out infinite;
  transform: translate(0px, -50%);
}
@keyframes line {
  0% {
    opacity: 1;
    filter: blur(0px);
  }
  25% {
    opacity: 0;
    filter: blur(3px);
  }
  50% {
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
  }
}
header .line::after {
  position: absolute;
  content: '';
  left: 0px;
  top: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #efefef00, #ffffff, #efefef00);
  transform: translate(-100%, -50%);
  animation: shimmer 10s ease-in-out infinite;
}
@keyframes shimmer {
  0% {
    transform: translate(-100%, -50%);
  }
  50% {
    transform: translate(100%, -50%);
  }
  100% {
    transform: translate(100%, -50%);
  }
}

h1 {
  margin-top: 50px;
  margin-bottom: 40px;
  font-size: 64px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 900;
  text-shadow: 0px 8px 15px rgba(249, 115, 22, 0.25);
}
h1.main_title {
  grid-area: main_title;
}
h1.main_title .crutch {
  letter-spacing: 0.08em;
}
h1.main_title .small {
  text-transform: none;
}
h1.main_title .space {
  letter-spacing: 0.2em;
}
.yellow-pen-line {
  grid-area: yellow_line;
  width: 340px;
  height: 4px;
  background: linear-gradient(to right, #F97316, #FFA81B);
  position: relative;
  clip-path: polygon(calc(100% - 23px) 100%, 0% 100%, 0% 0%, calc(100% - 23px) 0%, 100% 50%);
}
h2 {
  font-style: italic;
  font-weight: 500;
  font-size: 42px;
  line-height: normal;
  color: #F2F2F2;
  margin-top: 36px;
  margin-bottom: 40px;
}
h2.sub_title {
  grid-area: sub_title;
}
h2.sub_title .space {
  letter-spacing: 0.2em;
}
h2.orange {
  margin-top: 0px;
  margin-bottom: 38px;
  font-style: italic;
  font-weight: 800;
  font-size: 48px;
  line-height: 58px;
  color: #F97316;
  text-shadow: 3px 4px 12px rgba(249, 115, 22, 0.4);
}
h2.orange_title {
  grid-area: orange_title;
}
.buttons-group {
  grid-area: buttons;
  display: flex;
  gap: 32px;
}
.button-default {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0px 20px;
  box-sizing: border-box;
  border-radius: 12px;
  background-color: #35363D;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: normal;
  color: #FFFFFF;
  cursor: pointer;
  border: none;
  font-family: "Pliant", sans-serif;
  transition: opacity 0.2s;
  text-decoration: none;
}
.button-default:hover {
  opacity: 0.9;
}
.button-default.orange {
  gap: 12px;
  background-color: #F97316;
  padding: 0px 28px;
}
.button-default.orange svg {
  width: 17px;
  height: auto;
  stroke: #ffffff;
}
h3 {
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 38px;
  color: #FFFFFF;
}
.discont-card {
  grid-area: card;
  justify-self: start;
  margin-top: 64px;
  display: inline-block;
  background: linear-gradient(254.11deg, rgba(48, 49, 53, 0.4) 3.74%, rgba(37, 39, 51, 0.4) 96.26%);
  border: 2px solid #484848;
  border-radius: 24px;
  padding: 13px 21px 12px 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.discont-card::before {
  position: absolute;
  content: '';
  left: -30px;
  bottom: -120px;
  width: 145px;
  height: 145px;
  background-color: #F97316;
  filter: blur(45px);
  z-index: -1;
}
.discont-card::after {
  position: absolute;
  content: '';
  top: -73px;
  right: -73px;
  width: 190px;
  height: 146px;
  background-color: #F97316;
  filter: blur(45px);
  z-index: -1;
}
.discont-card .row {
  display: flex;
  align-items: flex-end;
  gap: 95px;
}
.discont-card .date {
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: #8D8D8D;
  margin-bottom: 19px;
}
.discont-card .discont {
  font-weight: 600;
  font-size: 92px;
  line-height: 110px;
  color: #F97316;
  animation: 3s discont ease-in-out infinite;
}
@keyframes discont {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1) rotate(5deg);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
.content-grid {
  display: grid;
  grid-template-areas:
  'main_title main_title'
  'yellow_line yellow_line'
  'sub_title sub_title'
  'orange_title cable_img'
  'buttons cable_img'
  'card cable_img'
  '. cable_img';
  grid-template-rows: auto auto auto auto auto auto 1fr;
}
.cable_img {
  grid-area: cable_img;
  justify-self: end;
  margin-top: 45px;
  width: 100%;
  max-width: 800px;
  height: auto;
  transform: translate(77px, 0px);
  pointer-events: none;
  animation: levitation 3s ease-in-out infinite;
}
@keyframes levitation {
    0% {
        transform: translate(77px, -10px);
    }
    50% {
        transform: translate(77px, -30px);
    }
    100% {
        transform: translate(77px, -10px);
    }
}

/* ================== МОДАЛЬНОЕ ОКНО ================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}
.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-window {
  background: linear-gradient(145deg, #1E2030 0%, #151722 100%);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 460px;
  width: 90%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 30px rgba(249, 115, 22, 0.15);
  transform: translateY(20px);
  transition: transform 0.2s;
}
.modal-overlay.active .modal-window {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #8D8D8D;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 5px;
}
.modal-close:hover {
  color: #F97316;
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.modal-subtitle {
  font-size: 16px;
  color: #8D8D8D;
  margin-bottom: 28px;
  font-weight: 400;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 22px;
}
.form-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #B0B0B0;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-input {
  width: 100%;
  height: 52px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 18px;
  font-size: 18px;
  font-family: "Pliant", sans-serif;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus {
  border-color: #F97316;
  background: rgba(249, 115, 22, 0.05);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.1);
}
.form-input::placeholder {
  color: #5A5A5A;
  font-weight: 400;
}

.submit-btn {
  width: 100%;
  height: 56px;
  background: #F97316;
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 600;
  font-family: "Pliant", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
}
.submit-btn:hover {
  background: #FF8C33;
}
.submit-btn:active {
  transform: scale(0.98);
}

.success-message {
  display: none;
  text-align: center;
  padding: 20px 0 10px;
}
.success-message .check-icon {
  font-size: 48px;
  color: #F97316;
  margin-bottom: 16px;
}
.success-message .success-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #FFFFFF;
}
.success-message .success-text {
  color: #8D8D8D;
  font-size: 16px;
}

.error-text {
  color: #FF4D4D;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

/* Адаптив */
@media (max-width: 1500px) {
  h1 { font-size: 52px; }
  h2 { font-size: 38px; }
  h2.orange { font-size: 42px; }
  h3 { font-size: 24px; }
  .discont-card .discont { font-size: 78px; }
}

@media (max-width: 1000px) {
  html { font-size: 16px; }
  body { padding: 0px 15px; }
  .circle_bg::after {
    height: calc(100% - 62px);
    left: -15px;
    top: auto;
    bottom: 0px;
    transform: translate(-50%, 67px);
  }
  .header-content {
    padding: 30px 0px;
    grid-template-areas: 'logo phone' 'line line' 'address address';
    justify-items: unset;
  }
  header .logo img { width: 161px; }
  header .line { position: static; width: 100%; }
  header .address { margin-left: 16px; }
  .content-grid {
    grid-template-areas: 'cable_img' 'main_title' 'yellow_line' 'sub_title' 'orange_title' 'card' 'buttons';
    grid-template-rows: unset;
  }
  .cable_img { width: 100%; justify-self: center; transform: none; animation: levitation_mob 3s ease-in-out infinite; }
  @keyframes levitation_mob {
      0% {
          transform: translate(0px, -10px);
      }
      50% {
          transform: translate(0px, -30px);
      }
      100% {
          transform: translate(0px, -10px);
      }
  }

  h1 { font-size: 36px; margin-top: 45px; margin-bottom: 20px; }
  h2 { font-size: 18px; margin-top: 20px; margin-bottom: 20px; }
  h2.orange { font-size: 28px; margin-bottom: 18px; }
  .discont-card {
    width: 100%; margin-top: 0px; margin-bottom: 22px;
    display: flex; align-items: center; justify-content: space-between;
    border-radius: 12px;
  }
  h3 { font-size: 20px; line-height: 150%; }
  .discont-card .row { flex-direction: column-reverse; gap: 2px; }
  .discont-card .date { font-size: 10px; margin-bottom: 0px; }
  .discont-card .discont { font-size: 32px; line-height: normal; }
  .buttons-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .button-default { width: 100%; padding: 0px 15px; font-size: 16px; }
  .content-grid.nocard h2.orange_title { margin-bottom: 40px; }
  .content-grid.nocard .buttons-group { grid-template-columns: 1fr; }
  .discont-card::after { width: 112px; height: 85px; top: -54px; right: -79px; }

  .modal-window { padding: 30px 20px; }
  .modal-title { font-size: 24px; }
}
