:root {
    --color-dark: #30332c;
    --color-light: #d0d0d0;
    --color-l-gray: #e7e7e7;
    --color-fc-light: #acaea9;
}

@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.hp {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

body {
    margin: 0;
    font-family: 'OpenSans', sans-serif;
}

section {
    padding: 20px 0;
    scroll-margin-top: 80px;
}

footer {
    text-align: center;
    width: 100%;
    padding: 12px 0;
    margin: 0;
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-fc-light);
}

h2 {
    font-size: 52px;
    margin: 0;
}

.main-image { 
    aspect-ratio: 160 / 41;
    background-image: url(../images/main_img_qhd.jpg);
    height: auto;
    margin: 90px 0 0 0;
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    position: relative;
}

.mobile-header {
    display: none;
}

.separator {
    width: 70%;
    height: 4px;
    background-color: var(--color-fc-light);
    margin: 16px 0;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--color-light);
}

.bg-l-gray {
    background-color: var(--color-l-gray);
}

.fc-dark {
    color: var(--color-dark);
}

.fc-light {
    color: var(--color-light);
}

.container {
    display: flex;
    max-width: 1792px;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
}

.inner-container {
    max-width: 1280px;
    padding: 12px;
}

.icon {
    height: 100px;
    width: 100px;
}

.help-box {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 12px;
    width: 400px;
    border-radius: 12px;
    height: auto;
    aspect-ratio: 4/3;
    /*box-shadow: 0 6px 18px var(--color-light);*/
    transition: transform .5s;
}

.help-container {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
    
}

.help-box:hover,
.help-box:active,
.help-box:focus,
.help-box:focus-within {
    box-shadow: 0px 6px 18px 6px var(--color-light);
}

.desktop-main-btn {
    position: absolute;
    bottom: 7%;
    left: 60%;
}

.ct-button {
    padding: 12px 40px;
    border-radius: 8px;
}

.ct-button:hover {
    opacity: 0.8;
}

.fs-l {
    font-size: 37px;
}

.fs-m {
    font-size: 32px;
}

.fs-sm {
    font-size: 30px;
}

.fs-s {
    font-size: 23px;
}

.fs-xs {
    font-size: 20px;
}

.fw-b {
    font-weight: bold;
}

.ta-c {
    text-align: center;
}

.dp-fl-c {
    display: flex;
    flex-direction: column;
}

#contacts-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 2rem;
    justify-content: center;
}

/* Contact form styling */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    background-color: var(--color-dark);
    box-shadow: 0 6px 18px var(--color-dark);
    border: 1px solid var(--color-dark);
    border-radius: 10px;
}

#contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#contact-form label {
    color: var(--color-fc-light);
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    padding: 10px 12px;
    border: 1px solid var(--color-fc-light);
    border-radius: 8px;
    color: var(--color-dark);
    background: var(--color-fc-light);
    width: 100%;
    box-sizing: border-box;
}

#contact-form textarea { min-height: 140px; resize: vertical; }

#contact-form .checkbox-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#contact-form .checkbox-row label { display: inline; margin-left: 8px; color: var(--color-fc-light); }
#contact-form .checkbox-row input[type="checkbox"]:not(:checked) { background-color: var(--color-fc-light); border: 1px solid var(--color-fc-light); border-radius: 8px;}
#contact-form .checkbox-row a { color: var(--color-fc-light);text-decoration: underline; }

#contact-form button[type="submit"] {
    background: var(--color-fc-light);
    color: var(--color-dark);
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

#contact-form button[type="submit"]:hover { opacity: 0.95; }

/* Contact block on home page */
.contact-card {
    background: var(--color-dark);
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 6px 18px var(--color-dark);
}
.contact-title {
    margin: 0 0 8px 0;
    color: var(--color-fc-light);
}
.contact-info {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--color-fc-light);
}
.contact-item {
    margin: 6px 0;
}
.contact-item strong { margin-right: 6px; font-weight: 700; }
.contact-item a { color: var(--color-fc-light);text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 65%;
}

/* Contact form messages */
#contact-form-messages {
    width: 100%;
    box-sizing: border-box;
}
.contact-messages {
    padding: 12px 14px;
    border-radius: 8px;
}

.contact-messages--error {
    background: var(--color-light);
    border: 1px solid #7f1d1d;
    color: #7f1d1d;
}
.contact-messages__text { margin: 0; }
.contact-messages__list { margin: 0; padding-left: 1.2em; }
.contact-messages__list li { margin: 6px 0; }


.center-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 1.5rem;
}

/* Cookie consent popup (bottom) */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 20px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
}
.cookie-consent__content {
    pointer-events: auto;
    background: rgba(48,51,44,0.98);
    color: var(--color-fc-light);
    padding: 14px 16px;
    border-radius: 10px;
    max-width: 1100px;
    width: calc(100% - 40px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cookie-consent__content p { margin: 0; font-size: 15px; }
.cookie-consent__actions { margin-left: auto; display: flex; gap: 8px; }
.cookie-consent__actions button { padding: 8px 12px; border-radius: 8px; border: none; cursor: pointer; font-weight: 700; }
.cookie-consent__actions .btn-accept { background: var(--color-fc-light); color: var(--color-dark); }
.cookie-consent__actions .btn-decline { background: transparent; color: var(--color-fc-light); border: 1px solid rgba(255,255,255,0.12); }

.cookie-consent.hidden { display: none; }

/* Navigation styles and responsive hamburger */
nav.navbar {
    background: var(--color-dark);
    color: var(--color-fc-light);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
nav .container { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
nav .navbar-brand { color: var(--color-fc-light); text-decoration: none; }
nav .nav-links { display: flex; gap: 18px; align-items: center; }
nav .nav-links .nav-link { color: var(--color-fc-light); text-decoration: none; padding: 8px 6px; }
nav .nav-links .nav-link:hover { text-decoration: underline; }

.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; }
.nav-toggle .hamburger { display: block; width: 26px; height: 16px; position: relative; }
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after,
.nav-toggle .hamburger span { content: ''; display: block; height: 3px; background: var(--color-fc-light); border-radius: 2px; position: absolute; left: 0; right: 0; }
.nav-toggle .hamburger::before { top: 0; }
.nav-toggle .hamburger::after { bottom: 0; }
.nav-toggle .hamburger span { top: 50%; transform: translateY(-50%); }

nav.nav-open .nav-links { display: flex; }

@media (min-width: 2700px) {
    .container {
        max-width: 2688px;
    }
    .inner-container {
        max-width: 1920px;
    }

    .main-image { 
        background-image: url(../images/main_img_4k.jpg);
        margin: 85px 0 0 0;
    }

    h2 {
        font-size: 70px;
    }

    .fs-l {
        font-size: 60px;
    }

    .fs-m {
        font-size: 52px;
    }

    .fs-sm {
        font-size: 42px;
    }

    .fs-s {
        font-size: 36px;
    }

    .fs-xs {
        font-size: 28px;
    }

    .help-box {
        width: 600px;
    }

    .icon {
        height: 150px;
        width: 150px;
    }
    .desktop-main-btn {
        left: 61%;
        bottom: 7%;
    }
}

@media (min-width: 1441px) and (max-width: 1920px) {
    .container {
        max-width: 1440px;
    }
    .inner-container {
        max-width: 1152px;
    }
    .main-image { 
        background-image: url(../images/main_img_fhd.jpg);
    }

    h2 {
        font-size: 50px;
    }

    .fs-l {
        font-size: 35px;
    }

    .fs-m {
        font-size: 30px;
    }

    .fs-sm {
        font-size: 28px;
    }

    .fs-s {
        font-size: 21px;
    }

    .fs-xs {
        font-size: 17px;
    }
    
    .desktop-main-btn {
        left: 58%;
        bottom: 7%;
    }
    
}
@media (max-width: 1920px) {
    .help-box {
        width: 370px;
    }
    .main-image { 
        margin: 85px 0 0 0;
    }

    .ct-button {
        padding: 8px 30px;
    }
}


@media (max-width: 1440px) {
    .main-image { 
        background-image: url(../images/main_img_hd.jpg);
    }
    .container {
        max-width: 90%;
    }
    .inner-container {
        max-width: 90%;
    }

    h2 {
        font-size: 40px;
    }

    .fs-l {
        font-size: 30px;
    }

    .fs-m {
        font-size: 26px;
    }

    .fs-sm {
        font-size: 23px;
    }

    .fs-s {
        font-size: 20px;
    }

    .fs-xs {
        font-size: 14px;
    }
    .main-image { 
        margin: 75px 0 0 0;
    }

    .desktop-main-btn {
        left: 57%;
        bottom: 4%;
    }
}

@media (max-width: 1280px) {
    #contacts-wrapper > .contact-card,
    #contacts-wrapper #contact-form {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .contact-form-wrapper {
        width: 100%;
    }
    #contact-form,
    #contact-form input,
    #contact-form textarea,
    #contact-form .form-row { box-sizing: border-box; }
    #contacts-wrapper { flex-direction: column; padding: 0 12px; align-items: center;}

    #contact-form { padding: 0 }

    .contact-card {
        padding: 0;
    }

    .desktop-main-btn {
        left: 56%;
        bottom: 4%;
    }

}

@media (max-width: 1014px) {

    .nav-toggle { display: block; }
    nav .nav-links { display: none; position: absolute; left: 0; right: 0; top: 70px; background: var(--color-dark); flex-direction: column; gap: 8px; padding: 12px; z-index: 1000; }
    nav .nav-links .nav-link { padding: 10px 12px; }
    .desktop-main-btn {
        left: 54%;
        bottom: 2%;
    }
    .ct-button {
        padding: 6px 24px;
    }
}

@media (max-width: 768px) {

    .mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        margin: 70px 0 0 0;

        .title {
            font-size: 48px;
        }
    }

    .main-image { display: none; }

    .cookie-consent__actions { width: 100%; justify-content: flex-end; }
    .cookie-consent__content { padding: 12px; }
    .contact-card { width: 100%; padding: 14px; }
    .contact-title { font-size: 18px; }

    .container {
        max-width: 100%;
        padding: 0 12px;
    }
    .inner-container {
        max-width: 100%;
    }

    h2 {
        font-size: 30px;
    }

    .fs-l {
        font-size: 28px;
    }

    .fs-m {
        font-size: 20px;
    }

    .fs-sm {
        font-size: 18px;
    }

    .fs-s {
        font-size: 16px;
    }

    .fs-xs {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .help-box {
        width: 90%;
    }

   .mobile-header {
        margin: 65px 0 0 0;
        .title {
            font-size: 38px;
        }
    }

    .icon {
        height: 70px;
        width: 70px;
    }
    nav .nav-links { top: 60px; }
}
