:root {
    --red: #EC1C24;
    --black: #0d0d0d;
    --dark-grey: #1a1a1a;
    --medium-grey: #2c2c2c;
    --light-grey: #ccc;
    --white: #FFFFFF;
    --shadow-color: rgba(236, 28, 36, 0.2);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 100px 0;
    overflow: hidden;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--red);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--red);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid var(--red);
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn:hover {
    background-color: transparent;
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--shadow-color);
}
.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
}
.btn-secondary:hover {
    background-color: var(--white);
    color: var(--black);
    border-color: var(--white);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.15);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
    background-color: rgba(13, 13, 13, 0.85);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 40px;
    transition: height 0.3s ease;
}
.header.scrolled .logo img {
    height: 35px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}
.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red);
    transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('nodaysoff-hero.avif') no-repeat center center;
    background-size: cover;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero-content h1 {
    margin-bottom: 20px;
    text-shadow: 0px 4px 15px rgba(0,0,0,0.5);
}
.hero-content h1 span { color: var(--red); }
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    color: var(--grey);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons .btn {
    margin: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.service-card, .process-step {
    background-color: var(--dark-grey);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--medium-grey);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover, .process-step:hover {
    transform: translateY(-8px);
    border-color: var(--red);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}
.service-card .icon, .process-step .step-icon {
    font-size: 3rem;
    color: var(--red);
    margin-bottom: 20px;
}
.service-card p, .process-step p {
    font-size: 0.95rem;
    color: var(--light-grey);
}

.about-content, .sweepstakes-content {
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-image, .sweepstakes-image {
    flex: 1;
}
.about-image img, .sweepstakes-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.about-text, .sweepstakes-text { flex: 1.2; }
.about-text p, .sweepstakes-text p { color: var(--light-grey); margin-bottom: 20px; }
.about-text ul, .sweepstakes-text ul {
    list-style: none;
    padding-left: 0;
}
.about-text ul li, .sweepstakes-text ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    color: var(--light-grey);
}
.about-text ul li::before, .sweepstakes-text ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--red);
}
.sweepstakes-text .subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 20px;
}

#process { background-color: var(--black); }
.process-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}
.process-step {
    position: relative;
    z-index: 1;
}
.process-step .step-number {
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

#contact { background-color: var(--black); }
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--dark-grey);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid var(--medium-grey);
}
.form-group { margin-bottom: 20px; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--medium-grey);
    border: 1px solid #444;
    color: var(--white);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 10px var(--shadow-color);
}
.contact-form .btn {
    width: 100%;
    font-size: 1.1rem;
}

.footer {
    background-color: #000000;
    padding: 60px 0;
    border-top: 1px solid var(--medium-grey);
    text-align: center;
}
.footer .logo img {
    height: 50px;
    margin: 0 auto 20px auto;
}
.social-links {
    margin-bottom: 25px;
}
.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    color: var(--red);
    transform: scale(1.1);
}
.copyright {
    font-size: 0.9rem;
    color: #888;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}
.popup-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}
.popup-content {
    position: relative;
    background-color: var(--dark-grey);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--medium-grey);
    max-width: 500px;
    width: 100%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.popup-overlay:not(.hidden) .popup-content {
    transform: scale(1);
}
.popup-content h3 { color: var(--red); margin-bottom: 15px; }
.popup-content p { color: var(--light-grey); margin-bottom: 25px; line-height: 1.6; }
.popup-content p a { color: var(--red); text-decoration: underline; }
.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}
.close-popup:hover {
    color: var(--red);
    transform: rotate(90deg);
}
.hidden {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 992px) {
    section { padding: 80px 0; }
    .nav-links { gap: 25px; }
    .about-content, .sweepstakes-content { flex-direction: column; gap: 40px;}
    .sweepstakes-content { flex-direction: column-reverse; }
    .process-wrapper { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 70px; }
    section { padding: 60px 0; }
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links a { font-size: 1.5rem; }
    .services-grid,
    .process-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-form { padding: 30px; }
}

@media (max-width: 480px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 90%;
        padding: 16px;
        text-align: center;
    }
    .footer { padding: 40px 0; }
}

/* --- Testimonials Section --- */
#testimonials {
    background-color: var(--black);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--dark-grey);
    padding: 35px;
    border-radius: 10px;
    border: 1px solid var(--medium-grey);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-icon {
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    color: var(--light-grey);
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes author to the bottom */
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* Aligns to the bottom */
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--red);
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--light-grey);
}


/* --- Footer Company Info --- */
.company-info {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--medium-grey);
}

.company-info p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* --- Responsive for Testimonials --- */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Contact Form Status --- */
.form-status {
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    min-height: 25px; /* Резервируем место под сообщение */
    transition: color 0.3s ease;
}