/* ===== MAIN CONTENT ===== */
.main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 24px 18px;
}

.section-muted {
  background: #f7f9fc;
}

.section-title {
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  color: #1a2b4c;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
  line-height: 1.15;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: #F4984C;
  border-radius: 2px;
}

/* ===== SERVICES LAYOUT (IMAGE LEFT, CONTENT RIGHT) ===== */
.services-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.services-image {
  flex: 1.3;
  width: 100%;
}

.services-image svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.services-content {
  flex: 1;
}

.services-intro {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 12px;
}

.services-table {
  width: 100%;
  border-collapse: collapse;
}

.services-table td {
  padding: 5px 5px;
  /*border-bottom: 1px dashed #ccc;*/
  font-size: 17px;
  vertical-align: top;
  line-height: 1.35;
}

.services-table td:first-child {
  width: 55px;
  text-align: center;
  padding-right: 5px;
}

.services-table td:first-child .service-icon {
  /*width: 45px;
  height: 45px;
  background: #e8f0fe;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #1a5fa8;
   
  
    max-height: 25px;
    width: auto;
    height: auto;
    display: block;*/
}

.services-table td:last-child {
  color: #444;
}

.services-table tr:last-child td {
  border-bottom: none;
}

/* ===== COMPETENCIES ===== */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 28px;
}

.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 6px 0;
}

.comp-item img {
  width: 30px;
  height: 30px;
  stroke: #1a2b4c;
  fill: none;
}

.comp-item .comp-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*.comp-item .comp-icon svg {
  width: 48px;
  height: 48px;
  stroke: #1a2b4c;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}*/

.comp-item .comp-text {
  font-size: 17px;
  /*font-weight: 600;
  color: #1a2b4c;*/
  line-height: 1.45;
  padding-top: 4px;
  vertical-align: middle;
}

/* ===== ADVANTAGES ===== */
.advantages-subtitle {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #1a2b4c;
  margin-bottom: 14px;
  line-height: 1.4;
}

.advantages-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.adv-item {
  position: relative;
  padding: 10px 0 10px 16px;
  margin-left:  0px;
  margin-right: 0;
  font-size: 17px;
  line-height: 1.5;
  border-bottom: 1px solid #dfe4e9;
}

.adv-item::before {
  position: absolute;
  top: 1.05em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f4984c;
  content: '';
}

.adv-item i {
  color: #FFD700; /* Желтый цвет */
    fill: #FFD700;  /* Важно для SVG: явно задает заливку */
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* ===== PARTNERS ===== */
.partners-grid {
  display: grid; 
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important; /* 7 колонок = ровно 2 ряда */
  gap: 5px;
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 5px;
  background: #fff;
  border-radius: 0;
  transition: box-shadow 0.2s;
  min-height: 20px;
 }

.partner-logo1 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 5px;
  background: #fff;
  border-radius: 0;
  transition: box-shadow 0.2s;
  min-height: 20px;
 }

/*.partner-logo:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.partner-logo svg {
  
  max-height: 70px;
  height: auto;
  width: auto;
}*/

.partner-logo img {
    max-width: 100%;
    max-height: 50px; /* <-- Ограничение высоты */
    width: auto;
    height: auto;
    display: block;
}

.partner-logo1 img {
    max-width: 100%;
    max-height: 100px; /* <-- Ограничение высоты */
    width: auto;
    height: auto;
    display: block;
}

.partners-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 5px;
  background: #fff;
  border-radius: 0;
  min-height: 20px;
}

.partners-grid > div img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .partners-grid {
    grid-auto-rows: 88px;
    align-items: stretch;
  }

  .partners-grid > .partner-logo,
  .partners-grid > .partner-logo1 {
    height: 88px;
    min-height: 88px;
    padding: 10px 18px;
  }

  .partners-grid > .partner-logo img,
  .partners-grid > .partner-logo1 img {
    width: auto;
    height: auto;
    max-width: 180px;
    max-height: 64px;
    object-fit: contain;
  }
}

/* ===== GEOGRAPHY ===== */
.geography-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 10px;
}

.geo-card {
  text-align: center;
  padding: 0px 7px;
}

.geo-card .icon {
  font-size: 36px;
  color: #1a5fa8;
  margin-bottom: 12px;
}

.geo-card img {
  height: 36px;
  color: #1a5fa8;
  margin-bottom: 15px;
  margin-top: 12px;
}

.geo-card h4 {
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #1a2b4c;
  margin-bottom: 6px;
  line-height: 1.25;
}

.geo-card p {
  font-size: 15px;
  /*color: #777;*/
  text-align: center;
}

.geo-note {
  text-align: center;
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 4px;
  background: #f4f0e8;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a2b4c;
  width: 100%;
}

/* ===== FOOTER ===== */
.footer {
  background: #FAFAFA;
  color: #0d2137;
  padding: 10px 10px 10px;
  border-top: 1px solid #dfe4e9;
}

.footer-grid {
  display: grid;  
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 15px;
}

.footer-col {
    overflow-wrap: break-word;
    word-break: break-word;
}

.footer-col h5 {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #0d2137;
  margin-bottom: 15px;
}

.footer-col p,
.footer-col a {
  font-size: 16px;
  color: #000;
  line-height: 1.7;
  display: block;
}

.footer-col a:hover {
  color: #0D58A6;
}

.footer-col a i {
  margin-right: 6px;
  width: 16px;
  text-align: center;
  color: #f0a830;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 5px;
  text-align: center;
  font-size: 15px;
  color: #777;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .geography-grid {
    grid-template-columns: repeat(3, 1fr);
  }
 
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .services-wrapper {
    flex-direction: column;
  }
  .services-image {
    flex: none;
    width: 100%;
  }
  .services-content {
    flex: none;
    width: 100%;
  }
  .competencies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 30px;
  }
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 30px 15px;
  }
  .section-title {
    font-size: 22px;
  }
  .services-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  .services-table td:first-child {
    width: 45px;
    padding-right: 15px;
  }
  .services-table td:first-child .service-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .competencies-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .geography-grid {
    grid-template-columns: 1fr;
  }
  .advantages-subtitle {
    font-size: 15px;
  }
  .adv-item {
    margin-left: -15px;
    margin-right: -15px;
    padding: 14px 15px;
  }
  .adv-item i {
    margin-right: 12px;
    font-size: 18px;
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .partner-logo {
    padding: 12px 8px;
    min-height: 60px;
  }
  .footer {
    padding: 30px 15px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 20px;
  }
  .services-intro {
    font-size: 13px;
  }
  .comp-item .comp-text {
    font-size: 14px;
  }
  .comp-item .comp-icon {
    width: 44px;
    height: 44px;
  }
  .comp-item .comp-icon svg {
    width: 40px;
    height: 40px;
  }
  .advantages-subtitle {
    font-size: 14px;
  }
  .adv-item {
    font-size: 14px;
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .main-content {
    min-height: 0;
    width: auto;
    margin-left: -14px;
    margin-right: -14px;
  }

  .geo-services-standalone {
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 14px 4px;
  }

  .geo-services-standalone .geo-services-flex {
    display: block;
  }

  .geo-services-standalone .geo-services-content {
    width: 100%;
  }

  .geo-services-standalone .geo-services-intro,
  .services-intro {
    font-size: 16px;
    line-height: 1.35;
  }

  .main-content > p {
    padding-left: 14px;
    padding-right: 14px;
  }

  .main-content > .section,
  .footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section {
    padding: 26px 14px;
  }

  .section-title {
    font-size: 20px;
    line-height: 1.15;
    margin-bottom: 18px;
  }

  .services-table,
  .services-table tbody {
    display: block;
    width: 100%;
  }

  .services-table tr {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 18px;
  }

  .services-table td {
    display: block;
    padding: 0 !important;
    font-size: 16px;
    line-height: 1.5;
  }

  .services-table td:first-child {
    width: auto;
    text-align: left;
    padding-right: 0;
  }

  .services-table td:first-child img {
    width: 42px;
    height: auto;
  }

  .comp-item {
    align-items: flex-start;
  }

  .comp-item .comp-text {
    font-size: 16px;
    line-height: 1.5;
    padding-top: 0;
  }

  .advantages-subtitle {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 16px;
  }

  .adv-item {
    margin-left: 0;
    margin-right: 0;
    padding: 10px 0;
    font-size: 15px;
    line-height: 1.55;
  }

  .geography-grid {
    gap: 14px;
  }

  .geo-card {
    padding: 6px 0;
  }

  .geo-card img {
    margin-top: 8px;
    margin-bottom: 12px;
  }

  .geo-card h4 {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .geo-note {
    margin-top: 12px;
    padding: 14px;
    font-size: 16px;
    line-height: 1.35;
    text-align: center;
  }

  .footer {
    margin-left: 0;
    margin-right: 0;
    padding: 24px 14px 20px;
  }

  .footer-grid {
    gap: 18px;
  }

  .footer-col h5 {
    margin-bottom: 8px;
  }
}

/* =========================================
   СТИЛИ ДЛЯ БЛОКА "ОКАЗЫВАЕМ УСЛУГИ"
   (Автономный блок вне основного контейнера)
   ========================================= */

.geo-services-standalone {
    width: 100%;
    margin: 0;
    padding: 0px 0px;
    background: #ffffff;
    box-sizing: border-box;
    /*font-family: 'Open Sans', 'PT Sans Narrow', Arial, sans-serif;
    color: #333;*/
}

.geo-services-standalone * {
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .topic:has(> .col-12 > .home-services-column) > .col-9,
    .topic:has(> .col-12 > .home-services-column) > .col-3 {
        display: flex;
        align-items: center;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .topic:has(> .col-12 > .home-services-column) > .col-9 > .h3zag {
        margin-bottom: 0;
    }
}

.topic > .col-12:has(> .home-services-column) {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    grid-template-areas:
        "rule rule"
        "image services"
        "content content";
    gap: 0 32px;
    align-items: start;
}

.topic > .col-12:has(> .home-services-column) > hr {
    grid-area: rule;
    width: 100%;
    margin: 0 0 16px;
}

.topic > .col-12:has(> .home-services-column) > .docimg {
    grid-area: image;
    width: 100%;
    height: clamp(340px, 26vw, 460px);
    margin: 0;
    padding: 0;
    float: none;
    object-fit: cover;
    border-radius: 4px;
}

.topic > .col-12:has(> .home-services-column) > .home-services-column {
    grid-area: services;
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
}

.topic > .col-12:has(> .home-services-column) > .home-services-column > .home-projects-link {
    margin: 18px 0 0;
    font-size: 17px;
    font-weight: 700;
}

.topic > .col-12:has(> .home-services-column) > .home-services-column > .home-projects-link a {
    color: #0d58a6;
    text-decoration: none;
}

.topic > .col-12:has(> .home-services-column) > .home-services-column > .home-projects-link a:hover,
.topic > .col-12:has(> .home-services-column) > .home-services-column > .home-projects-link a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.topic > .col-12:has(> .home-services-column) > .main-content {
    grid-area: content;
    margin-top: 24px;
}

/* Основная сетка: картинка слева, контент справа */
.geo-services-standalone .geo-services-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.geo-services-standalone .geo-services-image {
    flex: 1.3;
    width: 100%;
}

.geo-services-standalone .geo-services-image svg,
.geo-services-standalone .geo-services-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: none;
}

.geo-services-standalone .geo-services-content {
    flex: 1;
    padding-top: 0;
    margin-top: 0;
}

/* Заголовок (полностью повторяет .section-title сайта) */
.geo-services-standalone .geo-services-title {
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: #1a2b4c;
    margin: 0 0 20px 0;
    padding-top: 0;
    position: relative;
    padding-bottom: 12px;
    line-height: 1.3;
}

.geo-services-standalone .geo-services-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #f0a830;
    border-radius: 2px;
}

/* Вводный текст - БЕЗ верхнего отступа */
.geo-services-standalone .geo-services-intro {
    font-size: 16px;
    color: #444;
    line-height: 1.35;
    margin: 0 0 14px 0;
    padding-top: 0;
}

/* Таблица компетенций */
.geo-services-standalone .geo-services-table {
    width: 100%;
    border-collapse: collapse;
}

.geo-services-standalone .geo-services-table td {
    padding: 5px 0;
    /*border-bottom: 0px dashed #ccc;*/
    font-size: 17px;
    vertical-align: middle;
    line-height: 1.35;
   /* color: #333;8*/
}

.geo-services-standalone .geo-services-table tr:last-child td {
    border-bottom: none;
}

.geo-services-standalone .geo-services-table td:first-child {
    width: 60px;
    padding-right: 0px;
    vertical-align: top;
}

.geo-services-standalone .geo-service-icon {
    /*width: 25px;
    height: 25px;
    background: #e8f0fe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1a5fa8;
    */
    max-width: 100%;
    max-height: 25px;
    width: auto;
    height: auto;
    display: block;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .geo-services-standalone {
        padding: 0;
    }
    
    .geo-services-standalone .geo-services-flex {
        flex-direction: column;
        gap: 25px;
    }
    
    .geo-services-standalone .geo-services-image,
    .geo-services-standalone .geo-services-content {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 1400px) {
    .competencies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .competencies-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comp-item {
        align-items: center;
        gap: 14px;
        min-height: 68px;
        padding: 12px 0;
        border-bottom: 1px solid #e2e7ec;
    }

    .comp-item:last-child {
        border-bottom: 0;
    }

    .comp-item .comp-icon {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }

    .comp-item img {
        width: 36px;
        height: 36px;
        object-fit: contain;
    }

    .comp-item .comp-text {
        font-size: 16px;
        line-height: 1.4;
    }

    .topic:has(> .col-12 > .home-services-column) {
        align-items: center;
    }

    .topic:has(> .col-12 > .home-services-column) > .col-9,
    .topic:has(> .col-12 > .home-services-column) > .col-3 {
        display: flex;
        align-items: center;
        align-self: center;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .topic:has(> .col-12 > .home-services-column) > .col-9 > .h3zag {
        margin-bottom: 0;
    }

    .geo-services-standalone {
        width: calc(100% + 28px);
        margin-left: -14px;
        margin-right: -14px;
        padding: 0 14px 4px;
    }

    .topic > .col-12:has(> .home-services-column) {
        display: block;
    }

    .topic > .col-12:has(> .home-services-column) > .home-services-column {
        display: block;
        min-height: 0;
    }

    .topic > .col-12:has(> .home-services-column) > hr {
        margin-bottom: 16px;
    }

    .topic > .col-12:has(> .home-services-column) > .home-services-column > .home-projects-link {
        margin-top: 6px;
    }

    .topic > .col-12:has(> .home-services-column) > .main-content {
        margin-top: 20px;
    }

    .advantages-list {
        grid-template-columns: 1fr;
    }

    .adv-item {
        min-height: 48px;
        padding: 12px 0 12px 24px;
        font-size: 16px;
        line-height: 1.4;
    }

    .adv-item::before {
        top: 20px;
        left: 4px;
        width: 7px;
        height: 7px;
    }

    .geography-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .geo-card {
        padding: 4px 2px;
    }

    .geo-card h4 {
        font-size: 15px;
    }

    .geo-services-standalone .geo-services-title {
        font-size: 22px;
    }

    .geo-services-standalone .geo-services-intro {
        font-size: 16px;
        line-height: 1.35;
    }

    .geo-services-standalone .geo-services-table td {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .geo-services-standalone .geo-service-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .geo-services-standalone {
        width: calc(100% + 28px);
        margin-left: -14px;
        margin-right: -14px;
        padding: 0 14px 4px;
    }
    
    .geo-services-standalone .geo-services-title {
        font-size: 20px;
    }
    
    .geo-services-standalone .geo-services-table td:first-child {
        width: 50px;
        padding-right: 15px;
    }
}
