/* ===== PROF BASE STYLES ===== */
/* Сброс, контейнеры, типографика, утилиты */

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== КОНТЕЙНЕРЫ ===== */
.container {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: var(--container-max);
    padding: 0 var(--container-padding);
}

.container-lg {
    max-width: var(--container-lg);
}

.container-md {
    max-width: var(--container-md);
}

.container-full {
    width: 100%;
    padding: 0;
}

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

/* Заголовки (Montserrat, 600) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-hero);
}

h2 {
    font-size: var(--font-size-h1);
}

h3 {
    font-size: var(--font-size-h2);
}

h4 {
    font-size: var(--font-size-h3);
}

h5 {
    font-size: var(--font-size-md);
}

h6 {
    font-size: var(--font-size-base);
}

/* Текст */
p {
    margin-bottom: var(--space-md);
}

/* Ссылки */
a {
    color: var(--color-orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    text-decoration: underline;
}

/* Телефонные ссылки */
a[href^="tel"] {
    color: inherit;
    text-decoration: none;
}

/* Списки */
ul, ol {
    list-style: none;
}

/* Изображения */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== УТИЛИТЫ FLEX ===== */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flex-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ===== УТИЛИТЫ ТЕКСТА ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* ===== КЛАССЫ ТИПОГРАФИКИ (из PROF Style Guide) ===== */

/* Заголовки */
.t-title_lg {
    font-family: var(--font-heading);
    font-size: var(--font-size-hero);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
}

.t-title_xs {
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
}

.t-title_xxs {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
}

.t-title_sm {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
}

.t-heading_lg {
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
}

.t-name_md {
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-relaxed);
}

/* Описания (Montserrat, 300) */
.t-descr_xl {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-loose);
}

.t-descr_sm {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-body);
}

.t-descr_xs {
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-body);
}

.t-descr_xxs {
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-body);
}

/* Основной текст (Inter, 300) */
.t-text_md {
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-body);
}

.t-text_sm {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-body);
}

.t-text_xs {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-body);
}

/* Uptitle */
.t-uptitle_sm {
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-uptitle);
    text-transform: uppercase;
}

.t-uptitle_xs {
    font-family: var(--font-heading);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-uptitle);
    text-transform: uppercase;
}

/* ===== УТИЛИТЫ ОТСТУПОВ ===== */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.ml-xs { margin-left: var(--space-xs); }
.ml-sm { margin-left: var(--space-sm); }
.ml-md { margin-left: var(--space-md); }
.ml-lg { margin-left: var(--space-lg); }
.ml-xl { margin-left: var(--space-xl); }

.pt-xs { padding-top: var(--space-xs); }
.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }
.pt-2xl { padding-top: var(--space-2xl); }

.pb-xs { padding-bottom: var(--space-xs); }
.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }
.pb-2xl { padding-bottom: var(--space-2xl); }

/* ===== СЕКЦИИ ===== */
.section {
    padding-top: var(--section-pt-2xl);
    padding-bottom: var(--section-pb-xl);
}

.section-sm {
    padding-top: var(--section-pt-lg);
    padding-bottom: var(--section-pb-md);
}

.section-lg {
    padding-top: var(--section-pt-3xl);
    padding-bottom: var(--section-pb-2xl);
}

/* ===== RESPONSIVE ===== */

/* Laptop (≤1200px) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 54px;
    }

    .t-title_lg {
        font-size: 54px;
    }
}

/* Tablet (≤960px) */
@media screen and (max-width: 960px) {
    .container {
        max-width: 640px;
    }

    h1 {
        font-size: var(--font-size-h1);
    }

    h2 {
        font-size: var(--font-size-h2);
    }

    .t-title_lg {
        font-size: var(--font-size-h1);
    }

    .t-title_xs {
        font-size: var(--font-size-h2);
    }
}

/* Mobile (≤640px) */
@media screen and (max-width: 640px) {
    .container {
        max-width: 100%;
        padding: 0 var(--container-padding);
    }

    h1 {
        font-size: var(--font-size-h3);
    }

    h2 {
        font-size: var(--font-size-lg);
    }

    .t-title_lg {
        font-size: var(--font-size-h3);
    }

    .t-title_xs {
        font-size: var(--font-size-lg);
    }

    .section {
        padding-top: var(--section-pt-lg);
        padding-bottom: var(--section-pb-md);
    }
}

/* ===== СКРЫТИЕ ЭЛЕМЕНТОВ ===== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Responsive visibility */
@media screen and (max-width: 960px) {
    .hide-tablet {
        display: none !important;
    }
}

@media screen and (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
}

@media screen and (min-width: 961px) {
    .show-tablet-only {
        display: none !important;
    }
}

@media screen and (min-width: 641px) {
    .show-mobile-only,
    .hide-desktop {
        display: none !important;
    }
}
