/* ============================================================
   Home page styles (mains page only).
   Comments are translit only: Russian text in CSS shows as mojibake
   in the owner's browser editor (rule 1.3).
   ============================================================ */

/* ---------- 1. Counters in the "numbers" block ---------- */
.number b span[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- 2. "Marks" block: 6 in a row, 3 at <=968, 2 at <=480 ----------
   Stil kartochek - kak u "Etapov raboty". Bylo: .flex-st (space-between)
   i shirina bez border-box, iz-za etogo v ryad vlezalo 2 elementa s dyroj. */
.marks-inner {
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
}
.marks-catalog {
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}
.marks-item {
    box-sizing: border-box;
    width: calc(100% / 6 - 10px);
    margin: 0;
    padding: 24px 12px 20px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    box-shadow: none;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.marks-item:hover {
    background: #fff;
    border-color: #4D96DD;
    box-shadow: 0 6px 18px rgba(24, 107, 187, .12);
}
.marks-item img {
    margin: 0 auto 12px;
}
.marks-item b {
    display: block;
    color: #186bbb;
    font-family: "Montserrat-Bold", sans-serif;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 6px;
}
.marks-head h2 {
    background: #fff;
    display: inline-block;
    padding: 20px 20px;
    margin-top: -20px;
}
@media screen and (max-width: 968px) {
    .marks-item { width: calc(100% / 3 - 10px); }
}
@media screen and (max-width: 580px) {
    .marks-item { width: calc(100% / 2 - 10px); }
}
@media screen and (max-width: 480px) {
    .marks-item { width: 100%; }
}

/* ---------- 3. "Numbers" block: 3 in a row ---------- */
.numbers-inner {
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}
.number {
    box-sizing: border-box;
    width: calc(100% / 3 - 20px);
    padding: 0 30px;
}
@media screen and (max-width: 900px) {
    .number { width: 100%; border-right: 0; border-bottom: 1px dashed rgba(255, 255, 255, .28); padding: 18px 0; }
    .number:last-child { border-bottom: 0; }
}

/* ---------- 4. "Stages" block: pravki vladeltca ---------- */
.stages {
    background: #f6f6f6;
    margin: 60px 0 100px;
    padding: 40px 20px;
    text-align: center;
    color: #333;
    border: 0;
}
.stages h2 {
    text-align: center;
    margin: 60px 0 30px;
    display: block;
}

/* ---------- 4b. "Stages" block: cards with step numbers ----------
   Grid: 6 in a row on desktop, 3 at <=768, 2 at <=480. */
.stages-inner {
    align-items: stretch;
    gap: 10px;
    margin: 30px auto 70px;
}
.stage {
    box-sizing: border-box;        /* inache padding i ramka uvelichivayut shirinu i 6-ya kartochka perenositsya */
    width: calc(100% / 6 - 10px);
    padding: 100px 15px 40px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    box-shadow: none;
    color: #666;
    font-family: "Montserrat-Bold", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    position: relative;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.stage:hover {
    border-color: #4D96DD;
    box-shadow: 0 6px 18px rgba(24, 107, 187, .12);
}
.stage img {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}
.stage .stage-num {
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: "Montserrat-Bold", sans-serif;
    font-size: 25px;
    line-height: 1;
    color: #D6E4F5;
}
.stages-link { margin-bottom: -52px; }

@media screen and (max-width: 768px) {
    .stage { width: calc(100% / 3 - 10px); }
}
@media screen and (max-width: 480px) {
    .stage { width: calc(100% / 2 - 10px); padding: 50px 10px 20px; font-size: 12px; }
    .stage img { width: 48px; height: 48px; margin-bottom: 12px; }
}

/* ---------- 5. Reveal on scroll ---------- */
.js-anim {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}
.js-anim.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js-anim { opacity: 1; transform: none; transition: none; }
    .stage { transition: none; }
}
