/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets (768px and down) */
@media (max-width: 768px) {
    /* Крупные заголовки - адаптив */
    h1, .hero-title {
        font-size: 48px;
        line-height: 52px;
    }

    /* Средний текст - адаптив */
    h2, h3, .section-title {
        font-size: 24px;
        line-height: 30px;
    }

    h4 {
        font-size: 20px;
        line-height: 26px;
    }

    /* Мелкий текст - адаптив */
    p, li, span, a, label, input, textarea, button {
        font-size: 16px;
        line-height: 22px;
    }

    .container {
        padding: 0 15px;
    }

    /* Header - fix z-index for mobile */
    .header {
        padding: 12px 0;
        position: sticky;
        top: 0;
        z-index: 1000 !important;
    }

    /* Menu toggle - make sure it's visible and clickable */
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1001 !important;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
    }

    .menu-toggle span {
        width: 24px;
        height: 3px;
        background: white;
        transition: 0.3s ease;
        border-radius: 2px;
        display: block;
    }

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

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

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

    .logo {
        gap: 0;
    }

    .logo-svg {
        width: 40px;
        height: 40px;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
        flex-direction: column;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        z-index: 99;
        border-top: 2px solid var(--primary);
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 12px;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 8px 0;
        display: block;
        font-size: 16px;
    }

    .btn-telegram-small {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 14px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Menu toggle animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

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

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

    /* Hero */
    .hero {
        padding: 40px 0 50px;
        min-height: auto;
        justify-content: center;
    }

    .hero::before {
        width: 250px;
        height: 250px;
    }

    .hero::after {
        width: 200px;
        height: 200px;
    }

    .hero-content {
        justify-content: center;
    }

    .hero-title {
        font-size: 48px;
        line-height: 52px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 18px;
        line-height: 24px;
        margin: 12px auto 0;
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 16px;
    }

    .hero-buttons .btn-telegram {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .floating-element {
        width: 180px !important;
        height: 180px !important;
    }

    /* Sections */
    .section-title {
        font-size: 28px;
        margin-bottom: 35px;
        color: #1a1a1a !important;
        background: transparent !important;
    }

    .section-title::after {
        width: 50px;
        height: 3px;
        margin: 15px auto 0;
    }

    /* Portfolio секция - исправление фона */
    .portfolio {
        background: #f9f9f9 !important;
    }

    .portfolio .container {
        background: transparent !important;
    }

    /* Advantages/Benefits - ПОЛНАЯ ПЕРЕРАБОТКА */
    .advantages {
        padding: 40px 0;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .benefit-card {
        padding: 20px 16px;
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .icon-box {
        width: 48px !important;
        height: 48px !important;
        margin: 0 auto 12px !important;
        flex-shrink: 0;
        overflow: hidden;
    }

    .icon-box img {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        object-fit: contain;
        display: block;
    }

    .benefit-card h3 {
        font-size: 17px !important;
        line-height: 22px !important;
        margin-bottom: 8px !important;
        color: #1a1a1a !important;
        font-weight: 700 !important;
        text-align: center;
    }

    .benefit-card p {
        font-size: 14px !important;
        line-height: 20px !important;
        color: #555555 !important;
        font-weight: 400 !important;
        text-align: center;
        margin: 0;
    }

    /* Portfolio */
    .portfolio {
        padding: 60px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 40px;
    }

    .portfolio-item {
        padding: 0;
    }

    .portfolio-image {
        height: 240px;
        overflow: hidden;
        border-radius: 16px 16px 0 0;
    }

    .portfolio-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .portfolio-content {
        padding: 20px;
    }

    .portfolio-content h3 {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 12px;
    }

    .portfolio-features li {
        font-size: 15px;
        line-height: 24px;
        padding-left: 20px;
        position: relative;
        color: #444;
    }

    .portfolio-features li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 7px;
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
    }

    .portfolio-price {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-top: 15px;
        padding-top: 12px;
        border-top: 2px solid var(--primary);
    }

    .price-old {
        font-size: 16px;
        color: #999;
        text-decoration: line-through;
    }

    .price-current {
        font-size: 24px;
        color: var(--primary);
        font-weight: 800;
    }

    /* Glassmorphism фон - адаптив */
    .portfolio::before {
        width: 350px;
        height: 350px;
        top: -80px;
        left: -80px;
    }

    .portfolio::after {
        width: 400px;
        height: 400px;
        top: 40px;
        right: -100px;
    }

    .portfolio .container::before {
        background-size: 40px 40px;
    }

    /* Кейсы модалка — планшет: 2 колонки */
    .cases-grid-modal {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Partners */
    .partners {
        padding: 50px 0;
    }

    .partners-subtitle {
        font-size: 16px;
        margin-top: -20px;
        margin-bottom: 30px;
    }

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

    .partner-logo {
        height: 80px;
        max-width: 100%;
        padding: 12px;
    }

    .partner-logo img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Footer */
    .footer {
        padding: 50px 0 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-section ul li {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .footer-section a {
        font-size: 15px;
    }

    .social-links {
        gap: 12px;
        margin-top: 15px;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .footer-bottom {
        padding-top: 25px;
    }

    .footer-bottom p {
        font-size: 14px;
        margin: 6px 0;
    }

    /* Contact Modals - ПОЛНАЯ ПЕРЕРАБОТКА */
    .contact-choice-modal {
        z-index: 10001;
    }

    .contact-choice-content {
        padding: 30px 18px;
        width: 92%;
        max-width: 360px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .contact-choice-header h3 {
        font-size: 19px;
    }

    .contact-choice-header p {
        font-size: 14px;
    }

    .choice-btn {
        padding: 13px 18px;
        font-size: 14px;
    }

    .form-modal {
        z-index: 10002;
        align-items: flex-start;
        padding: 10px;
    }

    .form-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        overflow-y: auto;
        border-radius: 16px;
        margin-top: 10px;
    }

    .form-modal-header {
        padding: 20px 16px;
        border-radius: 16px 16px 0 0;
    }

    .form-modal-header h2 {
        font-size: 18px;
        line-height: 24px;
    }

    .form-modal-header p {
        font-size: 13px;
        line-height: 18px;
    }

    .form-modal-content .order-form {
        padding: 16px 14px;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 20px !important;
    }

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

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input {
        font-size: 14px;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .form-group:nth-child(3),
    .form-group:nth-child(4) {
        grid-column: 1 !important;
    }

    .btn-submit {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        border-radius: 50px;
    }

    .form-note {
        font-size: 12px;
        margin-top: 15px;
    }

    .form-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    /* Floating Phone */
    .floating-phone {
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 18px;
    }

    /* Promo Modal - ПОЛНАЯ ПЕРЕРАБОТКА */
    .promo-modal-content {
        width: 94%;
        max-width: 380px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .promo-badge {
        font-size: 18px;
        padding: 9px 18px;
    }

    .promo-modal-header h3 {
        font-size: 18px;
    }

    .promo-title {
        font-size: 18px;
    }

    .promo-description {
        font-size: 15px;
    }

    .promo-features li {
        font-size: 14px;
    }

    .btn-promo {
        padding: 14px 28px;
        font-size: 16px;
    }

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

    .advantages,
    .services,
    .portfolio,
    .partners,
    .contact-form-section {
        padding: 60px 0;
    }
}

/* Mobile phones (480px and down) */
@media (max-width: 480px) {
    /* Крупные заголовки - совсем маленький экран */
    h1, .hero-title {
        font-size: 36px;
        line-height: 42px;
    }

    /* Средний текст - совсем маленький экран */
    h2, h3, .section-title {
        font-size: 22px;
        line-height: 28px;
    }

    h4 {
        font-size: 18px;
        line-height: 24px;
    }

    /* Мелкий текст - совсем маленький экран */
    p, li, span, a, label, input, textarea, button {
        font-size: 15px;
        line-height: 21px;
    }

    .container {
        padding: 0 12px;
    }

    /* Header */
    .header {
        padding: 10px 0;
    }

    .logo-svg {
        width: 36px;
        height: 36px;
    }

    .header-content {
        padding: 0 12px;
    }

    .header-actions {
        gap: 6px;
    }

    .btn-primary-small {
        padding: 7px 10px !important;
        font-size: 13px !important;
    }

    .menu-toggle {
        padding: 6px;
    }

    .menu-toggle span {
        width: 22px;
        height: 2.5px;
    }

    /* Hero */
    .hero {
        padding: 30px 0 40px;
    }

    .hero::before {
        width: 180px;
        height: 180px;
    }

    .hero::after {
        width: 140px;
        height: 140px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 42px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 22px;
        margin: 10px auto 0;
    }

    .hero-buttons {
        gap: 10px;
        margin-top: 20px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 15px;
    }

    .floating-element {
        width: 140px !important;
        height: 140px !important;
    }

    /* Sections */
    .section-title {
        font-size: 24px;
        margin-bottom: 28px;
        color: #1a1a1a !important;
        background: transparent !important;
    }

    .section-title::after {
        width: 40px;
        height: 3px;
        margin: 12px auto 0;
    }

    /* Portfolio секция - исправление фона */
    .portfolio {
        background: #f9f9f9 !important;
    }

    .portfolio .container {
        background: transparent !important;
    }

    /* Advantages/Benefits - ПОЛНАЯ ПЕРЕРАБОТКА */
    .advantages {
        padding: 35px 0;
    }

    .advantages-grid {
        gap: 14px;
    }

    .benefit-card {
        padding: 18px 14px;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }

    .icon-box {
        width: 42px !important;
        height: 42px !important;
        margin-bottom: 10px !important;
    }

    .icon-box img {
        width: 42px !important;
        height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }

    .benefit-card h3 {
        font-size: 16px !important;
        line-height: 21px !important;
        margin-bottom: 7px !important;
        color: #1a1a1a !important;
        font-weight: 700 !important;
    }

    .benefit-card p {
        font-size: 13px !important;
        line-height: 19px !important;
        color: #555555 !important;
        font-weight: 400 !important;
    }

    /* Portfolio */
    .portfolio {
        padding: 45px 0;
    }

    .portfolio-grid {
        gap: 20px;
        padding-top: 30px;
    }

    /* Изображения портфолио — адаптация для телефона */
    .portfolio-image {
        height: 240px !important;
        overflow: hidden !important;
        border-radius: 16px 16px 0 0 !important;
    }

    .portfolio-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }

    /* На мобильных overlay виден всегда, текст в две строки */
    .portfolio-overlay {
        opacity: 1 !important;
        background: linear-gradient(135deg, rgba(255, 140, 0, 0.75) 0%, rgba(255, 107, 0, 0.75) 100%) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 12px !important;
    }

    .portfolio-category {
        font-size: 0.95rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .portfolio-click-hint {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        padding: 5px 12px !important;
        border-radius: 20px !important;
        color: white !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        animation: none !important;
        /* Скрываем основной текст, показываем только ::after */
        font-size: 0 !important;
    }

    /* Иконка пальца для подсказки */
    .portfolio-click-hint::before {
        content: '👆' !important;
        font-size: 0.9rem !important;
    }

    /* Подсказка при первом тапе */
    .portfolio-image-clickable.tapped-once .portfolio-click-hint {
        background: rgba(255, 255, 255, 0.35) !important;
        transform: scale(1.05);
    }

    .portfolio-image-clickable.tapped-once .portfolio-click-hint::after {
        content: 'ещё раз!' !important;
        font-weight: 700;
        font-size: 0.8rem !important;
    }

    .portfolio-image-clickable.tapped-once {
        outline: 3px solid rgba(255, 255, 255, 0.5);
        outline-offset: -3px;
    }

    /* По умолчанию на мобильных показываем "Тапни 2 раза для связи" */
    .portfolio-click-hint::after {
        content: 'Тапни 2 раза для связи' !important;
        font-size: 0.8rem !important;
        opacity: 0.9;
    }

    /* Список преимуществ — замена галочек на точки */
    .portfolio-features {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 0 16px 0 !important;
    }

    .portfolio-features li {
        color: #444 !important;
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 8px;
        padding-left: 20px !important;
        position: relative !important;
    }

    .portfolio-features li::before {
        content: '' !important;
        position: absolute;
        left: 0;
        top: 6px;
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
    }

    .portfolio-content {
        padding: 16px;
    }

    .portfolio-content h3 {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 10px;
    }

    .portfolio-features li {
        font-size: 14px;
        line-height: 22px;
        margin-bottom: 6px;
        padding-left: 20px !important;
        position: relative !important;
        color: #444 !important;
    }

    .portfolio-features li::before {
        content: '' !important;
        position: absolute;
        left: 0;
        top: 6px;
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
    }

    .portfolio-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 2px solid var(--primary);
    }

    .price-old {
        font-size: 14px;
        color: #999;
        text-decoration: line-through;
    }

    .price-current {
        font-size: 22px;
        color: var(--primary);
        font-weight: 800;
    }

    /* Glassmorphism фон - адаптив для телефона */
    .portfolio::before {
        width: 250px;
        height: 250px;
        top: -60px;
        left: -60px;
    }

    .portfolio::after {
        width: 280px;
        height: 280px;
        top: 20px;
        right: -70px;
    }

    .portfolio .container::before {
        background-size: 25px 25px;
    }

    /* Кейсы CTA — адаптив для мобильных */
    .cases-cta {
        padding: 35px 0;
        display: block;
    }

    .btn-cases-open {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 16px 32px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        border: none;
        border-radius: 50px;
        font-family: 'Onest', Arial, sans-serif;
        font-weight: 700;
        font-size: 1.05rem;
        cursor: pointer;
        box-shadow: 0 8px 30px rgba(255, 140, 0, 0.3);
        width: 100%;
        justify-content: center;
    }

    .btn-cases-open svg {
        width: 22px;
        height: 22px;
    }

    /* Модалка кейсов — мобильные */
    .case-modal-content {
        padding: 20px;
        border-radius: 20px;
    }

    .case-modal-header h2 {
        font-size: 1.4rem;
    }

    .case-modal-header p {
        font-size: 0.88rem;
    }

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

    .case-card-image {
        aspect-ratio: 4/3;
    }

    .case-card-title {
        font-size: 1.1rem;
    }

    .case-card-desc {
        font-size: 0.8rem;
    }

    /* Детальная модалка — мобильные */
    .case-detail-modal-content {
        max-width: 100%;
        border-radius: 20px;
    }

    .case-detail {
        padding: 24px 20px;
    }

    .case-detail-header h2 {
        font-size: 1.35rem;
    }

    .case-detail-desc {
        font-size: 0.88rem;
    }

    .case-badge-large {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .case-detail-badges {
        gap: 6px;
    }

    .btn-case-link {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .case-detail-footer {
        justify-content: stretch;
    }

    .case-detail-modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .case-detail-image {
        border-radius: 12px;
    }

    /* Partners */
    .partners {
        padding: 40px 0;
    }

    .partners-subtitle {
        font-size: 15px;
        margin-top: -15px;
        margin-bottom: 25px;
    }

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

    .partner-logo {
        height: 70px;
        padding: 10px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .footer-section ul li {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .footer-section a {
        font-size: 14px;
    }

    .social-links {
        gap: 10px;
        margin-top: 12px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 13px;
        margin: 5px 0;
    }

    /* Contact Modals - ПОЛНАЯ ПЕРЕРАБОТКА */
    .contact-choice-modal {
        z-index: 10001;
    }

    .contact-choice-content {
        padding: 24px 14px;
        width: 94%;
        max-width: 340px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .contact-choice-header h3 {
        font-size: 17px;
    }

    .contact-choice-header p {
        font-size: 13px;
    }

    .choice-btn {
        padding: 11px 14px;
        font-size: 13px;
        gap: 6px;
    }

    .choice-btn svg {
        width: 18px;
        height: 18px;
    }

    .form-modal {
        z-index: 10002;
        align-items: flex-start;
        padding: 5px;
    }

    .form-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 98vh;
        overflow-y: auto;
        border-radius: 14px;
        margin-top: 5px;
    }

    .form-modal-header {
        padding: 16px 12px;
        border-radius: 14px 14px 0 0;
    }

    .form-modal-header h2 {
        font-size: 16px;
        line-height: 22px;
    }

    .form-modal-header p {
        font-size: 12px;
        line-height: 16px;
    }

    .form-modal-content .order-form {
        padding: 12px 10px;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }

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

    .form-group label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .form-group input {
        font-size: 13px;
        padding: 10px 12px;
        border-radius: 8px;
    }

    .form-group:nth-child(3),
    .form-group:nth-child(4) {
        grid-column: 1 !important;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        border-radius: 50px;
    }

    .form-note {
        font-size: 11px;
        margin-top: 12px;
    }

    .form-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }

    /* Floating Phone */
    .floating-phone {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }

    /* Promo Modal - ПОЛНАЯ ПЕРЕРАБОТКА */
    .promo-modal-content {
        width: 96%;
        max-width: 360px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .promo-badge {
        font-size: 16px;
        padding: 7px 16px;
    }

    .promo-modal-header h3 {
        font-size: 16px;
    }

    .promo-title {
        font-size: 15px;
    }

    .promo-description {
        font-size: 13px;
    }

    .promo-features li {
        font-size: 12px;
    }

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

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

    .advantages,
    .services,
    .portfolio,
    .partners,
    .contact-form-section {
        padding: 45px 0;
    }

    /* Reveal animations - отключаем на очень маленьких экранах для производительности */
    .reveal,
    .reveal-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra large screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
}

/* Print styles */
@media print {
    * {
        background: transparent;
        box-shadow: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .header,
    .footer,
    .btn,
    .menu-toggle {
        display: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    p {
        page-break-inside: avoid;
    }
}

/* Dark theme support (если нужно) */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1a1a1a;
        --text: #e0e0e0;
        --text-light: #b0b0b0;
        --border: #3a3a3a;
    }

    body {
        background-color: var(--dark);
        color: var(--text);
    }

    .header {
        background: var(--dark-light);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
