/*
Theme Name: Троицкие Усадьбы
Theme URI: https://demo.kidshowcase.site
Author: Anastasia
Description: Кастомная тема информационного портала КП «Троицкие Усадьбы»
Version: 1.0
Text Domain: troitskie-usadby
*/


:root {
    --green: #173b32;
    --green-light: #31594e;
    --cream: #f5f2ea;
    --sand: #ded6c5;
    --white: #ffffff;
    --text: #202522;
    --muted: #6d746f;
    --line: #d9ddd8;

    --container: 1240px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}


img {
    max-width: 100%;
    height: auto;
}


a {
    color: inherit;
    text-decoration: none;
}


.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.site-header {
    position: relative;
    z-index: 100;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    min-height: 112px;

    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 110px;
    align-items: center;

    gap: 30px;
}


/* ЛОГОТИП */

.site-header__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: max-content;

    text-decoration: none;
}

.site-header__logo-image {
    display: block;

    width: 160px;
    height: auto;

    max-width: 100%;
}


/* МЕНЮ */

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 34px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.main-menu li {
    margin: 0;
    padding: 0;
}

.main-menu a {
    position: relative;

    display: inline-flex;
    align-items: center;

    padding: 8px 0;

    color: var(--text);

    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;

    text-decoration: none;

    transition:
        color .2s ease,
        font-weight .2s ease;
}

.main-menu a::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;

    height: 1px;

    background: var(--green);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform .2s ease;
}

.main-menu a:hover,
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a {
    color: var(--green);
    font-weight: 700;
}

.main-menu a:hover::after,
.main-menu .current-menu-item > a::after,
.main-menu .current_page_item > a::after {
    transform: scaleX(1);
}


/* ПРАВАЯ ЧАСТЬ */

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 18px;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    padding: 0;

    border: 0;
    background: transparent;

    color: var(--text);

    cursor: pointer;

    transition:
        color .2s ease,
        transform .2s ease;
}

.header-icon:hover {
    color: var(--green);
    transform: translateY(-1px);
}

.header-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* HEADER — ПЛАНШЕТ */

@media (max-width: 900px) {

    .site-header__inner {
        grid-template-columns: 160px 1fr 90px;
        gap: 20px;
    }

    .site-header__logo-image {
        width: 145px;
    }

    .main-menu {
        gap: 20px;
    }

    .main-menu a {
        font-size: 14px;
    }
}


/* HEADER — МОБИЛЬНЫЕ */

@media (max-width: 720px) {

    .site-header__inner {
        grid-template-columns: 1fr auto;

        min-height: 90px;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__logo-image {
        width: 145px;
    }

    .site-header__actions {
        gap: 12px;
    }
}


@media (max-width: 420px) {

    .site-header__inner {
        min-height: 82px;
    }

    .site-header__logo-image {
        width: 125px;
    }
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3,
p {
    margin-top: 0;
}


h1,
h2,
h3 {
    letter-spacing: -.035em;
}


h1 {
    margin-bottom: 28px;

    font-size: clamp(48px, 7vw, 92px);
    line-height: .94;
    font-weight: 500;
}


h2 {
    margin-bottom: 22px;

    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
    font-weight: 500;
}


h3 {
    font-size: 23px;
    line-height: 1.15;
}


.eyebrow {
    margin-bottom: 16px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;

    color: var(--green);
}


/* =========================
   BUTTONS
========================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0 26px;

    border-radius: 100px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform .2s ease,
        background .2s ease;
}


.button:hover {
    transform: translateY(-2px);
}


.button--dark {
    background: var(--green);
    color: var(--white);
}


.button--light {
    background: var(--white);
    color: var(--green);
}


.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 700;

    color: var(--green);
}


.text-link:hover {
    text-decoration: underline;
}


/* =========================
   HERO
========================= */

.hero {
    padding: 80px 0 100px;
}


.hero__inner {
    min-height: 620px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}


.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 40px 0;
}


.hero h1 span {
    display: block;
    color: var(--green);
}


.hero__text {
    max-width: 510px;

    margin-bottom: 34px;

    font-size: 19px;
    line-height: 1.55;
    color: var(--muted);
}


.hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


.hero__visual {
    position: relative;

    min-height: 560px;

    background:
        linear-gradient(
            145deg,
            #b9c1b7,
            #87988d 45%,
            #50695d
        );

    border-radius: 4px;
    overflow: hidden;
}


.hero__visual::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(20, 40, 34, .45),
            transparent 55%
        );
}


.hero__visual-label {
    position: absolute;
    left: 28px;
    bottom: 24px;

    display: flex;
    gap: 18px;

    color: white;

    font-family: monospace;
    font-size: 11px;
    letter-spacing: .08em;
}


/* =========================
   ANNOUNCEMENT
========================= */

.announcement {
    padding: 30px 0;

    background: var(--green);
    color: white;
}


.announcement__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}


.announcement .eyebrow {
    color: #aebdb5;
}


.announcement h2 {
    margin-bottom: 10px;

    font-size: 32px;
}


.announcement p:not(.eyebrow) {
    max-width: 650px;
    margin-bottom: 0;

    color: #c8d1cc;
}


.announcement .text-link {
    color: white;
    white-space: nowrap;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 110px 0;
}


.section--muted {
    background: #ebe8df;
}


.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 48px;
}


.section-heading h2 {
    margin-bottom: 0;
}


/* =========================
   NEWS
========================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


.card {
    background: var(--white);
}


.card__image {
    aspect-ratio: 1.35 / 1;
    overflow: hidden;
}


.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform .4s ease;
}


.card:hover .card__image img {
    transform: scale(1.03);
}


.card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #ccd4cd;

    color: var(--green);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}


.card__content {
    padding: 28px;
}


.card__date {
    margin-bottom: 14px;

    color: var(--muted);

    font-size: 12px;
    letter-spacing: .08em;
}


.card h3 {
    margin-bottom: 14px;
}


.card h3 a:hover {
    color: var(--green-light);
}


.card__content > p:last-child {
    margin-bottom: 0;

    color: var(--muted);
    font-size: 14px;
}


.empty-state {
    grid-column: 1 / -1;

    padding: 50px;

    border: 1px dashed var(--line);

    color: var(--muted);

    text-align: center;
}


/* =========================
   EVENTS
========================= */

.events-list {
    border-top: 1px solid var(--line);
}


.event-item {
    display: grid;
    grid-template-columns: 100px 1fr 40px;
    align-items: center;

    gap: 30px;

    padding: 28px 0;

    border-bottom: 1px solid var(--line);
}


.event-item__date {
    display: flex;
    flex-direction: column;

    color: var(--green);
}


.event-item__date span {
    font-size: 34px;
    line-height: 1;
    font-weight: 600;
}


.event-item__date small {
    margin-top: 5px;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
}


.event-item h3 {
    margin-bottom: 6px;
}


.event-item p {
    margin-bottom: 0;

    color: var(--muted);
}


.event-item__arrow {
    font-size: 24px;
    color: var(--green);
}


/* =========================
   LIFE
========================= */

.life-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 100px;
}


.life-grid__intro p:last-child {
    max-width: 470px;

    color: var(--muted);
    font-size: 17px;
}


.life-grid__items {
    border-top: 1px solid var(--line);
}


.life-card {
    display: grid;
    grid-template-columns: 60px 1fr 30px;
    align-items: center;

    gap: 24px;

    padding: 28px 0;

    border-bottom: 1px solid var(--line);
}


.life-card__number {
    color: var(--muted);
    font-size: 12px;
}


.life-card h3 {
    margin-bottom: 7px;
}


.life-card p {
    margin-bottom: 0;

    color: var(--muted);
    font-size: 14px;
}


.life-card > span:last-child {
    color: var(--green);
    font-size: 22px;
}


.life-card:hover h3 {
    color: var(--green);
}


/* =========================
   DEVELOPMENT
========================= */

.development {
    padding: 90px 0;

    background: var(--green);
    color: white;
}


.development__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}


.development .eyebrow {
    color: #aebdb5;
}


.development h2 {
    margin-bottom: 16px;
}


.development p:not(.eyebrow) {
    max-width: 600px;
    margin-bottom: 0;

    color: #c8d1cc;
}


/* =========================
   NAVIGATOR
========================= */

.navigator {
    display: grid;
    grid-template-columns: .8fr 1.2fr;

    min-height: 500px;

    background: #dfe3dc;
}


.navigator__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px;
}


.navigator__content p:not(.eyebrow) {
    max-width: 420px;

    margin-bottom: 30px;

    color: var(--muted);
}


.navigator__content .button {
    align-self: flex-start;
}


.navigator__map {
    min-height: 500px;
}


.map-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #c4ccc2,
            #aab8ad
        );

    color: rgba(23, 59, 50, .45);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .15em;
}


/* =========================
   ABOUT
========================= */

.section--about {
    background: white;
}


.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 100px;
}


.about-grid > div:last-child {
    padding-top: 15px;
}


.about-grid p {
    max-width: 520px;

    color: var(--muted);
    font-size: 18px;
}


/* =========================
   ROUTE
========================= */

.route {
    padding: 70px 0;

    background: #ebe8df;
}


.route__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}


.route h2 {
    margin-bottom: 12px;

    font-size: 42px;
}


.route p {
    margin-bottom: 0;

    color: var(--muted);
}


.route__coordinates {
    display: flex;
    gap: 12px;
}


.route__coordinates span {
    padding: 14px 18px;

    border: 1px solid var(--line);

    background: white;

    font-family: monospace;
    font-size: 13px;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 35px 0;

    background: #122c26;
    color: #aebdb5;
}


footer p {
    margin: 0;

    font-size: 12px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .hero__inner,
    .life-grid,
    .navigator,
    .about-grid {
        grid-template-columns: 1fr;
    }


    .hero__visual {
        min-height: 420px;
    }


    .news-grid {
        grid-template-columns: 1fr 1fr;
    }


    .life-grid {
        gap: 50px;
    }


    .navigator__map {
        min-height: 400px;
    }


    .development__inner,
    .announcement__inner,
    .route__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 640px) {

    .container {
        width: min(var(--container), calc(100% - 30px));
    }


    .hero {
        padding: 50px 0 60px;
    }


    .hero__inner {
        min-height: auto;
    }


    .hero__visual {
        min-height: 330px;
    }


    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }


    .button {
        width: 100%;
    }


    .section {
        padding: 75px 0;
    }


    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }


    .news-grid {
        grid-template-columns: 1fr;
    }


    .event-item {
        grid-template-columns: 65px 1fr 25px;
        gap: 15px;
    }


    .event-item__date span {
        font-size: 28px;
    }


    .life-card {
        grid-template-columns: 35px 1fr 25px;
        gap: 15px;
    }


    .navigator__content {
        padding: 40px 25px;
    }


    .navigator__map {
        min-height: 300px;
    }


    .route__coordinates {
        flex-direction: column;
    }


    .route__coordinates span {
        width: 100%;
    }
}