/* ===== CSS Variables ===== */
:root {
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #34495e;
    --accent-color: #e67e22;
    --accent-hover: #d35400;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-warm: #faf8f5;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #ecf0f1;
    --primary-dark: #bdc3c7;
    --primary-light: #95a5a6;
    --accent-color: #e67e22;
    --accent-hover: #f39c12;
    --text-dark: #ecf0f1;
    --text-light: #bdc3c7;
    --bg-light: #1a1a1a;
    --bg-white: #2d2d2d;
    --bg-warm: #252525;
    --border-color: #404040;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-warm);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section__subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    height: 70px;
}

.nav__logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link {
    color: var(--primary-color);
}

.logo-link:hover {
    color: var(--accent-color);
}

[data-theme="dark"] .logo-link {
    color: var(--text-dark);
}

.logo-icon {
    flex-shrink: 0;
    color: var(--accent-color);
    transition: var(--transition);
}

.logo-link:hover .logo-icon {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

[data-theme="dark"] .nav__link {
    color: var(--text-dark);
}

.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 {
    color: var(--accent-color);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: var(--transition);
    position: relative;
    color: var(--primary-color);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.theme-icon {
    position: absolute;
    transition: var(--transition);
}

.theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

.lang-switcher {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--primary-color);
}

.lang-switcher:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

[data-theme="dark"] .lang-switcher {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .lang-switcher:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

[data-theme="dark"] .nav__toggle span {
    background-color: var(--text-dark);
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 70px;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero__container {
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.hero__tagline {
    font-size: 1.125rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero__trust {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.trust-item__icon {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn--primary {
    background-color: var(--accent-color);
    color: white;
}

.btn--primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn--block {
    width: 100%;
}

/* ===== Services Section ===== */
.services {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-warm);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card__text {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Why Us Section ===== */
.why-us {
    padding: 5rem 0;
    background-color: var(--bg-warm);
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.why-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.why-card__number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(230, 126, 34, 0.1);
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.why-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.why-card__text {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Process Section ===== */
.process {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.process-step__number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.process-step__text {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Prices Section ===== */
.prices {
    padding: 5rem 0;
    background-color: var(--bg-warm);
}

.prices__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.price-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    position: relative;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.price-card--featured {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.price-card--featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.price-card__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.price-card__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.price-card__price {
    margin-bottom: 2rem;
}

.price-card__amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.price-card__period {
    color: var(--text-light);
    font-size: 0.875rem;
}

.price-card__features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.price-card__features li {
    padding: 0.75rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.price-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.prices__note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 2rem;
    font-style: italic;
}

/* ===== Works Gallery Section ===== */
.works {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.works__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.work-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
}

.work-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.work-item__image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.work-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.work-item:hover .work-item__image img {
    transform: scale(1.1);
}

.work-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.work-item:hover .work-item__overlay {
    transform: translateY(0);
}

.work-item__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.work-item__text {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ===== How We Work Section ===== */
.how-we-work {
    padding: 5rem 0;
    background-color: var(--bg-warm);
}

.how-we-work__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.how-we-work__text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
}

.how-we-work__text p {
    margin-bottom: 1.5rem;
}

.how-we-work__image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.how-we-work__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Reviews Section ===== */
.reviews {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--bg-warm);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.review-card__stars {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.review-card__text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-card__author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-card__author strong {
    color: var(--primary-color);
}

.review-card__author span {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ===== Contact Section ===== */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-warm);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item__content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-item__content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item__content a:hover {
    text-decoration: underline;
}

.contact-item__content p {
    color: var(--text-light);
}

/* ===== Contact Form ===== */
.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

[data-theme="dark"] .footer {
    background-color: #1a1a1a;
    color: #ecf0f1;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__section h3 {
    margin-bottom: 1rem;
    color: white;
}

[data-theme="dark"] .footer__section h3 {
    color: #ecf0f1;
}

.footer__section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

[data-theme="dark"] .footer__section p {
    color: rgba(236, 240, 241, 0.8);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

[data-theme="dark"] .footer__links a {
    color: rgba(236, 240, 241, 0.8);
}

.footer__links a:hover {
    color: var(--accent-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

[data-theme="dark"] .footer__bottom {
    border-top: 1px solid rgba(236, 240, 241, 0.1);
    color: rgba(236, 240, 241, 0.6);
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .contact__content {
        grid-template-columns: 1fr;
    }

    .how-we-work__content {
        grid-template-columns: 1fr;
    }

    .price-card--featured {
        transform: scale(1);
    }

    .price-card--featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .services__grid,
    .why-us__grid,
    .prices__grid,
    .works__gallery,
    .reviews__grid {
        grid-template-columns: 1fr;
    }

    .process__steps {
        grid-template-columns: 1fr;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
