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

:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

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

/* Mobile-first optimizations */
* {
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
}

img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Sticky mobile call button */
.sticky-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 240px;
    max-width: calc(100% - 40px);
    height: 52px;
    padding: 0 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-radius: 26px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    z-index: 1000;
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    font-family: inherit;
}

.sticky-call-btn:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
}

.sticky-call-btn:active {
    transform: translateX(-50%) scale(0.98);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.8), 0 0 0 10px rgba(255, 107, 53, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    }
}

/* Header */
.header {
    background: var(--bg-dark);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
}

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

.logo .highlight {
    color: var(--primary-color);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
}

.contact-info strong {
    color: var(--white);
}

.phone {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    color: var(--white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Navigation */
.nav {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: wrap;
}

.nav-list li a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.3);
}

.nav-list li a:hover,
.nav-list li a.active {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.3);
    touch-action: manipulation;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #20ba5a;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* Hero Section */
.hero {
    background: var(--bg-dark);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.service-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.service-card.featured h3,
.service-card.featured .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.service-card.featured h3 {
    color: var(--white);
}

.discount {
    font-size: 20px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    margin-bottom: 20px;
}

.service-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-list.columns {
    columns: 2;
    column-gap: 20px;
}

.service-brands {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.service-brands span {
    background: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.service-card.full-width {
    grid-column: 1 / -1;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: var(--bg-dark);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 15px;
}

.cta-content strong {
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cta-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* Advantages Section */
.advantages {
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advantage-item {
    text-align: center;
}

.advantage-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

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

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
}

/* Special Offer Section */
.special-offer {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.special-offer h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.offer-percent {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.special-offer p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* About Preview */
.about-preview {
    padding: 80px 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-light);
}

.about-content strong {
    color: var(--text-color);
}

.about-content .btn {
    margin-top: 30px;
}

/* Articles Preview */
.articles-preview {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.article-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.article-card a {
    text-decoration: none;
    color: inherit;
}

.article-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: color 0.3s;
}

.article-card:hover h3 {
    color: var(--primary-color);
}

.article-card time {
    color: var(--text-light);
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.footer-nav {
    list-style: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-color);
}

.modal-content h2 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.modal-content p {
    margin-bottom: 25px;
    color: var(--text-light);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px; /* Предотвращает zoom на iOS */
    font-family: inherit;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input[type="tel"] {
    direction: ltr;
    text-align: left;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

#contactForm {
    display: flex;
    flex-direction: column;
}

#contactForm button[type="submit"] {
    display: block !important;
    margin: 20px auto 0 !important;
    width: 100%;
    max-width: 300px;
    align-self: center;
}

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

.modal-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.btn-telegram {
    background: #0088cc;
    color: var(--white);
}

.btn-telegram:hover {
    background: #0077b5;
}

.btn-telegram svg {
    fill: var(--white);
}

.modal-contacts .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-contacts .btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--bg-dark);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .header-top {
        display: grid;
        grid-template-columns: 40px 1fr auto;
        grid-template-rows: auto auto;
        padding: 8px 0;
        gap: 4px 10px;
        align-items: start;
    }
    
    .mobile-menu-toggle {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: start;
        margin-top: 2px;
    }
    
    .logo {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        align-self: start;
    }
    
    .logo strong {
        font-size: 15px;
        color: var(--white);
        line-height: 1;
    }
    
    .logo .highlight {
        color: var(--primary-color);
    }

    .header-contacts {
        grid-column: 3;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        font-size: 11px;
        justify-content: start;
        align-self: start;
        padding-top: 2px;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
    
    .contact-info strong:first-child {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.2;
        text-align: right;
    }
    
    .contact-info strong:nth-child(2) {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.2;
        text-align: right;
    }
    
    .contact-info strong:last-child {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.2;
        text-align: right;
    }
    
    .phone {
        display: none;
    }
    
    .social-links {
        display: none;
    }
    
    .btn-primary {
        display: none;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--white);
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 4px solid transparent;
    }

    .nav-list li a.active {
        border-left-color: var(--primary-color);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .section-title {
        font-size: 24px;
    }

    .services {
        padding: 30px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 20px 15px;
    }

    .service-list.columns {
        columns: 1;
    }

    .hero {
        padding: 40px 0;
        text-align: center;
        background: var(--bg-dark) !important;
        color: white;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 25px;
        color: white;
    }
    
    .hero-title .highlight {
        color: var(--primary-color);
    }
    
    .hero-features {
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .feature-badge {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-weight: 500;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        padding: 14px 16px;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        background: transparent;
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        transition: all 0.2s ease;
        text-decoration: none;
    }
    
    .hero-buttons .btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-buttons .btn {
        width: 100%;
    }

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

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

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

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .container {
        padding: 0 15px;
    }

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

    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 25px 20px;
        margin: 20px;
    }

    .price-category {
        margin-bottom: 30px;
    }

    .price-category h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sticky-call-btn {
        display: flex;
        font-size: 14px;
        padding: 0 20px;
        min-width: 200px;
    }
    
    .header-top {
        padding: 10px 0;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .logo {
        order: 1;
        flex: 0 0 100%;
        text-align: left;
        margin-bottom: 8px;
    }
    
    .logo strong {
        font-size: 16px;
        line-height: 1;
    }
    
    .logo .highlight {
        color: var(--primary-color);
    }
    
    .header-contacts {
        order: 2;
        flex: 1;
        align-items: flex-end;
        flex-direction: column;
        gap: 6px;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
    }
    
    .contact-info strong {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.2;
    }
    
    .phone {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .social-links .social-link {
        width: 28px;
        height: 28px;
    }
    
    .btn-primary {
        order: 3;
        width: 100%;
        margin-top: 8px;
        padding: 10px;
        font-size: 13px;
    }
    
    .hero {
        padding: 20px 0 30px;
    }
    
    .hero-title {
        font-size: 22px;
        margin-bottom: 15px;
        padding: 0 10px;
        line-height: 1.2;
    }
    
    .hero-features {
        padding: 0 5px;
    }
    
    .feature-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin: 6px auto;
        max-width: 260px;
    }
    
    .hero-buttons {
        max-width: 280px;
        gap: 10px;
        padding: 0 10px;
    }
    
    .hero-buttons .btn {
        padding: 12px 8px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .hero-features {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }

    .feature-badge {
        font-size: 12px;
        padding: 8px 15px;
    }

    .services,
    .advantages,
    .stats,
    .about-preview,
    .articles-preview {
        padding: 30px 0;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .service-card {
        padding: 20px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .stat-number {
        font-size: 48px;
    }

    .stat-label {
        font-size: 14px;
    }

    .advantage-number {
        font-size: 36px;
    }

    .advantage-item h3 {
        font-size: 18px;
    }

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

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Предотвращает zoom на iOS */
    }

    .page-header h1 {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .service-intro h2 {
        font-size: 24px;
    }

    .service-intro p {
        font-size: 16px;
    }

    .article-content h1 {
        font-size: 28px;
    }

    .article-content h2 {
        font-size: 22px;
    }

    .article-content {
        font-size: 16px;
    }

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

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

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .service-card:hover {
        transform: none;
    }

    .article-card:hover {
        transform: none;
    }

    a, button {
        -webkit-tap-highlight-color: rgba(255, 107, 53, 0.3);
    }
}

/* Prevent text size adjustment on iOS */
@media screen and (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Improve touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for mobile */
    .header-top {
        gap: 15px;
    }
    
    .btn {
        min-height: 48px;
        padding: 14px 24px;
    }
}

/* Service Pages */
.page-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a2a2a 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-dark);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs span:last-child {
    color: var(--white);
}

.service-page {
    padding: 60px 0;
}

.service-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.service-intro h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.service-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
}

.price-section {
    margin-bottom: 60px;
}

.price-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-color);
}

.price-category {
    margin-bottom: 40px;
}

.price-category h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    display: table;
}

.price-table tr {
    border-bottom: 1px solid var(--border-color);
}

.price-table tr:last-child {
    border-bottom: none;
}

.price-table tr:hover {
    background: var(--bg-light);
}

.price-table td {
    padding: 15px 20px;
    font-size: 16px;
}

.price-table td:first-child {
    color: var(--text-color);
    width: 70%;
}

.price-table td:last-child {
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
    width: 30%;
    white-space: nowrap;
}

/* Other Services Section */
.other-services {
    background: var(--bg-light);
    padding: 60px 0;
}

.other-services h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.3s;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 16px;
    margin: 0;
}

/* Mobile-friendly price table */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 12px 0;
        font-size: 13px;
    }
    
    .breadcrumbs .container {
        gap: 6px;
    }
    
    .other-services {
        padding: 40px 0;
    }
    
    .other-services h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .price-table {
        display: block;
    }
    
    .price-table thead {
        display: none;
    }
    
    .price-table tbody,
    .price-table tr,
    .price-table td {
        display: block;
        width: 100%;
    }
    
    .price-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    
    .price-table td {
        padding: 12px 15px;
        text-align: left !important;
        border: none;
    }
    
    .price-table td:first-child {
        font-weight: 600;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .price-table td:last-child {
        padding-top: 8px;
        font-size: 18px;
        white-space: nowrap;
    }
    
    .price-table td:last-child::before {
        content: "Цена: ";
        font-weight: normal;
        color: var(--text-light);
    }
}

.service-cta {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
}

.service-cta h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-cta p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

