@font-face {
    font-family: 'Lora';
    src: url('fonts/Lora-Regular.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('fonts/Lora-Italic.ttf') format('truetype');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('fonts/Manrope.ttf') format('truetype');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff;
    color: #222;
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header,
.site-footer {
    padding: 20px 0;
    background: #f5f5f5;
}

.site-logo {
    color: inherit;
    font-family: 'Lora', Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    font-style: italic;
    text-decoration: none;
}

.site-main {
    padding: 32px 0;
}

.site-breadcrumbs {
    margin-bottom: 10px;
    color: #766b65;
    font-size: .8125rem;
}
.site-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-breadcrumbs li { min-width: 0; overflow-wrap: anywhere; }
.site-breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: #a3968e; }
.site-breadcrumbs a { color: inherit; text-decoration: none; }
.site-breadcrumbs a:hover,
.site-breadcrumbs a:focus-visible { text-decoration: underline; text-underline-offset: .16em; }

h1,
h2,
h3 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-weight: 600;
}

button,
input,
select,
textarea {
    font: inherit;
}

nav,
button,
input[type='button'],
input[type='submit'],
input[type='reset'],
.button,
.btn {
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 500;
}

/* Шапка бренда Теплее. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
    background: #fcfaf8;
    border-bottom: 1px solid #eee7e2;
    color: #383638;
}
.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    min-height: 82px;
}
.site-logo {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    color: #573b34;
}
.site-logo-name {
    position: relative;
    font-size: 46px;
    line-height: .95;
    letter-spacing: -.8px;
}
.site-logo-image {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
}
.footer-logo .site-logo-image { width: 150px; }
.site-logo-heart {
    position: absolute;
    top: 0;
    right: -13px;
    color: #c7a29c;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-style: normal;
}
.site-logo-tagline {
    margin-top: 6px;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 9px;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
}
.header-inner > .site-logo { justify-self: start; }
.header-navigation > nav { display: block; }
.menu-toggle { border: 0; background: transparent; }
.header-navigation > .menu-toggle { display: none; }
.header-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.header-menu a {
    display: block;
    padding: 12px 0;
    color: inherit;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.header-menu a:hover,
.header-menu a[aria-current='page'] { color: #aa7972; }
.header-actions { display: flex; justify-self: end; align-items: center; gap: 20px; }
.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 44px;
    padding: 6px;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    list-style: none;
}
.header-icon::-webkit-details-marker { display: none; }
.header-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.header-icon:hover { color: #aa7972; }
.site-header a:focus-visible,
.site-header summary:focus-visible,
.site-header input:focus-visible,
.site-header button:focus-visible {
    outline: 2px solid #aa7972;
    outline-offset: 4px;
}
.header-cart { position: relative; }
.header-cart-count {
    position: absolute;
    top: 1px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 50%;
    background: #bf9690;
    color: white;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}
.header-cart-count[hidden] { display: none; }
.header-search { position: relative; }
.header-search-panel {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    z-index: 100;
    width: 360px;
    padding: 16px;
    border: 1px solid #eee7e2;
    border-radius: 10px;
    background: #fcfaf8;
    box-shadow: 0 12px 30px #573b3414;
}
.header-search-form { display: flex; gap: 8px; }
.header-search-form input {
    min-width: 0;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd1ca;
    border-radius: 6px;
    background: white;
    font-size: 15px;
}
.header-search-form button {
    padding: 10px 14px;
    border: 0;
    border-radius: 6px;
    background: #bf9690;
    color: white;
    font-size: 15px;
    cursor: pointer;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 1050px) {
    .header-inner { gap: 24px; }
    .header-menu { gap: 18px; }
    .header-actions { gap: 10px; }
}
@media (max-width: 900px) {
    .site-header .site-logo-image { width: 130px; }
    .header-inner { display: flex; position: relative; min-height: 76px; gap: 12px; }
    .site-logo-name { font-size: 40px; }
    .site-logo-tagline { font-size: 8px; letter-spacing: 1.7px; }
    .header-navigation { order: 3; flex: none; }
    .header-navigation > .menu-toggle { display: inline-flex; }
    .header-navigation:not(.is-open) > nav { display: none; }
    .header-navigation nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 90;
        padding: 14px 20px;
        background: #fcfaf8;
        border-bottom: 1px solid #eee7e2;
        box-shadow: 0 12px 20px #573b3410;
    }
    .header-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .header-menu a { padding: 13px 0; font-size: 17px; }
    .header-actions { margin-left: auto; gap: 4px; }
    .header-search { position: static; }
    .header-search-panel { top: 100%; right: 12px; width: min(360px, calc(100vw - 24px)); }
}
@media (max-width: 360px) {
    .site-header .site-logo-image { width: 110px; }
    .header-inner { padding: 0 12px; gap: 4px; }
    .header-icon { width: 32px; }
}

/* Подвал бренда Теплее. */
.site-footer {
    padding: 0;
    border-top: 1px solid #eee7e2;
    background: #fcfaf8;
    color: #827d7a;
}
.footer-main {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto 260px 36px;
    align-items: center;
    gap: 24px;
    padding: 28px 0 24px;
}
.footer-logo .site-logo-name { font-size: 38px; }
.footer-logo .site-logo-tagline { font-size: 8px; letter-spacing: 1.6px; }
.footer-menu {
    display: grid;
    grid-template-rows: repeat(2, max-content) 1fr;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: start;
    gap: 3px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-menu a,
.footer-contact {
    color: inherit;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}
.footer-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}
.footer-contact + .footer-contact { margin-top: 5px; }
.footer-menu-contacts {
    grid-column: 3;
    grid-row: 1 / 4;
}
.footer-contacts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 5px;
    margin-top: 5px;
}
.footer-contacts .footer-contact { margin-top: 0; }
.contact-widget {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    color: #50372d;
}
.contact-widget summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 24px;
    background: #76574b;
    color: #fff;
    box-shadow: 0 4px 16px #50372d26;
    list-style: none;
    cursor: pointer;
}
.contact-widget summary::-webkit-details-marker { display: none; }
.contact-widget summary:hover { background: #65483d; }
.contact-widget summary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-widget-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: min(230px, calc(100vw - 48px));
    padding: 12px;
    border: 1px solid #e7dbd2;
    border-radius: 12px;
    background: #faf6f3;
    box-shadow: 0 4px 20px #50372d26;
}
.contact-widget-panel p { margin: 0 0 6px; padding-inline: 8px; font-weight: 600; }
.contact-widget-panel .footer-contact {
    display: block;
    padding: 9px 8px;
    border-radius: 6px;
    color: inherit;
}
.contact-widget-panel a:hover { background: #f3e8e2; }
.contact-widget :focus-visible { outline: 2px solid #936559; outline-offset: 3px; }
.footer-contact svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.footer-socials { grid-column: 3; display: flex; align-items: center; gap: 12px; }
.footer-main > .footer-note { grid-column: 4; }
.footer-main > .footer-top { grid-column: 5; }
.footer-socials:empty { display: none; }
.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 36px;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.footer-note {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    margin: 0;
    color: #a78a80;
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.1;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee6e0;
    color: #a78a80;
}
.footer-top svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid #eee7e2;
}
.footer-bottom small,
.footer-legal a { font-size: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal .footer-developer { display: inline-flex; align-items: center; gap: 6px; }
.footer-developer img { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; }
.site-footer a:hover,
.footer-menu a[aria-current='page'] { color: #aa7972; }
.site-footer a:focus-visible { outline: 2px solid #aa7972; outline-offset: 4px; }
@media (max-width: 1100px) {
    .footer-main { grid-template-columns: 130px minmax(max-content, 1fr) minmax(0, 220px) 36px; gap: 18px; }
    .footer-socials { grid-column: 2; grid-row: 2; }
    .footer-main > .footer-note { grid-column: 3; grid-row: 1; }
    .footer-main > .footer-top { grid-column: 4; grid-row: 1; }
}
@media (max-width: 700px) {
    .footer-main { grid-template-columns: 1fr 1fr 36px; align-items: start; gap: 24px 16px; }
    .footer-logo { grid-column: 1 / 3; grid-row: 1; }
    .footer-main > .footer-top { grid-column: 3; grid-row: 1; }
    .footer-navigation { grid-column: 1 / 4; grid-row: 2; }
    .footer-menu { grid-template-columns: repeat(2, max-content); gap: 8px clamp(8px, 3vw, 24px); }
    .footer-menu a { display: block; padding: 4px 0; font-size: 15px; }
    .footer-menu-contacts { grid-column: 1 / -1; grid-row: 4; }
    .footer-contact { font-size: 14px; }
    .footer-menu .footer-contact { padding: 0; font-size: 14px; }
    .footer-socials { grid-column: 1; grid-row: 3; }
    .footer-main > .footer-note { grid-column: 2 / 4; grid-row: 3; justify-self: end; padding-right: 12px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 0; }
    .footer-bottom small, .footer-legal a { font-size: 12px; }
}
.journal {
    margin-bottom: clamp(32px, 6vw, 72px);
    color: #50372d;
}
.journal-intro {
    margin: 0 0 24px;
    color: #76574b;
    font-size: 1.1rem;
}
.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 20px;
}
.journal-card {
    overflow: hidden;
    border: 1px solid #e7dbd2;
    border-radius: 12px;
    background: #faf6f3;
}
.journal-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.journal-card > a:hover { background: #f5ece7; }
.journal-card > a:focus-visible { outline: 2px solid #936559; outline-offset: -3px; }
.journal-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.journal-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: clamp(18px, 3vw, 28px);
}
.journal-card h2, .journal-card h3 { margin: 0; font-size: clamp(21px, 2vw, 27px); line-height: 1.22; }
.journal-preview { margin-top: clamp(32px, 6vw, 64px); }
.journal-preview-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: 20px;
}
.journal-preview-header h2 { margin: 0; }
.journal-preview-header a { color: #76574b; }
.journal-hats-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.journal-hats-grid .journal-card img { aspect-ratio: 4 / 5; }
.journal-card p { margin: 0; color: #76574b; line-height: 1.6; }
.journal-card-more {
    margin-top: auto;
    padding-top: 6px;
    color: #76574b;
    font-size: .9rem;
    font-weight: 600;
}
.journal-card > a:hover .journal-card-more { text-decoration: underline; }
.journal-back { display: inline-block; margin-bottom: 18px; color: #76574b; }
.journal-article { max-width: 760px; line-height: 1.75; overflow-wrap: anywhere; }
.journal-article img { max-width: 100%; height: auto; }
.journal-cover { display: block; border-radius: 12px; margin-bottom: 24px; }
