/* ---------- CSS VARIABLES ---------- */

:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --primary: #1f3f6c;
  --accent: #273e69;
  --accent2: #3974c6;
  --text: #222222;
  --muted: #566272;
  --border: #dde1e6;
  --white: #ffffff;
  --black: #000000;
  --yellow: #ffc107;
  --light-bg: #f9fbfd;
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ---------- GLOBAL BOX-SIZING ---------- */

* {
  box-sizing: border-box;
}

/* ---------- BODY / BASE ELEMENTS ---------- */

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
textarea {
  font: inherit;
}

/* ---------- MAIN CONTAINER ---------- */

.container {
  max-width: 1300px;
}

/* ============================================================
   END: GLOBAL / BASE
   ============================================================ */




/* ============================================================
   03. START: PAGE COMMON / BREADCRUMBS
   Breadcrumbs, page title, intro and common section card
   ============================================================ */
/* ---------- BREADCRUMBS ---------- */

.breadcrumbs-section {
  background: var(--bg);
  border-bottom: 0px solid var(--border);
}

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: var(--primary);
}

/* ---------- PAGE TITLE / INTRO ---------- */

.page-title {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 2.5vw, 3rem);
  line-height: 1.05;
  text-align: center;
}

.page-intro {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ---------- COMMON SECTION CARD ---------- */
/* ============================================================
   НАШИ УСЛУГИ — MOBILE
   Убираем внешний контейнер и делаем 2 колонки
   ============================================================ */

@media (max-width: 600px) {

    /* Убираем белый внешний контейнер только у блока услуг */
    .section-card:has(.services-grid) {
        padding: 0;
        margin: 20px 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    /* Заголовок "Наши услуги" */
    .section-card:has(.services-grid) h2 {
        margin: 0 0 18px;
        padding: 0;
    }

    /* Две карточки в ряд */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 10px;
        margin: 0;
    }

    /* Сама карточка */
    .service-card {
        width: 100%;
        min-width: 0;
        padding: 8px;
        border-radius: 14px;
    }

    /* Картинка */
    .service-card img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        height: auto;
        object-fit: cover;
        margin-bottom: 8px;
        border-radius: 10px;
    }

    /* Название услуги */
    .service-card h3 {
        margin: 0;
        padding: 0 2px 4px;
        font-size: 14px;
        line-height: 1.25;
        text-align: center;
    }
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin: 20px 0;
  box-shadow: 0 16px 40px rgba(31, 63, 108, 0.06);

/* ============================================================
   END: PAGE COMMON / BREADCRUMBS
   ============================================================ */

}

/* ============================================================
   04. START: SERVICES / FEATURES
   Service grid, cards and advantages
   ============================================================ */
/* ---------- SERVICES GRID ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin: 32px 0;
}

/* ---------- SERVICE CARD ---------- */

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(31, 63, 108, 0.08);
  border-radius: 22px;
  padding: 18px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31, 63, 108, 0.12);
  border-color: rgba(31, 63, 108, 0.16);
}

.service-card img {
  display: block;
  width: 100%;
  border-radius: var(--radius-large);
  margin-bottom: 17px;
  object-fit: cover;
}

.service-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.service-card h3,
.service-card p {
  color: inherit;
}

/* ---------- SERVICE CARD CTA ---------- */

.card-cta {
  margin-top: 20px;
}

/* ---------- FEATURES / ADVANTAGES ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin: 40px 0;
}

.feature {
  background: var(--surface);
  border: 1px solid rgba(31, 63, 108, 0.08);
  border-radius: var(--radius-medium);
  padding: 18px;
  text-align: center;
}

.feature img {
  width: 56px;
  margin-bottom: 16px;
}

.feature p {
  margin: 0;
  font-weight: 600;
  color: var(--primary);

/* ============================================================
   END: SERVICES / FEATURES
   ============================================================ */

}

/* ============================================================
   05. START: CONTACTS / MAP
   Contact information and map layout
   ============================================================ */
/* ---------- CONTACT INFO LIST ---------- */

.contact-info-list{
    margin-top: 40px;
    font-size: 0.95rem;
}

/* ---------- CONTACT + MAP GRID ---------- */

.contact-map-grid {
    display: grid;
    
    grid-template-columns: 1fr 2fr;  /* две равные колонки */
    gap: 2rem;                       /* расстояние между колонками */
    align-items: start;              /* выравнивание по верхнему краю */
}

.map {
  margin: 40px 0 60px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(31, 63, 108, 0.08);
}

/* ---------- CONTACTS / MAP MOBILE <= 768px ---------- */

@media (max-width: 768px) {
    .contact-map-grid {
        grid-template-columns: 1fr;   /* одна колонка */
        gap: 1rem;                    /* уменьшаем промежуток */
    }
    
    /* Добавляем небольшой отступ сверху для карты на мобильных */
    .map {
        margin-top: 1rem;
    }

/* ============================================================
   END: CONTACTS / MAP
   ============================================================ */

}





/* ============================================================
   08. START: RESPONSIVE FOOTER + FAQ
   Responsive rules kept in their original cascade position
   ============================================================ */
/* ---------- FOOTER TABLET <= 991px ---------- */

@media (max-width: 991px) {
  .footer-top,
  .footer-middle {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- MOBILE <= 768px: FOOTER + FAQ ---------- */

@media (max-width: 768px) {

/* ---------- FOOTER MOBILE ---------- */

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

/* ---------- FAQ MOBILE ---------- */

  .faq {
    padding: 30px 0;
  }

  .faq-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .faq-lead {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .faq-item__summary {
    padding: 16px 18px;
    font-size: 1rem;
  }

  .faq-item__body {
    padding: 0 18px 16px;
  }
}

/* ============================================================
   END: RESPONSIVE FOOTER + FAQ
   ============================================================ */


/* ============================================================
   09. START: SERVICES FOOTER / ALL SERVICES BUTTON
   Bottom CTA for services
   ============================================================ */
/* ---------- SERVICES FOOTER ---------- */

.services-footer {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.btn-all-services {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-small);
  text-decoration: none;
  font-weight: 600;
  transition: background var(--transition-normal), transform var(--transition-fast);
}

.btn-all-services:hover {
  background: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;

/* ============================================================
   END: SERVICES FOOTER / ALL SERVICES BUTTON
   ============================================================ */

}

/* ============================================================
   10. START: CTA / DELIVERY
   CTA banner, buttons, delivery contacts and info cards
   ============================================================ */
/* ---------- CTA BANNER / BUTTONS ---------- */

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 60px 20px;
  border-radius: var(--radius-large);
  margin: 40px 0;
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 2.2rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 30px;
  font-size: 1.1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-small);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-primary:hover {
  color: var(--white);
  background: var(--accent2);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--accent2);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- DELIVERY CONTACTS / INFO GRID ---------- */

.delivery-contacts {
  padding: 50px 20px;
  background: var(--bg);
  border-radius: var(--radius-large);
  margin: 40px 0;
}

.delivery-info h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--text);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* ---------- DELIVERY RESPONSIVE <= 1200px ---------- */

@media (max-width: 1200px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- DELIVERY INFO CARD ---------- */

.info-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-medium);
  border: 1px solid var(--border);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(31, 63, 108, 0.1);
}

.info-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.info-card p {
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

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

.info-card a:hover {
  color: var(--accent);
}

/* ---------- CTA / DELIVERY MOBILE <= 768px ---------- */

/* ============================================================
   УСЛОВИЯ ОБСЛУЖИВАНИЯ — MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .delivery-contacts {
        margin: 24px 0;
        padding: 24px 14px;

        border-radius: 18px;
    }

    .delivery-info h2 {
        margin: 0 0 20px;

        font-size: 26px;
        line-height: 1.2;

        text-align: left;
    }

    .info-grid {
        display: grid;

        /* На мобильном только одна колонка */
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .info-card {
        width: 100%;

        padding: 16px 18px;

        border-radius: 14px;

        background: #fff;
    }

    .info-card h3 {
        margin: 0 0 8px;

        font-size: 18px;
        line-height: 1.3;
    }

    .info-card p {
        margin: 0;

        font-size: 15px;
        line-height: 1.55;
    }

    .info-card a {
        overflow-wrap: anywhere;
    }

    /* На телефоне убираем desktop hover-подъём */
    .info-card:hover {
        transform: none;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-buttons {
        gap: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* ============================================================
   11. START: IMAGE SLIDER
   Slider, images, controls and responsive styles
   ============================================================ */
/* ---------- SLIDER MAIN ---------- */

.image-slider {
  width: 100%;
  margin: 40px 0;
}

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slider-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  color: var(--primary);
  font-weight: bold;
}

.slider-btn:hover {
  background: var(--white);
  transform: scale(1.1);
}

.slider-btn:active {
  transform: scale(0.95);
}

/* ---------- SLIDER MOBILE <= 768px ---------- */

@media (max-width: 768px) {
  .slider-image {
    height: 250px;
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

/* ============================================================
   END: IMAGE SLIDER
   ============================================================ */

}


/* ============================================================
   13. START: PROMOTIONS
   Promotions grid, cards, badges and responsive styles
   ============================================================ */
/* ---------- PROMOTIONS MAIN ---------- */

.promotions-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 40px 20px;
  border-radius: var(--radius-small);
  margin: 40px 0;
}

.promotions-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: var(--white);
}

.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.promotion-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 25px;
  border-radius: var(--radius-small);
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: blur(10px);
}

.promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.promotion-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--yellow);
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.promotion-card h3 {
  color: var(--white);
  margin-top: 5px;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.promotion-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 8px 0;
}

.promo-details {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7) !important;
  font-style: italic;
  margin-top: 12px !important;
}

/* ---------- PROMOTIONS MOBILE <= 768px ---------- */

@media (max-width: 768px) {
  .promotions-section {
    padding: 30px 15px;
  }

  .promotions-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .promotions-grid {
    gap: 15px;
  }
  .promotion-badge {
      position: absolute;
      top: 15px;
      right: 15px;
      background: var(--yellow);
      color: var(--primary);
      padding: 8px 15px;
      border-radius: 20px;
      font-weight: bold;
      font-size: 0.6rem;
    }

  .promotion-card {
    padding: 20px;
  }

  .promotion-card h3 {
    font-size: 1rem;
  }

/* ============================================================
   END: PROMOTIONS
   ============================================================ */

}


/* ============================================================
   15. START: CALLBACK MODAL
   Custom modal width and mobile sizing
   ============================================================ */
/* ---------- CALLBACK MODAL ---------- */

.modal-callback-custom {
    max-width: 650px;           /* ← твой размер */
    width: 100%;
    margin: 0 auto;
}

/* Если хочешь задать точную ширину на разных экранах */
@media (max-width: 768px) {
    .modal-callback-custom {
        max-width: 92%;
    }
}

/* ============================================================
   END: CALLBACK MODAL
   ============================================================ */