@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --brown-main: #292421;
    --brown-light: #9B8148;
    --gray-200: #E0E4EA;
    --gray-600: #5B6B86;
    --gray-800: #384252;
    --bs-soft: 0 2px 8px rgba(99, 99, 99, 0.2);
}

html {
    scroll-behavior: smooth;
}


body {
    /* font-family: "Montserrat", serif; */
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    margin: 0;
}

a {
    text-decoration: none;
}

header {
    /* position: fixed; */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px);
    padding: 10px 15px;
    /* box-shadow: var(--bs-soft); */
}

section {
    padding: 60px 20px;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 50px;
    display: flex;
    justify-content: space-between;
    /* justify-content: flex-start; */
    align-items: center;
    gap: 20px;
    /* gap: 40px; */
}

section {
    padding: 30px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}




/* Оверлей (фон) */
.modal-overlay {
    display: none;
    /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    /* Полупрозрачный черный фон */
    backdrop-filter: blur(2px);
    /* Легкое размытие фона */
}

/* Контент модального окна */
.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    /* Ограничение ширины */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: "Montserrat", serif;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Кнопка закрытия */
.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

/* Стили заголовков и текста */
.modal-title {
    color: var(--brown-light);
    /* Красный цвет как на скриншоте */
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.contact-address {
    margin-bottom: 20px;
    font-size: 15px;
    color: #333;
}

/* Блок директора */
.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.contact-role {
    display: block;
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

.contact-name {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.contact-schedule {
    font-size: 13px;
    color: #555;
    margin-top: 5px;
    background: #f9f9f9;
    padding: 8px;
    border-radius: 4px;
}

.contact-details {
    text-align: right;
    min-width: 200px;
}

.contact-details .phone {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.contact-details .email {
    color: #005596;
    text-decoration: none;
    font-size: 14px;
}

.contact-details .email:hover {
    text-decoration: underline;
}

/* Стили таблицы */
.contact-table {
    display: flex;
    flex-direction: column;
}

.contact-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    /* Пропорции колонок */
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    font-size: 14px;
}

.contact-row:last-child {
    border-bottom: none;
}

.col-role {
    color: #333;
    font-weight: 500;
}

.small-text {
    font-size: 12px;
    color: #777;
    font-weight: normal;
}

.col-phone {
    color: #333;
    font-weight: bold;
    text-align: right;
}

.col-email a {
    color: #005596;
    text-decoration: none;
    word-break: break-all;
}

.col-email a:hover {
    text-decoration: underline;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .contact-row {
        grid-template-columns: 1fr;
        /* В одну колонку на телефоне */
        gap: 5px;
        padding: 15px 0;
    }

    .col-phone,
    .col-email {
        text-align: left;
        padding-left: 10px;
        /* Небольшой отступ для читаемости */
    }

    .contact-item {
        flex-direction: column;
    }

    .contact-details {
        text-align: left;
        margin-top: 10px;
    }
}


.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
}

.nav-text {
    font-family: "Montserrat", serif;
    font-size: 18px;
    color: var(--brown-main);
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-right: 20px;
}

.nav a {
    color: var(--brown-main);
    border-bottom: solid 2px transparent;
    transition: 0.2s;

}

.nav a:hover {
    border-bottom: solid 2px var(--brown-light);
}

.section-hero {
    padding: 0 20px 30px 20px;
}

.container.hero {
    border-radius: 30px;
    background-size: cover;
    position: relative;
    min-height: 480px;
    background-position-x: center;
    background-position-y: center;
    overflow: hidden;
    background-image: url('hero.jpg');
}

.container.hero::before {
    content: '';
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    top: 0;
    left: 0;
    z-index: 10;
    height: 100%;
    width: 100%;
}

.hero-info {
    position: relative;
    z-index: 100;
    padding: 40px;
    min-height: inherit;
    width: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-subtitle {
    color: var(--gray-200);
    font-size: 1.6rem;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 4rem;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-btns-mobile {
    display: none;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 2px white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    transition: 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.transparent {
    background-color: transparent;
    color: white;
}

.btn.white {
    background-color: white;
    color: var(--brown-main);
}

.container.services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-bottom: 60px;
}

.social-media {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.social-priem-block {
    display: flex;
    flex-direction: column;
    height: stretch;
    justify-content: space-between;
    gap: 30px;
}

.block-title,
.block-subtitle {
    margin: 0;
}

.block-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--brown-main);
    font-size: 2rem;
}

.block-subtitle {
    color: var(--gray-600);
    font-size: 1.2rem;
}

.social-media-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-services {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
}

.services-item {
    display: grid;
    gap: 20px;
    grid-template-columns: 100px auto;
    padding: 20px;
    border-radius: 20px;
    background-color: var(--gray-200);
    align-items: center;
    transition: 0.2s;
}

.services-item:hover {
    transform: translateY(-3px);
}

.services-img {
    background-color: white;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
}

.service-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-title,
.service-subtitle {
    margin: 0;
}

.service-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-800);
    font-size: 1.4rem;
}

.service-subtitle {
    color: var(--gray-600);
    font-size: 1rem;

}

.priem-btn {
    width: stretch;
    background-color: var(--gray-200);
    padding: 20px 30px;
    box-shadow: var(--bs-soft);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    transition: 0.2s;
}

.priem-btn:hover {
    transform: translateY(-3px);
}

.arrow-img {
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 50px;
}

.priem-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-800);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Сетка */
.partners-grid {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Карточка */
.partner-card {
    background: #eef2f6;
    /* Цвет как у ваших плашек */
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -8px rgba(44, 62, 80, 0.15);
    background: #ffffff;
    border-color: #cbd5e0;
}

/* Обёртка для логотипа (фиксированная высота для выравнивания) */
.logo-wrapper {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    width: 100%;
}

.logo-wrapper img {
    max-height: 100%;
    max-width: 160px;
    object-fit: contain;
    /* Фильтр для ч/б эффекта, если логотипы цветные */
    /* filter: grayscale(100%); transition: filter 0.3s; */
}

.partner-card:hover .logo-wrapper img {
    filter: grayscale(0%);
}

/* Название организации */
.partner-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* Подпись (если нужна) */
.partner-desc {
    font-size: 13px;
    color: #718096;
}

/* Адаптив для очень маленьких экранов */
@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-card {
        padding: 20px 16px;
    }
}

footer {
    background-color: var(--brown-main);
    border-radius: 50px 50px 0 0;
}


.footer-block {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding: 40px 20px;
}

.footer-info:nth-child(1) {
    grid-column: span 2;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    border-radius: 20px;
    padding: 10px;
    width: fit-content;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--brown-main);
    margin: 0;
}

.footer-subtitle {
    margin: 0;
    color: var(--gray-200);
    font-size: 0.9rem;
}

.tp-link {
    text-decoration: underline;
    color: var(--gray-600);
}

hr {
    width: stretch;
    margin: 0;
    border: solid var(--brown-light) 1px;
}

.footer-nav-title {
    color: var(--gray-200);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin: 0;
}

a.footer-subtitle {
    border-bottom: solid 1px transparent;
    transition: 0.2s;
    width: fit-content;
}

a.footer-subtitle:hover {
    border-bottom: solid 1px var(--gray-200);
}

@media (max-width: 1024px) {
    .services-item {
        grid-template-columns: 90px auto;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-subtitle {
        font-size: 0.9rem;
    }

    .services-img img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .footer-block {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 50px;
    }

    .footer-info:nth-child(1) {
        grid-column: span 3;
    }

    .footer-logo {
        width: stretch;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-subtitle {
        font-size: 0.9rem;
    }

    .block-title {
        font-size: 1.6rem;
    }

    .block-subtitle {
        font-size: 1rem;
    }

    footer {
        border-radius: 30px 30px 0 0;
    }

    .nav-text {
        font-size: 16px;
    }
}

@media (min-width: 481px) and (max-width: 615px) {
    .container.services {
        grid-template-columns: 1fr;
    }



    .section-hero {
        padding: 0px 20px 30px 20px;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {

    .container.services {
        grid-template-columns: 1fr;
    }

    .section-hero {
        padding: 0px 20px 30px 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-info {
        padding: 30px 20px;
    }

    .nav-text {
        display: none;
    }
    .modal-content{
        margin: 40px 20px;
        padding: 20px;
    }
    .modal-overlay{
        overflow: auto;
    }

    .btn {
        width: stretch;
        font-size: 16px;
    }

    .block-title {
        font-size: 1.5rem;
    }

    .block-subtitle {
        font-size: 1rem;
    }

    .priem-btn {
        padding: 15px 20px;
    }

    .priem-text {
        font-size: 1rem;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-subtitle {
        font-size: 0.82rem;
    }

    .services-item {
        grid-template-columns: 80px auto;
    }

    .services-img img {
        width: 40px;
        height: 40px;
    }

    .footer-block {
        grid-template-columns: 1fr 1fr;
        row-gap: 50px;
    }

    .footer-info:nth-child(1),
    .footer-info:nth-child(2) {
        grid-column: span 2;
    }

    .footer-title {
        font-size: 0.9rem;
    }

    .footer-subtitle {
        font-size: 0.8rem;
    }

    .footer-nav-title {
        font-size: 0.9rem;
    }

}