/*
Theme Name: Gamma Remont Clone
Theme URI: https://gamma-remont.com
Author: Gamma Remont Team
Description: Профессиональная тема для компании по ремонту квартир
Version: 1.0.0
License: GPL v2 or later
Text Domain: gamma-remont
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --primary-color: #ff6600;
    --secondary-color: #333333;
    --accent-color: #ffa500;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

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

.top-bar {
    background: var(--light-bg);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-contacts {
    display: flex;
    gap: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.phone-top {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

.top-social {
    display: flex;
    gap: 15px;
}

.main-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

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

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

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 5px;
    display: block;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* СКРЫТЬ элементы мобильного меню на десктопе */
.mobile-menu-header,
.mobile-menu-footer {
    display: none;
}

.cta-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,102,0,0.3);
}

.hero-section {
    background: linear-gradient(135deg, rgba(255,102,0,0.95) 0%, rgba(255,165,0,0.95) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero-section h1 {
    color: var(--white);
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(26px, 4vw, 36px);
    margin-bottom: 40px;
    color: var(--secondary-color);
    padding: 0 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

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

.advantage-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}

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

.advantage-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.advantage-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.advantage-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

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

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.service-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ff6600 0%, #ffa500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

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

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.service-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

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

.service-card ul li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 14px;
}

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

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.price-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,102,0,0.2);
}

.price-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.price-amount {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 15px 0;
}

.price-amount span {
    font-size: 18px;
    font-weight: 400;
    color: #666;
}

.price-card ul {
    list-style: none;
    margin: 25px 0;
    text-align: left;
}

.price-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: #555;
    font-size: 14px;
}

.testimonials-slider {
    max-width: 900px;
    margin: 40px auto;
}

.testimonial-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6600 0%, #ffa500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.testimonial-info h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-size: 16px;
}

.testimonial-rating {
    color: #ffa500;
    font-size: 14px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.contact-section {
    background: var(--light-bg);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,102,0,0.3);
}

footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 25px;
}

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

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

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.8;
    font-size: 14px;
}

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

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 6px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-item {
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

/* МОБИЛЬНОЕ МЕНЮ */
@media (max-width: 992px) {
    .main-header {
        padding: 10px 0;
    }
    
    .logo img {
        height: 45px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 1001;
    }
    
    .header-content > .cta-button {
        display: none;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    
    nav.active {
        left: 0;
    }
    
    /* ПОКАЗАТЬ логотип в меню */
    .mobile-menu-header {
        display: block;
        padding: 20px;
        background: var(--light-bg);
        border-bottom: 2px solid var(--border-color);
        text-align: center;
    }
    
    .mobile-menu-header img {
    height: 40px;
    max-width: 200px;
    width: auto;
}
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    nav ul li {
        border-bottom: 1px solid var(--border-color);
    }
    
    nav ul li a {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    nav ul li a:hover {
        background: var(--light-bg);
    }
    
    /* ПОКАЗАТЬ контакты в меню */
    .mobile-menu-footer {
        display: block;
        padding: 20px;
        background: var(--light-bg);
        border-top: 2px solid var(--border-color);
        margin-top: auto;
    }
    
    .mobile-socials {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .social-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        background: white;
        border: 2px solid #ddd;
    }
    
    .mobile-phone {
        display: block;
        text-align: center;
        font-size: 20px;
        font-weight: 700;
        color: var(--secondary-color);
        margin: 15px 0;
        padding: 12px;
        background: white;
        border-radius: 8px;
        border: 2px solid #ddd;
    }
    
    .mobile-email {
        display: block;
        text-align: center;
        font-size: 14px;
        color: #666;
        margin: 10px 0;
    }
    
    .mobile-hours {
        text-align: center;
        font-size: 13px;
        color: #666;
        margin: 15px 0;
        padding: 10px;
    }
    
    .mobile-cta {
        display: block;
        background: var(--primary-color);
        color: var(--white);
        text-align: center;
        padding: 15px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 16px;
        margin-top: 15px;
    }
    
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    
    .top-contacts {
        flex-direction: column;
        gap: 8px;
    }
    
    .logo img {
        height: 40px !important;
    }
    
    .advantages-grid,
    .services-grid,
    .pricing-table,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px !important;
    }
    
    nav {
        width: 280px;
    }
}
/* ============================
   Адаптивное мобильное меню
   ============================ */
@media (max-width: 992px) {
  /* Показываем кнопку-тоггл */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Прячем основное меню и фиксируем его сбоку */
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;           /* ширина панели */
    height: 100vh;
    background: var(--white);
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  nav.active {
    left: 0;
  }

  /* Полупрозрачный фон при открытии */
  .menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 900;
  }
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Скрываем CTA из шапки на мобильных */
  .header-content > .cta-button {
    display: none;
  }

  /* = Шапка мобильного меню = */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;               /* фиксированная высота */
    padding: 0 15px;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .mobile-menu-header img {
    max-height: 40px;
    width: auto;
  }

  /* = Список меню = */
  nav ul {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;           /* прокрутка списка */
    -webkit-overflow-scrolling: touch;
  }
  nav ul li {
    border-bottom: 1px solid var(--border-color);
  }
  nav ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    transition: background 0.3s;
  }
  nav ul li a:hover {
    background: var(--light-bg);
  }

  /* = Футер мобильного меню = */
  .mobile-menu-footer {
    padding: 15px;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
  }
  .mobile-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
  }
  .social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }
  .mobile-phone {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
  }
  .mobile-email,
  .mobile-hours {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
  }
  .mobile-cta {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
  }
}

/* Дополнительная тонкая настройка для самых узких экранов */
@media (max-width: 360px) {
  /* Сужаем саму панель меню */
  nav {
    width: 260px;
  }

  /* Уменьшаем шрифт пунктов меню */
  nav ul li a {
    font-size: 15px;
    padding: 10px 15px;
  }

  /* Уменьшаем кнопки соцсетей */
  .social-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* Уменьшаем размеры логотипа */
  .mobile-menu-header img {
    max-height: 36px;
  }
}
@media (max-width: 992px) {
  /* Делаем футер меню липким снизу */
  .mobile-menu-footer {
    position: sticky !important;
    bottom: 0 !important;
    background: var(--light-bg) !important;
    z-index: 20 !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }

  /* Дополнительный внутренний отступ для nav */
  nav {
    padding-bottom: 80px !important;
  }

  /* Кнопка в футере сверху от нижнего края */
  .mobile-cta {
    margin-bottom: 0 !important;
  }
}
