/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #D4756E;
    --color-secondary: #2C3E50;
    --color-accent: #F5E6D3;
    --color-light: #FAF8F5;
    --color-dark: #1A252F;
    --color-text: #3D3D3D;
    --color-white: #FFFFFF;
    
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== НАВИГАЦИЯ ===== */
.navigation {
    background: var(--color-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.phone-btn {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}

.phone-btn:hover {
    background: #C26559;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ===== HERO BENTO ===== */
.hero-bento {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-light) 100%);
}

.bento-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 200px);
    gap: 1.5rem;
}

.bento-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Размеры карточек */
.large-card {
    grid-column: span 2;
    grid-row: span 2;
}

.medium-card {
    grid-column: span 2;
    grid-row: span 1;
}

.small-card {
    grid-column: span 1;
    grid-row: span 1;
}

/* Главная карточка */
.main-offer {
    background: linear-gradient(135deg, var(--color-primary) 0%, #C26559 100%);
    color: var(--color-white);
    justify-content: space-between;
}

.main-offer h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    align-self: flex-start;
}

.cta-button:hover {
    background: var(--color-accent);
    transform: scale(1.05);
}

/* Карточка с преимуществом */
.feature-card {
    background: var(--color-secondary);
    color: var(--color-white);
    text-align: center;
}

.feature-icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.8rem;
    color: var(--color-white);
}

/* Карточка со временем */
.time-card {
    background: linear-gradient(135deg, var(--color-accent) 0%, #E8D5B8 100%);
    text-align: center;
}

.time-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.time-card p {
    font-size: 1.1rem;
    line-height: 1.4;
}

.time-card strong {
    display: block;
    font-weight: 700;
}

/* Карточка с опытом */
.experience-card {
    background: var(--color-white);
    text-align: center;
    border: 3px solid var(--color-primary);
}

.exp-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.experience-card p {
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Карточка с фото работ */
.photo-works-card {
    background: var(--color-white);
    padding: 0;
    overflow: hidden;
    grid-row: span 1;
}

.works-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Карточка контактов */
.contact-card {
    background: var(--color-secondary);
    color: var(--color-white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Обёртка для телефона и картинки */
.contact-phone-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

/* Иконка телефона */
.phone-icon-inline {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    animation: phone-ring 1.5s ease-in-out infinite;
}

@keyframes phone-ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

/* ВИДИМЫЙ номер телефона */
.contact-phone-visible {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #c6685d !important;
    text-decoration: none !important;
    display: inline-block !important;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.contact-phone-visible:hover {
    color: var(--color-primary) !important;
    transform: scale(1.05);
}

/* Пульсирующая подсветка */
.highlight-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(212, 117, 110, 0.7);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 117, 110, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(212, 117, 110, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 117, 110, 0);
    }
}

.contact-label {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.contact-city {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== ОБЩИЕ СТИЛИ СЕКЦИЙ ===== */
.section-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-heading {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-secondary);
}

/* ===== УСЛУГИ ===== */
.services-grid {
    background: var(--color-white);
}

.services-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--color-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.service-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.service-card p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* Разные размеры карточек услуг */
.card-1 {
    grid-column: span 2;
}

.card-2 {
    grid-column: span 1;
}

.card-3 {
    grid-column: span 1;
}

.card-4 {
    grid-column: span 2;
}

.card-5 {
    grid-column: span 1;
}

.card-6 {
    grid-column: span 2;
}

/* ===== ПРАЙС ===== */
.pricing-section {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-light) 100%);
}

.pricing-note {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.price-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.price-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.price-header h3 {
    font-size: 1.4rem;
    color: var(--color-secondary);
    flex: 1;
}

.price-tag {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

.price-description {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.5;
}

/* ===== ОТЗЫВЫ ===== */
.reviews-block {
    background: var(--color-white);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.review-card {
    background: var(--color-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.reviewer-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--color-secondary);
}

.review-stars {
    color: #FFA500;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* ===== ГАРАНТИИ ===== */
.warranty-section {
    background: var(--color-secondary);
    color: var(--color-white);
}

.warranty-section .section-heading {
    color: var(--color-white);
}

.warranty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.warranty-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.warranty-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.warranty-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.warranty-item h3 {
    font-size: 1.6rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.warranty-item p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== КОНТАКТЫ ===== */
.contact-info {
    background: var(--color-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.main-contact h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-secondary);
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-text);
}

.contact-icon {
    font-size: 1.5rem;
    width: 30px;
}

.contact-line a {
    color: var(--color-primary);
    font-weight: 700;
}

.contact-line a:hover {
    text-decoration: underline;
}

.cta-contact {
    background: linear-gradient(135deg, var(--color-primary) 0%, #C26559 100%);
    color: var(--color-white);
}

.cta-contact h3 {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-contact p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.cta-contact .cta-button {
    width: 100%;
    display: block;
}

/* ===== ФУТЕР ===== */
.site-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
}

.footer-brand p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-contact h4 {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer-contact a {
    color: var(--color-primary);
    font-weight: 700;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }
    
    .large-card {
        grid-column: span 3;
        grid-row: span 1;
    }
    
    .medium-card {
        grid-column: span 2;
    }
    
    .services-bento {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-1, .card-2, .card-3, .card-4, .card-5, .card-6 {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-accent);
    }
    
    .phone-btn {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .pricing-grid,
    .reviews-container,
    .warranty-grid,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .main-offer h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-wrapper {
        padding: 3rem 1.5rem;
    }
    
    .section-heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }
    
    .large-card,
    .medium-card,
    .small-card {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .main-offer {
        padding: 2.5rem 1.5rem;
    }
    
    .main-offer h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .services-bento {
        grid-template-columns: 1fr;
    }
    
    .bento-card {
        padding: 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    /* Адаптация телефона и картинки */
    .contact-phone-wrapper {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .phone-icon-inline {
        width: 40px;
        height: 40px;
    }
    
    .contact-phone-visible {
        font-size: 1.4rem !important;
    }
}

@media (max-width: 480px) {
    .main-offer h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .service-card,
    .price-item,
    .review-card,
    .warranty-item,
    .contact-card {
        padding: 1.5rem;
    }
    
    .price-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price-tag {
        align-self: flex-start;
    }
    
    /* Уменьшение размеров на мобильных */
    .phone-icon-inline {
        width: 35px;
        height: 35px;
    }
    
    .contact-phone-visible {
        font-size: 1.1rem !important;
    }
    
    .contact-phone-wrapper {
        gap: 0.5rem;
    }
}
