/*
Theme Name: Vet Brains
Theme URI: http://localhost:8088
Author: Daark
Description: Minimal starter theme for the Vet Brains project.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: vet-brains
*/

@font-face {
    font-family: 'Onest';
    src: url('assets/fonts/Onest-Thin.ttf') format('truetype');
    font-style: normal;
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('assets/fonts/Onest-ExtraLight.ttf') format('truetype');
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('assets/fonts/Onest-Light.ttf') format('truetype');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('assets/fonts/Onest-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('assets/fonts/Onest-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('assets/fonts/Onest-SemiBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('assets/fonts/Onest-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('assets/fonts/Onest-ExtraBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('assets/fonts/Onest-Black.ttf') format('truetype');
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

/* Основные стили сайта */
:root {
    --vb-bg: #F0F8FA;
    --vb-surface: #fffdf8;
    --vb-text: #2F3030;
    --vb-muted: #819898;
    --vb-accent: #239CB1;
    --vb-accent-dark: #145346;
    --vb-border: #d8d2c8;
    --vb-white: #FFF;
    --Light-Red: #F8485E;
    --vb-shadow: 0 20px 50px rgba(31, 41, 51, 0.08);
    --vb-radius: 20px;
    --vb-content: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Полоса прокрутки окна: скрыта на широких экранах; на узких (≤720px) — как обычно. */
@media (min-width: 721px) {
    html,
    body {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    padding: 20px clamp(16px, 4.2vw, 80px) 40px;
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 5.2vw, 100px);
    font-family: 'Onest', sans-serif;
    background: var(--vb-bg);
    overflow-x: hidden;
}

.site-shell {
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
}

/* Стили отдельных элементов */
a {
    text-decoration: none;
    list-style: none;
    color: var(--vb-text);
    font-weight: 500;
    font-size: 24px;
}

p {
    color: var(--vb-text);
    font-weight: 500;
    font-size: 24px;
}

/* Глобальный размер h1 по ширине вьюпорта */
h1 {
    font-size: 28px;
}

@media (min-width: 321px) {
    h1 {
        font-size: 32px;
    }
}

@media (min-width: 481px) {
    h1 {
        font-size: 36px;
    }
}

@media (min-width: 769px) {
    h1 {
        font-size: 42px;
    }
}

@media (min-width: 1001px) {
    h1 {
        font-size: 52px;
    }
}

ul {
    margin: 0;
    padding: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Версия для слабовидящих */
body.accessibility-mode {
    background: #fff;
    color: #000;
    font-size: 20px;
    line-height: 1.8;
}

body.accessibility-mode a {
    color: #0033cc;
    text-decoration: underline;
}

body.accessibility-mode * {
    transition: none !important;
    animation: none !important;
}

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

@media (max-width: 1024px) {
    body {
        padding-top: 16px;
        padding-bottom: 32px;
    }
}

@media (max-width: 767px) {
    a,
    p {
        font-size: 18px;
    }
}
