@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=PT+Sans:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PT Sans', Arial, sans-serif;
}

:root {
    --primary: #2b2f33;
    --secondary: #5c6b73;
    --accent: #c1592e;
    --accent-dark: #a84a24;
    --light: #f4f5f6;
    --dark: #1f2225;
    --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== ТЁМНЫЙ ХЕДЕР ===== */
header {
    background: var(--primary) !important;
    border-bottom: 3px solid var(--accent);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.logo-slogan {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 769px) {
    .logo-slogan {
        display: block;
        margin-top: 2px;
    }
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    padding: 7px 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    clip-path: polygon(0 0, 100% 0, 100% 65%, 90% 100%, 0 100%);
    box-shadow: 0 4px 10px rgba(193, 89, 46, 0.3);
}

.call-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(193, 89, 46, 0.5);
}

.call-btn i { font-size: 14px; color: #fff; }

.header-nav {
    margin-left: auto;
}

.header-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--accent);
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    order: -1;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-menu.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-menu.open span:nth-child(2) {
    opacity: 0;
}
.burger-menu.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-open .menu-overlay {
    display: block;
    opacity: 1;
}

.menu-open {
    overflow: hidden;
}

.menu-info {
    display: none;
}

@media (max-width: 768px) {
    .header-content {
        justify-content: flex-start;
    }

    .burger-menu {
        display: flex;
        margin-right: auto;
    }

    .logo {
        text-align: center;
        flex-grow: 1;
        margin: 0 auto;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        border-top: 2px solid var(--accent);
        padding: 15px 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        flex-direction: column;
        z-index: 999;
    }

    #mainNav.active,
    body .header-nav.active,
    .header-nav.active {
        display: block !important;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .header-nav a {
        font-size: 15px;
        padding: 8px 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: #fff;
    }
    .header-nav a:hover {
        color: var(--accent);
    }

    .header-nav.active .menu-info {
        display: block;
        padding: 15px 0;
        margin-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
        font-size: 14px;
        color: rgba(255,255,255,0.7);
        line-height: 1.5;
    }
    .menu-info p {
        margin-bottom: 10px;
        color: rgba(255,255,255,0.7);
    }
    .menu-info p:last-child {
        margin-bottom: 0;
    }

    .contact-info {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        order: 1;
        margin-left: 0;
    }

    /* Скрываем изображение в герое на мобильных */
    .hero-image {
        display: none;
    }
}

/* Чистый перенос навигации на вторую строку в узком десктопном/ноутбучном
   диапазоне, где логотип + меню + телефон не помещаются в одну строку.
   Раньше здесь был хаотичный перенос (кнопка звонка "прыгала" вниз
   и наезжала на оранжевую линию шапки). */
@media (min-width: 769px) and (max-width: 1199px) {
    .header-content {
        row-gap: 10px;
    }
    .logo { order: 1; }
    .contact-info { order: 2; margin-left: auto; }
    .header-nav {
        order: 3;
        flex-basis: 100%;
        margin-left: 0;
    }
    .header-nav ul {
        justify-content: center;
    }
}

.social-links {
    display: flex;
    gap: 6px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--accent);
}

.social-links img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: none;
}

/* ===== Остальные стили ===== */
.hero {
    background: var(--primary);
    color: white;
    padding: 0;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
    min-height: 480px;
}

.hero-content {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    max-width: 520px;
    margin-bottom: 26px;
    color: #d7d9db;
}

.hero-advantages {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 32px;
}

.hero-adv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.hero-adv-item::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.hero-image {
    position: relative;
    height: 100%;
    min-height: 320px;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05);
}

.btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 15px;
    padding: 14px 32px;
    background: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: none;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 93% 100%, 0 100%);
}

.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin: 60px 0 35px;
}

.section-title h2 {
    font-size: 26px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    border: 1px solid #eee;
    border-top: 3px solid var(--accent);
}

.service-card:hover { transform: translateY(-5px); }

.service-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    filter: saturate(0.92) contrast(1.05);
}

.service-card:hover .service-img img { transform: scale(1.05); }

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: #fff;
    padding: 5px 15px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 19px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.service-features li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.4;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 9px;
    height: 2px;
    background: var(--accent);
}

.price {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
    font-size: 21px;
}

.price-note-inline {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.materials-pricing {
    background: white;
    border-radius: 3px;
    padding: 30px 25px;
    margin: 20px 0 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.materials-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.materials-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.materials-list li:last-child {
    border-bottom: none;
}

.material-name {
    color: var(--dark);
    padding-right: 15px;
}

.material-price {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
}

.material-note {
    font-size: 13px;
    color: #888;
    margin-top: 20px;
    text-align: center;
}

.prices-turnkey {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.prices-turnkey .price-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 3px;
    border-left: 3px solid var(--accent);
}

.price-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 17px;
}

.advantages {
    background: var(--primary);
    padding: 60px 0;
    color: white;
    margin-bottom: 50px;
}

.advantages .section-title h2 { color: white; }

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    text-align: center;
}

.advantage-item {
    padding: 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    transition: transform 0.3s;
}

.advantage-item:hover { transform: translateY(-5px); }

.advantage-icon {
    width: 56px;
    height: 56px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.advantage-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.advantage-item h3 { margin-bottom: 8px; font-size: 17px; }
.advantage-item p { font-size: 14px; opacity: 0.85; text-transform: none; letter-spacing: normal; font-family: 'PT Sans', Arial, sans-serif; }

.gallery-block h3 {
    color: var(--primary);
    font-size: 19px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.gallery-item {
    height: 200px;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    filter: saturate(0.92) contrast(1.05);
}

.gallery-item:hover img { transform: scale(1.1); }

.faq-section {
    background: #f9f9f9;
    padding: 60px 0;
    margin-bottom: 60px;
}

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: white;
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
    border-left: 3px solid transparent;
    transition: border-color 0.3s;
}

.faq-item.active { border-left-color: var(--accent); }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    font-family: 'PT Sans', Arial, sans-serif;
    text-transform: none;
    letter-spacing: normal;
}

.faq-question:hover { background: #f0f0f0; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    transition: max-height 0.4s ease;
    color: #555;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 18px 22px;
}

.contact {
    background: var(--primary);
    color: white;
    padding: 50px 0;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 16px;
}

/* На десктопе три пункта контактов растягиваются в одну строку —
   раньше на широких экранах узкая колонка 600px оставляла
   слишком много пустого места по бокам. */
@media (min-width: 900px) {
    .contact-container {
        max-width: 900px;
    }
    .contact-details {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 45px;
        flex-wrap: wrap;
    }
    .contact-item {
        margin-bottom: 0;
    }
}

.contact-item i {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-item a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

footer {
    background: var(--dark);
    color: white;
    padding: 30px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.footer-column h4 {
    font-size: 15px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 8px; }
.footer-column a { color: #ddd; text-decoration: none; }
.footer-column a:hover { color: var(--accent); }

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #aaa;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.scroll-top:hover { background: var(--accent-dark); transform: translateY(-3px); }

.mobile-call-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.mobile-call-btn:hover { background: var(--secondary); }

@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 32px; }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .hero-content { padding: 40px 0 30px; text-align: center; }
    .hero-eyebrow, .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-advantages { align-items: center; }
    .hero-advantages li { justify-content: center; }
    .hero-image {
        clip-path: none;
        min-height: 220px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 26px; }
    .hero-advantages { gap: 10px; }

    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }

    .mobile-call-btn {
        display: flex;
    }
}

@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 180px; }
}

/* ===== АДАПТАЦИЯ ПОД НОУТБУКИ (1024–1366px) ===== */
@media (min-width: 1024px) and (max-width: 1366px) {
    .container {
        max-width: 1300px;
        padding: 0 20px;
    }

    header {
        padding: 10px 0;
    }
    .logo-text {
        font-size: 24px;
    }
    .call-btn {
        font-size: 15px;
        padding: 8px 20px;
    }
    .header-nav a {
        font-size: 14px;
    }

    .hero-inner {
        min-height: 520px;
        grid-template-columns: 1.2fr 0.9fr;
    }
    .hero-content {
        padding: 50px 30px 50px 0;
    }
    .hero h1 {
        font-size: 38px;
    }
    .hero-subtitle {
        font-size: 18px;
        max-width: 580px;
    }
    .hero-adv-item {
        font-size: 15px;
    }
    .hero-image {
        min-height: 380px;
    }

    .section-title {
        margin: 50px 0 30px;
    }
    .section-title h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    .service-card .service-content h3 {
        font-size: 20px;
    }
    .price {
        font-size: 22px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    .gallery-item {
        height: 200px;
    }

    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .prices-turnkey {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .faq-question {
        font-size: 16px;
        padding: 18px 25px;
    }
    .faq-answer {
        font-size: 15px;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* ===== ДЛЯ ШИРОКИХ ЭКРАНОВ (> 1366px) ===== */
@media (min-width: 1367px) {
    .container {
        max-width: 1400px;
    }
    .hero-inner {
        min-height: 600px;
    }
    .hero h1 {
        font-size: 44px;
    }
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}