* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #c7c7c7;
    color: #1A1A1A;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Только заголовки и акцентные элементы — Playfair */
h1, h2, h3, .logo, .quote-text, .step-number, .work-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
}

h1 {
    font-size: 56px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

h2 {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 48px;
    text-align: center;
}

h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
}

.section {
    padding: 100px 0;
    border-bottom: 1px solid #F0F0F0;
}

.section:last-child {
    border-bottom: none;
}

/* Header */
#header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

/* НОВАЯ СТРУКТУРА ХЕДЕРА */
.header-top {
    background: #FFFFFF;
    transition: padding 0.3s ease;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 18px 0;
    transition: padding 0.3s ease;
}

/* Эффект сжатия при скролле */
#header.scrolled .header-flex {
    padding: 8px 0;
}

#header.scrolled .logo a {
    font-size: 18px;
}

.logo a {
    font-size: 22px;
    font-weight: 500;
    text-decoration: none;
    color: #000000;
    font-family: 'Playfair Display', serif;
    transition: font-size 0.3s ease;
}

/* Телефон с иконкой */
.phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone i {
    display: inline-flex;
    align-items: center;
}

.phone svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

.phone a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.phone a:hover {
    opacity: 0.7;
}

/* Блок иконок (поиск + кабинет) */
.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #000000;
    text-decoration: none;
}

.icon-btn:hover {
    opacity: 0.7;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.icon-title {
    display: inline-block;
}

/* Бургер */
.burger {
    font-size: 26px;
    cursor: pointer;
    display: none;
    background: none;
    border: none;
    color: #000000;
    z-index: 1000;
    position: relative;
}

/* Десктопное меню (черный фон, растянуто) */
.menu-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 110px;
    background: #000000;
    padding: 12px 0;
    width: 100%;
    transition: all 0.3s ease;
}

.menu-desktop a {
    text-decoration: none;
    color: #CCCCCC;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
    display: inline-block;
    text-align: center;
}

.menu-desktop a:hover {
    color: #FFFFFF;
}

.menu-desktop .btn-menu {
    border: 1px solid #FFFFFF;
    padding: 6px 18px !important;
    color: #FFFFFF !important;
}

.menu-desktop .btn-menu:hover {
    background: #FFFFFF;
    color: #000000 !important;
}

/* Мобильное меню (шторка) */
.menu-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    padding: 60px 20px;
    gap: 20px;
    transition: 0.3s;
    z-index: 999;
}

.menu-mobile a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    padding: 8px 0;
}

.menu-mobile a:hover {
    color: #CCCCCC;
}

/* Кнопка закрытия мобильного меню (крестик) */
.menu-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 32px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
    border-radius: 4px;
}

.menu-mobile-close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.menu-mobile-close:active {
    transform: scale(0.95);
}

.menu-mobile.active {
    right: 0;
}

/* Hero */
.hero {
    background-color: #FFFFFF;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.hero-background {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    background-image: url('pictures/backgroundKnive.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
}

/* Quote block */
.quote-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-size: 28px;
    line-height: 1.4;
    color: #2A2A2A;
    font-style: italic;
    margin-bottom: 24px;
}

.quote-author {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #777;
    font-family: 'Inter', sans-serif;
}

/* Grid for works */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 60px 40px;
    margin-top: 20px;
}

.work-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    background: #c7c7c7;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.work-card:hover {
    transform: scale(1.50);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
    z-index: 2;
    background: #FFFFFF;
}

.work-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #F5F5F5;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.work-desc {
    font-size: 14px;
    color: #5A5A5A;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.work-price {
    font-size: 15px;
    font-weight: 500;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
}

/* Two columns layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 16px;
    color: #2C2C2C;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.about-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #E5E5E5;
    background-size: cover;
    background-position: center;
}

/* Process steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 20px;
    text-align: justify;
}

.step {
    padding: 0 20px;
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: #D0D0D0;
    margin-bottom: 16px;
}

.step h4 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.step p {
    font-size: 14px;
    color: #5A5A5A;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

/* Reviews - единая высота 400px, фото целиком */
/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.review-card {
    border-left: 2px solid #E0E0E0;
    padding-left: 28px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.review-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.review-card:nth-child(1) {
    transition-delay: 0.1s;
}

.review-card:nth-child(2) {
    transition-delay: 0.3s;
}

/* Контейнер с фиксированной высотой, фото целиком, с обводкой */
.image-wrapper {
    width: 100%;
    max-width: 560px;
    height: 400px;
    margin-bottom: 20px;
    background-color: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid #1A1A1A;
}

/* Фото показывается целиком, вписываясь в контейнер */
.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* Стиль для карточек без фото */
.image-wrapper.no-image {
    background-color: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper.no-image::after {
    content: "Нет фото";
    color: #999;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

/* Затемнение через overlay */
.image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.6s ease;
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
}

/* Ховер эффекты */
.image-wrapper:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.image-wrapper:hover::after {
    background: rgba(0,0,0,0.05);
}

.review-text {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #2A2A2A;
    font-family: 'Inter', sans-serif;
}

.review-author {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    color: #1A1A1A;
}

/* Call to action */
.cta-block {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-block p {
    margin: 32px 0;
    color: #3A3A3A;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #1A1A1A;
    padding: 12px 32px;
    border-radius: 0px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #1A1A1A;
    display: inline-block;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-primary {
    background: #1A1A1A;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 0px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #ffffff;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
}

/* Специальные стили для кнопки в hero-блоке */
.hero-content .btn-primary {
    margin-top: 32px;
}

/* Footer */
.footer {
    padding: 60px 0 80px;
    text-align: center;
    border-top: 1px solid #F0F0F0;
    margin-top: 40px;
}

.footer-links {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-links a {
    text-decoration: none;
    color: #3A3A3A;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.footer small {
    color: #8A8A8A;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .section {
        padding: 60px 0;
    }
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 32px;
        margin-bottom: 32px;
    }
    .hero-content h1 {
        font-size: 44px;
    }
    .hero {
        padding: 40px 0;
    }
    .hero-image-wrapper {
        border-radius: 12px;
    }
    .two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .works-grid {
        gap: 40px;
    }
    .hero-btn {
        bottom: 40px;
    }
    
    /* Адаптив для хедера - новая структура */
    .header-flex {
        gap: 15px;
    }
    
    /* Скрываем телефон и текстовые подписи иконок на мобильных */
    .phone {
        display: none;
    }
    
    .icon-title {
        display: none;
    }
    
    .header-icons {
        gap: 15px;
    }
    
    .icon-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .burger {
        display: block;
    }
    
    .menu-desktop {
        display: none;
    }
    
    /* Адаптив для изображений отзывов */
    .image-wrapper {
        height: 300px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .image-wrapper {
        height: 250px;
    }
    
    .header-flex {
        gap: 10px;
    }
    
    .logo a {
        font-size: 18px;
    }
    
    .header-icons {
        gap: 12px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для мобильного меню (шторка) */
.menu-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    padding: 60px 24px 30px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.menu-mobile.active {
    right: 0;
}

.menu-mobile a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s;
}

.menu-mobile a:hover {
    color: #CCCCCC;
}

.menu-mobile .btn-menu {
    border: 1px solid #FFFFFF;
    text-align: center;
    margin-top: 10px;
    padding: 12px !important;
}

.menu-mobile .btn-menu:hover {
    background: #FFFFFF;
    color: #000000 !important;
}

/* Кнопка закрытия меню */
.menu-mobile-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.menu-mobile-close:hover {
    opacity: 0.7;
}

/* Оверлей (темный фон при открытом меню) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #fff;
}

.modal h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #fff;
    font-family: 'Playfair Display', serif;
    text-align: left;
}

.modal-subtitle {
    color: #888;
    margin-bottom: 32px;
    font-size: 14px;
}

.contact-info {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.contact-item:hover .contact-icon {
    background: rgba(212, 175, 55, 0.2);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: #d4af37;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-value:hover {
    color: #d4af37;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Анимации для модального окна */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив для модального окна */
@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal h3 {
        font-size: 24px;
    }
    
    .social-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .social-link {
        justify-content: center;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-value {
        font-size: 16px;
    }
}