
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Arial,Helvetica,sans-serif;line-height:1.6;color:#1a1a1a}
h1,h2,h3{color:#89d2f4;margin-bottom:.5em}
a{text-decoration:none}
header{display:flex;justify-content:space-between;align-items:center;padding:15px 5%;background:#f2f0ed;box-shadow:0 2px 4px rgba(0,0,0,.05);position:sticky;top:0;z-index:999}
header img{height:48px}
.contact-btn{background:#0066ff;color:#fff;padding:10px 22px;border-radius:4px;font-weight:600;transition:background .3s}
.contact-btn:hover{background:#004dcc}
.container{width:90%;max-width:1200px;margin:0 auto;padding:60px 0}
.hero{background:url('https://d3njjcbhbojbot.cloudfront.net/api/utilities/v1/imageproxy/https://images.ctfassets.net/wp1lcwdav1p1/2uQRrnlUBwOoqlNbcQSpYr/a4fbb0dbc1a6b5ba696410ff091039a8/GettyImages-2170485830.jpg?w=1500&h=680&q=60&fit=fill&f=faces&fm=jpg&fl=progressive&auto=format,compress&dpr=1&w=1000') center/cover no-repeat;position:relative;color:#fff;text-align:center;padding:160px 5%}
.hero::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,.65)}
.hero-content{position:relative;z-index:2;max-width:700px;margin:0 auto}
/*.hero button,.btn{background:#0066ff;color:#fff;border:none;padding:14px 28px;border-radius:4px;margin-top:25px;font-size:1rem;cursor:pointer;transition:background .3s}
.btn:hover,.hero button:hover{background:#004dcc}*/
.grid-4{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:30px}
.services-section {
  display: grid;
  grid-template-columns: minmax(200px,1fr) 2fr;
  gap: 40px;
  align-items: start;

  /* Центрируем весь блок на странице */
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 20px;
}

.services-intro h2 {
  color: #85c1e9;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.services-intro p {
  color: #000;
  font-size: 1rem;
  line-height: 1.5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 30px;
}

.service-item {
  display: flex;
  gap: 16px;
  background: #f7f9fc;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 20px;
}

.service-item img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.service-item .text h3 {
  margin: 0 0 8px;
  color: #85c1e9;
  font-size: 1.1rem;
  font-weight: 700;
}

.service-item .text p {
  margin: 0;
  color: #000;
  font-size: 0.95rem;
  line-height: 1.4;
}


/* ------- Секция с белым фоном ------- */
.white-section {
  background-color: #f1f3f7;
  padding: 60px 0;
  color: #222;
  font-family: Arial, sans-serif;
}

/* Заголовок H2 */
.white-section h2 {
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 16px;
  color: #111;
  line-height: 1.2;
}

/* Подзаголовки H3 внутри контента */
.white-section h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 32px 0 12px;
  color: #111;
  text-align: left;
}

/* Основной блок текста */
.text-content {
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}
.text-content p {
  margin-bottom: 16px;
}
.text-content p strong {
  font-weight: 700;
}

/* Списки */
.text-content ul,
.text-content ol {
  margin: 0 0 16px 1.5em;
}
.text-content ul li,
.text-content ol li {
  margin-bottom: 8px;
}

/* Зелёная обведённая кнопка */
.green-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 1rem;
  color: #3fd266;
  background-color: transparent;
  border: 2px solid #3fd266;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.green-btn:hover {
  background-color: #3fd266;
  color: #fff;
}
.center-btn {
    display: block;
    margin:0 auto;
}

/* отступ сверху/снизу всего блока */
.stats-section {
  padding: 60px 0;
}

/* сама сетка */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  text-align: center;
}

/* отдельная «ячейка» со статистикой */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* крупное число */
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #333;
  line-height: 1;
}

/* поясняющий текст под числом */
.stat-text {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #b58531; /* золотистый */
}


.belges-section .grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Текстовая колонка */
.belges-text h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: #111;
}
.belges-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: #111;
}
.belges-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.belges-text ul {
  margin: 0 0 16px 1.5em;
}
.belges-text ul li {
  margin-bottom: 8px;
}

/* Кнопка внизу текстовой колонки */
.belges-text .green-btn {
  margin-top: 16px;
}

/* Картинка */
.belges-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-section {
    background-color: #fff;
}






/* --- Модальное окно — должно быть выше header --- */
 .modal {
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition-property: visibility, opacity;
    transition-duration: 0.3s, 0.3s;
    z-index: 2000;
  }

  /* Когда нужно показать окно */
  .modal.show {
    visibility: visible;
    opacity: 1;
  }

  /* Контейнер содержимого */
  .modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
  }

  /* Кнопка закрытия */
  .close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
    color: #333333;
    z-index: 2002;
  }

  /* === Сетка формы: 2 колонки === */
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    column-gap: 20px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 20px;
    margin-left: 0px;
  }

  /* Каждый блок «лейбл + поле» */
  .form-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }

  /* Лейблы */
  .form-group label {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 5px;
    margin-left: 0px;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
  }

  /* Поля ввода и селекты */
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="number"],
  .form-group select {
    width: 100%;
    box-sizing: border-box;
    padding-top: 10px;
    padding-right: 12px;
    padding-bottom: 10px;
    padding-left: 12px;
    border-width: 1px;
    border-style: solid;
    border-color: #cccccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #ffffff;
  }

  /* Textarea */
  .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding-top: 10px;
    padding-right: 12px;
    padding-bottom: 10px;
    padding-left: 12px;
    border-width: 1px;
    border-style: solid;
    border-color: #cccccc;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
  }

  /* Кнопка отправки */
  .submit-btn {
    grid-column-start: 1;
    grid-column-end: -1;
    justify-self: center;
    align-self: start;
    padding-top: 12px;
    padding-right: 24px;
    padding-bottom: 12px;
    padding-left: 24px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #0066ff;
    color: #ffffff;
    border-width: 0px;
    border-style: none;
    border-color: transparent;
    border-radius: 4px;
    cursor: pointer;
  }

  /* Блок «Спасибо» */
  .thank-you {
    display: none;
    grid-column-start: 1;
    grid-column-end: -1;
    max-width: 700px;
    margin-top: 20px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    text-align: center;
    font-size: 1rem;
    color: #1a1a1a;
  }

footer {
  background: #f2f0ed;
  padding: 60px 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

footer img {
    width: 100px;
}

footer .footer-col img {
  height: 100px;
  margin-bottom: 15px;
}

footer .footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}

footer .footer-col p,
footer .footer-col li {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Нижняя строка */
footer .copy {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 25px;
  font-size: 0.8rem;
  color: #777;
}

footer .copy a {
  margin-left: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
@media screen and (max-width: 1200px) {
  /* контейнер чуть уже */
  .container {
    width: 95%;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* грид «4 блока услуг» → 2 колонки */
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
  }

  /* секция «services» 2→1 колонки */
  .services-section {
    grid-template-columns: 1fr !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  .services-intro {
    text-align: center;
  }

  /* stats: 4→3 колонки */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ============================= */
/* 2) ПЛАНШЕТЫ и БОЛЬШИЕ ТЕЛЕФОНЫ */
/* экраны до 900px                 */
/* ============================= */
@media screen and (max-width: 900px) {
  /* контейнер уже */
  .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* hero: меньшие вертикальные паддинги */
  .hero {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  /* секция услуг: текст-колонка по центру */
  .services-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .services-intro h2 {
    font-size: 1.4rem;
  }

  /* «services-grid» 2→1 */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  /* блок «Белги» 2→1 */
  .belges-section .grid-2-cols {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }
  .belges-text {
    text-align: center;
  }

  /* «about-section» текст по центру */
  .about-section .small-container {
    text-align: center;
  }

  /* stats: 3→2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================= */
/* 3) МОБИЛЬНЫЕ ТЕЛЕФОНЫ         */
/* экраны до 600px                 */
/* ============================= */
@media screen and (max-width: 600px) {
  /* контейнер вылезает в 100% */
  .container {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* hero: ещё меньше паддинги */
  .hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  /* grid-4 → 1 колонка */
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* services-section → 1 колонка */
  .services-section {
    grid-template-columns: 1fr !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .services-intro {
    text-align: center;
  }
  .services-intro h2 {
    font-size: 1.2rem;
  }

  /* services-grid → 1 колонка */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .service-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* блок «Белги» → 1 колонка */
  .belges-section .grid-2-cols {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .belges-image {
    order: -1; /* картинка покажется над текстом */
  }
  .belges-text, 
  .belges-text h2, 
  .belges-text h3 {
    text-align: center;
    font-size: 1rem;
  }

  /* about-section → 1 колонка */
  .about-section .small-container {
    text-align: center;
  }
  .about-section h2 {
    font-size: 1.4rem;
  }
  .about-section h3 {
    font-size: 1.1rem;
  }

  /* stats → 2 колонки */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
  .stat-number {
    font-size: 2.5rem;
  }

  /* футер → 1 колонка */
  footer {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  footer .footer-col {
    margin-bottom: 20px;
  }
  footer .copy {
    margin-top: 20px;
    font-size: 0.75rem;
  }
}
