* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Rubik', sans-serif;
    }

    body {
      background-color: #f6f9ff;
      color: #222;
      line-height: 1.5;
      padding-top: 50px; /* высота твоего top-bar */
    }

    .wrapper {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem;
    }

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 2rem;
    }

    .logo {
      display: flex;
      flex-direction: column;
    }

    .logo h1 {
      font-size: 2.5rem;
      color: #1c1c1c;
      line-height: 1;
    }

    .text-small {
      font-size: 0.9rem;
      color: #555;
    }

    .contacts {
      text-align: right;
    }

    .social-icons {
      display: flex;
      justify-content: flex-end;
      gap: 0.8rem;
      margin-bottom: 0.1rem;
    }

    .social-icons img {
      width: 25px;
      height: 25px;
      display: block;
      
    }

    h2 {
      margin: 2rem 0 1rem;
      color: #3e4a6e;
      font-size: 2rem;
      text-align: center;
    }

  

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 1.5rem;
      margin-top: 1.5rem;
    }

    .service-box {
      background: #fff;
      border-radius: 16px;
      padding: 1.5rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      transition: transform 0.3s ease, background-color 0.3s ease;
      cursor: default;
      height: 150px;
    }

    .service-box:hover {
      transform: translateY(-5px);
      background-color: #eef3ff;
    }

    .service-box img {
      width: 50px;
      height: 50px;
      margin-bottom: 1rem;
      object-fit: contain;
    }

    .service-box p {
      font-size: 1rem;
      color: #333;
      user-select: none;
    }

    .service-note {
      margin-top: 2rem;
      text-align: center;
      color: #666;
      font-size: 0.95rem;
    }

    .steps-flow {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
      align-items: center;
      margin-top: 2rem;
    }

    .step-box {
      background: #fff;
      border-radius: 16px;
      padding: 1rem 1.5rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      text-align: center;
      font-size: 1rem;
      color: #333;
      max-width: 220px;
      flex: 1 1 auto;
      transition: background-color 0.3s ease, transform 0.3s ease;
      user-select: none;
      cursor: default;
    }

    .step-box:hover {
      background-color: #eef3ff;
      transform: translateY(-3px);
    }

    .arrow {
      font-size: 2rem;
      color: #888;
      user-select: none;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .reviews-block {
      max-width: 800px;
      margin: 0 auto;
      text-align: center;
    }



    .reviews-images {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-bottom: 10px;
      flex-wrap: wrap;
    }

    .reviews-images a {
      display: block;
      flex: 1 1 280px;
      max-width: 280px;
    }

    .reviews-images img {
      width: 100%;
      height: auto;
      border-radius: 6px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      cursor: pointer;
      transition: transform 0.3s ease;
      display: block;
    }

    .reviews-images img:hover {
      transform: scale(1.05);
    }

    .reviews-links {
      display: flex;
      justify-content: center;
      gap: 30px;
      flex-wrap: wrap;
      margin-top: 0.5rem;
    }

    .reviews-links a {
      color: #0077cc;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.3s ease;
    }

    .reviews-links a:hover {
      color: #004a80;
    }

    .biglogo {
      width: 30%;
    }

    /* БЛОК ЦЕН НАЧАЛО */
    .iphone-price-block{
        max-width:1200px;
        margin:0 auto;
        padding:30px 15px;
    }

    .models-wrapper{
        background:#fff;
        border-radius:20px;
        padding:30px;
        box-shadow:0 5px 20px rgba(0,0,0,.08);
        margin-bottom:30px;
    }

    .models-grid{
        display:grid;
        grid-template-columns:repeat(5,1fr);
        gap:18px 24px;
    }

    .model-btn{
        background:none;
        border:none;
        padding:0 0 8px;
        text-align:left;
        cursor:pointer;

        color:#6b7280;
        font-size:15px;
        font-weight:500;

        position:relative;
        transition:.2s;
    }

    .model-btn:hover{
        color:#111827;
    }

    .model-btn::after{
        content:"";
        position:absolute;
        left:0;
        bottom:0;
        width:0;
        height:2px;
        background:#2563eb;
        transition:.25s;
    }

    .model-btn.active{
        color:#111827;
        font-weight:600;
    }

    .model-btn.active::after{
        width:100%;
    }

    .selected-model{
        margin-bottom:20px;
        font-size:32px;
        font-weight:700;
    }

    .services-list{
        background:#fff;
        border-radius:20px;
        overflow:hidden;
        box-shadow:0 5px 20px rgba(0,0,0,.08);
    }

    .price-row{
        display:flex;
        justify-content:space-between;
        gap:20px;
        padding:22px 25px;
        border-bottom:1px solid #eee;
    }

    .price-row:last-child{
        border-bottom:none;
    }

    .service-title{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:18px;
    font-weight:200;
    margin-bottom:5px;

}

.tooltip{
    position:relative;

    width:18px;
    height:18px;

    border-radius:50%;

    background:#e5e7eb;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:12px;
    font-weight:700;

    color:#666;
    cursor:help;

    flex-shrink:0;
}

.tooltip-text{
    position:absolute;

    left:50%;
    top:130%;

    transform:translateX(-50%);

    min-width:250px;
    max-width:300px;

    background:#111827;
    color:#fff;

    padding:12px;

    border-radius:10px;

    font-size:13px;
    font-weight:400;
    line-height:1.5;

    opacity:0;
    visibility:hidden;

    transition:.2s;

    z-index:999;
}

.tooltip:hover .tooltip-text{
    opacity:1;
    visibility:visible;
}

    .service-desc{
        font-size:14px;
        color:#6b7280;
    }

    .service-price{
        color:#444;
        font-size:17px;
        font-weight:100;
        white-space:nowrap;
    }
    /* БЛОК ЦЕН КОНЕЦ */

    .carousel-wrapper {
      width: 60%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 0;
    }

    .swiper {
      width: 100%;
      padding-bottom: 5rem;
      position: relative;
    }

    .swiper-slide {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
}

.swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: 0.75rem;
    display: block;
}

.mySwiper {
    max-width: 1200px;
}

.swiper-slide {
    max-height: 700px;
}

    .swiper-button-prev,
    .swiper-button-next {
      color: #2563eb;
      width: 2.5rem;
      height: 2.5rem;
      bottom: 1rem;
      top: auto;
      pointer-events: auto;
    }

    .swiper-button-prev { left: 0.5rem; }
    .swiper-button-next { right: 0.5rem; }

    .swiper-pagination {
      bottom: 1rem !important;
      left: 50% !important;
      transform: translateX(-50%);
      display: flex;
      justify-content: center;
      align-items: center;
      pointer-events: auto;
    }

    .swiper-pagination-bullet-active {
      background: #2563eb;
    }

    .open-modal {
      display: inline-block;
      margin: 0.5em;
      cursor: pointer;
      color: #007bff;
      text-decoration: none;
      font-size: 1rem;
    }

    /* Подложка */
    .modal-overlay {
      position: fixed;
      inset: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      background: rgba(0, 0, 0, 0.5);
      padding: 20px;
      z-index: 1000;

      /* Анимация */
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    /* Активное состояние */
    .modal-overlay.show {
      opacity: 1;
      pointer-events: auto;
    }

    .modal {
      background: #fff;
      border-radius: 14px;
      padding: 1.5em;
      max-width: 400px;
      width: 100%;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
      position: relative;
      box-sizing: border-box;

      /* Анимация */
      transform: translateY(30px);
      opacity: 0;
      transition: all 0.3s ease;
    }

    .modal-overlay.show .modal {
      transform: translateY(0);
      opacity: 1;
    }

    .modal-close {
      position: absolute;
      top: 12px;
      right: 16px;
      font-size: 28px;
      line-height: 1;
      background: none;
      border: none;
      color: #555;
      cursor: pointer;
      padding: 5px;
    }

    .modal h2 {
      margin-top: 1em;
      font-size: 1.3em;
    }

    .modal p {
      font-size: 1em;
      line-height: 1.5;
    }

    .text-block p {
      margin-bottom: 1em; /* или 16px */
    }

    @media (max-width: 480px) {
      .service-box {
        height: 150px;
      }
      
      .modal {
        padding: 1.2em;
      }
      .modal h2 {
        font-size: 1.1em;
      }
      .modal p {
        font-size: 0.95em;
      }
      .modal-close {
        font-size: 26px;
        top: 10px;
        right: 12px;
      }
      .models-grid{
        grid-template-columns:1fr;
      }
    }
@media(max-width:992px){

    .models-grid{
        grid-template-columns:repeat(4,1fr);
    }

}
    @media (max-width: 768px) {


.tooltip-text{

        left:auto;
        right:0;

        transform:none;

        min-width:220px;
        max-width:280px;

        top:130%;
        bottom:auto;

    }

      .service-box {
        height: 150px;
      }

      .about {
        flex-direction: column;
        align-items: center;
        text-align: left;
      }

       .models-grid{
              grid-template-columns:repeat(2,1fr);
          }

          .price-row{
              flex-direction:column;
              gap:10px;
          }

          .selected-model{
              font-size:24px;
          }


      .steps-flow {
        flex-direction: column;
      }

      .arrow {
        display: block;
        transform: rotate(90deg);
        margin: 0.5rem 0;
      }

      .text-small {
        font-size: 0.7rem;
      }

      .carousel-wrapper {
        width: 100%;
        padding: 1rem 0;
      }
    }



.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* новый блок справа */
.right-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* телефон */
.phone {
  text-decoration: none;
}

.phone:hover {
  color: #007bff;
}

/* соцсети */
.socials a {
  text-decoration: none;
  color: #555;
  margin-left: 10px;
  transition: 0.2s;
}

.socials a:hover {
  color: #007bff;
}

.seo-copy {
  margin-top: 10px;
  line-height: 1.6;
}

.otziv {
    display: flex;
    align-items: center;
    gap: 8px;
    
}

.reviews-text {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    position: relative;
    top: -3px;
}

.arrow {
    font-size: 26px;
    color: #007aff;
    font-weight: bold;
    animation: arrowMove 1.5s infinite;
    position: relative;
    top: -5px;
}

@keyframes arrowMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(6px);
    }
}

.otziv img {
    width: 40px;
    height: 40px;
    
}

.otziv a {
      transition: transform 0.3s ease;
    }

.otziv a:hover {
      transform: translateY(-3px);
    }

/* Мобильная версия */
@media (max-width: 768px) {
    .otziv {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .reviews-text {
        font-size: 13px;
    }

    .arrow {
        font-size: 20px;
    }

    .otziv img {
        width: 34px;
        height: 34px;
    }
}

.top-bar {
  background-color: #f6f9ff;
  padding: 8px 0;
  border-bottom: 1px solid #e0e6f0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    
    transition: background-color 0.3s ease,
                backdrop-filter 0.3s ease,
                box-shadow 0.3s ease;
}

/* Когда страница прокручена */
.top-bar.scrolled {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}