:root {
    --primary-color: #2B2D42;
    --secondary-color: #D90429;
    --bg-color: #EDF2F4;
    --text-color: #2B2D42;
    --light-gray: #8D99AE;
    --white: #FFFFFF;
    --transition: 0.3s ease;
    --font-main: 'Manrope', sans-serif;
    --spacing-section: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section {
    padding: var(--spacing-section) 0;
}

.bg-light {
    background: #E7ECEF;
}

.bg-dark {
    background: var(--primary-color);
    color: var(--white);
}

.text-white {
    color: var(--white);
}

.text-gray {
    color: var(--light-gray);
}

.section__title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn--primary:hover {
    background-color: #b90322;
}

.btn--outline {
    border-color: var(--white);
    color: var(--white);
}

.btn--outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav.active {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.nav__link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--secondary-color);
}

.nav__link:hover::after {
    width: 100%;
}

.cta-link {
    color: var(--secondary-color);
}

.cta-link:hover {
    opacity: 0.8;
}

/* Burger */
.burger {
    display: block;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    position: relative;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    transition: var(--transition);
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 9px;
}

.burger span:nth-child(3) {
    bottom: 0;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Desktop Nav */
@media (min-width: 1024px) {
    .burger {
        display: none;
    }

    .nav {
        position: static;
        height: auto;
        width: auto;
        flex-direction: row;
        background: transparent;
    }

    .nav__list {
        flex-direction: row;
        gap: 40px;
    }

    .nav__link {
        font-size: 1rem;
    }
}

/* Hero */
.hero {
    height: 100vh;
    background: url('images/hero.jpg') no-repeat center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 70px;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 45, 66, 0.7);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero__actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Services Masonry/Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-item:hover img {
    transform: scale(1.05);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    order: 2;
    transition: var(--transition);
}

.service-content {
    padding: 20px;
    order: 1;
    flex: 1;
}

.service-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.service-content p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left-color: #b90322;
}

.review-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--secondary-color);
}

.review-info {
    flex: 1;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-color);
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-list {
    margin-top: 30px;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--white);
}

.contact-list i {
    color: var(--secondary-color);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1);
}

.form-group input:hover {
    border-color: var(--secondary-color);
}

.captcha-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.captcha-question {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.captcha-question span:first-child {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.captcha-example {
    font-size: 0.85rem;
    color: var(--light-gray);
    font-style: italic;
}

.captcha-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    text-align: left;
    transition: var(--transition);
}

.captcha-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1);
}

.captcha-group input:hover {
    border-color: var(--secondary-color);
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    color: green;
}

.form-message.error {
    color: red;
}

/* Responsive Grid Adjustments */
@media (min-width: 768px) {

    .features-grid,
    .services-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {

    .features-grid,
    .services-grid,
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Footer */
.footer {
    background: #222;
    color: #aaa;
    padding: 60px 0 20px;
}

.footer__grid {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

.logo--footer {
    color: var(--white);
    margin-bottom: 15px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    transition: var(--transition);
    display: inline-block;
}

.footer ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.link-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    padding: 0;
    text-align: left;
    transition: var(--transition);
    display: inline-block;
}

.link-btn:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}


/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal__content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    position: relative;
    z-index: 10;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal__content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.modal__content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.modal__content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.modal__content ul,
.modal__content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.modal__content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.modal__content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.modal__content a:hover {
    color: #b90322;
}

.modal.active .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}