/* Сustom CSS for Tilda */

:root {
  --color-primary: #07119f;
  --color-secondary: #4087ee;
  --color-bg: #ffffff;
  --color-bg-light: #f5f5f5;
  --color-text: #2b2a29;
  --color-text-muted: #898989;
  --color-border: #e5e5e5;
  --color-border-strong: #d1d1d1;
  --color-accent-ru: #c41e3a;

  --color-primary-08: rgba(7, 17, 159, 0.08);
  --color-primary-10: rgba(7, 17, 159, 0.1);
  --color-secondary-12: rgba(64, 135, 238, 0.12);
  --color-secondary-15: rgba(64, 135, 238, 0.15);
  --color-overlay-dark-15: rgba(15, 39, 68, 0.15);
  --color-overlay-dark-45: rgba(15, 39, 68, 0.45);

  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --section-y-sm: 72px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px var(--color-overlay-dark-15);
  --shadow-card: 0 4px 24px rgba(15, 39, 68, 0.06);
  --shadow-card-hover: 0 12px 40px var(--color-primary-10);

  --nav-height: 72px;
  --transition: 0.2s ease;
  --transition-image: 0.35s ease;

  --accent-bar-height: 4px;
  --accent-border-width: 3px;
  --card-padding-y: 32px;
  --card-padding-x: 24px;
  --card-padding: 28px;
  --lift-hover: -4px;
  --scale-image-hover: 1.03;
}

/* Скрыть скроллбар, но оставить прокрутку */

.no-scrollbar {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}


/*  Начало настроек меню-хедера на русском языке */

/* Горизонтальный список вторым рядом на планшете — скрыть до 1400px */

@media screen and (max-width: 1414px) {
    /*  <1415: Тут только ID блока меню ME101 на каждой странице (6 шт) */
    
  #rec2407753341, 
  #rec2448107261,
  #rec2448107951,
  #rec2448109011,
  #rec2448109441,
  #rec2448110141,
  #rec2464431001{
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

/*  Далее - ID блока меню Бургер ME401 на каждой странице (6 шт) */

  #rec2444690441, 
  #rec2546194001,
  #rec2546215801,
  #rec2546226201,
  #rec2546235401,
  #rec2546250501,
  #rec2546261801{
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

@media screen and (min-width: 1415px) {
  #rec2444690441, 
  #rec2546194001,
  #rec2546215801,
  #rec2546226201,
  #rec2546235401,
  #rec2546250501,
  #rec2546261801 {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media screen and (max-width: 1414px) {
  #rec2444690441 .t-menu-base:not(.t-menu-base_opened) .t-menu-base__list,
  #rec2546194001 .t-menu-base:not(.t-menu-base_opened) .t-menu-base__list,
  #rec2546215801 .t-menu-base:not(.t-menu-base_opened) .t-menu-base__list,
  #rec2546226201 .t-menu-base:not(.t-menu-base_opened) .t-menu-base__list,
  #rec2546235401 .t-menu-base:not(.t-menu-base_opened) .t-menu-base__list,
  #rec2546250501 .t-menu-base:not(.t-menu-base_opened) .t-menu-base__list,
  #rec2546261801 .t-menu-base:not(.t-menu-base_opened) .t-menu-base__list {
    display: none !important;
  }

  #rec2444690441 .t-menu-base.t-menu-base_opened .t-menu-base__list,
  #rec2546194001 .t-menu-base.t-menu-base_opened .t-menu-base__list,
  #rec2546215801 .t-menu-base.t-menu-base_opened .t-menu-base__list,
  #rec2546226201 .t-menu-base.t-menu-base_opened .t-menu-base__list,
  #rec2546235401 .t-menu-base.t-menu-base_opened .t-menu-base__list,
  #rec2546250501 .t-menu-base.t-menu-base_opened .t-menu-base__list,
  #rec2546261801 .t-menu-base.t-menu-base_opened .t-menu-base__list {
    display: flex !important;
  }
}
/*  Конец настроек меню-хедера на русском языке */

/* Главная - блок Аналитика - #rec2397775351 — адаптив заголовка */
#rec2397775351 .t-section__title,
#rec2397775351 .t-section__title [data-customstyle="yes"],
#rec2397775351 .t-section__title [data-customstyle="yes"] p {
  font-size: 42px !important;
  line-height: 1.2 !important;
}

@media screen and (max-width: 1199px) {
  #rec2397775351 .t-section__title,
  #rec2397775351 .t-section__title [data-customstyle="yes"],
  #rec2397775351 .t-section__title [data-customstyle="yes"] p {
    font-size: 42px !important;
  }
}

@media screen and (max-width: 959px) {
  #rec2397775351 .t-section__title,
  #rec2397775351 .t-section__title [data-customstyle="yes"],
  #rec2397775351 .t-section__title [data-customstyle="yes"] p {
    font-size: 38px !important;
  }
}

@media screen and (max-width: 639px) {
  #rec2397775351 .t-section__title,
  #rec2397775351 .t-section__title [data-customstyle="yes"],
  #rec2397775351 .t-section__title [data-customstyle="yes"] p {
    font-size: 28px !important;
    padding-top: 0px !important;
  }
}

@media screen and (max-width: 479px) {
  #rec2397775351 .t-section__title,
  #rec2397775351 .t-section__title [data-customstyle="yes"],
  #rec2397775351 .t-section__title [data-customstyle="yes"] p {
    font-size: 28px !important;
        padding-top: 0px !important;
  }
}

/* Языковое меню на портале выбора языка */
 .t-portal-lang,
  .t-portal-lang * {
    box-sizing: border-box;
  }

  .t-portal-lang {
    --t-primary: #07119f;
    --t-secondary: #4087ee;
    --t-bg: #ffffff;
    --t-bg-light: #f5f5f5;
    --t-text-muted: #898989;
    --t-border: #e5e5e5;
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid var(--t-border);
    background: var(--t-bg-light);
    margin: 0;
    color: var(--t-text-muted);
    font-family: Inter, system-ui, -apple-system, sans-serif;
  }

  .t-portal-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--t-text-muted) !important;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .t-portal-lang__btn:hover {
    color: var(--t-primary);
    background: var(--t-bg);
  }

  .t-portal-lang__btn:focus-visible {
    outline: 2px solid var(--t-secondary);
    outline-offset: 2px;
  }

  .t-portal-lang__btn.is-active {
    color: var(--t-primary);
    background: var(--t-bg);
    box-shadow: 0 1px 3px rgba(7, 17, 159, 0.08);
  }

  .t-portal-lang__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
  }

  .t-portal-lang__btn--ru .t-portal-lang__code {
    background: rgba(7, 17, 159, 0.1);
    color: var(--t-primary);
  }

  .t-portal-lang__btn--en .t-portal-lang__code {
    background: rgba(64, 135, 238, 0.15);
    color: var(--t-secondary);
  }

  .t-portal-lang__name {
    display: none;
  }

  @media (min-width: 640px) {
    .t-portal-lang__name {
      display: inline;
    }
  }

  @media (max-width: 480px) {
    .t-portal-lang__btn {
      padding: 8px 10px;
    }
  }

/* ——— Gradient block (portal / 404 hero) ——— */
.uc-gradient-block .t396__artboard,
.uc-gradient-block .t396__filter {
  background:
    radial-gradient(
      ellipse 80% 60% at 50% -20%,
      var(--color-secondary-12),
      transparent
    ),
    linear-gradient(
      180deg,
      var(--color-bg-light) 0%,
      var(--color-bg) 55%
    ) !important;
}

/* ——— Market card (language / portal) ——— */
.market-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.market-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.market-card--ru .market-card__accent {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-accent-ru)
  );
}

.market-card--en .market-card__accent {
  background: linear-gradient(
    90deg,
    var(--color-secondary),
    var(--color-primary)
  );
}

.market-card:hover,
.market-card:focus-visible {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(var(--lift-hover));
}

.market-card:hover .market-card__accent,
.market-card:focus-visible .market-card__accent {
  opacity: 1;
}

.market-card:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

/* ——— Expertise / industry card ——— */
.expertise-card {
  overflow: hidden;
}

.expertise-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-light);
  border-radius: var(--radius) var(--radius) 0 0;
}

.expertise-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-image);
}

.expertise-card:hover .expertise-card__image img {
  transform: scale(var(--scale-image-hover));
}

/* ——— Service card ——— */
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
}

/* ——— Approach card  ——— */
.approach-card {
  /*padding: var(--card-padding-y) var(--card-padding-x);*/
  border-left: var(--accent-border-width) solid var(--color-secondary);
  background: var(--color-bg);
}

.approach-card h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.approach-card p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}


.contact-group {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

/* Горизонтальный скролл сертификатов, без скроллбаров */
.uc-cert-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE / старый Edge */
  margin: 0 calc(-1 * var(--gutter, 24px)); /* опционально: до краёв экрана */
  padding: 0 var(--gutter, 24px);
}

.uc-cert-scroll::-webkit-scrollbar {
  display: none;                   /* Chrome, Safari */
  width: 0;
  height: 0;
}

/* ——— Logo marquee (trusted-by partners) ——— */
.logo-marquee {
  overflow: hidden;
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: logo-marquee 50s linear infinite;
}

.logo-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}

.logo-placeholder {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-border-strong);
  letter-spacing: 0.02em;
  opacity: 0.7;
  white-space: nowrap;
}

@keyframes logo-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    mask-image: none;
  }

  .logo-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 32px;
  }

  .logo-marquee__group {
    padding-right: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
  }

  .logo-marquee__group[aria-hidden='true'] {
    display: none;
  }
}

/* ==========================================
   Career + Expertise
   ========================================== */

.section {
    padding: 60px 0;
}

.section--light {
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 0 24px;*/
}

/* ==========================================
   Two-column layout
   ========================================== */

.grid-12 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: start;
}

.col-6 {
    display: flex;
    flex-direction: column;
    align-self: start;
    min-width: 0;
}

/* ==========================================
   Section headers
   ========================================== */

.section-header {
    margin-bottom: 48px;
    max-width: 640px;
    font-family: var(--font-heading);
}

.section-header .eyebrow {
    display: block;
    margin-bottom: 16px;

    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #4087ee;
}

.section-header h2 {
    margin: 0;

    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;

    color: #07119f;
}

/* ==========================================
   Timeline
   ========================================== */

.timeline {
    position: relative;
    padding-left: 34px;
}

.timeline::before {
    content: "";
    position: absolute;

    left: 8px;
    top: 8px;
    bottom: 8px;

    width: 2px;
    background: #e5e5e5;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;

    left: -34px;
    top: 5px;

    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: #4087ee;
    border: 3px solid #f5f5f5;
    box-shadow: 0 0 0 2px #4087ee;
}

.timeline-item__year {
    margin-bottom: 6px;

    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;

    color: #4087ee;
}

.timeline-item h4 {
    margin: 0 0 8px;

    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;

    color: #07119f;
}

.timeline-item p {
    margin: 0;

    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.7;

    color: #898989;
}

/* ==========================================
   Expertise
   ========================================== */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    min-height: 140px;
    height: 100%;

    padding: 28px;

    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;

    box-sizing: border-box;
    cursor: pointer;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
}

.expertise-grid .card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    min-height: 140px;
    height: 100%;
    padding: 28px;

    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-sizing: border-box;
    cursor: default;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.card h4 {
    margin: 0 0 10px;

    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #07119f;
    max-width: 95%;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.card__text {
    margin: 0;

    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.6;
    color: #898989;
}

/* Мягкая голубая подсветка при наведении */
@media (hover: hover) {
    .expertise-grid .card:hover {
        border-color: #4087ee;
        box-shadow: 0 12px 40px rgba(7, 17, 159, 0.1);
        transform: translateY(-4px);
    }
}

/* ==========================================
   ≤1200px — одна колонка
   ========================================== */
@media (max-width: 1200px) {

    .expertise-grid {
        grid-template-columns: 1fr;
    }
   
}

/* ==========================================
   ≤900px — одна колонка
   ========================================== */

@media (max-width: 960px) {
     .grid-12 {
        grid-template-columns: 1fr;
        gap: 72px;
    }
}

/* ==========================================
   Mobile
   ========================================== */

@media (max-width: 640px) {
    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .card {
        padding: 24px;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline-item::before {
        left: -28px;
    }
}


@media (max-width: 480px) {
    .section {
        padding: 30px 0;
    }
}
