:root {
    color-scheme: light dark;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    text-align: center;
    max-width: 100%;
    height: auto;
    overflow-x: none;
    font-family: "Georgia", serif;
    font-size: 18px;
    line-height: 1.6;
    transition: color 1.5s ease-in-out;
    display: flex;
    flex-direction: column;
    background-color: light-dark(#fff, #444);
    color: light-dark(#000000, #fff);
}

.logo {
    position: absolute;
    left: 5rem;
    width: 15rem;
    height: auto;
    margin-top: -1rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}



.logo.loaded {
    opacity: 1;
}


.input-field.error {
    border: 2px solid red;
    background-color: #ffe6e6;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}
.media-section {
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;

}
.media-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}
.social-gallery {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon i {
    transition: color 0.3s ease;
    color: #000;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Индивидуальные цвета для иконок */
.social-icon { color: #ae8624;
    background: linear-gradient(to right, #77530a, #ffd277, #77530a, #77530a, #ffd277, #77530a);
    background-size: 290%;



}





.about-section p {
    opacity: 0;
    transition: opacity 1s ease-out;
    font-size: 1.5rem;
    padding: 40px;
}

.about-section p.visible {
    opacity: 1;
}

.cd-headline {
    font-size: 3.5rem;
    margin-top: 15rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
    background: linear-gradient(to right, #77530a, #ffd277, #77530a, #77530a, #ffd277, #77530a);
    background-size: 290%;
}

.cd-headline.visible {
    opacity: 1;
    transform: translateY(0);
}

.cd-headline.clip span {
    display: inline-block;
    padding: .2em 0;
}

.cd-headline .cd-words-wrapper {
    overflow: hidden;
    vertical-align: top;
    display: inline-block;
    position: relative;
}

.cd-headline .cd-words-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background-color: #ae8624;
}

.cd-headline b {
    opacity: 0;
    position: absolute;
    white-space: nowrap;
}

.cd-headline b.is-visible {
    opacity: 1;
    position: relative;
}


.highlight {
    opacity: 0;
    transition: opacity 1s ease-out;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #77530a, #ffd277, #77530a, #77530a, #ffd277, #77530a);
}

.highlight.visible {
    opacity: 1;
}

.footer {
    width: 100%;
    text-align: center;
    background-color: light-dark(#fff, #000);
    color: light-dark(#000, #fff);
    padding: 2rem 0;
    transition: background-color 1.5s ease-in-out, color 1.5s ease-in-out;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.input-field {
    width: 85%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid light-dark(#ccc, #555);
    color: light-dark(#000, #fff);
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.input-field:focus {
    border-color: #ffd277;
    outline: none;
}

.subscribe-button {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(to right, #77530a, #ffd277, #77530a, #77530a, #ffd277, #77530a);
    background-size: 250%;
    background-position: left;
    color: #000000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition-duration: 1s;

}

.subscribe-button:active {
    transform: scale(0.95);
}

.subscribe-button:hover {
    background-position: right;
    transition-duration: 1s;
}

.footer-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: light-dark(#666, #bbb);
}