* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --text: #f2f3f5;
  --muted: #a0a1a8;
  --line: rgba(239, 241, 245, 0.88);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;

  background:
    radial-gradient(
      ellipse at 87% 0%,
      rgba(0, 65, 116, 0.74) 0%,
      rgba(0, 37, 68, 0.45) 31%,
      transparent 60%
    ),
    linear-gradient(
      112deg,
      #02070b 0%,
      #010509 52%,
      #00101d 100%
    );

  background-attachment: fixed;
}

/* ОСНОВНОЙ КОНТЕЙНЕР */
.site-container {
  width: 100%;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 24px 40px;
}

/* ШАПКА */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}

.logo {
  flex-shrink: 0;
  color: #f7f7f8;
  font-size: clamp(20px, 2.2vw, 23px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.6px;
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4.8vw, 80px);
}

.main-nav a {
  color: #f1f2f4;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #80c7ff;
}





/* ОПИСАНИЕ САЙТА */

/* ОСНОВНОЙ БЛОК ОПИСАНИЯ */
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  width: 100%;
  max-width: 1024px;

  margin: 78px auto 0;
}

/* ТЕКСТ СЛЕВА */
.intro-text {
  flex: 1;
  min-width: 0;
}

.intro-text p {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 400;
}

/* КАРТИНКА СПРАВА */
.intro-image {
  flex: 0 0 420px;
  height: 160px;
}

.intro-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 700px) {
  .intro {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    margin-top: 54px;
  }

  .intro-image {
    flex: none;
    width: 100%;
    height: 220px;
  }

  .intro-text p {
    font-size: 16px;
    line-height: 1.48;
  }
}


/* СЕТКА ИЗ 9 БЛОКОВ */

.services {
    display: grid;

    /* Три одинаковых столбца */
    grid-template-columns: repeat(3, minmax(0, 1fr));

    /* Одинаковые расстояния между блоками */
    column-gap: 38px;
    row-gap: 38px;

    /* Общая ширина сетки */
    width: 100%;
    max-width: 1024px;

    margin: 82px auto 0;
}

/* СТИЛЬ БЛОКОВ */

.service-card {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 79px;

    padding: 10px;

    border: 1px solid var(--line);
    border-radius: 16px;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    transition:
        border-color 160ms ease,
        color 160ms ease,
        background 160ms ease;
}

.service-card:hover,
.service-card:focus-visible {
    color: #f5f7fa;
    border-color: #7fcaff;
    background: rgba(20, 89, 135, 0.15);
    outline: none;
}

/* КОНТАКТЫ */
.contacts {
  margin: 120px 0 48px 7px;
}

.contacts a {
  color: #dcecf8;
  text-decoration: none;
  font-size: 14px;
}

.anchor-target {
  position: relative;
  top: -20px;
}

/* МОБИЛЬНОЕ МЕНЮ */
.menu-toggle {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* БОЛЬШИЕ ЭКРАНЫ */
@media (min-width: 1100px) {
  .intro {
    margin-top: clamp(80px, 9vh, 115px);
  }
}

/* ПЛАНШЕТЫ И ТЕЛЕФОНЫ */
@media (max-width: 700px) {
  .site-container {
    padding: 20px 20px 32px;
  }

  .site-header {
    justify-content: space-between;
    gap: 20px;
    position: relative;
  }

  .logo {
    font-size: 21px;
  }

  .menu-toggle {
    display: flex;
    width: 40px;
    height: 38px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: #f3f5f7;
  }

  .main-nav {
    display: none;
    position: absolute;
    z-index: 5;
    top: calc(100% + 12px);
    right: 0;
    min-width: 190px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(2, 12, 22, 0.97);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 11px 12px;
    border-radius: 7px;
  }

  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .intro {
    max-width: 430px;
    margin-top: 54px;
    margin-left: 0;
  }

  .intro p {
    font-size: clamp(16px, 4.4vw, 18px);
    line-height: 1.48;
  }

  .services {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 42px;
  }

  .service-card {
    min-height: 45px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 9px;
  }

  .contacts {
    margin-top: 64px;
  }
}

/* ДВА СТОЛБЦА НА БОЛЕЕ ШИРОКИХ ТЕЛЕФОНАХ */
@media (min-width: 440px) and (max-width: 700px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* УВАЖЕНИЕ К НАСТРОЙКАМ УМЕНЬШЕНИЯ АНИМАЦИИ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}







/* ОСНОВНОЙ КОНТЕЙНЕР СТРАНИЦЫ */
.page-services {
    width: 100%;
    max-width: 1024px;
    margin: 65px auto 0;
}

/* БЛОК С ТЕКСТОМ И ИЗОБРАЖЕНИЕМ */
.info-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;

    width: 100%;
    margin-bottom: 45px;
}

/* ЛЕВАЯ ЧАСТЬ С ТЕКСТОМ */
.info-text {
    flex: 1;
    min-width: 0;
}

.info-text h1,
.info-text h2 {
    margin: 0 0 20px;
    color: var(--text);
    font-size: 25px;
    line-height: 1.3;
}

.info-text p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.info-text ul {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

/* ПРАВАЯ ЧАСТЬ С ИЗОБРАЖЕНИЕМ */
.info-image {
    flex: 0 0 420px;
    height: 349px;
}

.info-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ПЛАНШЕТЫ И ТЕЛЕФОНЫ */
@media (max-width: 700px) {
    .page-services {
        margin-top: 40px;
    }

    .info-block {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        margin-bottom: 40px;
    }

    .info-image {
        flex: none;
        width: 100%;
        height: 220px;
    }

    .info-text h1,
    .info-text h2 {
        font-size: 21px;
    }

    .info-text p,
    .info-text ul {
        font-size: 15px;
    }
}










/* СЕТКА КАТАЛОГА */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;

    width: 100%;
    max-width: 1024px;
    margin: 52px auto 0;
}

/* КАРТОЧКА КАТАЛОГА */
.catalog-card {
    width: 100%;
    height: 344px;
    padding: 10px;

    border: 1px solid rgba(239, 241, 245, 0.65);
    border-radius: 17px;

    color: var(--text);
}

/* МЕСТО ДЛЯ ИЗОБРАЖЕНИЯ */
.catalog-image {
    width: 100%;
    height: 150px;
    background: #f0e4ad;
}

/* ОПИСАНИЕ КАРТОЧКИ */
.catalog-card p {
    margin: 15px 0 0;
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* ПЛАНШЕТЫ */
@media (max-width: 700px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* УЗКИЕ ТЕЛЕФОНЫ */
@media (max-width: 420px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}









@media (max-width: 700px) {
    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 14px;
        margin-top: 42px;
    }

    .service-card {
        min-height: 65px;
        height: auto;
        padding: 10px;
        font-size: 13px;
        border-radius: 10px;
    }
}

@media (max-width: 440px) {
    .services {
        grid-template-columns: 1fr;
    }
}




/* ПАГИНАЦИЯ КАТАЛОГА */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    width: 100%;
    margin: 55px auto 0;
}

/* КНОПКИ НАЗАД И ДАЛЕЕ */
.pagination-button {
    position: relative;
    width: 104px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
    background: rgba(239, 241, 245, 0.8);

    color: var(--text);
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;

    transition: background 160ms ease, color 160ms ease;
}

/* ВНУТРЕННЯЯ ЧАСТЬ КНОПОК */
.pagination-button::before {
    content: "";
    position: absolute;
    inset: 1px;

    background: #020b12;
    z-index: -1;
}

/* ТЕКСТ КНОПКИ */
.pagination-button {
    isolation: isolate;
}

.pagination-button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* ФОРМА КНОПКИ НАЗАД */
.pagination-prev {
    clip-path: polygon(
        0 50%,
        25px 0,
        100% 0,
        100% 100%,
        25px 100%
    );
}

.pagination-prev::before {
    clip-path: polygon(
        1px 50%,
        26px 1px,
        calc(100% - 1px) 1px,
        calc(100% - 1px) calc(100% - 1px),
        26px calc(100% - 1px)
    );
}

/* ФОРМА КНОПКИ ДАЛЕЕ */
.pagination-next {
    clip-path: polygon(
        0 0,
        calc(100% - 25px) 0,
        100% 50%,
        calc(100% - 25px) 100%,
        0 100%
    );
}

.pagination-next::before {
    clip-path: polygon(
        1px 1px,
        calc(100% - 26px) 1px,
        calc(100% - 1px) 50%,
        calc(100% - 26px) calc(100% - 1px),
        1px calc(100% - 1px)
    );
}

/* НОМЕР СТРАНИЦЫ */
.pagination-number {
    color: var(--muted);
    font-size: 27px;
    line-height: 1;
}

/* НАВЕДЕНИЕ */
.pagination-button:hover {
    background: #80c7ff;
    color: #ffffff;
}

/* МОБИЛЬНЫЕ УСТРОЙСТВА */
@media (max-width: 420px) {
    .pagination {
        margin-top: 35px;
        gap: 12px;
    }

    .pagination-button {
        width: 95px;
        height: 26px;
        font-size: 16px;
    }

    .pagination-number {
        font-size: 24px;
    }
}




button.pagination-button[type="button"] {
    background-color: #6c757d; /* Цвет фона */
    color: #6c757d;            /* Цвет текста */
    border-color: #6c757d;     /* Цвет рамки */
}