
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}



body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}
/* �����: �������, �������, ���������� ������� */
label {
    display: block;
    margin: 0.5rem 0 0.25rem;
}

input, select, textarea, button {
    width: 100%;
    max-width: 480px;
    padding: .5rem .75rem;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    background: #fff;
}
/* ������ �� ��������� */
button, [type="submit"] {
    background: #0a84ff;
    color: #fff;
    border: none;
    cursor: pointer;
}
/* ���������: ����������/����/������ */
:where(input, select, textarea, button):focus-visible {
    outline: 2px solid #0a84ff;
    outline-offset: 2px;
}

button:hover {
    filter: brightness(0.95);
}

:disabled, [aria-disabled="true"] {
    opacity: .6;
    cursor: not-allowed;
}
/* ��������� ��������� ����� (���������� aria-invalid="true") */
[aria-invalid="true"] {
    border-color: #b00020;
}

dialog {
    padding: 1.25rem;
    border: none;
    border-radius: 12px;
}

    dialog::backdrop {
        background: rgba(0,0,0,.5);
    }

.form-actions {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
}


:root {
    /* ������� */
    --color-bg: #fff;
    --color-fg: #0b0b0b;
    --color-muted: #666;
    --color-primary: #0a84ff;
    --color-danger: #b00020;
    /* ����������� � ������� */
    --font-body: system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5:40px;
    /* ���������� � ���� */
    --radius: 12px;
    --shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.08);
}
/* Ҹ���� ����: �������������� ������ �������� ������� */
body.theme-dark {
    --color-bg: #0b0b0b;
    --color-fg: #f5f5f5;
    --color-muted: #aaa;
    --color-primary: #6aa2ff;
}

:where(a,button,input,select,textarea):focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
:disabled, [aria-disabled="true"] {
    opacity: .6;
    cursor: not-allowed;
}

html {
    scroll-behavior: smooth;
}
/* ������� ��������� � #����� */
:target {
    outline: 2px dashed var(--color-primary);
    outline-offset: 4px;
}
/*
��������� ���� */

/* Reset-������� � ��������� � 1.8 */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-body);
    line-height: 1.5;
}

.container {
    width: min(100% - 2*var(--space-4), 1120px);
    margin-inline: auto;
}
/* ������������ ������� ������ �� ������� */
.section {
    padding-block: var(--space-5);
}

.section__title {
    margin: 0 0 var(--space-3);
}

/* �����������: �������� ������ � ������� */
#header .menu .item a {
    color: #333;
}
/* ������: ����� �� ���-����� ���������� */
.site-nav__link {
    color: var(--color-fg);
}

* {
    box-sizing: border-box;
}
/* ����� ������� ������/������ */
html, body {
    margin: 0;
    padding: 0;
}
/* ������� ��������� ������� �������� */

/* ����� �� ������������ �� ����������� */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}
/* ����-�������� ��������� ����� � ���� */
button, input, select, textarea {
    font: inherit;
    color: inherit;
}

:root {
    color-scheme: light;
}
/* ������� ����������/�������� ��
��������� */
body.theme-dark {
    color-scheme: dark;
}
/* Ҹ���� � ��� �������� ���� */

/* ����������� � �������� ��������� ���� � �� �������� ��������� */
.card__img {
    width: 100%;
    height: 220px; /* ��������� ������ �������� */
    object-fit: cover;
    object-position: center; /* ���������� ������������ */
    border-radius: var(--radius);
    display: block;
}

.hero {
    background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15)), /* ������� ���
��������� ������ */
    url("img/hero-1920.jpg") center/cover no-repeat; /* ��������
��� ����� */
    color: #fff;
    padding: clamp(2rem, 6vw, 6rem) 1rem; /* ����������
������� */
    border-radius: var(--radius);
}

.hero {
    background-image: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15)), image-set( url("img/hero-1280.jpg") 1x, /* ������� ������ */
    url("img/hero-2560.jpg") 2x /* ������� ������ */
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ��������� � ������������� ������������ ������ ��� <iframe>/<video> */
.media {
    aspect-ratio: 16/9; /* ���������� ��������� ����� */
    width: min(100%, 960px); /* �� ���� 960px, �� ��������� */
    margin-inline: auto; /* ���������� ���� */
}

    .media iframe,
    .media video {
        width: 100%;
        height: 100%; /* ����� �������� ��� ������� ����������
*/
        border: 0;
        border-radius: var(--radius);
    }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* Заставляет main занимать всё доступное пространство */
}

/* Для about.html - добавляем контейнеру растягивание */
.full-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 1;
}

header nav ul li {
    list-style: none;
    display: flex;
}