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

:root {
    --primary-color: #FFD700;
    --primary-dark: #E6C200;
    --secondary-color: #1a1a2e;
    --accent-color: #0f3460;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #e9ecef;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    gap: 40px;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    white-space: nowrap;
}

.logo__img {
    display: block;
    height: 48px; /* adjust as needed */
    width: auto;
    object-fit: contain;
}

.logo__icon {
    font-size: 32px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav__list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav__link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

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

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

.header__phone {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    white-space: nowrap;
}

.header__phone:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    z-index: -1;
}

.hero__bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero__bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    color: var(--white);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

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

.hero__buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn--primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn--secondary:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn--large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn--block {
    width: 100%;
    padding: 15px;
}

.hero__features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-badge__icon {
    font-size: 20px;
    color: var(--primary-color);
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    display: block;
    position: relative;
}

.scroll-down span {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section__title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.section__subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

/* Services Section */
.services {
    background: var(--gray-light);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card__icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-card:hover .service-card__icon {
    animation: rotate 0.6s ease;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.service-card__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card__description {
    color: var(--text-light);
    line-height: 1.6;
}

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

.advantage-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.advantage-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.advantage-card__number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 10px;
}

.advantage-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.advantage-card__description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Prices Section */
.prices {
    background: var(--gray-light);
}

.prices__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.price-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.price-card--featured {
    border: 3px solid var(--primary-color);
}

.price-card__badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.price-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
    min-height: 50px;
}

.price-card__price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.price-card__features {
    list-style: none;
}

.price-card__features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray);
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.price-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.price-card__features li:last-child {
    border-bottom: none;
}

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

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-hover);
}

.review-card__header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card__name {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.review-card__rating {
    color: var(--primary-color);
    font-size: 18px;
}

.review-card__text {
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
}

/* Portfolio Section */
.portfolio {
    background: var(--gray-light);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-item__image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.portfolio-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.3), transparent);
    padding: 20px 15px 15px;
    color: var(--white);
    transform: translateY(0);
    transition: var(--transition);
}

/* Desktop hover effect */
@media (min-width: 769px) {
    .portfolio-item__overlay {
        transform: translateY(100%);
        padding: 30px 20px 20px;
    }
    
    .portfolio-item:hover .portfolio-item__overlay {
        transform: translateY(0);
    }
}

.portfolio-item__overlay h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.portfolio-item__overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta__subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta__note {
    margin-top: 20px;
    opacity: 0.8;
}

/* Contacts Section */
.contacts {
    background: var(--gray-light);
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info__title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item__icon {
    font-size: 30px;
}

.contact-item__label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-item__value {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-item__value:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form__title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-note {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.footer__content {
    max-width: 600px;
    margin: 0 auto;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer__logo-img {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer__text {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer__copy {
    opacity: 0.6;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.modal.active {
    display: block;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

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

.modal__title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.modal__subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Portfolio Modal */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.portfolio-modal.active {
    display: block;
}

.portfolio-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.portfolio-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.portfolio-modal__content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.portfolio-modal__close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
    z-index: 2001;
}

.portfolio-modal__close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.portfolio-modal__prev,
.portfolio-modal__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
    z-index: 2001;
}

.portfolio-modal__prev:hover,
.portfolio-modal__next:hover {
    background: var(--primary-color);
}

.portfolio-modal__prev {
    left: 20px;
}

.portfolio-modal__next {
    right: 20px;
}

.portfolio-modal__info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 0.8), transparent);
    padding: 20px;
    text-align: center;
    color: var(--white);
    z-index: 2001;
}

.portfolio-modal__info h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.portfolio-modal__info p {
    color: var(--white);
    font-size: 16px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 968px) {
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }

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

    .burger {
        display: flex;
        z-index: 1000;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .header__phone {
        display: none;
    }

    .hero {
        padding-top: 100px;
    }

    .hero__title {
        font-size: 40px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .section__title {
        font-size: 32px;
    }

    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services__grid,
    .advantages__grid,
    .prices__grid,
    .reviews__slider,
    .portfolio__grid {
        grid-template-columns: 1fr;
    }

    .portfolio__grid {
        gap: 20px;
    }

    .portfolio-item__image {
        height: 250px;
    }

    /* Mobile portfolio modal */
    .portfolio-modal__content {
        padding: 0;
    }

    .portfolio-modal__content img {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        width: 100%;
        height: 100vh;
        object-fit: contain;
    }

    .portfolio-modal__info {
        padding: 15px;
        padding-bottom: 20px;
    }

    .portfolio-modal__info h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .portfolio-modal__info p {
        font-size: 14px;
    }

    .portfolio-modal__close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 26px;
    }

    .portfolio-modal__prev,
    .portfolio-modal__next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .portfolio-modal__prev {
        left: 10px;
    }

    .portfolio-modal__next {
        right: 10px;
    }

    .portfolio-item__overlay {
        padding: 20px 15px 15px;
    }

    .portfolio-item__overlay h3 {
        font-size: 16px;
    }

    .portfolio-item__overlay p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__features {
        flex-direction: column;
        gap: 15px;
    }

    .section__title {
        font-size: 28px;
    }

    .cta__title {
        font-size: 32px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Portfolio mobile adjustments */
    .portfolio-item__image {
        height: 220px;
    }

    .portfolio-modal__info h3 {
        font-size: 16px;
    }

    .portfolio-modal__info p {
        font-size: 13px;
    }
}