/* Variables & Reset */
:root {
    /* Random Palette: Deep Indigo & Electric Lime */
    --primary-color: #2E2F5B;
    --accent-color: #39FF14;
    /* Lime Green for tech feel */
    --text-color: #333333;
    --bg-color: #F8F9FD;
    --white: #ffffff;
    --dark-bg: #1A1B36;
    --overlay: rgba(46, 47, 91, 0.85);

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --transition-hover: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

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

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

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

/* Components */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-hover);
    border: 2px solid transparent;
    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.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

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

.btn--primary:hover {
    background-color: #32D913;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(57, 255, 20, 0.4);
}

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

.btn--outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

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

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

.section {
    padding: 80px 0;
}

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

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

.section__title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.section--dark .section__title {
    color: var(--white);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

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

.logo:hover svg {
    transform: rotate(5deg) scale(1.05);
    transition: var(--transition-hover);
}

.logo svg {
    transition: var(--transition-hover);
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    transition: var(--transition-hover);
    position: relative;
    padding: 5px 0;
}

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

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

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

.burger {
    display: none;
    cursor: pointer;
}

.nav__close {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 47, 91, 0.95) 0%, rgba(26, 27, 54, 0.98) 50%, rgba(46, 47, 91, 0.95) 100%);
}

.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(57, 255, 20, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(57, 255, 20, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(57, 255, 20, 0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(57, 255, 20, 0.2), transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(57, 255, 20, 0.3), transparent);
    background-size: 200% 200%;
    animation: particlesMove 15s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes particlesMove {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }
}

.hero__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero__left {
    max-width: 600px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(57, 255, 20, 0.15);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 30px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition-hover);
    cursor: default;
}

.badge:hover {
    background: rgba(57, 255, 20, 0.25);
    border-color: rgba(57, 255, 20, 0.5);
    transform: scale(1.05);
}

.badge i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero__title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero__title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero__title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero__title-line:nth-child(3) {
    animation-delay: 0.6s;
}

.hero__title-line--accent {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero__title-line--accent::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    opacity: 0.3;
    transform: scaleX(0);
    animation: underlineExpand 0.8s ease-out 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineExpand {
    to {
        transform: scaleX(1);
    }
}

.hero__subtitle {
    font-size: 1.15rem;
    margin-bottom: 40px;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 550px;
}

.hero__actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
}

.hero__actions .btn i {
    transition: transform 0.3s ease;
}

.hero__actions .btn:hover i {
    transform: translateX(5px);
}

.hero__actions .btn--outline:hover i {
    transform: scale(1.1);
}

.hero__stats {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
    text-align: left;
}

.hero__stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

.hero__right {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__visual {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero__card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(57, 255, 20, 0.2);
}

.hero__card--1 {
    top: 10%;
    left: 10%;
    width: 180px;
    animation: floatCard1 6s ease-in-out infinite;
}

.hero__card--2 {
    top: 50%;
    right: 10%;
    width: 200px;
    transform: translateY(-50%);
    animation: floatCard2 6s ease-in-out infinite;
    animation-delay: 1s;
}

.hero__card--3 {
    bottom: 10%;
    left: 20%;
    width: 170px;
    animation: floatCard3 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes floatCard1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(10px, -15px) rotate(2deg);
    }
}

@keyframes floatCard2 {

    0%,
    100% {
        transform: translateY(-50%) translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translateY(-50%) translate(-10px, 15px) rotate(-2deg);
    }
}

@keyframes floatCard3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-10px, -10px) rotate(1deg);
    }
}

.hero__card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.hero__card-text {
    font-size: 0.95rem;
    text-align: center;
    opacity: 0.9;
}

.hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulseGlow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    opacity: 0.6;
    animation: bounceIndicator 2s ease-in-out infinite;
}

@keyframes bounceIndicator {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.hero__scroll-line {
    width: 2px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 2px;
}

.hero__scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
}

/* 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: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition-hover);
    border-top: 4px solid var(--accent-color);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-top-color: #32D913;
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--accent-color);
}

.feature-card__icon {
    transition: var(--transition-hover);
}

.feature-card__icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

/* Services */
.services-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    background: var(--bg-color);
    padding: 40px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    /* Явно задаємо колір тексту для звичайних карток */
    color: var(--text-color);
}

/* Загальний ховер для всіх карток */
.service-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    /* При ховері текст завжди темний */
    color: var(--text-color);
}

/* Стилі для великої картки */
.service-item--large {
    grid-column: span 2;
    background: var(--primary-color);
    /* Початковий колір тексту білий */
    color: var(--white);
}

/* ВАЖЛИВО: Виправлення для великої картки при ховері */
.service-item--large:hover {
    /* Фон стає білим */
    background: var(--white);
    /* Текст стає темним */
    color: var(--text-color);
}

/* Стилі для посилання-стрілки */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.link-arrow::after {
    content: '→';
    display: inline-block;
    transition: var(--transition);
}

/* У великій картці посилання спочатку світло-зелене */
.service-item--large .link-arrow {
    color: var(--accent-color);
}

/* При ховері на велику картку посилання стає темно-синім */
.service-item--large:hover .link-arrow {
    color: var(--primary-color);
}

/* Додатковий ефект при ховері на саме посилання */
.link-arrow:hover {
    transform: translateX(5px);
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

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

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition-hover);
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left: 4px solid var(--accent-color);
}

.testimonial-card:hover .avatar-circle {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.testimonial-card .avatar-circle {
    transition: var(--transition-hover);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(46, 47, 91, 0.1);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info ul {
    margin-top: 30px;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-hover);
    padding: 8px;
    border-radius: var(--radius);
    cursor: pointer;
}

.contact-info li:hover {
    background: rgba(57, 255, 20, 0.1);
    transform: translateX(5px);
    padding-left: 15px;
}

.contact-info li:hover i {
    color: var(--accent-color);
    transform: scale(1.2);
}

.contact-info li i {
    transition: var(--transition-hover);
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    color: var(--text-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

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

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

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
    transform: translateY(-2px);
}

.form-status {
    display: none;
    margin-top: 15px;
    text-align: center;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.success-message {
    color: green;
    font-weight: 600;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background: #111;
    color: #aaa;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

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

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

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

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

.footer ul li a {
    transition: var(--transition-hover);
    display: inline-block;
    padding: 3px 0;
}

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

.footer__col p {
    transition: var(--transition-hover);
    padding: 3px 0;
}

.footer__col p:hover {
    color: var(--accent-color);
    transform: translateX(3px);
    padding-left: 5px;
    cursor: default;
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    display: none;
    flex-direction: column;
}

.modal.active {
    display: flex;
}

.modal-overlay.active {
    display: flex;
}

.modal-body {
    overflow-y: auto;
    margin-top: 20px;
    padding-right: 10px;
}

.modal-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.modal-body ul,
.modal-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.modal-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-body ul ul,
.modal-body ol ol {
    margin-top: 10px;
    margin-bottom: 10px;
}

.modal-body a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: var(--transition);
}

.modal-body a:hover {
    color: var(--primary-color);
}

.modal-body strong {
    font-weight: 600;
    color: var(--primary-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-hover);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-color);
}

.modal-close:hover {
    background: rgba(46, 47, 91, 0.1);
    transform: rotate(90deg) scale(1.1);
    color: var(--primary-color);
}

/* Tablet and below */
@media (max-width: 1024px) {
    .burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

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

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        padding: 80px 40px;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 20px;
        font-size: 1.2rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }

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

    .hero__right {
        height: 350px;
        order: -1;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero__actions .btn {
        flex: 1;
        min-width: 150px;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 25px;
    }

    .hero__card {
        padding: 20px;
    }

    .hero__card--1,
    .hero__card--2,
    .hero__card--3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        margin: 10px;
        width: auto;
        flex: 1;
        min-width: 140px;
    }

    .hero__visual {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .service-item--large {
        grid-column: auto;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

/* Mobile */
@media (max-width: 768px) {
    .header__container {
        height: 60px;
    }

    .logo {
        font-size: 1rem;
    }

    .logo svg {
        width: 32px;
        height: 32px;
    }

    .hero {
        padding: 70px 0 30px;
    }

    .hero__container {
        gap: 30px;
    }

    .hero__right {
        height: 300px;
    }

    .hero__title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero__title-line {
        display: inline;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        min-width: auto;
    }

    .hero__stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero__stat {
        width: 100%;
    }

    .hero__stat-number {
        font-size: 1.8rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .section {
        padding: 50px 0;
    }

    .section__title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px;
    }

    .feature-card__icon {
        font-size: 1.8rem;
    }

    .service-item {
        padding: 30px;
    }

    .service-item__content h3 {
        font-size: 1.3rem;
    }

    .testimonial-card {
        padding: 25px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .contact-info ul {
        margin-top: 20px;
    }

    .contact-info li {
        font-size: 0.9rem;
    }

    .footer {
        padding: 40px 0 15px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer__col {
        text-align: center;
    }

    .modal {
        max-width: 95%;
        padding: 25px 20px;
        max-height: 85vh;
    }

    .modal h3 {
        font-size: 1.3rem;
    }

    .modal-body {
        font-size: 0.9rem;
    }

    .modal-body h4 {
        font-size: 1.1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header__container {
        height: 55px;
    }

    .logo span {
        font-size: 0.9rem;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }

    .hero {
        padding: 60px 0 20px;
    }

    .hero__title {
        font-size: 1.7rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero__right {
        height: 250px;
    }

    .hero__card {
        padding: 15px;
    }

    .hero__card-icon {
        font-size: 2rem;
    }

    .hero__card-text {
        font-size: 0.85rem;
    }

    .section {
        padding: 40px 0;
    }

    .section__title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .service-item {
        padding: 25px 20px;
    }

    .service-item__content h3 {
        font-size: 1.2rem;
    }

    .service-item__content p {
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 25px 15px;
    }

    .form-group input {
        padding: 10px;
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .footer {
        padding: 30px 0 15px;
        font-size: 0.85rem;
    }

    .footer__col h4 {
        font-size: 1rem;
    }

    .modal {
        padding: 20px 15px;
        max-height: 90vh;
    }

    .modal h3 {
        font-size: 1.2rem;
    }

    .modal-body {
        font-size: 0.85rem;
    }

    .modal-body h4 {
        font-size: 1rem;
        margin-top: 20px;
    }

    .hero__scroll-indicator {
        bottom: 15px;
        display: none;
    }

    .hero__scroll-indicator span {
        font-size: 0.7rem;
    }

    .nav {
        width: 90%;
        padding: 60px 30px;
    }

    .nav__list {
        font-size: 1.1rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 50px 0 20px;
    }

    .hero__right {
        height: 250px;
    }

    .section {
        padding: 40px 0;
    }
}

/* Touch devices optimization */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav__link {
        padding: 10px 0;
    }

    .modal-close {
        width: 44px;
        height: 44px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero__title {
        font-size: 4rem;
    }

    .section__title {
        font-size: 2.5rem;
    }
}