
/* ===========================
   PAGE — контейнер + вертикальные линии
   =========================== */

.page {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.page::before,
.page::after {
    content: "";
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(0,0,0,0.05);
}

.page::before { left: 0; }
.page::after  { right: 0; }


/* ===========================
   TOP-MENU — горизонтальные линии + сетка
   =========================== */

.top-menu {
    padding-top: 120px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: baseline;
    position: relative;
    margin-bottom: 100px;
}

/* верхняя линия */
.top-menu::before {
    content: "";
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.08);
}

/* нижняя линия */
.top-menu::after {
    content: "";
    position: absolute;
    bottom: -61px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.08);
}

/* ===========================
   LOGO
   =========================== */

.top-menu .logo {
    grid-column: 1 / span 2;
}

/* ===========================
   TOP-MENU — активный пункт
   =========================== */

.top-menu nav {
    position: relative;
    grid-column: 3 / span 10;
    display: flex;
    gap: 24px;          /* расстояние между пунктами */
    flex-wrap: nowrap;  /* запрет переноса на вторую строку */
}

.top-menu nav a {
    font-size: 16px;
    text-decoration: none;
    color: #000;
    padding-bottom: 4px;
    position: relative; /* важно для ::after */
}

/* активный пункт */
.top-menu nav a.active {
    font-weight: 600;
}

/* зелёное подчёркивание */
.top-menu nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* уменьшил, чтобы не попадало в сетку */
    width: 100%;
    height: 1px;
    background: #00A86B;
}



/* ===========================
   THREE COLS — сетка
   =========================== */

.three-cols {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    margin-top: 120px;
    gap: 24px;
}


/* ===========================
   ФУТЕР
   =========================== */

.footer {
    margin-top: 120px;
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.12);
}

.footer-inner {
    font-size: 14px;
    color: #555;
    letter-spacing: 0.03em;
}


.narrow {
    max-width: 880px; /* или 840px, или 900px — подберём */
    margin: 0 auto;
}