@font-face {
    font-family: 'Roboto-Regular';
    src: url('font/Roboto-Regular.ttf');
}

@font-face {
    font-family: 'Roboto-Bold';
    src: url('font/Roboto-Bold.ttf');
}

:root {
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --button-bg: linear-gradient(135deg, #000000, #1a1a1a);
    --accent-color: #1e293b;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --button-bg: linear-gradient(135deg, #6b7280, #1f2937);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto-Regular', sans-serif;
}

a {
    text-decoration: none;
}

.header {
    position: relative;
    width: 100%;
    height: 300px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.6;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.6;
    display: none;
}

@media (max-width: 768px) {
    .header-video {
        display: none;
    }
    .header-bg {
        display: block;
    }
}

.header-img img {
    width: 220px;
    max-width: 100%;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.header-img img:hover {
    transform: scale(1.1) rotate(5deg);
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    background: #4b5563;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

.about {
    text-align: center;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
}

.about h2 {
    font-family: 'Roboto-Bold', sans-serif;
    font-size: 28px;
    margin-bottom: 15px;
}

.about p {
    font-size: 18px;
    line-height: 1.6;
}

.buttons-block {
    width: 70%;
    max-width: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
    animation-delay: 0.3s;
}

.buttons-block a {
    width: 100%;
}


/* Specific styling for the "Question or Issue" button to make it smaller */
.buttons-block:first-of-type .buttons {
    padding: 8px;
    width: 80%;
    /* Make it narrower than other buttons */
    background: var(--button-bg);
    border-radius: 15px;
    /* Smaller border radius */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    /* Center the smaller button */
}

.buttons {
    padding: 8px;
    width: 70%;
    height: 60px;
    background: var(--button-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.buttons:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 247, 255, 0.4);
}

.buttons::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.buttons:active::after {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.line {
    width: 90%;
    max-width: 700px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.line-content {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.line-content1 {
    text-align: center;
    font-family: 'Roboto-Bold', sans-serif;
    font-size: 20px;
}

.buttons-img {
    width: 10%;
    min-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}


/* Smaller image for the question button */
.buttons-block:first-of-type .buttons-img img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.buttons-img img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    /* Сохраняет пропорции иконки */
}

.buttons-title {
    color: #fff;
    font-family: 'Roboto-Regular', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 18px;
    width: 80%;
    font-size: 16px;
}


/* Smaller text for the question button */
.buttons-block:first-of-type .buttons-title {
    font-size: 14px;
    line-height: 16px;
}

footer {
    text-align: center;
    padding: 30px;
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .buttons-block {
        width: 95%;
        margin-right: 10px;
    }
    .line {
        width: 90%;
        margin-right: 10px;
    }
    .header-img img {
        width: 160px;
    }
    .header {
        height: 250px;
    }
    .about h2 {
        font-size: 24px;
    }
    .about p {
        font-size: 16px;
    }
    .buttons {
        padding: 7px;
    }
    .buttons-img img {
        width: 24px;
        height: 24px;
    }
    .buttons-title {
        font-size: 14px;
        line-height: 16px;
    }
    .buttons-img {
        margin-right: 8px;
        min-width: 35px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .buttons-block {
        width: 75%;
    }
    .line {
        width: 70%;
    }
    .header-img img {
        width: 180px;
    }
    .buttons-img img {
        width: 26px;
        height: 26px;
    }
    .buttons-title {
        font-size: 15px;
    }
}

@media screen and (min-width: 1025px) {
    .buttons-block {
        width: 60%;
    }
    .line {
        width: 55%;
    }
}