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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #e63946;
    --accent-color: #457b9d;
    --accent-light: #a8dadc;
    --text-color: #2b2b2b;
    --text-light: #6c757d;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 8px 20px rgba(230, 57, 70, 0.25);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 16px;
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

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

.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

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

.header--scrolled {
    box-shadow: var(--shadow);
    padding: 0;
}

.header--scrolled .header__content {
    padding: 0.85rem 0;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    gap: 1.5rem;
}

.header__logo img {
    display: block;
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.header__logo:hover img {
    transform: scale(1.05);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav__item {
    position: relative;
}

.nav__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: block;
    position: relative;
}

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

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

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

.nav__link--active {
    color: var(--secondary-color);
    font-weight: 600;
}

.nav__link:focus-visible {
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.2);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn--ghost:hover,
.btn--ghost:focus {
    background: var(--white);
    color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.header__cta {
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
}

.burger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
}

.burger__line {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hero {
    padding: 6rem 0;
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1px);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.hero__text {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    line-height: 1.6;
}

.hero__image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero__image img {
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.25));
}

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

.hero__image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn--primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn--primary:hover,
.btn--primary:focus {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.section__title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    letter-spacing: -0.5px;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.services-preview {
    padding: 5rem 0;
    background-color: var(--white);
}

.services-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-card__image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__image {
    transform: scale(1.1);
}

.service-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 1.5rem 1rem;
}

.service-card__text {
    margin: 0 1.5rem 2rem;
    color: var(--text-light);
    line-height: 1.7;
}

.service-card .btn {
    margin: 0 1.5rem 1.5rem;
}

.why-choose {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
}

.why-choose__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.impact {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.impact__note {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.feature {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.feature__icon {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature:hover .feature__icon {
    transform: scale(1.2) rotate(5deg);
}

.feature__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature__text {
    color: var(--text-light);
    line-height: 1.7;
}

.process {
    padding: 5rem 0;
    background-color: var(--white);
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.process-step::after {
    content: '→';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.3;
}

.process-step:last-child::after {
    display: none;
}

.process-step__number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.process-step:hover .process-step__number {
    transform: scale(1.15) rotate(360deg);
    box-shadow: var(--shadow-hover);
}

.process-step__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.process-step__text {
    color: var(--text-light);
    line-height: 1.7;
}

.cta {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

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

.cta__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta__text {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
}

.cta .btn--primary {
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
}

.cta .btn--primary:hover,
.cta .btn--primary:focus {
    background-color: var(--light-bg);
}

.footer {
    background: linear-gradient(180deg, var(--primary-color) 0%, #0f0f1e 100%);
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer__section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer__text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.footer__list {
    list-style: none;
}

.footer__link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer__link::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer__link:hover::before {
    left: -10px;
    opacity: 1;
}

.footer__link:hover,
.footer__link:focus {
    color: var(--white);
    padding-left: 10px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    text-align: center;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.6);
}

.form {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form__group {
    margin-bottom: 1.75rem;
}

.form__label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.1);
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
}

.form__input:focus-visible,
.form__textarea:focus-visible,
.form__checkbox:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.form__checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.form__checkbox {
    margin-top: 0.3rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form__submit {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.05rem;
}

.page-header {
    padding: 4rem 0;
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header__title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.page-header__text {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    line-height: 1.3;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.content-section p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.05rem;
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-light);
    line-height: 1.9;
}

.content-section li {
    margin-bottom: 0.75rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.content-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.content-center .btn {
    margin-top: 1.5rem;
}

@media screen and (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .burger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav--open {
        max-height: 500px;
    }

    .nav__list {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
    }

    .header__cta {
        display: none;
    }

    .nav__link {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .hero {
        padding: 4rem 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__text {
        font-size: 1.1rem;
    }

    .section__title {
        font-size: 2.25rem;
    }

    .services-preview__grid {
        grid-template-columns: 1fr;
    }

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

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

    .process-step::after {
        display: none;
    }

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

    .cta__title {
        font-size: 2.25rem;
    }

    .cta__text {
        font-size: 1.1rem;
    }

    .page-header__title {
        font-size: 2.25rem;
    }

    .page-header__text {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero__title {
        font-size: 2rem;
    }

    .section__title {
        font-size: 1.875rem;
    }

    .why-choose__grid {
        grid-template-columns: 1fr;
    }

    .process__steps {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
    }

    .cta__title {
        font-size: 1.875rem;
    }

    .form {
        padding: 2rem 1.5rem;
    }

    .content-section h2 {
        font-size: 1.875rem;
    }

    .content-section h3 {
        font-size: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .hero,
    .page-header {
        background-size: auto;
    }
}