@media (max-width : 1100px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .hero-container .text-block {
        padding: 20px;
    }
    .hero-container .site-section {
        padding: 20px;
    }
    .hero-container .site-section {
        display: none;
    }
    .hero-container .text-block .promo-link {
        justify-content: start;
    }
}

@media (max-width : 968px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
}

.site-types {
    grid-template-columns: 1fr;
}

.price-summary {
    position: relative;
    top: 0;
}

/* Contacts responsive */
.contacts-content {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contacts-map iframe {
    height: 300px;
}

/* Footer responsive */
.footer-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.footer-bottom {
    flex-direction: column;
    text-align: center;
}

.footer-links {
    justify-content: center;
    flex-wrap: wrap;
}

/* Portfolio responsive */
.portfolio-items {
    grid-template-columns: 1fr;
}

.portfolio-buttons {
    gap: 0.375rem;
}

.portfolio-link {
    padding: 0.625rem;
    font-size: 0.8125rem;
}

/* About responsive */
.about-stats {
    grid-template-columns: 1fr;
}

.about-features {
    grid-template-columns: 1fr;
}

/* Request responsive */
.request-content {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.request-form {
    position: relative;
    top: 0;
    width: 100%;
}
}

@media (max-width: 768px) {
    .promo-content {
        padding: 3rem 0;
    }
.container {
    padding: 0 15px;
}
.header-logo a span, .header-logo span {
    font-size: 0.875rem;
}
header .container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
   padding: 0;
}

header nav, .header-contact, .header-contact a.btn-primary {
    display: none;
}

/* Группа для правых элементов */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Логотип слева */
.header-logo {
    justify-self: start;
    grid-column: 1;
}

/* Правая группа */
.header-right-group {
    grid-column: 2;
    justify-self: end;
}

/* Показать мобильные элементы на мобильных */
.mobile-menu-toggle,
.mobile-menu-close,
.mobile-menu-footer,
.mobile-menu-contact,
.mobile-menu-btn {
    display: block;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

/* Мобильное меню */
header .header-menu {
    display: none;
}

header .header-menu.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    z-index: 999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

header .header-menu ul {
    flex-direction: column;
    padding: 2rem 2rem 2rem;
}

header .header-menu ul li {
    margin: 0;
    width: 100%;
    text-align: center;
}

header .header-menu ul li a {
    display: block;
    font-size: 1.25rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

/* Кнопка закрытия в меню */
.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.mobile-menu-close svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-menu-close:hover {
    opacity: 0.8;
}

/* Footer в мобильном меню */
.mobile-menu-footer {
    padding: 2rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.mobile-menu-contact {
    margin-bottom: 1.5rem;
}

.mobile-menu-contact p {
    margin: 0 0 0.5rem 0;
}

.mobile-menu-contact a {
    color: var(--text);
    font-size: 1rem;
    text-align: center;
    display: block;
    padding: .5rem 0;
    text-decoration: none;
    border-bottom: none;
}

.mobile-menu-contact a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    width: 280px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

/* Блокировка скролла при открытом меню */
body.menu-open {
    overflow: hidden;
}

.promo-content h1 {
    font-size: 2rem;
}

/* Адаптивные стили для переключателя темы */
.theme-toggle {
    margin-left: 0.5rem;
}

.theme-toggle-btn {
    width: 2rem;
    height: 2rem;
    padding: 0.375rem;
}

.theme-icon {
    width: 1rem;
    height: 1rem;
}

/* Адаптивные стили для кнопки "Показать еще" */
.portfolio-show-more {
    margin-top: 2rem;
}

.portfolio-show-more-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.portfolio-show-more-btn svg {
    width: 1rem;
    height: 1rem;
}

/* What included responsive */
.what-included-grid {
    grid-template-columns: repeat(2, 1fr);
}

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

#about .audience-grid {
    grid-template-columns: repeat(2, 1fr);
}
.promo-content .rating {
    display: none;
}

#types .items {
    grid-template-columns: 1fr 1fr;
}
 #calculator .title-b, #types .title-b, .title-b {
    font-size: 1.8rem;
}

.form-container {
    padding: 1rem;
}

#request .title-b {
    font-size: 1.5rem;
}
.guarantee-list li {
    font-size: 0.875rem;
}
.request-intro, .about-intro, .portfolio-description-text p, .contacts-intro, #calculator p.sub-title, .promo-content .text {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
    color: var(--light-gray);
}
.calculator-form {
    padding: 1rem;
}
#calculator h2.title-b {
    font-size: 1.5rem;
}
#calculator .form-section .title-b {
    font-size: 1.2rem;
}
#calculator .timeline-section .title-b {
    font-size: 1.2rem;
}
article p, article li {
    font-weight: 300;
    font-size: 16px;
}
#contacts {
    padding: 2rem 0;
}
#contacts .title-b {
    margin-bottom: 1rem;
}
.contacts-info {
    gap: 1rem;
}
#what-included .title-b {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}
#what-included .subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 300;
}
#about .title-b {
    font-size: 1.8rem;
}
.audience-item {
    font-weight: 300;
}
}

@media (max-width: 480px) {
    .lang-selector, .header-logo a span, .header-logo span {
        display: none;
    }
.what-included-grid {
    grid-template-columns: 1fr;
}

.advantages-list {
    grid-template-columns: 1fr;
}

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

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

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


#types .items, .request-benefits {
    grid-template-columns: 1fr;
}
.what-included-header {
    font-size: 1.2rem;
}
}

