* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 18px
}

:root {
    --header-height: 170px;
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --text-color: #f5f5f5;
    --modal-bg: rgba(20, 20, 20, 0.98);
}

html, body {
    font-size: 20px;
    font-family: sans-serif, serif;
}

h1 {
    font-weight: bold;
    font-size: 2rem;
    padding: 20px 0;
}

h2 {
    font-weight: bold;
    font-size: 1.8rem;
    padding: 10px 0;
}

h3 {
    font-weight: bold;
    font-size: 1.5rem;
    padding: 10px 0;
}

h4 {
    font-weight: bold;
    font-size: 1.4rem;
    padding: 10px 0;
}

i, strong, em {
    font-size: 1rem;
    line-height: 1.4rem;
}

p, li, dl, dt, dd {
    font-size: 1rem;
    line-height: 1.4rem;
    margin-bottom: 20px;
}

nav {
    max-width: 100%;
    overflow: hidden;
}

header {
    position: relative;
    min-height: var(--header-height);
    background-image: url('../uploads/2023/03/wesual-click-rsWZ-P9FbQ4-unsplash-scaled.jpg');
    background-size: cover;
    background-position: center;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
}

.header-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px;
    min-height: var(--header-height);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.logo img {
    display: block;
    max-width: 120px;
    height: auto;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: clamp(1rem, 0.995rem + 0.955vw, 1.52rem);
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.7;
}

.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--modal-bg);
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.modal-overlay.active {
    display: block;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-20px);
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 3px;
    background: var(--text-color);
}

.close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-nav ul {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    list-style: none;
    text-align: center;
}

.modal-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.8rem;
}

.quote-block {
    border-width: 1px 0;
    border-style: solid;
    font-size: 1.6rem;
    line-height: 1.5;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-sizing: border-box;
    overflow-wrap: break-word;
    padding: 2em 0;
    text-align: center;
}

footer {
    background-color: #f5ac1f;
    display: flex;
    justify-content: space-between;
    padding: 10px 40px;
    align-items: center;
}


footer a:visited,
footer a {
    color: #000000;
    text-decoration: none;

}

footer a:hover {
    color: #203535;
    text-decoration: dashed;
    border-bottom: 1px dashed #0c2d4a;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    flex-wrap: wrap;
}

.logo-and-address {
    display: flex;
    align-items: center;
}

.logo-and-address p {
    font-size: 18px;
    line-height: 28px
}

.logo-and-address img {
    max-width: 160px;
    margin-right: 12px;
}

.homepage-second-container {
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto 40px;

    .text-block {
        padding: 20px 30px;
        font-size: 24px;
        line-height: 34px;
    }

    img {
        border: 1px solid #000;
        padding: 5px;
    }
}

blockquote p {
    max-width: 600px;
    margin: 0 auto;
    display: block;
}

cite {
    display: block;
    font-style: italic;
    color: #3f3f3f;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
}

@media (max-width: 759px) {
    .header-content > nav {
        display: none;
    }

    .burger-btn {
        display: flex;
    }
}