/* style.css */

/* ===== Шрифты: PT Root UI (текст) + Unbounded (заголовки) ===== */

@font-face {
    font-family: 'PT Root UI';
    src: url('../fonts/PT-Root-UI/pt-root-ui_light.woff2') format('woff2'),
         url('../fonts/PT-Root-UI/pt-root-ui_light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Root UI';
    src: url('../fonts/PT-Root-UI/pt-root-ui_regular.woff2') format('woff2'),
         url('../fonts/PT-Root-UI/pt-root-ui_regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Root UI';
    src: url('../fonts/PT-Root-UI/pt-root-ui_medium.woff2') format('woff2'),
         url('../fonts/PT-Root-UI/pt-root-ui_medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Root UI';
    src: url('../fonts/PT-Root-UI/pt-root-ui_bold.woff2') format('woff2'),
         url('../fonts/PT-Root-UI/pt-root-ui_bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/Unbounded/Unbounded-SemiBold.woff2') format('woff2'),
         url('../fonts/Unbounded/Unbounded-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS Reset / Normalize ===== */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
}

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

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    overflow-wrap: break-word;
}

p {
    overflow-wrap: break-word;
    font-family: var(--font-main);
    color:var(--color-text);
}

/* ===== CSS Variables ===== */

:root {
    /* Основные цвета */
    --color-primary: #1B3A6B;      /* тёмно-синий: текст, header, футер */
    --color-secondary: #20A8B8;    /* бирюзовый / teal CTA */
    --color-accent: #20A8B8;       /* teal акцент (кнопка "Как сдать отчет?") */

    /* Годы (timeline / badges) */
    --color-year-2027: #1A9BA8;

    /* Фоны */
    --color-bg: #FFFFFF;
    --color-bg-light: #F4F7FA;

    /* Текст */
    --color-text: #282A2E;
    --color-text-muted: #5A6B7B;
    --color-text-light: #FFFFFF;
    --color-text-accent:#1662B0;

    /* Прочее */
    --color-border: #D7E1E8;

    /* Типографика */
    --font-main: 'PT Root UI', Arial, sans-serif;
    --font-heading: 'Unbounded', 'PT Root UI', Arial, sans-serif;

    /* Отступы / контейнер */
    --container-width: 1440px;
    --container-padding: 20px;
     --section-gap: clamp(48px, 6vw, 80px);
    /* Радиусы и тени */
    --radius-sm: 8px;
    --radius-md: 16px;
    --shadow-card: 0 8px 24px rgba(27, 58, 107, 0.12);
    
    --tzv-font-size:clamp(0.8125rem, 0.74rem + 0.28vw, 1rem);
    --section-title:clamp(1rem, 0.69rem + 1.31vw, 1.875rem);
    --subheader-size: clamp(15px, 1.4vw, 1.25rem);

}

/* ===== Base ===== */

body {
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-size: 100% 671.1px;
    background-image: linear-gradient(180deg, #008f9f59 0%, #008f9f00 55%);
    background-repeat: no-repeat;
}


.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== Header ===== */

.header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 6fr) minmax(0,1fr);
    align-items: center;
    column-gap: clamp(1rem, 2vw, 3rem);
    min-height: 56px;
    padding-top: 1rem;
}
.hero__badges {
    display: flex;
    align-items: center;
     gap: clamp(0.75rem, 2.5vw, 3rem);
}

.hero__logo {
    height: clamp(3rem, 5vw, 4rem);
    width: auto;
}

.hero__badge {
    height: clamp(3rem, 5vw, 4rem);
    width: auto;
}

/* Бургер-кнопка (по умолчанию скрыта на десктопе) */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    flex: 0 0 auto;
    z-index: 1001;
}

.nav__burger-line {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(2) {
    opacity: 0;
}

.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .header__inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav__burger {
        display: flex;
    }
}
main{
  flex-grow: 1;
}

/* ===== Steps (шаги) ===== */

/* Базовые правила для списков шагов в контенте вкладок и формы.
   Остальные стили шагов задаются scoped-правилами
   .block-tabs .step и .tzv-instruction .step в шаблонах компонентов. */

.steps {
   /*padding: clamp(30px, 6vw, 60px) 0;*/
    background-color: var(--color-bg);
}

.step__title{
   font-family: var(--font-main);
    font-weight: 600;
    font-size: clamp(1rem, 0.93rem + 0.3vw, 1.25rem);
    line-height: 1.35;
    color: var(--color-text-accent);
}

/* ===== Footer ===== */

.footer {
    width: 100%;
    color: #fff;
    box-sizing: border-box;
    margin-block: var(--section-gap);
    padding-inline: var(--container-padding);
}

.footer *,
.footer *::before,
.footer *::after {
    box-sizing: border-box;
}

/* Верхняя часть */

.footer__top {
    display: grid;
    grid-template-columns:
        auto
        auto
        minmax(0, 1fr)
        minmax(0, 1.35fr)
         minmax(0, 0.6fr);
    column-gap: clamp(0.75rem, 1.5vw, 2rem);
    align-items: start;
    width: 100%;
    max-width: var(--container-width);
    min-height: 91px;
    margin: 0 auto;
    padding: 0;
}

.footer__brand {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    height: 58px;
}

.footer__rosstat-logo {
    width: auto;
    height: 4rem;
    display: block;
    margin-top: 1px;
}

.footer__tzv {
    min-width: 0;
    height: 58px;
    margin-left: clamp(4px, 0.6vw, 7px);
    padding: 0 8px;

    display: flex;
    align-items: center;

}

.footer__rosstat-badge {
    max-width: 100%;
    height: 4rem;
    display: block;
    align-self: baseline;
}

.footer__description {
    min-width: 0;
    padding-top: 3px;
}

.footer__title {
    color: #9a9a9a;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.25;
    font-weight: 700;
}

.footer__description--wide {
    min-width: 0;
    padding-top: 3px;
}

.footer__description--wide p,
.footer__contacts p {
    margin: 0;
}

.footer__description--wide p {
    color: #777;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.28;
}

.footer__contacts {
    min-width: 0;
    padding-top: 3px;
 }

.footer__contacts p {
    color: #777;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.28;
}

.footer__contacts a {
    color: #777;
    text-decoration: none;
    font-weight: 600;
}

.footer__contacts a:hover {
    color: #fff;
}


/* Нижняя часть */

.footer__bottom {
    width: 100%;
    max-width: var(--container-width);
    min-height: 32px;
    margin: 1rem auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__copyright {
    color: #777;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .1px;
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer__social-link {
    width: 31px;
    height: 31px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0875b9;
    color: #fff;

    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.footer__social-link:hover {
    background: #0b8bd8;
}


/* Планшет */

@media (max-width: 900px) {
    .footer {
        padding: 20px;
    }
.footer__top {
    display: grid;
    grid-template-columns:1fr 1fr;
    /*grid-template-columns:
        auto
        auto
        minmax(0, 1fr)
        minmax(0, 1.35fr)
         minmax(0, 0.8fr);*/
}
    .footer__contacts {
        text-align: left;
        grid-column: span 2;
    
    }

    .footer__bottom {
        margin-top: 20px;
    }
}


/* Мобильная версия */

@media (max-width: 600px) {
    .footer {
        padding: 24px 16px 16px;
    }

    .footer__top {
       grid-template-columns:1fr 1fr;
        gap: 18px;
        min-height: auto;
    }

    .footer__brand {
        height: auto;
    }

    .footer__description,
    .footer__description--wide,
    .footer__contacts {
        padding-top: 0;
    }

    .footer__contacts {
        text-align: left;
    }

    .footer__bottom {
        margin-top: 28px;
        padding-top: 16px;
        border-top: 1px solid #222;

        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}
@media (max-width: 600px) {
    .footer {
        padding: 24px 16px 16px;
    }

    .footer__top {
        /*display: flex;
        flex-direction: column;
        gap: 18px;
        min-height: auto;*/
        align-items: flex-start;
        justify-items: center;
    }

    .footer__brand {
        height: auto;
    }

    .footer__description,
    .footer__description--wide,
    .footer__contacts {
        padding-top: 0;
    }

    .footer__contacts {
        text-align: left;
        grid-column: span 2;
    }

    .footer__bottom {
        margin-top: 28px;
        padding-top: 16px;
        border-top: 1px solid #222;

        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}

/* ===== Focus-visible ===== */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--color-bg);
    outline-offset: 2px;
   /* border-radius: 4px;*/
}

/* ===== Forma TZV ===== */

.forma-tzv {
    padding: clamp(48px, 6vw, 2rem) 0;
    /*background-color: var(--color-bg);*/
}

.forma-tzv__title {
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    font-size: var(--section-title);
    line-height: 1.25;
    margin: 2rem auto;
    max-width: var(--container-width);
}

.multimedia-page .forma-tzv__title {
    margin-top: clamp(2rem, 1.2rem + 3vw, 4rem);
    margin-bottom: clamp(2rem, 1.2rem + 3vw, 4rem);
}

/*-----------------------*/
