/* css/v5-base.css */

/* ============================================================
   BASE — глобальные сбросы + типографика + уникальные элементы
   ============================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    height: 100%;
    overflow: hidden;
}

/* ============================================================
   ТИПОГРАФИКА
   ============================================================ */

h3 {
    font-size: var(--v5-font-big);
    font-weight: 600;
}

p {
    font-size: var(--v5-font-normal);
}

ul,
ol {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--v5-gap-normal);
}

b,
strong {
    font-weight: 600;
}

/* ============================================================
   HEADER ПРИЛОЖЕНИЯ
   ============================================================ */

.v5-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: var(--v5-padding);


    gap: var(--v5-gap-normal);
    font-size: var(--v5-font-little);
    font-weight: 500;
    color: var(--v5-white);
    background: var(--v5-primary-dark);
}

.v5-header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*padding: var(--v5-padding);*/
    gap: var(--v5-gap-normal);
    height: calc(var(--v5-height-large) + var(--v5-scrollbar-height));
    min-height: calc(var(--v5-height-large) + var(--v5-scrollbar-height));
    max-height: calc(var(--v5-height-large) + var(--v5-scrollbar-height));
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0;
    white-space: nowrap;
    scrollbar-width: thin;
    background: var(--v5-primary-primary);
}

.v5-header-left,
.v5-header-right {
    display: flex;
    align-items: center;
    gap: var(--v5-gap-min);
    padding: var(--v5-padding) 0;
    flex-shrink: 0;
}

.v5-info-text {
    flex: 0 0 auto;
    width: calc(150px * var(--v5-scale));
    min-width: calc(150px * var(--v5-scale));
    max-width: calc(150px * var(--v5-scale));
    color: var(--v5-white);
    font-size: var(--v5-font-normal);
    font-weight: 500;
    text-align: center;
    padding: 0 var(--v5-padding);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

/* ============================================================
   FOOTER ПРИЛОЖЕНИЯ
   ============================================================ */

.v5-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--v5-gap-min);
    padding: var(--v5-padding);
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    max-width: 100%;
    flex-shrink: 1;
    min-width: 0;
    scrollbar-width: thin;
}

.v5-footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--v5-font-little);
    white-space: nowrap;
    flex-shrink: 0;
}

.v5-footer-links {
    display: flex;
    align-items: center;
    gap: var(--v5-gap-min);
    padding: var(--v5-padding);
    flex-wrap: nowrap;
    font-size: var(--v5-font-little);
    flex-shrink: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.8);
}

.v5-footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.v5-footer-links a:hover {
    color: var(--v5-white);
    text-decoration: underline;
}

.v5-footer-divider {
    color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.v5-footer-credit {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: var(--v5-font-little);
    color: rgba(255, 255, 255, 0.35);
}

.v5-footer-credit a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.v5-footer-credit a:hover {
    color: var(--v5-white);
    text-decoration: underline;
}