:root {
    --color-bg: #242424;
    --color-text: #f5f5f5;
    --color-link-accent: #ff9800;

    --font-size-base: 16px;
    --font-size-hero: 3.5rem;    /* 56px */
    --font-size-h2: 1.375rem;    /* 22px */
    --font-size-small: 0.875rem; /* 14px */
}

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

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

body {
    font-family: 'Libre Franklin', 'Arial', sans-serif;
    font-weight: normal;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

.container {
    width: 90%;
    max-width: 75rem; /* 1200px */
    margin: 0 auto;
    padding: 1rem;
}

/* Hero section */

.hero {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 3rem 0;
}

.hero-text {
    flex: 0 0 36%;
}

h1 {
    font-size: var(--font-size-hero);
    font-weight: normal;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-text > p {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.more-info p,
.more-info a {
    color: var(--color-link-accent);
    text-decoration: none;
    display: block;
    line-height: 1.6;
    margin-bottom: 0;
}

.more-info a:hover {
    text-decoration: underline;
}

.hero-photo {
    flex: 1;
    position: relative;
}

.hero-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contacts section */

.bottom-section {
    background-color: var(--color-bg);
    padding: 3rem 0;
}

.contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-col {
    flex: 1;
    min-width: 16rem; /* 256px */
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: normal;
    margin-bottom: 1.25rem;
}

.sro {
    font-size: 1rem;
}

.person {
    margin-bottom: 2rem;
}

address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

a {
    color: var(--color-text);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 48rem) { /* 768px */
    .hero {
        flex-direction: column;
    }

    .hero-text {
        flex: none;
        width: 100%;
    }

    .contacts {
        flex-direction: column;
        gap: 2rem;
    }
}
