:root {
    --mkb-dark-blue: #1B2A4B;
    --mkb-navy: #0F1A30;
    --mkb-red: #E41E26;
    --mkb-red-hover: #C41920;
    --mkb-white: #FFFFFF;
    --mkb-off-white: #F8F9FB;
    --mkb-light-gray: #F1F3F6;
    --mkb-border: #E2E5EA;
    --mkb-text-primary: #1A1D26;
    --mkb-text-secondary: #5C6370;
    --mkb-text-muted: #8B919E;
    --mkb-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --mkb-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.05);
    --mkb-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10), 0 4px 10px rgba(0, 0, 0, 0.06);
    --mkb-radius-sm: 8px;
    --mkb-radius-md: 12px;
    --mkb-radius-lg: 16px;
    --mkb-radius-xl: 20px;
    --mkb-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1280px;
    --header-height: 68px;
    --header-height-mobile: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; width: 100%; max-width: 100vw; }
body { font-family: 'Montserrat', sans-serif; font-weight: 400; line-height: 1.5; color: var(--mkb-text-primary); background-color: var(--mkb-off-white); min-width: 320px; width: 100%; max-width: 100vw; display: flex; flex-direction: column; min-height: 100vh; }
.main, .footer { width: 100%; max-width: 100vw; overflow-x: hidden; }

/* HEADER */
.header { position: sticky; top: 0; z-index: 1000; background-color: var(--mkb-white); border-bottom: 1px solid var(--mkb-border); height: var(--header-height); transition: height var(--mkb-transition); }
.header__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.header__logo-icon { width: 40px; height: 40px; background: var(--mkb-red); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #fff; letter-spacing: -0.5px; line-height: 1; flex-shrink: 0; }
.header__logo-text { font-weight: 700; font-size: 20px; color: var(--mkb-dark-blue); letter-spacing: -0.3px; white-space: nowrap; }
.header__logo-subtext { display: block; font-weight: 400; font-size: 10px; color: var(--mkb-text-muted); letter-spacing: 0.5px; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.header__nav { display: flex; align-items: center; gap: 28px; list-style: none; }
.header__nav-link { text-decoration: none; font-weight: 500; font-size: 14px; color: var(--mkb-text-secondary); transition: color var(--mkb-transition); white-space: nowrap; position: relative; padding: 4px 0; }
.header__nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--mkb-red); border-radius: 1px; transition: width var(--mkb-transition); }
.header__nav-link:hover { color: var(--mkb-dark-blue); }
.header__nav-link:hover::after { width: 100%; }
.header__nav-link--active { color: var(--mkb-dark-blue); font-weight: 600; }
.header__nav-link--active::after { width: 100%; background: var(--mkb-red); }
.header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--mkb-radius-sm); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; border: none; text-decoration: none; transition: all var(--mkb-transition); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.btn--primary { background: var(--mkb-red); color: #fff; box-shadow: 0 2px 8px rgba(228, 30, 38, 0.25); }
.btn--primary:hover { background: var(--mkb-red-hover); }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px 4px; background: none; border: none; z-index: 1001; flex-shrink: 0; }
.burger span { display: block; width: 22px; height: 2px; background: var(--mkb-dark-blue); border-radius: 2px; transition: all var(--mkb-transition); }
.burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header__nav--open { display: flex !important; }

/* MAIN */
.main { flex: 1; }
.section-hero { background: var(--mkb-white); padding: 32px 0 28px; border-bottom: 1px solid var(--mkb-border); }
.section-hero__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section-hero__title { font-weight: 800; font-size: 36px; color: var(--mkb-dark-blue); letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 8px; }
.section-hero__subtitle { font-weight: 400; font-size: 16px; color: var(--mkb-text-secondary); max-width: 600px; }
.section-gallery { padding: 28px 0 48px; }
.section-gallery__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section-gallery__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-gallery__heading { font-weight: 700; font-size: 22px; color: var(--mkb-dark-blue); }
.section-gallery__count { font-weight: 500; font-size: 13px; color: var(--mkb-text-muted); background: var(--mkb-light-gray); padding: 6px 14px; border-radius: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; }
.gallery-card { background: var(--mkb-white); border-radius: var(--mkb-radius-lg); overflow: hidden; box-shadow: var(--mkb-shadow-sm); transition: all var(--mkb-transition); cursor: pointer; display: flex; flex-direction: column; border: 1px solid transparent; min-width: 0; text-decoration: none; color: inherit; }
.gallery-card:hover { box-shadow: var(--mkb-shadow-lg); transform: translateY(-4px); border-color: var(--mkb-border); }
.gallery-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gallery-card__title { font-weight: 600; font-size: 14px; color: var(--mkb-dark-blue); word-wrap: break-word; }
.gallery-card__meta { font-weight: 400; font-size: 11px; color: var(--mkb-text-muted); }

/* FOOTER */
.footer { background: var(--mkb-navy); color: rgba(255, 255, 255, 0.8); padding: 32px 0 24px; margin-top: auto; width: 100%; max-width: 100vw; overflow-x: hidden; }
.footer__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer__copy { font-size: 12px; color: rgba(255, 255, 255, 0.55); line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; max-width: 100%; }
.footer__copy strong { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.footer__links { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; padding: 0; margin: 0; }
.footer__links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap; }

/* АДАПТИВ */
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } .section-hero__title { font-size: 30px; } }
@media (max-width: 768px) {
    .header { height: var(--header-height-mobile); }
    .header__inner { padding: 0 16px; }
    .header__logo-icon { width: 34px; height: 34px; font-size: 15px; }
    .header__logo-text { font-size: 17px; }
    .header__logo-subtext { font-size: 9px; }
    .header__nav { display: none; position: absolute; top: var(--header-height-mobile); left: 0; width: 100%; background: var(--mkb-white); flex-direction: column; gap: 0; padding: 12px 24px 20px; box-shadow: var(--mkb-shadow-lg); border-bottom: 1px solid var(--mkb-border); z-index: 1001; }
    .header__nav .header__nav-link { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--mkb-light-gray); width: 100%; }
    .header__nav .header__nav-link:last-child { border-bottom: none; }
    .burger { display: flex; }
    .section-hero__title { font-size: 26px; }
    .footer__inner { flex-direction: column; text-align: center; gap: 14px; padding: 0 16px; }
    .footer__links { justify-content: center; gap: 14px; }
    .footer__copy { font-size: 11px; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .header__inner { padding: 0 12px; }
    .header__logo-icon { width: 30px; height: 30px; font-size: 13px; }
    .header__logo-text { font-size: 15px; }
    .header__logo-subtext { display: none; }
    .btn--primary { padding: 6px 10px; font-size: 11px; }
    .section-hero__title { font-size: 22px; }
    .footer__inner { padding: 0 12px; gap: 12px; }
    .footer__copy { font-size: 10px; }
    .footer__links a { font-size: 11px; }
}
