:root {
    --primary-color: #0056b3;
    --secondary-color: #2d3748;
    --accent-color: #00a0e9;
    --accent-secondary: #ff9500;
    --light-color: #f8f9fa;
    --dark-color: #1a202c;
    --text-color: #2d3748;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --header-bg: #0056b3;
    --footer-bg: #2d3748;
    --highlight-bg: #f0f8ff;
    --shadow: 0 5px 15px rgba(0,86,179,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Навигация */
nav {
    background-color: var(--header-bg);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 4px;
    white-space: nowrap;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Мобильная навигация */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 999;
    backdrop-filter: blur(5px);
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: calc(100vh - 70px);
    background-color: var(--header-bg);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 20px;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 18px 25px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.mobile-nav a:hover {
    background-color: rgba(255,255,255,0.1);
    padding-left: 30px;
}

.mobile-nav .contact-phone {
    background-color: var(--accent-secondary);
    color: white;
    padding: 20px 25px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 20px;
    border-radius: 10px;
    display: block;
}

header {
    background-color: var(--header-bg);
    padding: 25px 20px;
    text-align: center;
    position: relative;
    border-bottom: 5px solid var(--accent-color);
}

.header-logo {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 1px;
    display: block;
}

.header-logo span {
    color: var(--accent-secondary);
    font-size: 36px;
}

.location {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 300;
    line-height: 1.4;
}

.contact-phone {
    font-size: 28px;
    margin: 15px 0;
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    background-color: var(--accent-secondary);
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.contact-phone:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

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

/* Герой секция */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1601362840469-51e4d8d58785?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    word-wrap: break-word;
}

.hero p {
    font-size: clamp(16px, 2.5vw, 22px);
    max-width: 900px;
    margin: 0 auto 30px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    padding: 0 10px;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-secondary);
    color: white;
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    min-width: 250px;
    width: 100%;
    max-width: 350px;
    touch-action: manipulation;
}

.btn:hover, .btn:active {
    background-color: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.btn i {
    margin-right: 10px;
    font-size: 20px;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-whatsapp:hover, .btn-whatsapp:active {
    background-color: #1da851;
}

/* Преимущества */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 0 10px;
}

.advantage-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-color);
    height: 100%;
}

.advantage-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.advantage-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
}

.advantage-card p {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.5;
}

/* Услуги */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 0 10px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.service-card p {
    margin-bottom: 15px;
    font-size: 16px;
    flex-grow: 1;
    line-height: 1.6;
}

.price {
    font-weight: bold;
    color: var(--accent-secondary);
    font-size: 20px;
    margin-top: 10px;
}

/* Галерея работ */
.portfolio {
    padding: 40px 0;
    background-color: var(--highlight-bg);
    margin-bottom: 40px;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: clamp(28px, 4vw, 36px);
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
    padding: 0 20px;
}

.portfolio h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 15px;
    padding: 0 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,86,179,0.8);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

/* О компании */
.about {
    background-color: var(--highlight-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 5px solid var(--accent-color);
}

.about h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: clamp(28px, 4vw, 36px);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.about p {
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 1.7;
    text-align: justify;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ */
.faq {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.faq h2 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: clamp(28px, 4vw, 36px);
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    touch-action: manipulation;
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    color: var(--accent-color);
    transition: transform 0.3s;
}

.faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    display: none;
    padding-top: 10px;
}

.faq-answer.show {
    display: block;
}

/* Подвал */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 5px solid var(--accent-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
    text-align: center;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-column h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-column p, .footer-column a {
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-column a {
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-contacts a {
    display: flex;
    align-items: center;
}

.footer-contacts i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 18px;
    width: 22px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 30px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 20px 20px 0;
    line-height: 1.5;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
    backdrop-filter: blur(5px);
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--card-bg);
    margin: auto;
    padding: 30px 25px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.4s;
    position: relative;
}

.modal-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.modal-phone {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-secondary);
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(255,149,0,0.1);
    border-radius: 8px;
    display: inline-block;
    word-break: break-all;
}

.modal-social {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.modal-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--secondary-color);
    font-size: 24px;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-social a:hover, .modal-social a:active {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    color: var(--accent-color);
}

.modal-text {
    font-size: 16px;
    margin-top: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    touch-action: manipulation;
}

.close-btn:hover, .close-btn:active {
    color: var(--accent-color);
    transform: rotate(90deg);
    background-color: rgba(0,0,0,0.05);
}

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

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

/* Медиа-запросы для мобильных устройств */
@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 70px 15px;
        min-height: 70vh;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .btn {
        padding: 14px 25px;
        font-size: 17px;
        min-width: 100%;
        max-width: 300px;
    }
    
    .btn-container {
        flex-direction: column;
        align-items: center;
    }
    
    .services {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .header-logo {
        font-size: 28px;
    }
    
    .header-logo span {
        font-size: 32px;
    }
    
    .contact-phone {
        font-size: 24px;
        padding: 10px 25px;
    }
    
    .location {
        font-size: 16px;
    }
    
    .hero {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .advantages {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }
    
    .advantage-card {
        padding: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .about, .faq {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .about h2, .faq h2, .portfolio h2 {
        font-size: 26px;
    }
    
    .about p {
        font-size: 16px;
        text-align: left;
    }
    
    .gallery-item {
        aspect-ratio: 3/2;
    }
    
    .gallery-caption {
        font-size: 13px;
        padding: 10px;
    }
    
    .faq-question {
        font-size: 17px;
    }
    
    .faq-answer {
        font-size: 15px;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .modal-phone {
        font-size: 24px;
        padding: 12px;
    }
    
    .modal-social a {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-column {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .header-logo {
        font-size: 24px;
    }
    
    .header-logo span {
        font-size: 28px;
    }
    
    .contact-phone {
        font-size: 22px;
        padding: 8px 20px;
    }
    
    .hero {
        padding: 50px 10px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .advantages, .services {
        gap: 12px;
    }
    
    .advantage-card, .service-card {
        padding: 15px;
    }
    
    .advantage-icon {
        font-size: 35px;
    }
    
    .advantage-card h3 {
        font-size: 18px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .price {
        font-size: 18px;
    }
    
    .gallery {
        gap: 10px;
        padding: 0 10px;
    }
    
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-phone {
        font-size: 22px;
        padding: 10px;
    }
}

/* Ховеры только для устройств с мышью */
@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover,
    .contact-phone:hover,
    .btn:hover,
    .advantage-card:hover,
    .service-card:hover,
    .gallery-item:hover,
    .footer-column a:hover,
    .social-links a:hover,
    .modal-social a:hover,
    .close-btn:hover {
        /* Стили ховера уже определены выше */
    }
}

/* Ландшафтная ориентация */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 20px;
    }
    
    .mobile-nav {
        height: calc(100vh - 70px);
        overflow-y: scroll;
    }
}