:root{
  --bg:#303442;
  --bg2:#272427;
  --accent:#F8B251;
  --text:#ffffff;
}

body{
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.hero{
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.10) 62%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.55) 100%),
    url("../images/hero/bg.jpg") center / cover no-repeat;
}

.hero-aside{
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: 100%;
}

.brand-title{
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1;
  font-size: 56px;
}
.brand-sub{
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .95;
  margin-top: .25rem;
  font-size: 16px;
}
.brand-accent{
  height: 8px;
  width: 220px;
  background: var(--accent);
  margin: .75rem 0 0;
}

.hero-h1{
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(44px, 6vw, 140px);
  line-height: 1.05;
  text-shadow: 0px 4px 40px rgba(0,0,0,.55);
}
.hero-h2{
  font-weight: 500;
  font-size: clamp(26px, 4vw, 90px);
  line-height: 1.1;
  text-shadow: 0px 4px 40px rgba(0,0,0,.55);
  margin-top: .2rem;
}
.hero-arrow{ color: var(--accent); }
.hero-note{
  font-size: clamp(18px, 2vw, 50px);
  opacity: .95;
  margin-top: 1.2rem;
}

.phone-pill{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  font-size: clamp(16px, 1.6vw, 22px);
}
.phone-ic{
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius:999px;
  background: var(--accent);
  color:#303442;
  flex: 0 0 auto;
}

.glass-input{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}
.glass-input::placeholder{ color: rgba(255,255,255,.65); }

.btn-accent{
  background: var(--accent);
  border: none;
  color: #303442;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  border-radius: 12px;
  box-shadow: 0px 0px 27px rgba(248, 178, 81, 0.25);
  padding: 18px 20px;
}

.aside-title{
  font-weight:700;
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}
.aside-subtitle{
  font-weight:700;
  font-size: 26px;
  line-height:1.2;
  margin: 0;
}

.link-row{
  display:flex; align-items:center; gap:14px;
  color: var(--text);
  text-decoration:none;
  opacity:.95;
}
.link-row:hover{ opacity:1; }
.link-ic{
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius:999px;
  background:#fff;
  color:#111;
  flex:0 0 auto;
}
.link-ic.accent{
  background: transparent;
  border: 2px solid rgba(255,255,255,.35);
  color: var(--accent);
}

.tiny-note{ font-size:10px; opacity:.95; }
.small-check{ font-size:14px; }
.accent{ color: var(--accent); }

.hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

/* PLANS */
.plans{
  background: var(--bg2);
  padding: clamp(40px, 5vw, 90px) 0;
}
.plans-title{
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: .04em;
  font-size: clamp(34px, 5vw, 80px);
  margin-bottom: clamp(24px, 3vw, 48px);
}

.tabline .nav-link{
  color: #fff;
  font-weight: 500;
  padding: 0;
  margin-right: 60px;
  border: none;
  background: transparent;
}
.tabline .nav-link.active{
  color: var(--accent);
  font-weight: 700;
  position: relative;
}
.tabline .nav-link.active::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-10px;
  border-bottom: 2px solid var(--accent);
}

.plan-card{
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  height:100%;
  display:flex;
  flex-direction:column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
.plan-card img{
  width:100%;
  height: 220px;
  object-fit: contain;
  background:#f3f3f3;
  padding:16px;
}
.plan-card-body{
  padding:20px;
  display:flex;
  flex-direction:column;
  flex-grow:1;
}
.plan-card-title{
  font-weight:600;
  font-size:20px;
  color:#303442;
  margin-bottom:2px;
}
.plan-card-area{
  font-weight:700;
  font-size:26px;
  color:#303442;
  margin: 6px 0 10px;
}
.plan-card-text{
  display: none;
  font-size:14px;
  line-height:1.4;
  color:#555;
  margin-bottom:auto;
}
.btn-plan{
  margin-top: 16px;
  background: var(--accent);
  color: #303442;
  border: none;
  border-radius: 10px;
  padding: 14px 0;
  font-weight: 600;
  text-transform: uppercase;
  width: 100%;
}

/* MODAL */
.modal-glass{
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.modal-title{
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
}
.modal-close{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
}
.modal-planline{
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.modal-planline b{ color: var(--accent); }
.modal-backdrop.show{ opacity: .75; }

/* TOAST */
.toast-holder{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
}
.ui-toast{
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 14px;
  min-width: 260px;
}

@media (max-width: 991.98px){
  .hero{
    background:
      linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.10) 58%, rgba(0,0,0,.60) 58%, rgba(0,0,0,.60) 100%),
      url("../images/hero/bg.jpg") center / cover no-repeat;
  }
  .tabline .nav-link{ margin-right: 28px; }
}
/* ===== CUSTOM CHECKBOX (FIGMA EXPORT) ===== */

.form-check{
  position: relative;
  padding-left: 28px;
}

.form-check-input{
  position: absolute;
  left: 0;
  top: 2px;

  width: 16px;
  height: 16px;

  margin: 0;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  background: transparent;

  border: 0.55px solid #FFFFFF;
  border-radius: 6px;
}

/* inner square */
.form-check-input::before{
  content: "";
  position: absolute;
  left: 4.25px;
  top: 4.25px;

  width: 7.47px;
  height: 7.47px;

  background: #F8B251;
  border-radius: 2.76px;

  opacity: 0;
  transform: scale(0.6);
  transition: opacity .15s ease, transform .15s ease;
}

/* checked state */
.form-check-input:checked::before{
  opacity: 1;
  transform: scale(1);
}

/* focus */
.form-check-input:focus{
  outline: none;
  box-shadow: 0 0 0 2px rgba(248, 178, 81, 0.35);
}

/* label */
.form-check-label{
  cursor: pointer;
  user-select: none;
}
/* FIX btn-plan hover */
.btn-plan{
  background: var(--accent);
  color: #303442;
}

.btn-plan:hover,
.btn-plan:focus,
.btn-plan:active{
  background: var(--accent) !important;
  color: #303442 !important;
  box-shadow: 0 0 0 0 transparent;
}
.btn-plan:hover{
  filter: brightness(0.95);
  transform: translateY(-1px);
}
.btn-accent{
  background: var(--accent);
  color: #303442;
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active{
  background: var(--accent) !important;
  color: #303442 !important;
  box-shadow: none;
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.form-check-input:checked{
  background-color: transparent !important;
  border-color: #F8B251 !important;
  box-shadow: 0 0 0 1px rgba(248,178,81,.35);
}

/* ===== Modal layout with image ===== */
.modal-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* desktop: image left, form right */
@media (min-width: 992px){
  .modal-grid{
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
    gap: 26px;
  }
}

/* image block */
.modal-media{
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.modal-plan-img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  padding: 14px;
  max-height: 36vh; /* мобилка */
}

@media (min-width: 992px){
  .modal-plan-img{
    max-height: 62vh; /* десктоп */
  }
}

/* чтобы форма всегда помещалась в экран */
#requestModal .modal-dialog{
  margin: 12px auto;
}
#requestModal .modal-content{
  max-height: calc(100vh - 24px);
}
#requestModal .modal-body{
  overflow: auto; /* если мало места — скролл внутри */
}
/* ===== GALLERY ===== */
.gallery{
  background: var(--bg2);
  padding: clamp(40px, 5vw, 90px) 0;
}

.gallery-swiper{
  padding-bottom: 38px;
}

.gallery-item{
  display:block;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.gallery-item img{
  width:100%;
  height: 260px;
  object-fit: cover;
  display:block;
}

@media (max-width: 991.98px){
  .gallery-item img{ height: 220px; }
}

/* стрелки/пагинация — под стиль сайта */
.gallery .swiper-button-prev,
.gallery .swiper-button-next{
  color: var(--accent);
}

.gallery .swiper-pagination-bullet{
  background: rgba(255,255,255,.35);
  opacity: 1;
}

.gallery .swiper-pagination-bullet-active{
  background: var(--accent);
}
/* ===== GALLERY LIGHTBOX (fullscreen) ===== */
.gallery-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  display: none;
  padding: 18px;
}

.gallery-lightbox.is-open{
  display: block;
}

.gallery-lightbox-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox .gallery-lightbox-swiper{
  width: 100%;
  height: 100%;
}

.gallery-lightbox .swiper-slide{
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox img{
  max-width: 100%;
  max-height: calc(100vh - 60px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

.gallery-lightbox .swiper-button-prev,
.gallery-lightbox .swiper-button-next{
  color: var(--accent);
}

.gallery-lightbox .swiper-pagination-bullet{
  background: rgba(255,255,255,.35);
  opacity: 1;
}
.gallery-lightbox .swiper-pagination-bullet-active{
  background: var(--accent);
}
/* Telegram icon (Bootstrap Icons) */
.link-ic i{
  font-size: 20px;
  line-height: 1;
  color: #229ED9; /* фирменный Telegram */
}
/* ===== Sidebar icons unified ===== */
.link-ic{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  color: #111;
  flex: 0 0 auto;
  transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}

.link-ic i{
  font-size: 20px;
  line-height: 1;
}

/* brand colors (можно менять) */
.link-ic--tg i{ color: #229ED9; }
.link-ic--wa i{ color: #25D366; }
.link-ic--chat i{ color: var(--accent); }

/* hover effect */
.link-row:hover .link-ic{
  transform: translateY(-1px);
  filter: brightness(0.96);
  background: rgba(255,255,255,1);
  border-color: rgba(248,178,81,.35);
}

.link-row:active .link-ic{
  transform: translateY(0px);
}

/* === Added: popup + prices + plan images === */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.popup-overlay.show {
  opacity: 1;
}

.popup-center {
  background: #4CAF50;
  color: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  font-size: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  text-align: center;
  min-width: 280px;
}

.popup-overlay.show .popup-center {
  transform: scale(1);
}

.popup-center.error {
  background: #e74c3c;
}

.popup-text {
  margin-bottom: 20px;
}

.popup-close-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  background: #ffffff;
  color: #333;
}

.popup-close-btn:hover {
  opacity: 0.9;
}

/* ---- Price display (CSV) ---- */
.price-wrap{
  display:flex;
  gap:10px;
  align-items:baseline;
}
.old-price{
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 0.95em;
}
.price{
  font-weight: 700;
}
