:root {
      --main-color: #2189a0;
      --secondary-color: #f6e8c3;
      --accent: #e17000;
      --text: #333;
      --header-height: 60px;
    }

    * { margin: 0; padding: 0; box-sizing: border-box;}
    body {
      font-family: 'Segoe UI', Arial, sans-serif;
      color: var(--text);
      background: #f8fafb;
      min-height: 100vh;
    }

#contractBtn {
    background: linear-gradient(90deg, #0894d6, #5bf9c9);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(8,148,214,0.13);
    transition: background 0.2s, box-shadow 0.2s;
}
#contractBtn:hover {
    background: linear-gradient(90deg, #006996, #31d3a8);
    box-shadow: 0 4px 16px rgba(8,148,214,0.18);
}

#bankInfo {
    margin-top: 18px;
    background: #f4fafd;
    border-left: 5px solid #0894d6;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(8,148,214,0.09);
    font-size: 16px;
    max-width: 410px;
    animation: slideDown 0.3s ease;
}
#bankInfo h3 { margin-top: 0; color: #0894d6; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px);}
    to { opacity: 1; transform: translateY(0);}
}
    
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.photo-item img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 18px rgba(50,70,160,0.10);
  margin-bottom: 10px;
}
.photo-caption {
  font-size: 1rem;
  color: #243861;
  text-align: center;
  min-height: 32px;
}

    
    .advantages-simple ul {
  display: inline-block;
  padding: 0;
  margin: 0;
  text-align: center; /* добавьте это */
}
.advantages-simple li {
  margin-bottom: 10px;
  font-size: 1.12rem;
  text-align: center; /* добавьте это */
}
.advantages-simple {
  padding: 32px 0;
  background: #f8fafd;
  text-align: center;
}
.advantages-simple h2 {
  margin-bottom: 20px;
  font-size: 1.7rem;
  font-weight: 600;
}
.advantages-simple ul {
  display: inline-block;
  padding: 0;
  margin: 0;
  text-align: center;       /* Центрирование текста в списке! */
}
.advantages-simple li {
  margin-bottom: 10px;
  font-size: 1.12rem;
  text-align: center;       /* Центрирование текста пунктов */
}
.map-container {
  max-width: 800px;
  margin: 32px auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(30, 98, 180, 0.09);
}
.contacts-map h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

    header {
      height: var(--header-height);
      background: linear-gradient(90deg, var(--main-color) 60%, var(--accent));
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      position: sticky;
      top: 0;
      z-index: 10;
      box-shadow: 0 2px 10px rgba(30,60,90,0.05);
    }

    .logo-anim {
      font-size: 2rem;
      color: #fff;
      font-weight: bold;
      letter-spacing: 2px;
      animation: bounce 1.4s infinite alternate;
      text-shadow: 2px 2px 8px #15656a30;
    }
    @keyframes bounce {
      from { transform: translateY(0);}
      to { transform: translateY(-10px);}
    }
    nav a {
      margin-left: 24px;
      color: #fff;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s;
    }
    nav a:hover { color: var(--secondary-color); }

    .hero {
      min-height: 45vh;
      background: url('https://fotos.uz/wp-content/uploads/2024/01/809a6180_1_2_3_4_5_6_optimizer.webp') center/cover no-repeat;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .hero-overlay {
      position: absolute;
      top:0; left:0; right:0; bottom:0;
      background: rgba(34, 139, 160, 0.55);
    }
    .hero-content {
      position: relative;
      z-index: 2;
      color: #fff;
      padding: 60px 10px 30px 10px;
      animation: fadein 1.3s forwards;
      opacity: 0;
      animation-delay: 0.6s;
    }
    @keyframes fadein {
      to {opacity: 1;}
    }

    .hero-content h1 {
      font-size: 2.7rem;
      margin-bottom: 12px;
    }
    .hero-content p {
      font-size: 1.3rem;
      max-width: 700px;
      margin: 0 auto;
    }
    .section {
      max-width: 1100px;
      margin: 36px auto;
      background: #fff;
      border-radius: 18px;
      padding: 30px 18px 38px 18px;
      box-shadow: 0 4px 24px #0001;
      animation: fadein-up 0.8s;
    }
    @keyframes fadein-up {
      from { transform: translateY(30px); opacity: 0;}
      to   { transform: translateY(0); opacity: 1;}
    }
    .section:not(:first-of-type) { margin-top: 28px; }
    .section h2 {
      color: var(--main-color);
      margin-bottom: 12px;
      letter-spacing: 0.8px;
    }
    .photos-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 8px;
      justify-content: center;
    }
    .photos-grid img {
      width: 220px;
      height: 150px;
      object-fit: cover;
      border-radius: 10px;
      transition: transform .3s;
      box-shadow: 0 2px 16px #358fc136;
    }
    .photos-grid img:hover {
      transform: scale(1.045) rotate(-2deg);
      box-shadow: 0 6px 28px #2189a045;
    }
    .videos-row {
      display: flex;
      justify-content: center;
      gap: 28px;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }
    .videos-row video, .videos-row iframe {
      width: 340px;
      height: 192px;
      background: #222;
      border-radius: 10px;
      box-shadow: 0 3px 18px #e1700033;
    }

    .info-list {
      display: flex;
      flex-wrap: wrap;
      gap: 26px;
      margin-top: 10px;
    }
    .info-list ul {
      flex: 1 1 250px;
      list-style: none;
      padding-left: 0;
      color: #444;
      font-size: 1.06rem;
    }

    .about-company {
      background: var(--secondary-color);
      border-radius: 16px;
      box-shadow: 0 2px 8px #eabd0040;
      padding: 18px;
      margin-bottom: 24px;
    }
    .about-company h3 {
      color: var(--accent);
      margin-bottom: 8px;
    }
    /* FOOTER */
    footer {
      background: var(--main-color);
      color: #fff;
      margin-top: 44px;
      padding: 28px 12px 13px 12px;
      font-size: 0.96rem;
    }
    .footer-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: start;
      gap: 18px;
      max-width: 1100px;
      margin: 0 auto;
    }
    .footer-left, .footer-right {
      flex: 1 1 200px;
      margin-bottom: 10px;
    }
    .footer-socials {
      margin: 8px 0;
    }
    .footer-socials a {
      display: inline-block;
      padding: 0 11px;
      font-size: 1.34em;
      color: #fff;
      transition: color 0.22s;
    }
    .footer-socials a:hover { color: var(--accent);}
    .footer-bottom {
      text-align: right;
      font-size: 0.93em;
      color: #cce7ee;
      padding-top: 15px;
      opacity: 0.9;
    }

    .tour-section {
  text-align: center;
  margin-bottom: 2em;
}

/* Кнопка на странице */
.tour-toggle-btn {
  background: #2376ae;
  color: #fff;
  border: none;
  padding: 1em 2em;
  font-size: 1.1em;
  border-radius: 8px;
  cursor: pointer;
  margin: 20px 0;
  transition: background 0.2s;
}
.tour-toggle-btn:hover { background: #195c8c; }



 /*поделится*/

.footer-socials {
    position: relative;
}

/* Красивая прозрачная кнопка */
.share-btn {
    padding: 9px 25px;
    border: 1.5px solid #2979ff;
    background: rgba(255,255,255,0.15);
    color: #2979ff;
    border-radius: 40px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(41,121,255,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(6px);
}
.share-btn:hover {
    background: #2979ff;
    color: #fff;
    box-shadow: 0 4px 24px rgba(41,121,255,0.12);
}

.share-popup {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    min-width: 180px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border: 1.5px solid #2979ff22;
    border-radius: 16px;
    box-shadow: 0 6px 32px rgba(41,121,255,0.10);
    padding: 16px;
    z-index: 999;
    animation: fadeIn 0.14s;
}

/* Плавное появление popup */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px);}
    to   { opacity: 1; transform: none;}
}

.share-popup a, .share-popup button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 0;
    color: #2979ff;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 30px;
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s;
}
.share-popup a:hover,
.share-popup button:hover {
    background: #f1f6ff;
    color: #174489;
}
.share-popup button { color: #2979ff; }

/* Модальное окно и его фон */
.tour-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  justify-content: center;
  align-items: center;
}
.tour-modal.active {
  display: flex;
  animation: fadeInBg 0.4s;
}
.tour-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(40,60,80,0.32);
  backdrop-filter: blur(8px);
  z-index: 1;
  transition: background 0.4s;
}

/* Карточка */
.tour-details {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(24,50,90,0.23);
  padding: 2em 2.5em 2em 2.5em;
  max-width: 450px;
  width: 88vw;
  animation: scaleIn 0.35s;
}
@keyframes scaleIn {
  from {transform: scale(0.7); opacity:0;}
  to {transform: scale(1); opacity:1;}
}
@keyframes fadeInBg {
  from {opacity:0;}
  to {opacity:1;}
}
/* Кнопка закрытия */
.tour-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #3768a0;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  transition: color 0.2s;
}
.tour-close-btn:hover {
  color: #bb2b2b;
}

/* Чтобы вложенный список не ломал разметку */
.tour-details > ul > ul {
  margin-top: 0.2em;
  margin-bottom: .7em;
  margin-left: 1.1em;
  list-style: disc;
}

.tour-details ul {
  margin-left: 1.2em;
  margin-bottom: 0.8em;
} 

/*видео формат*/
.videos-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.video-full {
  flex: 1 1 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}





    /* ADAPTIVE */
    @media (max-width: 780px) {
      .photos-grid, .videos-row { flex-direction: column; align-items: center;}
      .footer-row { flex-direction: column; gap:6px;}
      .info-list { flex-direction: column;}
    }
    @media (max-width: 480px) {
      .hero-content h1 { font-size: 1.5rem;}
      header { flex-direction: column; height: auto; padding-bottom: 10px;}
      nav a { margin: 0 7px;}
      .photos-grid img, .videos-row video, .videos-row iframe { width: 99vw; max-width: 98vw; height: 35vw; min-height: 104px; }
      .section { padding: 13px 7px 20px 7px;}
    }