@media screen and (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .services-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .widget-area {
        width: 100%;
    }
    
    .posts-list .post-item {
        grid-template-columns: 200px 1fr;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-item:last-child {
        grid-column: span 2;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .header-top {
        display: none;
    }
    
    .header-main {
        padding: 10px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu ul {
        position: static;
        box-shadow: none;
        padding: 0;
        display: none;
    }
    
    .nav-menu li:hover > ul {
        display: none;
    }
    
    .nav-menu li.menu-item-has-children > a::after {
        content: '+';
        float: right;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .services-section,
    .advantages-section,
    .posts-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-list .post-item {
        grid-template-columns: 1fr;
    }
    
    .posts-list .post-thumbnail {
        height: 200px;
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-item:last-child {
        grid-column: auto;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .entry-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination-nav .page-numbers a,
    .pagination-nav .page-numbers span {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
    
    .comment .children {
        margin-left: 15px;
    }
    
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        padding: 10px;
    }
}

@media screen and (max-width: 320px) {
    html {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media print {
    .site-header,
    .site-footer,
    .breadcrumb-wrapper,
    .sidebar,
    .post-navigation,
    .entry-share,
    .related-posts,
    .comments-area,
    .hero-section,
    .services-section,
    .advantages-section,
    .contact-section {
        display: none !important;
    }
    
    .content-wrapper {
        display: block;
    }
    
    .content-area {
        max-width: 100%;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
}
