body.home {
    background: #222222;
}

.gramatika-fonts {
    font-family: 'Gramatika', sans-serif;
    font-weight: 700;
}

.first-view-block {
    position: relative;
    margin-bottom: 35px;
    margin-top: 20px;
}

@media screen and (min-width: 768px) {
    .first-view-block {
        margin-top: 60px;
    }
}

.first-view-block .hero-text {
    font-size: 28px;
    font-family: 'Gramatika', sans-serif;
    line-height: 26px;
    text-transform: lowercase;
    display: inline;
}

@media screen and (min-width: 480px) {
    .first-view-block .hero-text {
        font-size: 40px;
    }
}

@media screen and (min-width: 690px) {
    .first-view-block .hero-text {
        font-size: 55px;
        line-height: 63px;
    }
}

@media screen and (min-width: 900px) {
    .first-view-block .hero-text {
        font-size: 70px;
        line-height: 73px;
    }
}

@media screen and (min-width: 1050px) {
    .first-view-block .hero-text {
        font-size: 85px;
        line-height: 73px;
    }
}

@media screen and (min-width: 1190px) {
    .first-view-block .hero-text {
        font-size: 95px;
        line-height: 82px;
    }
}

@media screen and (min-width: 1420px) {
    .first-view-block .hero-text {
        font-size: 112px;
        line-height: 90px;
    }
}

.first-view-block .hero-text span {
    color:  #ED4242;
}

.first-view-block .hero-social {
    display: inline-block;
    height: 46px;
    vertical-align: bottom;
    width: 100%;
    margin-top: 15px;
}

@media screen and (min-width: 768px) {
    .first-view-block .hero-social {
        width: auto;
        margin-top: initial;
    }
}

@media screen and (min-width: 1050px) {
    .first-view-block .hero-social {
        height: 50px;
    }
}
.first-view-block .hero-social .top-menu-social {
    display: flex;
    column-gap: initial;
    height: 100%;
    align-items: center;
    margin-left: initial;
    flex-wrap: wrap;
}

@media screen and (min-width: 768px) {
    .first-view-block .hero-social .top-menu-social {
        column-gap: 20px;
        margin-left: 40px;
    }
}

.first-view-block .hero-social .top-menu-social li a {
    font-size: 11px;
    font-weight: 500;
    text-decoration: underline;
}

@media screen and (min-width: 1050px) {
    .first-view-block .hero-social .top-menu-social li a {
        font-size: 12px;
    }
}

@media screen and (min-width: 1190px) {
    .first-view-block .hero-social .top-menu-social li a {
        font-size: 14px;
    }
}

.first-view-block .hero-social .top-menu-social li {
    min-width: 49%;
}

@media screen and (min-width: 768px) {
    .first-view-block .hero-social .top-menu-social li {
        min-width: auto;
    }
}

.indicators {
    height: auto;
}

@media screen and (min-width: 768px) {
    .indicators {
        background: url("/wp-content/themes/pytkamnet/assets/media/images/Frame-bg.png");
        background-position-y: 403px;
        background-repeat: no-repeat;
        height: 1120px;
        background-size: 190%;
        background-position-x: -395px;
    }
}

@media screen and (min-width: 1024px) {
    .indicators {
        background: url("/wp-content/themes/pytkamnet/assets/media/images/Frame-bg.png");
        background-position-y: 403px;
        background-repeat: no-repeat;
        height: 1120px;
        background-size: 130%;
        background-position-x: -250px;
    }
}

.indicators span.numbers {
    font-size: 40px;
}

@media (min-width: 768px) {
    .indicators span.numbers {
        font-size: 100px;
    }
}

/* Базовые стили для контейнера и элементов */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на маленьких экранах */
}

.grid-item {
}

/* Responsive: на экранах >= 768px (аналог md в Tailwind) */
@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    }
}

/* Span для седьмого элемента: растягивает на всю ширину */
.full-span {
    grid-column: span 2; /* На маленьких экранах: span 2 из 2 колонок = 100% */
}

@media (min-width: 768px) {
    .full-span {
        grid-column: span 3; /* На больших: span 3 из 3 колонок = 100% */
    }
}

.indicators span.description {
    max-width: 300px;
}

.agent-warning {
    padding: 5px;
    font-size: 22px;
    line-height: 27px;
    font-weight: 400;
    letter-spacing: 0;

}

@media (min-width: 768px) {
    .agent-warning {
        padding: 10px 10px;
        font-size: 42px;
        line-height: 55px;
    }

}

.bold {
    font-weight: 900;
}

.header .need-help {
    width: auto;
}

@media (min-width: 480px) {
    .header .need-help {
        width: 296px;
        max-width: 296px;
    }
}

.section-news {
    margin-top: 35px;
}

@media (min-width: 768px) {
    .section-news {
        margin-top: 50px;
    }
}

footer {
    margin-bottom: 35px;
    margin-top: 35px;
    padding: 0;
}

@media (min-width: 920px) {
    footer {
        margin-bottom: 105px;
    }
}

/* Базовые стили: по умолчанию 1 колонка для экранов < 480px */
.footer-items {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка */
    gap: 10px; /* Отступ между элементами (~16px) */
    max-width: 100%; /* Чтобы не выходило за контейнер */
    padding: 0;
}

@media (min-width: 768px) {
    .footer-items {
        padding: 20px;
    }
}

.footer-item {
    padding: 1rem;
}

.footer-item-1 {
    order: 5;
}
.footer-item-2 {
    order: 2;
}
.footer-item-3 {
    order: 3;
}
.footer-item-4 {
    order: 5;
}
.footer-item-5 {
    order: 6;
}
.footer-item-6 {
    order: 3;
}

.footer-item-2 li a {
    font-size: 14px;
    text-decoration: underline;
}

.footer-item-4 .footer-item-inner-text {
    font-size: 9px;
    text-transform: uppercase;
    max-width: 265px;
}

.footer-item-inner-text {
    max-width: 480px;
    font-size: 20px;
}

@media (min-width: 768px) {
    .footer-item-inner-text {
        font-size: 36px;
    }
}

/* Responsive: 2 колонки на экранах от 480px до 919px */
@media (min-width: 768px) {
    .footer-items {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive: 3 колонки на экранах от 920px и выше */
@media (min-width: 920px) {
    .footer-items {
        grid-template-columns: 30% 30% 40%;
    }

    .footer-item-1 {
        order: 1;
    }
    .footer-item-2 {
        order: 2;
    }
    .footer-item-3 {
        order: 3;
    }
    .footer-item-4 {
        order: 4;
    }
    .footer-item-5 {
        order: 5;
    }
    .footer-item-6 {
        order: 6;
    }
}

.footer-item-2 ul {
    gap: 15px;
}

@media (min-width: 768px) {
    .footer-item-2 ul {
        gap: 1.25rem;
    }
}

.text-grey {
    color: #A2A2A2;
}

.footer-item-top {
    display: flex;
    align-items: start;
}

.footer-item-bottom {
    display: flex;
    align-items: end;
}

.footer-item-title {
    margin-bottom: 10px;
}

.page-container {
    width: 100%;
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

section h2 {
    font-size: 14px;
}

.news-button:hover {
    background: #ED4242;
    border-color: #ED4242;
}

header .menu-block button {
    background: #ffffff;
}

.home header .menu-block button {
    background: #222222;
}

header .menu-block button span {
    background: #222222;
}

.home header .menu-block button span {
    background: #ffffff;
}

.swiper-slide {
    background: #2B2B2B;
    min-height: 160px;
    padding: 20px;
}

.swiper-slide div.items-start .d1 {
    margin-bottom: 10px;
}

.swiper-slide div.items-start {
    justify-content: space-between;
    min-height: 115px;
}

@media screen and (min-width: 1280px) {

    .swiper-slide {
        min-height: 190px;
        padding: 20px;
    }

    .swiper-slide div.items-start {
        min-height: 145px;
    }

}

.header-menu-second.no-hidden li {
    margin-bottom: 15px;
}

.news-blue-card {
    background: url("/wp-content/themes/pytkamnet/assets/media/images/news_card.png");
    background-size: cover;
    background-repeat: no-repeat;
    color: #4A5661;
}

ul.header-menu-second li:last-child a {
    border: 1px solid #A1C1E0;
    border-radius: 20px;
    padding: 8px 20px;
}

ul.header-menu-second li:last-child a:hover {
    border: 1px solid #A1C1E0;
}

.else-visible ul.header-menu-second li:last-child {
    margin-top: 15px;
}