/* ==== RESET ==== */
* {
    margin: 0;
    padding: 0;
}

/* ==== FONTS ==== */
@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EB_Garamond/EBGaramond-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EB_Garamond/EBGaramond-Italic-VariableFont_wght.ttf') format('truetype');
    font-style: italic;
    font-weight: 400 800;
    font-display: swap; /* Сначала загружает системный шрифт, затем кастомный */
}

/* ==== BASE ==== */
html {
    scroll-behavior: smooth; /* Медленная прокрутка при переходе по ссылкам */
}

body {
    height: 100vh; /* Занять 100% экрана */
    font-family: 'EB Garamond', Arial, Helvetica, sans-serif;
    background-color: #d4d4d4;
}

h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

h6 {
    font-size: 14px;
    font-weight: 600; /* semi bold */
    margin-bottom: 12px;
}

p, a {
    font-size: 16px;
}

p {
    line-height: 1.4;
    margin-bottom: 10px;
}

a {
    text-decoration: none;
}

img {
    display: block;
}

/* ==== COMPONENTS: COMMON ==== */
header,
main,
footer {
    width: 100%;
}

header,
footer {
    min-height: 50px;
    color: #c6c6c6;
    background-color: #343434;
}

header a,
footer a {
    color: #c6c6c6;
}

header a:hover,
footer a:hover {
    color: white;
}

/* ==== COMPONENTS: HEADER ==== */

/* ==== COMPONENTS: MAIN ==== */
main {
    flex: 1;
}

main a {
    color: #534611;
    text-decoration: underline;
}

main a:hover {
    color: #8f7920;
}

/* ==== COMPONENTS: FOOTER ==== */
footer a {
    font-size: 12px;
}

/* ==== UTILS ==== */
section {
    max-width: 1200px;
}

.flex-row,
.flex-column {
    flex-wrap: wrap; /* Переносить элементы на следующую строку, если не помещаются на экране */
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.flex-row p {
    flex: 1; /* Займи всё место, но не охуевай */
    min-width: 250px;
}

.flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-1 {

}

.btn-2 {

}

.btn-3 {

}

a,
.btn-1,
.btn-2,
.btn-3 {
    transition: color 0.6s ease;
}

/* ~~~~ PAGE: index.html ~~~~ */
#img_main_1 {
    height: 250px;
    width: 250px;
    border-radius: 15px;
    border: 1px solid silver;
    overflow: hidden; /* Обрезать части элемента, выходящие за мои границы */
}

/* ~~~~ PAGE: about.html ~~~~ */

/* ~~~~ PAGE: contacts.html ~~~~ */

/* ~~~~ PAGE: order.html ~~~~ */