* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    sans-serif;
  background: #f9f9f9;
  overflow: auto;
  height: 100vh;
  width: 100vw;
  user-select: none;
  -webkit-user-select: none;
}

header {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.02),
    0 1px 2px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

a {
  text-decoration: none;
  color: #04395e;
}

/* Общие стили для секций */
.content {
  max-width: 1280px;
  margin: 0 auto;
}

.section {
  margin: 32px 20px 32px 20px;
}

/* ===== 1 колонка ===== */
.row-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ===== РЯД 2: 1 колонка ===== */
.row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ===== РЯД 3: 2 колонки ===== */
.row-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.row-3flex {
  display: flex;
  gap: 20px;
}

/* ===== РЯД 4: 3 колонки ===== */
.row-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  border-radius: 7px;
  border: solid 1px #b7b7b7;
  background: #fcfcfc;
}
.card-dir {
  border-radius: 7px;
  overflow: hidden;
  border: solid 1px #b7b7b7;
  background: #fcfcfc;
}

.card-dir img{
width: 100%;
height: auto;
object-fit: cover;
}

.card-dir h3{
  padding: 10px 15px 0 15px; 
  font-family: Roboto,sans-serif; 
  color: #024899;
}
.card-dir p{
padding: 5px 15px 15px 15px;
font-family: Roboto, sans-serif;
font-size: 0.8125em;
color: #000;
}


.card-dir:hover {
  transform: translateY(-5px);
}

.company {
  text-align: left;
  flex: 3;
}

/* ===== CompanyMKBox===== */
.cmkb-h1 {
  padding: 10px 0 0 25px;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: clamp(27px, 2vw, 45px);
  color: #093a69;
}

.cmkb-h2 {
  padding-top: 4px;
  padding-left: 25px;
  font-family: "Roboto", sans-serif;
  font-size: clamp(23px, 2vw, 27px);
  font-weight: 700;
  color: #8d8d8d;
}

.cmkb-p {
  padding-top: 7px;
  padding-left: 25px;
  padding-right: 25px;
  font-family: "Roboto", sans-serif;
  font-size: 19px;
  color: #585858;
}

.cmkb-pb {
  padding-top: 7px;
  padding-left: 25px;
  padding-right: 25px;
  padding-bottom: 25px;
  font-family: "Roboto", sans-serif;
  font-size: 19px;
  color: #585858;
}

/* ===== /CompanyMKBox===== */

/* ===== BlockContactBox===== */
.contact-box {
  padding: 0 0 45px 0;
  float: right;
  flex: 1;
  border: solid 1px #b7b7b7;
  background: linear-gradient(-225deg, #f5f5f5, #f5f5f5, #d2d2d2);
  background: -moz-linear-gradient(-45deg, #f5f5f5, #f5f5f5, #d2d2d2);
  background: -webkit-linear-gradient(-45deg, #f5f5f5, #f5f5f5, #d2d2d2);
  background: -o-linear-gradient(-45deg, #f5f5f5, #f5f5f5, #d2d2d2);
  background: -ms-linear-gradient (-225deg, #f5f5f5, #f5f5f5, #d2d2d2);
}

.contact-box-bg {
  background: linear-gradient(bottom, #001c71, #024899);
  background: -moz-linear-gradient(bottom, #001c71, #024899);
  background: -webkit-linear-gradient(bottom, #001c71, #024899);
  background: -o-linear-gradient(bottom, #001c71, #024899);
  background: -ms-linear-gradient(bottom, #001c71, #024899);
  padding: 15px 0 15px 15px;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 23px;
  color: #ffffff;
}

.img-contact-box {
  float: right;
  padding: 10px 10px 0 0;
}

.tel-contact-box {
  padding: 25px 0 0 15px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #024899;
}

.text-contact-box {
  padding: 15px 0 0 15px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #024899;
}

.var-tel-contact-box {
  padding-left: 35px;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #585858;
}

.var-contact-box {
  padding-left: 35px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px;
  color: #585858;
}

.cont-time-box {
  padding: 10px 0 10px 0;
  text-align: center;
  margin: 20px 10px 15px 10px;
  background: #fff;
  border: solid 1px #b7b7b7;
  border-radius: 5px;
}

.text-time-box {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #024899;
}

.var-time-box {
  padding-top: 5px;
  text-align: center;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #585858;
}

.var-map-contact-box {
  padding: 20px 0 0 15px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;

  color: #024899;
}
/* ===== / BlockContactBox===== */

/* Кнопка действия (интерактив) */
.cta-button {
  background: #054674;
  border: none;
  margin-top: 20px;
  padding: 1rem 1.5rem;
  border-radius: 3rem;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  width: fit-content;
  box-shadow: 0 8px 18px -6px rgba(23, 78, 115, 0.4);
  font-family: "Inter", sans-serif;
}
.cta-button:hover {
  background: #0056b3;
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.grecaptcha-badge {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* =========================================
   СТИЛИ ДЛЯ ГАЛОЧЕК СОГЛАСИЯ (Callback Form)
   ========================================= */
.callback-consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    text-align: left;
}

.callback-consent-wrapper input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #1f6390;
    width: 16px;
    height: 16px;
}

.callback-consent-wrapper label {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
}

.callback-consent-wrapper a {
    color: #1f6390;
    text-decoration: underline;
    transition: color 0.2s;
}

.callback-consent-wrapper a:hover {
    color: #0e4a6f;
}

@media (max-width: 768px) {
  .row-4 {
    display: flex;
    flex-direction: column;
    /* Меняем направление на колонку */
  }

  .row-3flex {
    flex-direction: column;
    /* Меняем направление на колонку */
  }

  .contact-box {
    display: none;
  }
}


/* ===== ОСНОВНОЙ БЛОК СЧЕТЧИКОВ ===== */
.counter-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    background: #fcfcfc; 
    padding: 3rem 2.5rem;
    border-radius: 0.75rem; 
    border: 0px solid #b7b7b7; 
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* ===== ОДИН ЭЛЕМЕНТ СЧЕТЧИКА ===== */
.counter-item {
    text-align: center;
    padding: 0.5rem 0.2rem;
    position: relative;
    transition: transform 0.2s ease;
}

.counter-item:hover {
    transform: translateY(-4px);
}

/* Разделители между элементами */
.counter-item::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #dee2e6, transparent); 
}

.counter-item:last-child::after {
    display: none;
}

/* ===== ЧИСЛО ===== */
.number {
    font-size: 4.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a2f44; 
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin-bottom: 0.25rem;
}

.number .suffix {
    font-size: 2.8rem;
    font-weight: 600;
    color: #6c7a8a; 
    margin-left: 0.1rem;
}

.number .prefix {
    font-size: 2.8rem;
    font-weight: 600;
    color: #6c7a8a; 
    margin-right: 0.1rem;
}

/* ===== ПОДПИСЬ ===== */
.label {
    font-size: 1.1rem;
    font-weight: 400;
    color: #495057; 
    letter-spacing: 0.03em;
    margin-top: 0.3rem;
    text-transform: uppercase;
    word-break: break-word;
    padding: 0 0.2rem;
}

/* ===== АДАПТИВНОСТЬ СЧЕТЧИКОВ ===== */
@media (max-width: 900px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
        padding: 2.5rem 1.8rem;
        border-radius: 1.5rem;
    }

    .counter-item::after {
        display: none;
    }

    .number {
        font-size: 3.8rem;
    }

    .number .suffix,
    .number .prefix {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
    .counter-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }

    .number {
        font-size: 3.6rem;
    }

    .number .suffix,
    .number .prefix {
        font-size: 2.2rem;
    }

    .label {
        font-size: 1rem;
    }
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.counter-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.counter-item:nth-child(1) { animation-delay: 0.1s; }
.counter-item:nth-child(2) { animation-delay: 0.2s; }
.counter-item:nth-child(3) { animation-delay: 0.3s; }
.counter-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}