добавлен хедер и футер

This commit is contained in:
2026-05-03 14:05:09 +03:00
parent 1b33bae871
commit f62eece199
6 changed files with 613 additions and 2 deletions

View File

@@ -0,0 +1,88 @@
.site-footer {
border-top: 1px solid #e8d7c5;
background: linear-gradient(170deg, #fff8ef 0%, #f6ebe0 50%, #f1dfcf 100%);
margin-top: 56px;
}
.site-footer__container {
width: min(1280px, calc(100% - 32px));
margin-inline: auto;
padding: 54px 0 24px;
}
.site-footer__grid {
display: flex;
flex-wrap: wrap;
gap: 30px 24px;
}
.site-footer__col {
flex: 1 1 220px;
}
.site-footer__title {
margin: 0 0 10px;
color: #2f2520;
font-size: 24px;
line-height: 1.1;
font-family: "Cormorant Garamond", Georgia, serif;
}
.site-footer__text {
margin: 0;
color: #4f4038;
font-size: 14px;
line-height: 1.5;
}
.site-footer__list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 8px;
color: #4f4038;
font-size: 14px;
}
.site-footer__link {
color: #4f4038;
text-decoration: none;
border-bottom: 1px solid transparent;
}
.site-footer__link:hover,
.site-footer__link:focus-visible {
color: #8e311d;
border-color: #8e311d;
}
.site-footer__bottom {
margin-top: 34px;
padding-top: 18px;
border-top: 1px dashed #cfb9a4;
display: flex;
flex-wrap: wrap;
gap: 8px 14px;
align-items: center;
justify-content: space-between;
}
.site-footer__copy,
.site-footer__policy {
margin: 0;
color: #5f4c42;
font-size: 13px;
text-decoration: none;
}
@media (max-width: 767px) {
.site-footer__container {
width: min(1280px, calc(100% - 20px));
padding-top: 42px;
}
.site-footer__grid {
gap: 24px;
}
}

View File

@@ -0,0 +1,305 @@
:root {
--st-bg: #f9f5ef;
--st-surface: #fffdf9;
--st-ink: #2f2520;
--st-accent: #b44b31;
--st-accent-strong: #8e311d;
--st-line: #e8d7c5;
--st-shadow: 0 18px 40px -24px rgba(47, 37, 32, 0.4);
}
body {
background: radial-gradient(circle at 8% -16%, #f5ddc7 0%, var(--st-bg) 32%), var(--st-bg);
color: var(--st-ink);
font-family: "Manrope", "Segoe UI", sans-serif;
}
.site-header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 60;
backdrop-filter: blur(10px);
border-bottom: 1px solid transparent;
transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header--scrolled {
background: rgba(255, 253, 249, 0.94);
border-color: var(--st-line);
box-shadow: var(--st-shadow);
}
.site-header__top {
border-bottom: 1px dashed var(--st-line);
background: rgba(255, 249, 242, 0.72);
}
.site-header__container {
width: min(1280px, calc(100% - 32px));
margin-inline: auto;
display: flex;
align-items: center;
}
.site-header__container--top {
justify-content: space-between;
min-height: 42px;
}
.site-header__container--main {
justify-content: space-between;
gap: 16px;
min-height: 82px;
}
.site-header__tagline,
.site-header__phone {
margin: 0;
font-size: 13px;
line-height: 1.2;
}
.site-header__phone {
color: var(--st-ink);
font-weight: 700;
text-decoration: none;
}
.site-header__logo {
display: inline-flex;
align-items: center;
gap: 10px;
text-decoration: none;
}
.site-header__logo-mark {
width: 44px;
height: 44px;
border-radius: 50%;
display: grid;
place-items: center;
background: linear-gradient(145deg, #e7b88c, #d98666);
color: #fff;
font-weight: 800;
letter-spacing: 0.08em;
}
.site-header__logo-text {
color: var(--st-ink);
font-family: "Cormorant Garamond", Georgia, serif;
font-size: 29px;
line-height: 0.95;
}
.site-header__nav {
flex: 1;
}
.site-header__menu {
margin: 0;
padding: 0;
list-style: none;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 8px 14px;
}
.site-header__menu-link {
display: inline-flex;
text-decoration: none;
color: var(--st-ink);
font-size: 14px;
font-weight: 600;
padding: 6px 2px;
border-bottom: 1px solid transparent;
transition: color 0.2s ease, border-color 0.2s ease;
}
.site-header__menu-link:hover,
.site-header__menu-link:focus-visible {
color: var(--st-accent-strong);
border-color: var(--st-accent-strong);
}
.site-header__actions {
display: inline-flex;
align-items: center;
gap: 10px;
}
.site-header__messenger,
.site-header__cta {
text-decoration: none;
border-radius: 999px;
font-size: 13px;
font-weight: 700;
padding: 10px 14px;
}
.site-header__messenger {
color: var(--st-ink);
border: 1px solid var(--st-line);
background: #fff;
}
.site-header__cta {
color: #fff;
background: linear-gradient(135deg, var(--st-accent), var(--st-accent-strong));
box-shadow: 0 10px 22px -14px rgba(180, 75, 49, 0.9);
}
.site-header__burger {
display: none;
width: 42px;
height: 42px;
border: 0;
border-radius: 10px;
background: #fff;
padding: 0;
cursor: pointer;
}
.site-header__burger-line {
display: block;
width: 20px;
height: 2px;
border-radius: 2px;
margin: 5px auto;
background: var(--st-ink);
}
.mobile-menu {
position: fixed;
inset: 0;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.22s ease;
}
.mobile-menu--open {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
.mobile-menu__overlay {
position: absolute;
inset: 0;
background: rgba(32, 21, 18, 0.56);
}
.mobile-menu__panel {
position: relative;
z-index: 2;
height: 100%;
width: 100%;
background: linear-gradient(160deg, #fffdf9 0%, #f9efe4 100%);
padding: 26px 18px 30px;
display: flex;
flex-direction: column;
}
.mobile-menu__header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.mobile-menu__title {
margin: 0;
font-size: 28px;
font-family: "Cormorant Garamond", Georgia, serif;
}
.mobile-menu__close {
border: 0;
background: transparent;
font-size: 38px;
line-height: 1;
color: var(--st-ink);
padding: 0;
}
.mobile-menu__nav {
display: flex;
flex-direction: column;
gap: 5px;
}
.mobile-menu__link {
text-decoration: none;
color: var(--st-ink);
font-size: 22px;
font-family: "Cormorant Garamond", Georgia, serif;
border-bottom: 1px solid var(--st-line);
padding: 6px 0;
}
.mobile-menu__contacts {
margin-top: auto;
padding-top: 16px;
border-top: 1px solid var(--st-line);
display: grid;
gap: 8px;
}
.mobile-menu__contact {
color: var(--st-ink);
text-decoration: none;
font-size: 14px;
font-weight: 700;
}
body.has-mobile-menu {
overflow: hidden;
}
@media (max-width: 1180px) {
.site-header__nav,
.site-header__actions {
display: none;
}
.site-header__burger {
display: block;
}
}
@media (max-width: 767px) {
.site-header__top {
display: none;
}
.site-header__container {
width: min(1280px, calc(100% - 20px));
}
.site-header__container--main {
min-height: 70px;
}
.site-header__logo-mark {
width: 38px;
height: 38px;
}
.site-header__logo-text {
font-size: 25px;
}
}
.wp-site-blocks {
padding-top: 124px;
}
@media (max-width: 767px) {
.wp-site-blocks {
padding-top: 70px;
}
}