/*
Theme Name: Божий Дар
Description: Адаптивная тема загородного дома здоровья.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: bozhiy-dar
*/
:root {
    --paper: #f7f5ee;
    --ink: #253027;
    --pine: #283d31;
    --muted: #535f52;
    --line: #d7dcd0;
    --white: #fffdf6;
    --gold: #e4c88c;
    --measure: 1180px;
    --display: Georgia,'Times New Roman',serif;
    --body: system-ui,sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.65 var(--body);
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-underline-offset: .22em;
}

a:hover {
    text-decoration-thickness: 2px;
}

a:focus-visible,button:focus-visible {
    outline: 3px solid #9b6821;
    outline-offset: 4px;
}

[hidden] {
    display: none!important;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,h2,h3 {
    font-family: var(--display);
    line-height: 1.04;
    font-weight: 400;
    margin: 0 0 .45em;
}

h1 {
    font-size: clamp(2.65rem,8vw,6.4rem);
    letter-spacing: -.055em;
}

h2 {
    font-size: clamp(2rem,4.5vw,3.7rem);
    letter-spacing: -.045em;
}

h3,.card h2 {
    font-size: clamp(1.65rem,3vw,2.2rem);
    letter-spacing: -.035em;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(calc(100% - 36px),var(--measure));
    margin-inline: auto;
}

.skip {
    position: absolute;
    top: -300px;
    left: 12px;
    z-index: 8;
    background: white;
    padding: 10px;
}

.skip:focus {
    top: 12px;
}

.masthead {
    background: var(--paper);
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--line);
}

.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 12px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    line-height: 1.16;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #8c9b88;
    border-radius: 100%;
    font-size: 22px;
    color: var(--pine);
}

.brand strong {
    display: block;
    font: 1.35rem/1.04 var(--display);
}

.brand small,.eyebrow {
    font-size: .67rem;
    letter-spacing: .14em;
    font-weight: 700;
}

.menu-toggle {
    cursor: pointer;
    border: 1px solid var(--line);
    background: transparent;
    padding: 9px 12px;
    color: var(--ink);
    font: inherit;
    border-radius: 4px;
}

.masthead nav {
    flex-basis: 100%;
}

.masthead nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 16px;
}

.masthead nav a {
    display: block;
    text-decoration: none;
    padding: 7px 0;
    font-size: .9rem;
}

.masthead nav .current-menu-item>a {
    text-decoration: underline;
}

.head-phone {
    display: none;
    white-space: nowrap;
    font-size: .9rem;
}

.hero {
    background: var(--pine);
    color: var(--white);
}

.hero-copy {
    padding: 42px 18px 44px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    margin-bottom: 1.5em;
    color: inherit;
}

.hero .eyebrow,.booking .eyebrow {
    color: var(--gold);
}

.hero p {
    max-width: 36ch;
    color: #e9eee4;
    margin-bottom: 1.45em;
}

.hero-picture {
    margin: 0;
    background: #354b3a;
}

.hero-picture img {
    width: 100%;
    height: clamp(230px,62vw,430px);
    object-fit: cover;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gold);
    color: #202a21;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 680;
    font-size: .9rem;
    text-decoration: none;
    text-align: center;
    line-height: 1.35;
}

.button:hover {
    background: #f2d99f;
}

.button.quiet {
    background: transparent;
    border-color: #829383;
    color: inherit;
}

.button.quiet:hover {
    background: #e8ece0;
}

.section {
    padding-block: clamp(46px,8vw,105px);
}

.section.alt {
    background: #e9ece2;
}

.section-head {
    margin-bottom: 24px;
}

.section-head p,.intro,.card p {
    color: var(--muted);
}

.cards {
    display: grid;
    gap: 14px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.card img {
    width: 100%;
    aspect-ratio: 1.6;
    object-fit: cover;
}

.card-copy {
    padding: 20px;
}

.card-copy a,.text-link {
    font-weight: 650;
}

.card-copy h2 a {
    font-weight: 400;
}

.card-copy p:last-child {
    margin-bottom: 0;
}

.split {
    display: grid;
    gap: 28px;
    align-items: center;
}

.split img {
    width: 100%;
    aspect-ratio: 1.38;
    object-fit: cover;
    border-radius: 6px;
}

.booking {
    background: var(--pine);
    color: var(--white);
}

.booking p {
    max-width: 53ch;
    color: #e9eee4;
}

.inner {
    padding-block: clamp(48px,8vw,95px);
}

.heading {
    margin-bottom: 36px;
    max-width: 900px;
}

.heading h1 {
    font-size: clamp(2.7rem,7vw,5.3rem);
}

.intro {
    font-size: clamp(1.07rem,2vw,1.28rem);
    max-width: 53ch;
}

.entry {
    max-width: 780px;
}

.entry h2 {
    margin-top: 1em;
}

.entry h3 {
    margin-top: .85em;
}

.entry li {
    margin-bottom: .28em;
}

.entry details {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.entry summary {
    cursor: pointer;
    font-weight: 650;
}

.entry img {
    border-radius: 6px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
    margin-block: 24px;
}

.gallery-grid a {
    display: block;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1.25;
    object-fit: cover;
}

.entry table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.entry td,.entry th {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 8px;
    vertical-align: top;
}

.footer {
    background: #1e2d24;
    color: #f7f5ee;
    padding: 32px 0;
}

.footer-row {
    display: grid;
    gap: 14px;
}

.footer p {
    margin: 7px 0 0;
    color: #d0dbd0;
}

.footer-brand {
    font: 1.6rem var(--display);
    text-decoration: none;
}

@media(min-width:650px) {
    .wrap {
        width: min(calc(100% - 64px),var(--measure));
    }
    .cards {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .split {
        grid-template-columns: 1.02fr .98fr;
        gap: clamp(30px,6vw,90px);
    }
    .footer-row {
        grid-template-columns: 1fr auto;
    }
    .gallery-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media(min-width:941px) {
    .masthead-row {
        flex-wrap: nowrap;
    }
    .masthead nav {
        flex-basis: auto;
    }
    .masthead nav ul {
        margin: 0;
    }
    .head-phone {
        display: block;
    }
    .hero {
        display: grid;
        grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
        min-height: min(670px,72vh);
    }
    .hero-copy {
        padding: 55px 32px 55px max(32px,calc((100vw - var(--measure))/2));
    }
    .hero-picture img {
        height: 100%;
        max-height: 740px;
        min-height: 480px;
    }
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    column-gap: 20px;
    row-gap: 5px;
    font-size: .9rem;
}

@media(max-width:350px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}
