
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --bg: #F6F3EE;
    --white: #FFFFFF;
    --text: #3A3A3A;
    --muted: #777777;
    --sage: #8FA28F;
    --beige: #D6C6B0;
    --gold: #C9B68E;
    --border: #E8E6E1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-light {
    background: var(--bg);
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 500;
    line-height: 1.2;
}

h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 500;
    line-height: 1.3;
}

h3 {
    font-size: 21px;
    font-weight: 600;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border-radius: 6px;
    background: var(--sage);
    color: var(--white);
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--sage);
    cursor: pointer;
    transition: background 0.2s ease;
}

.button:hover {
    background: #788D78;
}

.button-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--beige);
}

.button-outline:hover {
    background: var(--bg);
}

.site-header {
    padding: 20px 0;
    background: var(--white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    text-decoration: none;
    font-size: 14px;
}

.hero {
    padding: 90px 0 110px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.hero-text p {
    font-size: 18px;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 45px 0 65px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 15px;
    }
}


/* Первый экран — обновлённая композиция */

.hero {
    background: #F6F3EE;
    padding: 45px 0 65px;
}

.hero-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 45px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100% !important;
    max-height: 620px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}

.hero-text h1 {
    max-width: 560px;
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0 55px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-image img {
        max-height: 460px;
    }
}


/* Мобильная версия главной страницы */

@media (max-width: 768px) {

    .site-header {
        padding: 10px 0;
    }

    .header-inner {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .site-logo img {
        width: 105px !important;
        height: auto;
    }

    .site-nav {
        display: none;
    }

    .site-header .button {
        padding: 12px 18px;
        font-size: 13px;
        white-space: nowrap;
    }

    .hero {
        padding: 35px 0 45px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 32px;
        line-height: 1.25;
    }

    .hero-text p {
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 25px;
    }

    .hero-actions .button {
        padding: 13px 18px;
        font-size: 13px;
    }

    .hero-image img {
        max-height: 380px;
        object-fit: cover;
    }
}


/* Наши направления */

.services-section {
    background: #FFFFFF;
}

.services-heading {
    max-width: 650px;
    margin-bottom: 42px;
}

.services-heading p {
    font-size: 17px;
    color: var(--muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 34px 30px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.service-number {
    color: var(--sage);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
}

.service-card h3 {
    margin-bottom: 16px;
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.service-link {
    margin-top: auto;
    color: #657E65;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.service-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .services-heading {
        margin-bottom: 28px;
    }

    .services-heading p {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .service-card {
        padding: 26px 24px;
    }

    .service-number {
        margin-bottom: 18px;
    }
}


/* Первый визит */

.first-visit-section {
    background: var(--bg);
}

.first-visit-heading {
    max-width: 760px;
    margin-bottom: 45px;
}

.first-visit-heading p {
    font-size: 17px;
    color: var(--muted);
    max-width: 640px;
}

.visit-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.visit-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 0;
    border-top: 1px solid var(--beige);
}

.visit-number {
    color: var(--sage);
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.visit-step h3 {
    margin-bottom: 12px;
}

.visit-step p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

.visit-bottom {
    margin-top: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.visit-bottom p {
    max-width: 610px;
    margin-bottom: 0;
    font-size: 17px;
    line-height: 1.7;
}

.visit-bottom strong {
    font-weight: 500;
}

.visit-bottom .button {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .first-visit-heading {
        margin-bottom: 25px;
    }

    .first-visit-heading p {
        font-size: 16px;
    }

    .visit-steps {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .visit-step {
        padding: 22px 0;
    }

    .visit-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        margin-top: 20px;
    }

    .visit-bottom p {
        font-size: 16px;
    }
}


/* Контакты */

.contacts-section {
    background: #ffffff;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 65px;
    align-items: center;
}

.contacts-info h2 {
    margin-bottom: 22px;
}

.contacts-description {
    max-width: 390px;
    margin-bottom: 35px;
    color: var(--muted);
    line-height: 1.7;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-label {
    display: block;
    margin-bottom: 10px;
    color: var(--sage);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-item p,
.contact-item a {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    line-height: 1.6;
    text-decoration: none;
}

.contacts-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;
}

.contacts-map {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e8e6e1;
    line-height: 0;
}

.contacts-map img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.contacts-map:hover img {
    transform: scale(1.025);
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contacts-description {
        margin-bottom: 28px;
    }

    .contacts-actions {
        margin-top: 25px;
    }

    .contacts-map img {
        height: 260px;
    }
}

/* Подвал сайта */

.site-footer {
    background: #f6f3ee;
    padding: 55px 0 25px;
    border-top: 1px solid #e8e6e1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #3a3a3a;
}

.footer-brand p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #777;
}

.footer-details p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.footer-details a,
.footer-links a {
    color: #3a3a3a;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a:hover,
.footer-details a:hover {
    color: #8fa28f;
}

.footer-bottom {
    border-top: 1px solid #e8e6e1;
    padding-top: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* Мобильная версия */

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 30px;
    }
}

/* Основатель центра */

.founder-section {
    background: #ffffff;
}

.founder-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 70px;
    align-items: center;
}

.founder-photo img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 8px;
}

.founder-label {
    display: block;
    margin-bottom: 18px;
    color: var(--sage);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

.founder-content h2 {
    margin-bottom: 8px;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 500;
}

.founder-position {
    color: #a38b68;
    font-size: 16px;
    margin-bottom: 28px;
}

.founder-line {
    width: 55px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 30px;
}

.founder-content h3 {
    max-width: 480px;
    margin-bottom: 20px;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.4;
}

.founder-description {
    max-width: 490px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

/* Основатель центра — мобильная версия */

@media (max-width: 768px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .founder-photo img {
        height: 420px;
        object-position: center 30%;
    }

    .founder-content h2 {
        font-size: 36px;
    }

    .founder-content h3 {
        font-size: 23px;
    }

    .founder-description {
        font-size: 15px;
        line-height: 1.75;
    }
}


/* Карточки направлений с фотографиями */

.service-card {
    padding: 0;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
}

.service-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 30px 30px;
}

.service-card-content .service-number {
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .service-image {
        height: 230px;
    }

    .service-card-content {
        padding: 24px;
    }
}


/* Карта и фотография входа */

.contacts-visuals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.contacts-visuals .contacts-map img {
    height: 300px;
}

.contacts-entrance {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
}

.contacts-entrance img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center 60%;
}

.contacts-entrance p {
    margin: 0;
    padding: 12px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 768px) {
    .contacts-visuals {
        grid-template-columns: 1fr;
    }

    .contacts-visuals .contacts-map img {
        height: 260px;
    }

    .contacts-entrance img {
        height: 300px;
    }
}
