 /*
 * Odessa News custom homepage
 */

.on-home {
	width: 100%;
}

.on-home__inner {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 28px 12px 40px;
	box-sizing: border-box;
}

.on-home__section-header {
	margin-bottom: 22px;
}

.on-home__title {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 400;
}

.on-home__hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 24px;
	align-items: start;
}

.on-home__lead,
.on-home__secondary-item {
	margin: 0;
}

.on-home__lead-link,
.on-home__secondary-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.on-home__lead-image,
.on-home__secondary-image {
	overflow: hidden;
	background: #f3f3f3;
}

.on-home__lead-image img,
.on-home__secondary-image img {
	display: block;
	width: 100%;
	height: auto;
}

.on-home__lead-content {
	padding-top: 12px;
}

.on-home__lead-title {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 500;
}

.on-home__secondary {
	display: grid;
	gap: 22px;
}

.on-home__secondary-title {
	margin: 10px 0 0;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 500;
}

.on-home__lead-link:hover .on-home__lead-title,
.on-home__secondary-link:hover .on-home__secondary-title {
	text-decoration: underline;
}

@media (max-width: 767px) {

	.on-home__inner {
		padding: 18px 12px 30px;
	}

	.on-home__section-header {
		margin-bottom: 16px;
	}

	.on-home__title {
		font-size: 24px;
	}

	.on-home__hero-grid {
		display: block;
	}

	.on-home__lead {
		margin-bottom: 18px;
	}

	.on-home__lead-title {
		font-size: 22px;
		line-height: 1.25;
	}

	.on-home__secondary {
		display: grid;
		gap: 14px;
	}

	.on-home__secondary-item {
		border-top: 1px solid #e8e8e8;
		padding-top: 14px;
	}

	.on-home__secondary-link {
		display: grid;
		grid-template-columns: 118px minmax(0, 1fr);
		gap: 12px;
		align-items: start;
	}

	.on-home__secondary-image {
		aspect-ratio: 4 / 3;
	}

	.on-home__secondary-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.on-home__secondary-title {
		margin: 0;
		font-size: 16px;
		line-height: 1.3;
	}

}

/* =========================================================
   Latest news
   ========================================================= */

.on-home__latest {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid #e5e5e5;
}

.on-home__block-header {
	margin-bottom: 14px;
}

.on-home__block-title {
	margin: 0;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 400;
}

.on-home__latest-list {
	border-top: 1px solid #e8e8e8;
}

.on-home__latest-item {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	gap: 14px;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px solid #eeeeee;
}

.on-home__latest-time {
	font-size: 12px;
	line-height: 1.4;
	color: #999;
}

.on-home__latest-title {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 400;
}

.on-home__latest-title a {
	color: #222;
	text-decoration: none;
}

.on-home__latest-title a:hover {
	color: #ff5b4d;
}

/* Mobile */

@media (max-width: 767px) {

	.on-home__latest {
		margin-top: 24px;
		padding-top: 18px;
	}

	.on-home__block-header {
		margin-bottom: 12px;
	}

	.on-home__block-title {
		font-size: 21px;
	}

	.on-home__latest-item {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 8px;
		padding: 9px 0;
	}

	.on-home__latest-time {
		font-size: 11px;
	}

	.on-home__latest-title {
		font-size: 15px;
		line-height: 1.35;
	}

}

/* Mobile readability refinements */

@media (max-width: 767px) {

.on-home__secondary-title {
font-size: 15px;
line-height: 1.35;
}

.on-home__latest-time {
font-size: 11px;
color: #777;
}

.on-home__latest-title {
font-size: 15px;
line-height: 1.4;
}

}

/* =========================================================
   Homepage desktop layout
   ========================================================= */

.on-home__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	grid-template-areas:
		"hero latest"
		"sections latest";
	gap: 32px;
	align-items: start;
}

.on-home__hero {
	grid-area: hero;
	min-width: 0;
}

.on-home__latest {
	grid-area: latest;
	min-width: 0;
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.on-home__sections {
	grid-area: sections;
	min-width: 0;
}

.on-home__latest-item {
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 8px;
	padding: 9px 0;
}

.on-home__latest-title {
	font-size: 14px;
	line-height: 1.35;
}

/* Mobile homepage order */

@media (max-width: 767px) {

	.on-home__layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"hero"
			"latest"
			"sections";
		gap: 0;
	}

	.on-home__latest {
		margin-top: 24px;
		padding-top: 18px;
		border-top: 1px solid #e5e5e5;
	}

	.on-home__latest-item {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 8px;
		padding: 9px 0;
	}

	.on-home__latest-title {
		font-size: 15px;
		line-height: 1.4;
	}

}

/* =========================================================
   Homepage category sections
   ========================================================= */

.on-home__sections {
    margin-top: 34px;
}

.on-home-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 38px;
}

.on-home-category {
    min-width: 0;
}

.on-home-category__header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #222;
}

.on-home-category__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
}

.on-home-category__lead {
    margin: 0;
}

.on-home-category__lead-link,
.on-home-category__lead-link:hover {
    color: inherit;
    text-decoration: none;
}

.on-home-category__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 9px;
    overflow: hidden;
    background: #f3f3f3;
}

.on-home-category__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.on-home-category__lead-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
}

.on-home-category__more {
    margin-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.on-home-category__more-item {
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    line-height: 1.4;
}

.on-home-category__more-item a {
    color: inherit;
}


/* =========================================================
   Photo reports
   ========================================================= */

.on-home-photos {
    margin-bottom: 38px;
}

.on-home-photos__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.on-home-photos__item {
    min-width: 0;
}

.on-home-photos__item a,
.on-home-photos__item a:hover {
    color: inherit;
    text-decoration: none;
}

.on-home-photos__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 8px;
    overflow: hidden;
    background: #f3f3f3;
}

.on-home-photos__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.on-home-photos__title {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}


/* =========================================================
   Partner news
   ========================================================= */

.on-home-partners {
    margin-bottom: 38px;
}

.on-home-partners__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

.on-home-partners__item {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    line-height: 1.4;
}

.on-home-partners__item a {
    color: inherit;
}


/* =========================================================
   Homepage sections mobile
   ========================================================= */

@media (max-width: 767px) {

    .on-home__sections {
        margin-top: 30px;
    }

    .on-home-pair {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        margin-bottom: 34px;
    }

    .on-home-category__title {
        font-size: 18px;
    }

    .on-home-category__lead-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .on-home-category__more-item {
        font-size: 15px;
        line-height: 1.4;
    }

    .on-home-photos {
        margin-bottom: 34px;
    }

    .on-home-photos__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .on-home-photos__title {
        font-size: 14px;
        line-height: 1.35;
    }

    .on-home-partners__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .on-home-partners__item {
        font-size: 15px;
        line-height: 1.4;
    }
}

/* =========================================================
   Homepage section finishing
   ========================================================= */

.on-home-category__header {
    border-bottom-width: 2px;
}

.on-home-category__title {
    font-weight: 700;
}

.on-home-photos .on-home-category__header,
.on-home-partners .on-home-category__header {
    margin-bottom: 14px;
}

@media (max-width: 767px) {

    .on-home-pair {
        gap: 34px;
        margin-bottom: 38px;
    }

    .on-home-photos {
        margin-top: 4px;
        margin-bottom: 38px;
    }

    .on-home-partners {
        margin-top: 4px;
    }

    .on-home-category__header {
        margin-bottom: 12px;
    }

    .on-home-category__title {
        font-size: 17px;
        line-height: 1.3;
    }
}

/* =========================================================
   Homepage hero overlay style
   ========================================================= */

.on-home__lead,
.on-home__secondary {
    position: relative;
    overflow: hidden;
    background: #222;
}

.on-home__lead a,
.on-home__secondary a {
    display: block;
    position: relative;
    height: 100%;
    color: #fff;
}

.on-home__lead a:hover,
.on-home__secondary a:hover {
    color: #fff;
}

.on-home__lead img,
.on-home__secondary img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.on-home__lead a::after,
.on-home__secondary a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.02) 35%,
        rgba(0, 0, 0, 0.72) 100%
    );
}

.on-home__lead-title,
.on-home__secondary-title {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 18px;
    margin: 0;
    color: #fff;
}

.on-home__lead-title {
    font-size: 23px;
    line-height: 1.3;
    font-weight: 600;
}

.on-home__secondary-title {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

/* Make all hero images form one clean grid */

.on-home__lead-image,
.on-home__secondary-image {
    height: 100%;
    margin: 0;
}

.on-home__lead-image {
    aspect-ratio: 16 / 10;
}

.on-home__secondary-image {
    aspect-ratio: 16 / 10;
}

@media (max-width: 767px) {

    .on-home__lead-title {
        left: 14px;
        right: 14px;
        bottom: 14px;
        font-size: 19px;
        line-height: 1.3;
    }

    .on-home__secondary-title {
        position: static;
        color: inherit;
    }

    .on-home__secondary a::after {
        display: none;
    }
}

/* =========================================================
   Homepage hero final layout
   Large lead + two equal secondary cards
   ========================================================= */

.on-home__hero-grid {
    display: block;
}

.on-home__lead {
    position: relative;
    width: 100%;
    margin: 0 0 8px;
    overflow: hidden;
    background: #222;
}

.on-home__lead-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.on-home__lead-link:hover {
    color: #fff;
    text-decoration: none;
}

.on-home__lead-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.on-home__lead-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.on-home__lead-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.02) 28%,
        rgba(0, 0, 0, 0.18) 52%,
        rgba(0, 0, 0, 0.82) 100%
    );
}

.on-home__lead-link:hover .on-home__lead-image img {
    transform: scale(1.015);
}

.on-home__lead-content {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 20px;
    color: #fff;
}

.on-home__lead-title {
    position: static;
    margin: 0 0 13px;
    color: #fff;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
}

.on-home__hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    line-height: 1.3;
}

.on-home__hero-date {
    min-width: 0;
}

.on-home__hero-time {
    margin-left: 5px;
}

.on-home__hero-views {
    flex: 0 0 auto;
    white-space: nowrap;
}


/* Secondary hero cards */

.on-home__secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.on-home__secondary-item {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #222;
}

.on-home__secondary-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

.on-home__secondary-link:hover {
    color: #fff;
    text-decoration: none;
}

.on-home__secondary-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.on-home__secondary-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.on-home__secondary-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.02) 30%,
        rgba(0, 0, 0, 0.18) 52%,
        rgba(0, 0, 0, 0.82) 100%
    );
}

.on-home__secondary-link:hover .on-home__secondary-image img {
    transform: scale(1.02);
}

.on-home__secondary-title {
    position: absolute;
    z-index: 2;
    left: 16px;
    right: 16px;
    bottom: 42px;
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.on-home__hero-meta--secondary {
    position: absolute;
    z-index: 2;
    left: 16px;
    right: 16px;
    bottom: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
}


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

@media (max-width: 767px) {

    .on-home__lead {
        margin-bottom: 12px;
    }

    .on-home__lead-link {
        aspect-ratio: 16 / 10;
    }

    .on-home__lead-content {
        left: 14px;
        right: 14px;
        bottom: 13px;
    }

    .on-home__lead-title {
        margin-bottom: 9px;
        font-size: 19px;
        line-height: 1.3;
    }

    .on-home__hero-meta {
        font-size: 10px;
        gap: 8px;
    }

    .on-home__secondary {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .on-home__secondary-item {
        background: transparent;
        overflow: visible;
    }

    .on-home__secondary-link {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 10px;
        align-items: start;
        aspect-ratio: auto;
        overflow: visible;
        color: inherit;
    }

    .on-home__secondary-link:hover {
        color: inherit;
    }

    .on-home__secondary-link::after {
        display: none;
    }

    .on-home__secondary-image {
        position: relative;
        inset: auto;
        grid-column: 1;
        grid-row: 1 / 3;
        width: 118px;
        height: 78px;
        overflow: hidden;
    }

    .on-home__secondary-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .on-home__secondary-title {
        position: static;
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        color: inherit;
        font-size: 14px;
        line-height: 1.35;
        font-weight: 600;
    }

    .on-home__hero-meta--secondary {
        position: static;
        grid-column: 2;
        grid-row: 2;
        align-self: end;
        justify-content: flex-start;
        gap: 8px;
        color: #888;
        font-size: 10px;
    }

    .on-home__hero-meta--secondary .on-home__hero-views {
        margin-left: auto;
    }
}

.on-home__secondary {
    background: #fff;
}

/* =========================================================
   Homepage category headers
   ========================================================= */

.on-home-category__header {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
    padding: 0;
    border: 0;
}

.on-home-category__title {
    flex: 0 0 auto;

    margin: 0;
    padding: 5px 9px;

    color: #fff;
    background: #555;

    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
}

.on-home-category__title--opinion {
    background: #2f8fd5;
}

.on-home-category__title--anons {
    background: #f39a16;
}

.on-home-category__title--ukraine {
    background: #d94841;
}

.on-home-category__title--world {
    background: #7656a8;
}

.on-home-category__title--photos {
    background: #218c7a;
}

.on-home-category__title--partners {
    background: #4f5963;
}

.on-home-category__description {
    min-width: 0;

    color: #999;

    font-size: 13px;
    line-height: 1.3;
}


/* Softer separators */

.on-home-category__more {
    margin-top: 10px;
    border-top: 0;
}

.on-home-category__more-item {
    border-bottom: 1px solid #ededed;
}

.on-home-partners__item {
    border-bottom: 1px solid #ededed;
}


/* Mobile category headers */

@media (max-width: 767px) {

    .on-home-category__header {
        gap: 7px;
        margin-bottom: 12px;
    }

    .on-home-category__title {
        padding: 5px 8px;
        font-size: 13px;
    }

    .on-home-category__description {
        font-size: 12px;
        line-height: 1.25;
    }
}

/* =========================================================
   Mobile homepage final tuning
   ========================================================= */

@media (max-width: 767px) {

    /* Compact secondary hero cards */

    .on-home__secondary {
        gap: 12px;
        background: #fff;
    }

    .on-home__secondary-item {
        padding-bottom: 12px;
        border-bottom: 1px solid #ededed;
    }

    .on-home__secondary-link {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        grid-template-rows: auto 1fr auto;
        column-gap: 11px;
        min-height: 74px;
    }

    .on-home__secondary-image {
        grid-column: 1;
        grid-row: 1 / 4;
        width: 112px;
        height: 74px;
    }

    .on-home__secondary-title {
        display: block;
        grid-column: 2;
        grid-row: 1 / 3;

        position: static;

        margin: 0;
        padding: 0;

        color: #222;
        font-size: 14px;
        line-height: 1.3;
        font-weight: 600;
    }

    .on-home__hero-meta--secondary {
        display: flex;
        grid-column: 2;
        grid-row: 3;

        position: static;

        align-self: end;
        justify-content: space-between;

        margin-top: 6px;

        color: #999;
        font-size: 10px;
        line-height: 1.2;
    }


    /* Reduce category length on mobile */

    .on-home-category__more-item:nth-child(n+2) {
        display: none;
    }
}

.on-home-category__header {
    align-items: center;
}

.on-home-category__description {
    color: #8a8a8a;
    font-size: 11px;
    line-height: 1.25;
}

@media (max-width: 767px) {

    .on-home__secondary {
        display: block;
    }

    .on-home__secondary-item {
        padding: 10px 0;
        border-bottom: 1px solid #ededed;
    }

    .on-home__secondary-image {
        display: none;
    }

    .on-home__secondary-link {
        display: block;
        min-height: 0;
        color: #222;
    }

    .on-home__secondary-title {
        position: static;
        display: block;
        margin: 0 0 5px;
        color: #222;
        font-size: 14px;
        line-height: 1.35;
        font-weight: 600;
    }

    .on-home__hero-meta--secondary {
        position: static;
        display: flex;
        justify-content: space-between;
        margin: 0;
        color: #999;
        font-size: 10px;
        line-height: 1.2;
    }
}

.on-home__hero {
    margin-bottom: 0;
}

.on-home__title-mobile {
    display: none;
}

@media (max-width: 767px) {

    .on-home__title-desktop {
        display: none;
    }

    .on-home__title-mobile {
        display: inline;
    }

    .on-home__section-header {
        margin-bottom: 8px;
    }

    .on-home__title {
        margin: 0;
        font-size: 18px;
        line-height: 1.3;
    }

    .on-home__lead {
        margin-bottom: 6px;
    }

    .on-home__secondary-item {
        padding: 7px 0;
    }
}

@media (max-width: 767px) {
    .on-home {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

.on-home__inner {
    padding-top: 0 !important;
}

    .on-home__section-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

body.home #main > .wrap.clearfix,
body.home #main .wrap.clearfix {
    padding-top: 0 !important;
}

.on-home__facebook {
    margin-top: 24px;
    overflow: hidden;
}

.on-home__facebook iframe,
.on-home__facebook .fb-page,
.on-home__facebook .fb-page span {
    max-width: 100% !important;
}

@media (max-width: 767px) {
    .on-home__facebook {
        margin-top: 20px;
        text-align: center;
    }
}
