/* ================================================================
   MAIN STYLESHEET — Аптечка+ (Apte4ka Plus)
   ================================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', 'Noto Sans', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #2d3112;
    background-color: #fbf8f0;
    overflow-x: hidden;
    max-width: 100vw;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

ul, ol {
    list-style: none;
}

/* === TYPOGRAPHY === */
.font-tenor {
    font-family: 'Tenor Sans', sans-serif;
}

.font-dm {
    font-family: 'DM Sans', 'Noto Sans', sans-serif;
}

.text-upper {
    text-transform: uppercase;
}

/* === LAYOUT SYSTEM === */
.site-container {
    width: 100%;
    overflow-x: hidden;
    background: #fbf8f0;
    display: flex;
    justify-content: center;
}

.site-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 1440px;
    background: #fbf8f0;
    transform-origin: top center;
}

/* Responsive zoom for viewports < 1440px */
@media (max-width: 1439px) and (min-width: 768px) {
    .site-container {
        justify-content: flex-start;
    }
    .site-inner {
        zoom: calc(100vw / 1440);
    }
}

/* === SECTION CONTAINERS === */
.section {
    width: 1440px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.section-inner {
    width: 1282px;
    margin: 0 auto;
}

.section-inner--narrow {
    width: 1280px;
    margin: 0 auto;
}

.section-gap {
    flex-shrink: 0;
}

/* === SECTION TITLE (reusable) === */
.section-title {
    text-align: center;
    margin-bottom: 36px;
}

.section-title__subtitle {
    font-family: 'DM Sans', 'Noto Sans', sans-serif;
    font-size: 21px;
    color: #2d3112;
    margin-bottom: 14px;
    line-height: 1.1;
}

.section-title__heading {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 48px;
    color: #2d3112;
    text-transform: uppercase;
    line-height: 1.1;
    max-width: 1065px;
    margin: 0 auto;
}

.section-title--light .section-title__subtitle,
.section-title--light .section-title__heading {
    color: #ffffff;
}

/* === HEADER === */
.site-header {
    width: 1440px;
    height: 120px;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    z-index: -1;
}

.site-header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 85px;
}

.site-header__logo {
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.site-header__logo:hover {
    transform: rotate(-4deg) scale(1.05);
}

.site-header__logo img,
.site-header__logo svg {
    height: 79px;
    width: auto;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 36px;
    margin: 0 auto;
}

.site-header__nav a {
    font-family: 'DM Sans', 'Noto Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-header__nav a:hover,
.site-header__nav a.current {
    color: #9ea93e;
}

.site-header__socials {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-shrink: 0;
}

.site-header__social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #9ea93e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.site-header__social-btn:hover {
    background-color: #b5c24a;
    transform: scale(1.08);
}

/* === FOOTER === */
.site-footer {
    width: 1440px;
    flex-shrink: 0;
    overflow: hidden;
    background: #fbf8f0;
    padding-top: 72px;
}

.site-footer__header {
    text-align: left;
    width: 1280px;
    margin: 0 auto 48px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer__subtitle {
    font-family: 'DM Sans', 'Noto Sans', sans-serif;
    font-size: 21px;
    color: #9ea93e;
    margin-bottom: 16px;
    line-height: 1.1;
}

.site-footer__title {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 72px;
    color: #9ea93e;
    text-transform: uppercase;
    line-height: 1;
}

.site-footer__columns {
    display: flex;
    justify-content: space-between;
    width: 1282px;
    margin: 0 auto 0;
    gap: 40px;
    padding: 42px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.site-footer__col {
    flex: 1;
}

.site-footer__col-title {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 28px;
    color: #2d3112;
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1.1;
}

.site-footer__col p {
    font-family: 'DM Sans', 'Noto Sans', sans-serif;
    font-size: 18px;
    color: #2d3112;
    line-height: 1.1;
    transition: color 0.25s ease;
}

.site-footer__col p:hover {
    color: #9ea93e;
}

.site-footer__col .light {
    font-size: 14px;
    font-weight: 300;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1282px;
    margin: 0 auto;
    padding: 54px 0 32px;
}

.site-footer__copyright {
    font-size: 16px;
    color: #2d3112;
}

.site-footer__legal {
    display: flex;
    gap: 24px;
}

.site-footer__legal a {
    font-size: 16px;
    color: #2d3112;
    transition: color 0.25s ease;
}

.site-footer__legal a:hover {
    color: #9ea93e;
}

.site-footer__payment {
    display: flex;
    gap: 16px;
    align-items: center;
}

.site-footer__payment svg {
    height: 18px;
    width: auto;
    flex-shrink: 0;
}

.site-footer__payment img {
    height: 20px;
    width: auto;
}

.site-footer__delivery {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2d3112;
}

/* === SCREEN READER ONLY === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
