:root {
    /* Random Palette: Deep Royal Blue & Vibrant Mint */
    --primary-color: #2E3A59;
    /* Темно-синий/индиго */
    --accent-color: #00D2A0;
    /* Мятный/аквамарин */
    --text-color: #333333;
    --bg-color: #F9FAFC;
    --white: #FFFFFF;
    --gray-light: #E0E6ED;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: 0.3s ease-in-out;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

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

/* UI Components */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn--primary:hover {
    background-color: #00b085;
    transform: translateY(-2px);
}

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

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

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

.btn--full {
    width: 100%;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

/* 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;
}

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

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

.logo:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    padding: 80px 20px;
    transition: var(--transition);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.nav.active {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

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

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

.nav__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
}

.nav__close:hover {
    color: var(--accent-color);
    transform: rotate(90deg) scale(1.1);
}

.burger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: var(--transition);
}

.burger:hover span {
    background-color: var(--accent-color);
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 58, 89, 0.9) 0%, rgba(46, 58, 89, 0.7) 100%);
    z-index: 1;
}

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

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

.hero__badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

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

.hero__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Section Common */
.section {
    padding: 80px 0;
}

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

/* Features */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.feature-card__icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

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

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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


.service-card__content {
    padding: 20px;
}

/* Reviews */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.stars {
    color: #FFD700;
}

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

.contact__list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.contact__list i {
    color: var(--accent-color);
    transition: var(--transition);
}

.contact__list li:hover i {
    color: var(--primary-color);
    transform: scale(1.2);
}

.form {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form__group {
    margin-bottom: 20px;
}

.form__group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form__group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form__group input:hover {
    border-color: var(--accent-color);
}

.form__group input:focus {
    border-color: var(--accent-color);
    outline: none;
}

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

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer__col h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

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

.footer__col a {
    transition: var(--transition);
}

.footer__col a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer__bottom a {
    transition: var(--transition);
}

.footer__bottom a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 15px;
    padding: 40px;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

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

.modal__content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.modal__content ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 10px 0;
}

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

.modal__content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.modal__content a:hover {
    color: #00b085;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .nav {
        position: static;
        height: auto;
        width: auto;
        padding: 0;
        background: none;
        box-shadow: none;
    }

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

    .nav__close,
    .burger {
        display: none;
    }

    .nav__link {
        font-size: 1rem;
    }

    .hero__title {
        font-size: 3.5rem;
    }

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

    .item-1 {
        grid-row: span 2;
    }

    .contact__wrapper {
        grid-template-columns: 1fr 1.5fr;
    }

}