/* =========================================================
      БАЗА: плавный скролл к якорям
      ========================================================= */
      html {
        scroll-behavior: smooth;
      }
      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
      }

      /* =========================================================
      ЯКОРЯ: чтобы заголовки не прятались под "липким" хедером
      ========================================================= */
      #information,
      #service-centers,
      #contacts,
      #service-request {
        scroll-margin-top: 90px;
      }

      /* =========================================================
      ГАЛЕРЕЯ-КАРТОЧКИ
      ========================================================= */

        /* Чекбоксы согласия */
        .consent-group {
            margin: 20px 0 15px 0;
            padding: 15px 0;
            border-top: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
            cursor: pointer;
            font-size: 14px;
            color: #334155;
            line-height: 1.4;
        }
        .checkbox-label:last-child {
            margin-bottom: 0;
        }
        
        .checkbox-label input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border: 2px solid #cbd5e1;
            border-radius: 4px;
            background: white;
            cursor: pointer;
            position: relative;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }
        .checkbox-label input[type="checkbox"]:checked {
            background-color: rgb(18, 113, 171);
            border-color: rgb(18, 113, 171);
        }
        .checkbox-label input[type="checkbox"]:checked::after {
            content: "✓";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 12px;
            font-weight: bold;
        }
        
        .checkbox-text a {
            color: rgb(18, 113, 171);
            text-decoration: none;
        }
        .checkbox-text a:hover {
            text-decoration: underline;
        }
        
        /* Неактивная кнопка отправки */
        .submit-btn:disabled {
            background: #cbd5e1 !important;
            cursor: not-allowed !important;
            opacity: 0.6;
            transform: none !important;
            box-shadow: none !important;
        }

      /* Заголовок над карточками (если используешь) */
      .services-gallery {
        margin: 40px 0;
      }

      .gallery-title {
        text-align: center;
        font-size: 28px;
        color: #333;
        margin: 0 0 30px;
        font-weight: 600;
      }

      /* Сетка карточек */
      .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        max-width: 1200px;
        margin: 0 auto 40px;
        padding: 0 20px;
      }

      /* Сама карточка-ссылка */
      .gallery-card {
        position: relative;
        display: block;
        width: 100%;
        height: 260px;
        border-radius: 18px;
        overflow: hidden;
        text-decoration: none;
        color: #fff;
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        transform: translateZ(0);
      }

      /* Картинка внутри карточки */
      .gallery-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.45s ease;
      }

      /* Затемнение/текст поверх картинки */
      .gallery-overlay {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 18px 16px 16px;
        display: grid;
        gap: 6px;
        background: linear-gradient(
          180deg,
          rgba(0, 0, 0, 0) 0%,
          rgba(0, 0, 0, 0.78) 70%,
          rgba(0, 0, 0, 0.88) 100%
        );
      }

      .gallery-overlay h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
      }

      .gallery-overlay p {
        margin: 0;
        font-size: 14px;
        opacity: 0.9;
        line-height: 1.35;
        max-width: 46ch;
      }

      /* =========================================================
      КНОПКА "ПЕРЕЙТИ": 
      ========================================================= */
      .gallery-cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 12px;

        font-weight: 700;
        font-size: 14px;
        color: #ffffff;

        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(8px);

        position: relative;
        overflow: hidden;

        z-index: 0;
      }

      /* Слой заливки (синий) */
      .gallery-cta::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #00aeef;

        transform: scaleX(0);
        transform-origin: left;

        transition: transform 0.35s ease;
        z-index: -1;
      }

      /* НАВЕЛИ на карточку: заливка появляется слева -> направо */
      .gallery-card:hover .gallery-cta::before {
        transform: scaleX(1);
      }

      /* Нажатие (не обязательно) */
      .gallery-cta:active {
        transform: scale(0.97);
      }

      /* =========================================================
      Hover-эффекты карточки
      ========================================================= */
      .gallery-card:hover img {
        transform: scale(1.06);
      }

      .gallery-card:hover {
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
      }

      .gallery-card:focus-visible {
        outline: 3px solid rgba(0, 174, 239, 0.9);
        outline-offset: 3px;
      }

      /* Адаптив */
      @media (max-width: 768px) {
        .gallery-title {
          font-size: 24px;
          margin-bottom: 20px;
        }
        .gallery-card {
          height: 210px;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        .gallery-card img {
          transition: none;
        }
        .gallery-cta::before {
          transition: none;
        }
      }

      /* =========================================================
      КОНТЕНТНЫЕ БЛОКИ
      ========================================================= */
      .service-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
      }

      .service-section {
        margin-bottom: 40px;
        background: #f9f9f9;
        padding: 30px;
        border-radius: 12px;
        border-left: 4px solid #2c5282;
      }

      .service-section:last-child {
        margin-bottom: 0;
      }

      .service-section h2 {
        color: #2c5282;
        margin: 0 0 20px;
        font-size: 24px;
        font-weight: 600;
      }

      .service-section p {
        margin: 0 0 12px;
        line-height: 1.6;
      }

      .service-section .service-lead {
        font-weight: 600;
      }

      .service-section ul {
        padding-left: 20px;
      }

      .service-section li {
        margin-bottom: 10px;
        line-height: 1.6;
      }

      .service-section li:last-child {
        margin-bottom: 0;
      }

      @media (max-width: 768px) {
        .service-section {
          padding: 20px;
          margin-bottom: 30px;
        }
        .service-section h2 {
          font-size: 20px;
        }
      }

      /* =========================================================
      ФОРМА ЗАЯВКИ / СЕКЦИЯ SERVICE-REQUEST
      ========================================================= */
      .service-centers-section {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
      }

      #service-request {
        max-width: 1200px;
      }

      .service-centers-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid #e1e5e9;
      }

      .service-centers-header h1 {
        margin: 0;
        color: #2c5aa0;
        font-size: 28px;
      }

      .service-center-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition:
          transform 0.3s ease,
          box-shadow 0.3s ease;
      }

      .service-center-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      }

      .service-center-content {
        padding: 20px;
      }

      /* Поля формы */
      .form-group {
        margin-bottom: 20px;
      }

      .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #333;
      }

      .form-group input,
      .form-group select,
      .form-group textarea {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #e1e5e9;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s ease;
        box-sizing: border-box;
      }

      .form-group textarea {
        resize: none;
        overflow-y: hidden;
      }

      .form-group input:focus,
      .form-group select:focus,
      .form-group textarea:focus {
        outline: none;
        border-color: #2c5aa0;
        box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
      }

      .form-actions {
        margin-top: 30px;
        text-align: right;
      }

      /* Кнопка отправки */
      .submit-btn {
        background: #ffffff;
        color: rgb(18, 113, 171);
        border: 3px solid rgb(18, 113, 171);
        padding: 12px 30px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        transition:
          transform 0.2s ease,
          box-shadow 0.2s ease,
          background 0.2s ease;
      }

      .submit-btn__text {
        position: relative;
        z-index: 2;
        color: rgb(18, 113, 171);
      }

      .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
        background: #d4f1fc;
      }

      /* Сетка */
      #service-request .request-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 20px;
      }

      #service-request .field-full {
        grid-column: 1 / -1;
      }

      @media (max-width: 900px) {
        #service-request .request-grid {
          grid-template-columns: 1fr;
        }
      }

      /* =========================================================
      КОНТАКТЫ
      ========================================================= */
      .contacts-hero {
        background:
          linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
          url("../images/motback.png");
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        color: #fff;
        padding: 40px 20px 30px;
        text-align: center;
        max-width: 1200px;
        margin: 20px auto 0;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
      }

      .contacts-hero h1 {
        font-size: clamp(24px, 4vw, 36px);
        margin: 0 0 10px;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        font-weight: 700;
      }

      .contacts-container {
        max-width: 1200px;
        margin: 30px auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
      }

      .contacts-card {
        background: var(--card);
        border-radius: 16px;
        padding: 25px;
        box-shadow: var(--shadow);
        border: 1px solid #eef2f7;
        display: flex;
        flex-direction: column;
        height: 100%;
      }

      .contacts-card h2 {
        font-size: 22px;
        margin: 0 0 20px;
        color: var(--text);
        border-bottom: 2px solid var(--primary);
        padding-bottom: 8px;
        font-weight: 600;
      }

      .contacts-section .info-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 18px;
        padding-bottom: 18px;
        border-bottom: 1px solid #f1f5f9;
      }

      .contacts-section .info-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
      }

      .info-icon {
        width: 36px;
        height: 36px;
        background: rgba(0, 174, 239, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-size: 16px;
        flex-shrink: 0;
      }

      .info-details h4 {
        margin: 0 0 6px;
        font-size: 14px;
        color: var(--muted);
        font-weight: 500;
      }

      .info-details p {
        margin: 0;
        font-size: 16px;
        color: var(--text);
        font-weight: 600;
        line-height: 1.4;
      }

      .info-details a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
      }

      .info-details a:hover {
        color: #0088cc;
        text-decoration: underline;
      }

      .map-container {
        grid-column: 1 / -1;
        margin-top: 10px;
      }

      .map-placeholder {
        background: #f1f5f9;
        border-radius: 16px;
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        font-size: 16px;
        border: 2px dashed #cbd5e1;
        overflow: hidden;
      }

      .map-placeholder iframe {
        width: 100%;
        height: 100%;
        border: none;
      }

      @media (max-width: 900px) {
        .contacts-hero {
          padding: 26px 18px 20px;
          margin: 16px auto 0;
          background-attachment: scroll;
        }

        .contacts-hero h1 {
          font-size: 28px;
          margin-bottom: 5px;
        }

        .contacts-container {
          grid-template-columns: 1fr;
          gap: 20px;
          margin: 20px auto;
          padding: 0 15px;
        }

        .contacts-card {
          padding: 20px;
        }

        .contacts-card h2 {
          font-size: 20px;
          margin-bottom: 15px;
        }

        .contacts-section .info-item {
          margin-bottom: 15px;
          padding-bottom: 15px;
        }

        .info-icon {
          width: 32px;
          height: 32px;
          font-size: 14px;
        }

        .info-details h4 {
          font-size: 13px;
        }
        .info-details p {
          font-size: 15px;
        }

        .map-placeholder {
          height: 200px;
        }
      }

      /* Отступ секции от хедера */
      .page1 {
        padding-top: 32px;
      }

      /* =========================================================
      Стили для телефона
        ========================================================= */
      @media (max-width: 600px) {
        /* Общий контейнер */
        .page1 {
          padding-top: 12px;
        }

        /* Убираем боковые отступы контейнеров */
        .gallery-grid,
        .service-content,
        .service-centers-section,
        .contacts-container {
          padding-left: 0px !important;
          padding-right: 0px !important;
        }

        .gallery-grid,
        .contacts-container {
          margin-left: 0;
          margin-right: 0;
        }

        /* ===== ГАЛЕРЕЯ ===== */
        .gallery-grid {
          gap: 14px;
          margin-bottom: 24px;
        }

        .gallery-card {
          height: 170px;
          border-radius: 14px;
        }

        .gallery-overlay {
          padding: 12px;
        }

        .gallery-overlay h3 {
          font-size: 15px;
          line-height: 1.15;
        }

        .gallery-overlay p {
          font-size: 12px;
        }

        .gallery-cta {
          font-size: 12px;
          padding: 6px 10px;
          border-radius: 8px;
        }

        /* ===== КОНТЕНТНЫЕ БЛОКИ ===== */
        .service-section {
          padding: 14px;
          border-radius: 10px;
          margin-bottom: 18px;
        }

        .service-section h2 {
          font-size: 19px;
          margin-bottom: 12px;
        }

        .service-section p,
        .service-section li {
          font-size: 14px;
        }

        /* ===== ФОРМА ===== */
        .service-centers-header {
          margin-bottom: 16px;
          padding-bottom: 12px;
        }

        .service-centers-header h1 {
          font-size: 20px;
          line-height: 1.2;
        }

        .service-center-card {
          border-radius: 12px;
        }

        .service-center-content {
          padding: 14px;
        }

        .form-group {
          margin-bottom: 14px;
        }

        .form-group label {
          font-size: 13px;
          margin-bottom: 5px;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
          font-size: 15px;
          padding: 9px 12px;
          border-radius: 8px;
        }

        .form-actions {
          margin-top: 16px;
          text-align: center;
        }

        .submit-btn {
          width: 100%;
          padding: 13px;
          font-size: 14px;
          border-radius: 10px;
        }

        /* ===== КОНТАКТЫ ===== */
        .contacts-hero {
          padding: 20px 12px;
          border-radius: 12px;
        }

        .contacts-hero h1 {
          font-size: 22px;
        }

        .contacts-card {
          padding: 14px;
          border-radius: 12px;
        }

        .contacts-card h2 {
          font-size: 18px;
          margin-bottom: 12px;
        }

        .info-icon {
          width: 28px;
          height: 28px;
          font-size: 13px;
        }

        .info-details h4 {
          font-size: 12px;
        }

        .info-details p {
          font-size: 14px;
        }

        .map-placeholder {
          height: 170px;
          border-radius: 12px;
        }
      }

