/* ============================================================
   About Page — about.css
   ============================================================ */

/* ─── Common section rhythm ─────────────────────────────── */
.about-hero,
.about-story,
.about-stats,
.about-team,
.about-values,
.about-licenses,
.about-area,
.about-cta {
    padding: 72px 0;
}

.about-story    { background: #fff; }
.about-stats    { background: #1e3060; }
.about-team     { background: #fff; }
.about-values   { background: #f7f9fc; }
.about-licenses { background: #fff; }
.about-area     { background: #f7f9fc; }
.about-cta      { background: #fff; padding-bottom: 88px; }

.about-story__heading,
.about-team__heading,
.about-values__heading,
.about-licenses__heading,
.about-area__heading {
    text-align: center;
    margin-bottom: 12px;
}

.about-values__subtitle,
.about-licenses__subtitle,
.about-area__subtitle {
    text-align: center;
    color: #555;
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* ─── HERO ──────────────────────────────────────────────── */
.about-hero {
    min-height: 340px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

/* FIX: добавлен padding чтобы текст не обрезался у края */
.about-hero .container {
    padding-left: 24px;
    padding-right: 24px;
}

.about-hero__inner {
    max-width: 640px;
}

.about-hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    text-shadow: 0 2px 10px rgba(0,0,0,.40);
    line-height: 1.2;
}

.about-hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,.88);
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0,0,0,.30);
    max-width: 520px;
}

/* ─── STORY ─────────────────────────────────────────────── */
.about-story__heading { text-align: left; margin-bottom: 20px; }

.about-story__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-story__grid--has-image { grid-template-columns: 1fr 1fr; }

.about-story__text { font-size: 1rem; line-height: 1.75; color: #333; max-height: 350px; overflow: scroll;}
.about-story__text p { margin: 0 0 16px; }
.about-story__text p:last-child { margin-bottom: 0; }

.about-story__image {
    height: 100%;
    width: auto;
    margin: auto;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

h2.text-text-100.mt-3.-mb-1.text-\[1\.125rem\].font-bold {
    font-size: 24px;
}

/* ─── STATS ─────────────────────────────────────────────── */
.about-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    /* FIX: убираем возможный overflow clip */
    overflow: visible;
}

/* FIX: добавлен padding контейнеру stats */
.about-stats .container {
    padding-left: 24px;
    padding-right: 24px;
}

.about-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    border-right: 1px solid rgba(255,255,255,.12);
    text-align: center;
    /* FIX: текст не должен обрезаться */
    overflow: visible;
    min-width: 0;
}

.about-stats__item:last-child { border-right: none; }

.about-stats__number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #f5a623;
    line-height: 1;
    margin-bottom: 8px;
    /* FIX: не обрезать число */
    white-space: nowrap;
    overflow: visible;
}

.about-stats__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,.80);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ─── TEAM ──────────────────────────────────────────────── */
.about-team__heading { margin-bottom: 40px; }

.about-team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.about-team__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.about-team__photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8edf5;
    flex-shrink: 0;
}

.about-team__photo-wrap--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FIX: SVG placeholder в team строго 80px */
.about-team__photo-wrap--placeholder svg {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.about-team__photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-team__info { padding: 22px 24px 26px; }

.about-team__name { font-size: 1.1rem; font-weight: 700; color: #1a2a3a; margin: 0 0 4px; }

.about-team__role {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f5a623;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}

.about-team__bio { font-size: 0.92rem; color: #555; line-height: 1.65; margin: 0; }

/* ─── VALUES ────────────────────────────────────────────── */
.about-values__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-values__item {
    background: #fff;
    padding: 32px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: box-shadow .2s;
    /* FIX: обрезаем случайное переполнение */
    overflow: hidden;
}

.about-values__item:hover { box-shadow: 0 6px 24px rgba(0,0,0,.10); }

/* FIX: загруженная иконка */
.about-values__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

/* FIX: SVG-заглушка — строго 40×40, не растягивается */
.about-values__icon-default {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    margin-bottom: 16px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
}

.about-values__icon-default svg {
    width: 40px;
    height: 40px;
    display: block;
}

.about-values__title { font-size: 1.05rem; font-weight: 700; color: #1a2a3a; margin: 0 0 10px; }
.about-values__text  { font-size: 0.93rem; color: #555; line-height: 1.65; margin: 0; }

/* ─── LICENSES ──────────────────────────────────────────── */
.about-licenses__heading { margin-bottom: 12px; }

.about-licenses__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-licenses__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 22px;
    background: #f7f9fc;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    /* FIX: иконка не вылезает */
    overflow: hidden;
}

/* FIX: star SVG строго 40×40 */
.about-licenses__badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    overflow: hidden;
}

.about-licenses__badge svg {
    width: 40px;
    height: 40px;
    display: block;
}

.about-licenses__content { min-width: 0; }

.about-licenses__title { font-size: 0.97rem; font-weight: 700; color: #1a2a3a; margin: 0 0 6px; }
.about-licenses__desc  { font-size: 0.88rem; color: #666; line-height: 1.6; margin: 0; }

/* ─── SERVICE AREA ──────────────────────────────────────── */
.about-area__heading { margin-bottom: 12px; }

.about-area__cities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    list-style: none;
    margin: 0 auto 28px;
    padding: 0;
    justify-content: center;
    max-width: 720px;
}

.about-area__city {
    background: #fff;
    border: 1.5px solid #d0d8e8;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3060;
    white-space: nowrap;
}

.about-area__note { text-align: center; font-size: 0.92rem; color: #666; margin: 0; }

.about-area__call-link { color: #1e3060; font-weight: 700; text-decoration: none; }
.about-area__call-link:hover { color: #f5a623; }

/* ─── CTA ───────────────────────────────────────────────── */
.about-cta__inner {
    background: linear-gradient(135deg, #1e3060 0%, #2a4288 100%);
    padding: 56px 48px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(30,48,96,.20);
}

.about-cta__heading {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
}

.about-cta__text {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    line-height: 1.65;
    max-width: 540px;
    margin: 0 auto 36px;
}

.about-cta__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.about-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
}

.about-cta__btn:hover { transform: translateY(-2px); }

.about-cta__btn--primary {
    background: #f5a623;
    color: #fff;
    box-shadow: 0 4px 18px rgba(245,166,35,.40);
}

.about-cta__btn--primary:hover { background: #e09610; color: #fff; }

.about-cta__btn--secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 2px solid rgba(255,255,255,.60);
}

.about-cta__btn--secondary:hover {
    background: rgba(255,255,255,.22);
    border-color: #fff;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
    .about-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
    .about-stats__item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,.12); }
    .about-stats__item:last-child,
    .about-stats__item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

    .about-values__grid   { grid-template-columns: 1fr; }
    .about-licenses__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .about-hero,
    .about-story,
    .about-stats,
    .about-team,
    .about-values,
    .about-licenses,
    .about-area,
    .about-cta { padding: 52px 0; }

    .about-story__grid--has-image { grid-template-columns: 1fr; }
    .about-story__image-wrap      { order: -1; }

    .about-stats__grid { grid-template-columns: repeat(2, 1fr); }

    .about-cta__inner   { padding: 40px 24px; }
    .about-cta__buttons { flex-direction: column; align-items: stretch; }
    .about-cta__btn     { text-align: center; }
}




/* =========================================================
   About / Info Blocks
   For: about-info-blocks.php
   ========================================================= */

/* Main section wrapper */
.info-blocks {
  padding: clamp(48px, 6vw, 88px) 0;
  display: grid;
 /* gap: clamp(24px, 4vw, 42px);*/
}

/* Main block card */
.info-block,
.extra-info-block {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

/* Inner layout */
.info-block__content,
.extra-info-block__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px);
}

/* Text column */
.info-block__text,
.extra-info-block__text {
  max-width: 680px;
}

.info-block__text h2,
.extra-info-block__text h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #0f2347;
}

.info-block__text .description,
.extra-info-block__text .description {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.75;
  color: #475569;
}

.info-block__text .description p,
.extra-info-block__text .description p {
  margin: 0 0 16px;
}

.info-block__text .description p:last-child,
.extra-info-block__text .description p:last-child {
  margin-bottom: 0;
}

/* Features list */
.features-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.features-list li {
  position: relative;
  padding: 14px 16px 14px 46px;
  border-radius: 14px;
  background: rgba(30, 58, 138, 0.05);
  color: #1e293b;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f59e0b;
  color: #0f2347;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

/* Image column */
.info-block__image,
.extra-info-block__image {
  width: 100%;
}

.info-block__figure {
  margin: 0;
}

.info-block__img {
  display: block;
  width: auto;
  height: 450px;
  margin: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  background: #fff;

}


/* =========================================================
   STYLE 1 — DEFAULT / Clean White Premium
   ========================================================= */

.info-block--style-default,
.extra-info-block--style-default {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15, 35, 71, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.info-block--style-default::before,
.extra-info-block--style-default::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 4px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, #1e3a8a 0%, #fdcc20 100%);
}

.info-block--style-default .info-block__text h2,
.extra-info-block--style-default .extra-info-block__text h2 {
  color: #0f2347;
}

.info-block--style-default .info-block__text .description,
.extra-info-block--style-default .extra-info-block__text .description {
  color: #475569;
}

.info-block--style-default .info-block__text .description p,
.extra-info-block--style-default .extra-info-block__text .description p {
  color: #475569;
}

.info-block--style-default .features-list li,
.extra-info-block--style-default .features-list li {
  background: rgba(30, 58, 138, 0.05);
  border: 1px solid rgba(30, 58, 138, 0.08);
  color: #1e293b;
}

.info-block--style-default .features-list li::before,
.extra-info-block--style-default .features-list li::before {
  background: #fdcc20;
  color: #0f2347;
}

.info-block--style-default .info-block__img,
.extra-info-block--style-default .info-block__img {
  background: #ffffff;
  border: 1px solid rgba(15, 35, 71, 0.08);
  padding: 8px;
}


/* =========================================================
   STYLE 2 — ALT / Soft Blue Premium
   ========================================================= */

.info-block--style-alt,
.extra-info-block--style-alt {
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 55%, #ffffff 100%);
  border: 1px solid rgba(30, 58, 138, 0.10);
  box-shadow: 0 20px 55px rgba(30, 58, 138, 0.10);
}

.info-block--style-alt::before,
.extra-info-block--style-alt::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #1e3a8a 0%, #fdcc20 100%);
}

.info-block--style-alt::after,
.extra-info-block--style-alt::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 204, 32, 0.18) 0%, rgba(253, 204, 32, 0) 70%);
  pointer-events: none;
}

.info-block--style-alt .info-block__text h2,
.extra-info-block--style-alt .extra-info-block__text h2 {
  color: #12305f;
}

.info-block--style-alt .info-block__text .description,
.extra-info-block--style-alt .extra-info-block__text .description {
  color: #41556f;
}

.info-block--style-alt .info-block__text .description p,
.extra-info-block--style-alt .extra-info-block__text .description p {
  color: #41556f;
}

.info-block--style-alt .features-list li,
.extra-info-block--style-alt .features-list li {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(30, 58, 138, 0.10);
  color: #17335e;
  backdrop-filter: blur(4px);
}

.info-block--style-alt .features-list li::before,
.extra-info-block--style-alt .features-list li::before {
  background: #1e3a8a;
  color: #ffffff;
}

.info-block--style-alt .info-block__img,
.extra-info-block--style-alt .info-block__img {
  background: #ffffff;
  border: 1px solid rgba(30, 58, 138, 0.10);
  padding: 10px;
  box-shadow: 0 18px 42px rgba(30, 58, 138, 0.12);
}



/* =========================================================
   STYLE 3 — DARK / Deep Navy Premium
   ========================================================= */

.info-block--style-dark,
.extra-info-block--style-dark {
  background: linear-gradient(135deg, #0b1f43 0%, #102a56 52%, #16376d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 65px rgba(4, 12, 28, 0.28);
}

.info-block--style-dark::before,
.extra-info-block--style-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 4px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, #fdcc20 0%, #f59e0b 100%);
}

.info-block--style-dark::after,
.extra-info-block--style-dark::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 204, 32, 0.16) 0%, rgba(253, 204, 32, 0) 72%);
  pointer-events: none;
}

.info-block--style-dark .info-block__text h2,
.extra-info-block--style-dark .extra-info-block__text h2 {
  color: #ffffff;
}

.info-block--style-dark .info-block__text .description,
.extra-info-block--style-dark .extra-info-block__text .description {
  color: rgba(255, 255, 255, 0.84);
}

.info-block--style-dark .info-block__text .description p,
.extra-info-block--style-dark .extra-info-block__text .description p {
  color: #ffffff;
}

.info-block--style-dark .features-list li,
.extra-info-block--style-dark .features-list li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.info-block--style-dark .features-list li::before,
.extra-info-block--style-dark .features-list li::before {
  background: #fdcc20;
  color: #0f2347;
}

.info-block--style-dark .info-block__img,
.extra-info-block--style-dark .info-block__img {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.info-block--style-dark .info-block__caption,
.info-block--style-dark .info-block__description,
.extra-info-block--style-dark .info-block__caption,
.extra-info-block--style-dark .info-block__description {
  color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   Even / odd block details
   PHP already changes the HTML order, this only adds polish
   ========================================================= */

.info-block--even .info-block__image,
.extra-info-block--even .extra-info-block__image {
  transform: translateY(0);
}

.info-block--odd .info-block__image,
.extra-info-block--odd .extra-info-block__image {
  transform: translateY(0);
}

/* Optional: subtle hover effect */
.info-block,
.extra-info-block {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-block:hover,
.extra-info-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.info-block__description, .info-block__caption {
    display: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .info-block__content,
  .extra-info-block__content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .info-block__text,
  .extra-info-block__text {
    max-width: 100%;
  }

  .info-block__image,
  .extra-info-block__image {
    order: 2;
  }

  .info-block__text,
  .extra-info-block__text {
    order: 1;
  }

  .info-block__img {
    min-height: 280px;
    max-height: 440px;
  }
}

@media (max-width: 768px) {
  .info-blocks {
    padding: 42px 0;
    gap: 24px;
  }

  .info-block,
  .extra-info-block {
    border-radius: 22px;
  }

  .info-block__content,
  .extra-info-block__content {
    padding: 24px;
  }

  .info-block__text h2,
  .extra-info-block__text h2 {
    font-size: 30px;
  }

  .features-list li {
    padding: 13px 14px 13px 44px;
    font-size: 15px;
  }

  .info-block__img {
    min-height: 240px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .info-block__content,
  .extra-info-block__content {
    padding: 20px;
  }

  .info-block__text h2,
  .extra-info-block__text h2 {
    font-size: 26px;
  }

  .info-block__text .description,
  .extra-info-block__text .description {
    font-size: 15px;
    line-height: 1.65;
  }

  .info-block__img {
    min-height: 210px;
  }
}

.about-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 31, 67, 0.82) 0%, rgb(141 102 37 / 35%) 45%, rgba(11, 31, 67, 0.35) 100%);
  z-index: 1;
}

.about-hero .container {
  position: relative;
  z-index: 2;
}

.about-hero__inner {
  max-width: 720px;
  padding: 120px 0;
}

.about-hero__title {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.about-hero__subtitle {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
}