* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: #020617;
    background: radial-gradient(circle at top, #e0f2fe 0, #f8fafc 45%, #ffffff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #1d4ed8;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
    border-bottom: 1px solid rgba(147, 197, 253, 0.45);
}

.site-header .container {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.brand-title {
    color: inherit;
    text-decoration: none;
}

.brand-title:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.brand-logo {
    display: block;
    height: calc(32px * 1.21 * 1.15);
    width: auto;
    max-width: calc(100px * 1.21 * 1.15);
    object-fit: contain;
}

.brand-dropdown {
    position: relative;
    flex-shrink: 0;
}

.brand-dropdown__summary {
    list-style: none;
}

.brand-dropdown__summary::-webkit-details-marker {
    display: none;
}

.brand-dropdown__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 50;
    min-width: 280px;
    max-width: min(320px, calc(100vw - 40px));
    padding: 8px 0;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-dropdown__link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
}

.brand-dropdown__link:hover {
    background: #f1f5f9;
    color: #1d4ed8;
}

.main-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    color: #e2e8f0;
    font-size: calc(12px * 1.2);
    padding: 5px 6px;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown__toggle {
    display: inline-block;
    color: #e2e8f0;
    font-size: calc(12px * 1.2);
    padding: 5px 6px;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown__toggle,
.nav-dropdown:focus-within .nav-dropdown__toggle {
    background: rgba(148, 163, 184, 0.4);
    color: #ffffff;
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    min-width: 220px;
    padding: 8px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    display: none;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
    display: block;
}

.nav-dropdown__item {
    display: block;
    padding: 10px 14px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
}

.nav-dropdown__item:hover {
    background: #f1f5f9;
    color: #1d4ed8;
}

.main-nav a:hover {
    background: rgba(148, 163, 184, 0.4);
    color: #ffffff;
}

.main-nav .nav-accent {
    color: #082f49;
    background: linear-gradient(120deg, #fef08a, #fcd34d);
    font-weight: 700;
}

.main-nav .nav-accent:hover {
    background: linear-gradient(120deg, #fde047, #f59e0b);
    color: #111827;
}

.hero {
    padding: 41px 0 0;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.05;
    margin: 0 0 14px;
}

.hero p {
    font-size: 18px;
    max-width: 640px;
    margin: 0 0 26px;
    color: #0f172a;
}

.hero-subtitle {
    font-size: 30px;
    line-height: 1.45;
    width: 100%;
    margin: 0 0 11px;
    text-align: left;
    text-wrap: balance;
    padding: 18px 20px;
    border-left: 6px solid #2563eb;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.13), rgba(14, 165, 233, 0.08));
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.12);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    border: 1px solid rgba(129, 140, 248, 0.4);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-meta-row {
    display: grid;
    grid-template-columns: minmax(380px, 620px) minmax(280px, 1fr);
    gap: 10px;
    align-items: center;
}

.hero-actions {
    justify-content: flex-end;
    padding-top: 0;
    align-self: center;
    padding-left: 12px;
}

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #eff6ff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.35);
}

.button.secondary {
    background: transparent;
    color: #1e293b;
    box-shadow: none;
    border: 1px solid #cbd5f5;
}

.pagination {
    margin-top: 18px;
}

.pagination__inner {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination__pages {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
}

.pagination__page:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.pagination__page--current {
    border-color: #1d4ed8;
    background: rgba(29, 78, 216, 0.1);
    font-weight: 700;
}

.pagination__disabled {
    opacity: 0.55;
    pointer-events: none;
}

.hero-note {
    font-size: 12px;
    color: #64748b;
}

.hero-panel {
    background: linear-gradient(135deg, #0f172a, #1f2937);
    border-radius: 20px;
    padding: 16px 16px 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
    width: 100%;
    max-width: 620px;
}

.hero-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
}

.hero-panel-tag {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
}

.hero-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
    gap: 10px;
}

.metric {
    padding: 10px 0 0;
}

/* Тонкая подстройка визуального выравнивания в плашке "Статус площадки" */
.hero-panel .hero-metrics .metric:nth-child(2) {
    transform: translateX(6px);
}

.hero-panel .hero-metrics .metric:nth-child(3) {
    transform: translateX(10px);
}

.metric-label {
    font-size: 0.8em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.3em;
    font-weight: 600;
}

.metric-hint {
    font-size: 0.8em;
    color: #6b7280;
}

.section {
    padding: 27px 0;
}

.section--carousel {
    padding-top: 0;
    margin-top: -120px;
}

.carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    max-width: 760px;
    margin: 0 auto;
}

.carousel__viewport {
    overflow: hidden;
    outline: none;
}

.carousel__track {
    display: flex;
    transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.carousel__slide {
    margin: 0;
    flex: 0 0 100%;
    position: relative;
}

.carousel__img {
    display: block;
    width: 100%;
    height: clamp(320px, 42vw, 560px);
    object-fit: contain;
    background: #0b1220;
}

.carousel__caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.62);
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.35;
    backdrop-filter: blur(8px);
}

.carousel__controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 10px;
}

.carousel__btn {
    pointer-events: auto;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    transition: transform 0.15s ease, background 0.15s ease;
}

.carousel__btn:hover {
    transform: translateY(-1px);
    background: #ffffff;
}

.carousel__dots {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 7px;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
    pointer-events: auto;
}

.carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background: rgba(226, 232, 240, 0.85);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    opacity: 0.85;
}

.carousel__dot[aria-current="true"] {
    width: 26px;
    opacity: 1;
    background: linear-gradient(120deg, #60a5fa, #22d3ee);
}

@media (prefers-reduced-motion: reduce) {
    .carousel__track {
        transition: none;
    }
}

@media (max-width: 900px) {
    .carousel {
        max-width: none;
    }
}

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

.section-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #6366f1;
    margin-bottom: 6px;
}

.section-title {
    font-size: 24px;
    margin: 0 0 4px;
}

.section-subtitle {
    font-size: 14px;
    color: #64748b;
}

.news-search {
    margin-top: 12px;
}

.news-search__row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.news-search__input {
    flex: 1 1 320px;
    min-width: 240px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 14px;
    outline: none;
}

.news-search__input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.news-search__button {
    padding: 10px 16px;
    font-size: 14px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 9px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 20px 18px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 16px;
}

.card-image {
    width: 100%;
    height: 248px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.card p {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 14px;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.news-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card__thumb-wrap {
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card__thumb--square {
    object-fit: contain;
    background: #ffffff;
}

.news-card__thumb--placeholder {
    width: 100%;
    height: 100%;
    min-height: 8rem;
    background: linear-gradient(140deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
}

.news-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.news-card__meta {
    margin: 0 0 2px;
}

.news-card__title {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.3;
    color: #0f172a;
}

.news-card h2.news-card__title {
    font-size: 17px;
}

.news-card h3.news-card__title {
    font-size: 17px;
}

.news-card__excerpt {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    flex: 1;
}

.news-card__cta {
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    margin-top: 6px;
}

.news-card__link:hover .news-card__cta {
    text-decoration: underline;
}

.news-card--empty {
    grid-column: 1 / -1;
    padding: 22px 24px;
}

.news-card--empty .news-card__excerpt {
    max-width: 42rem;
}

/* Полная новость: узкая колонка чтения, без «простыни» на всю ширину */
.section--article .container {
    max-width: 48rem;
}

.news-article {
    max-width: 42rem;
    margin: 0 auto;
}

.news-article__header {
    margin-bottom: 18px;
}

.news-article__title {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    line-height: 1.2;
    color: #0f172a;
}

.news-article__lead {
    margin: 0;
}

/* Галерея фото новости: по центру, одинаковая ширина, после текста */
.news-article__gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.news-article__figure {
    margin: 0;
    display: flex;
    justify-content: center;
    max-width: 42rem; /* align with text column width */
    margin-left: auto;
    margin-right: auto;
}

.news-article__image {
    width: 100%;
    max-width: 42rem; /* keep image within the reading column */
    height: auto;
    border-radius: 14px;
    background: #ffffff;
}

/* Внутри статьи ограничиваем высоту иллюстраций из блоков «Блок с фото» */
.news-article .media-block__figure {
    max-height: min(360px, 46vh);
}

.news-article .media-block__img {
    max-height: min(360px, 46vh) !important;
    height: auto !important;
    object-fit: cover;
}

.section-cta {
    margin-top: 10px;
}

.lead {
    font-size: 17px;
    color: #334155;
}

.meta {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 10px;
}

.prose {
    line-height: 1.7;
    font-size: 15px;
    color: #1f2937;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.prose a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.prose a:hover {
    text-decoration-thickness: 2px;
}

.prose p[data-align="left"] {
    text-align: left;
}

.prose p[data-align="center"] {
    text-align: center;
}

.prose p[data-align="right"] {
    text-align: right;
}

/* Rich text: картинки не вылезают за колонку; rendition уже уменьшает файл на сервере */
.prose .richtext-image img,
.prose img {
    max-width: 100%;
    height: auto;
}

.prose .richtext-image {
    display: block;
    margin: 1rem 0;
}

.prose .richtext-image.left {
    float: left;
    margin: 0.5rem 1.25rem 0.5rem 0;
    max-width: min(100%, 500px);
}

.prose .richtext-image.right {
    float: right;
    margin: 0.5rem 0 0.5rem 1.25rem;
    max-width: min(100%, 500px);
}

.prose .richtext-image.full-width {
    margin-left: 0;
    margin-right: 0;
}

.content-stream-paragraph .richtext-image img,
.content-stream-paragraph img {
    max-width: 100%;
    height: auto;
}

.content-stream-paragraph p[data-align="left"] {
    text-align: left;
}

.content-stream-paragraph p[data-align="center"] {
    text-align: center;
}

.content-stream-paragraph p[data-align="right"] {
    text-align: right;
}

.content-stream {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
}

.content-stream-after {
    margin-top: 14px;
}

.content-stream-heading .stream-heading {
    margin: 0 0 4px;
    color: #0f172a;
}

/* Rich text inside headings / titles should behave like inline text */
.stream-heading p,
.media-block__title p {
    display: inline;
    margin: 0;
}

.stream-heading a,
.media-block__title a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Наша команда: заголовок блока по центру */
.page-nasha-komanda .media-block__title,
.page-nasha-komanda .media-block__title p {
    text-align: center;
}

/* Наша команда: заголовок блока крупнее (+5px от базовых 18px) */
.page-nasha-komanda .media-block__title {
    font-size: 23px;
}

.content-stream-heading .stream-heading--h2 {
    font-size: clamp(22px, 3.5vw, 28px);
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.content-stream-heading .stream-heading--h3 {
    font-size: 20px;
    font-weight: 650;
}

.content-stream-heading .stream-heading--h4 {
    font-size: 17px;
    font-weight: 600;
    color: #334155;
}

.media-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.media-block__figure {
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.media-block__img {
    display: block;
    width: 100%;
    border-radius: 12px;
}

.media-block__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 650;
    color: #0f172a;
}

.media-block__body .media-block__caption {
    margin: 0;
}

.media-block__body .media-block__caption p:first-child {
    margin-top: 0;
}

.media-block__body .media-block__caption p:last-child {
    margin-bottom: 0;
}

.media-block--top,
.media-block--full,
.media-block--bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.media-block--bottom {
    flex-direction: column-reverse;
}

.media-block--left,
.media-block--right {
    display: grid;
    gap: 20px;
    align-items: start;
}

.media-block--left {
    grid-template-columns: minmax(160px, 36%) 1fr;
}

.media-block--right {
    grid-template-columns: 1fr minmax(160px, 36%);
}

.media-block--right .media-block__figure {
    grid-column: 2;
    grid-row: 1;
}

.media-block--right .media-block__body {
    grid-column: 1;
    grid-row: 1;
}

.media-block--text_only {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

/* Контакты: текст слева, карта справа */
.contacts-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
    align-items: start;
}

.contacts-split__title {
    margin: 0 0 10px;
}

.contacts-split__map {
    position: sticky;
    top: 92px; /* ниже шапки */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.contacts-split__iframe {
    display: block;
    width: 100%;
    height: var(--map-height, 360px);
    border: 0;
}

/* Residents page: map + list */
.residents {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 16px;
    align-items: start;
    margin-top: 14px;
}

.residents__map {
    width: 100%;
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.residents__panel {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    padding: 14px 14px 10px;
}

.residents__panel-title {
    margin: 0;
    font-size: 18px;
}

.residents__panel-subtitle {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.residents__list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.residents__item {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 12px 12px 10px;
}

.residents__name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
}

.residents__desc {
    margin-top: 6px;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.residents__meta {
    margin-top: 8px;
}

.residents__phone {
    font-size: 13px;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
}

.residents__phone:hover {
    text-decoration: underline;
}

.residents__phone--empty {
    color: #94a3b8;
    font-weight: 500;
}

.residents__empty {
    padding: 14px;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 900px) {
    .residents {
        grid-template-columns: 1fr;
    }

    .residents__map {
        min-height: 360px;
    }
}

@media (max-width: 900px) {
    .contacts-split {
        grid-template-columns: 1fr;
    }

    .contacts-split__map {
        position: static;
    }
}

@media (max-width: 720px) {
    .media-block--left,
    .media-block--right {
        grid-template-columns: 1fr;
    }

    .media-block--right .media-block__figure,
    .media-block--right .media-block__body {
        grid-column: auto;
        grid-row: auto;
    }
}

.grid-row {
    display: grid;
    align-items: stretch;
    width: 100%;
    margin: 0;
}

.grid-row--gap-tight {
    gap: 12px;
}

.grid-row--gap-normal {
    gap: 18px;
}

.grid-row--gap-wide {
    gap: 28px;
}

.grid-row--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-row--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-row--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-row--cols-auto {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.grid-row__cell {
    min-width: 0;
}

.grid-row__cell--full {
    grid-column: 1 / -1;
}

.grid-row__cell--span-1 {
    grid-column: span 1;
}

.grid-row__cell--span-2 {
    grid-column: span 2;
}

.grid-row__cell--span-3 {
    grid-column: span 3;
}

.grid-row__cell--span-4 {
    grid-column: span 4;
}

.grid-row__cell > .media-block {
    height: 100%;
}

@media (max-width: 900px) {
    .grid-row--cols-2,
    .grid-row--cols-3,
    .grid-row--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-row__cell--span-3,
    .grid-row__cell--span-4 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .grid-row--cols-2,
    .grid-row--cols-3,
    .grid-row--cols-4,
    .grid-row--cols-auto {
        grid-template-columns: 1fr;
    }

    .grid-row__cell--span-2,
    .grid-row__cell--span-3,
    .grid-row__cell--span-4 {
        grid-column: 1 / -1;
    }
}

.site-footer {
    padding: 24px 0;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 900px) {
    .hero {
        padding-top: 26px;
    }

    .hero-inner {
        gap: 11px;
    }

    .hero-meta-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-panel {
        margin-top: 5px;
        max-width: none;
    }

    .main-nav {
        display: none;
    }
}

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

    .cards {
        gap: 6px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
