:root {
    --bg: #f5f5f5;
    --text-main: #2b2b2b;
    --text-sec: #676665;
    --accent: #b8442c;
    --struct: #2d6b5f;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text-main); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === HEADER === */
.header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px; background: var(--bg); position: sticky; top: 0; z-index: 100;
}
.menu-trigger, .cart-trigger { cursor: pointer; font-weight: 500; color: var(--text-sec); transition: 0.2s; }
.menu-trigger:hover, .cart-trigger:hover { color: var(--text-main); }
.menu-trigger .back-arrow { margin-right: 8px; font-size: 18px; }
#header-total { color: var(--accent); font-weight: 700; }

/* === MENU OVERLAY === */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 200; display: none;
    justify-content: flex-start; align-items: stretch;
}
.menu-overlay.open { display: flex; }
.side-menu {
    width: 280px; background: var(--white); height: 100%; padding: 24px;
    display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
}
.close-menu { background: none; border: none; font-size: 28px; cursor: pointer; align-self: flex-end; color: var(--text-sec); }
.menu-section h3 { font-size: 14px; text-transform: uppercase; color: var(--text-sec); margin-bottom: 12px; letter-spacing: 1px; }
.menu-section ul { display: flex; flex-direction: column; gap: 8px; }
.menu-section a { font-weight: 500; padding: 8px 0; border-bottom: 1px solid #eee; transition: 0.2s; }
.menu-section a:hover { color: var(--accent); padding-left: 8px; }

/* === HERO === */
.hero { text-align: center; padding: 60px 20px 40px; max-width: 800px; margin: 0 auto; }

.main-title {
    font-size: 84px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -2px;
    line-height: 1;
}

.title-kart { color: #2b2b2b; }
.title-place { color: #b8442c; }

.subtitle { color: var(--text-sec); font-size: 16px; line-height: 1.6; }
.subtitle strong { color: var(--text-main); }

/* === SERVICES GRID === */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px; max-width: 1200px; margin: 0 auto; padding: 20px;
}
.service-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    height: 100%; cursor: pointer; transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-5px); }

.card-visual {
    aspect-ratio: 3/4; 
    background: #757575; 
    position: relative;
    overflow: hidden;
}
.card-visual img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card-price { font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }

.card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.btn-add {
    width: 100%; padding: 12px; background: var(--accent); color: #fff; border: none;
    border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.btn-add:hover { opacity: 0.9; }
.btn-add.added { background: var(--struct); }

.btn-details {
    width: 100%; padding: 12px; background: transparent; color: var(--text-sec); 
    border: 1px solid var(--text-sec); border-radius: 8px; font-weight: 500; 
    cursor: pointer; transition: 0.2s; text-align: center;
}
.btn-details:hover { border-color: var(--text-main); color: var(--text-main); }

/* === DIVIDER === */
.services-divider {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}
.services-divider hr {
    border: none;
    height: 2px;
    background: var(--struct);
}

/* === PORTFOLIO BANNER === */
.portfolio-banner-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.portfolio-subtitle {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

.portfolio-banner-link {
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}
.portfolio-banner-link:hover { transform: scale(1.02); }

.portfolio-banner {
    width: 100%;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.portfolio-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* === FAQ SECTION === */
.faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-sec);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 24px;
}

.faq-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 3px solid var(--struct);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
    line-height: 1.4;
}

.faq-item p {
    color: var(--text-sec);
    line-height: 1.7;
    font-size: 15px;
}

.faq-item p br { margin-bottom: 8px; }

/* === CONTACTS === */
.contacts-section { padding: 60px 20px; max-width: 1000px; margin: 0 auto; }
.contacts-section h2 { text-align: center; margin-bottom: 32px; }
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.contact-card { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.contact-card h3 { margin-bottom: 8px; }
.btn-contact { display: inline-block; margin-top: 12px; padding: 10px 20px; background: var(--accent); color: #fff; border-radius: 6px; font-weight: 500; }

/* === PORTFOLIO PAGE === */
.portfolio-nav {
    position: sticky; top: 0; background: var(--white); z-index: 90;
    border-bottom: 1px solid #eee; overflow-x: auto; white-space: nowrap;
}
.portfolio-nav ul { display: flex; padding: 0 20px; gap: 24px; }
.portfolio-nav a { display: block; padding: 16px 0; font-weight: 500; color: var(--text-sec); border-bottom: 2px solid transparent; transition: 0.2s; }
.portfolio-nav a.active { color: var(--accent); border-color: var(--accent); }
.portfolio-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.portfolio-section { margin-bottom: 60px; scroll-margin-top: 80px; }
.portfolio-section h2 { margin-bottom: 24px; font-size: 28px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.portfolio-item { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3/4; cursor: pointer; }
.portfolio-item img, .portfolio-item video { width: 100%; height: 100%; object-fit: cover; }

/* === MODAL === */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5);
    display: none; justify-content: center; align-items: center; z-index: 300;
}
.modal.open { display: flex; }
.modal-content { background: var(--white); width: 90%; max-width: 450px; border-radius: 16px; padding: 24px; max-height: 80vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.close-modal { font-size: 24px; cursor: pointer; color: var(--text-sec); }
.cart-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.total-row { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; }
#checkout-btn { width: 100%; margin-top: 16px; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
#checkout-btn:disabled { background: #ccc; cursor: not-allowed; }

/* === LIGHTBOX === */
.lightbox-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.9); z-index: 400; display: none;
    justify-content: center; align-items: center;
}
.lightbox-modal.open { display: flex; }
.lightbox-content { max-width: 90%; max-height: 90%; }
.lightbox-content img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
    position: absolute; top: 20px; right: 40px; color: #fff; 
    font-size: 40px; cursor: pointer;
}

/* === SERVICE DETAIL PAGE === */
.service-detail-container { max-width: 1100px; margin: 0 auto; padding: 40px 20px 80px; }
.detail-back-link { display: inline-block; margin-bottom: 30px; color: var(--text-sec); }

.detail-top-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.detail-image-small {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ddd;
    box-shadow: var(--shadow);
}
.detail-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-right { display: flex; flex-direction: column; gap: 20px; }

.detail-title { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.detail-desc { color: var(--text-sec); font-size: 16px; line-height: 1.6; }

.detail-info-block {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}
.detail-price-in-block {
    font-size: 28px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.info-item { margin-bottom: 15px; }
.info-label { font-size: 12px; text-transform: uppercase; color: var(--text-sec); margin-bottom: 4px; letter-spacing: 0.5px; }
.info-value { font-weight: 600; font-size: 16px; }

.detail-section { margin-bottom: 40px; }
.detail-section h3 { font-size: 20px; margin-bottom: 20px; color: var(--text-main); }
.detail-section ul { list-style: none; padding: 0; }
.detail-section li { 
    padding: 6px 0; 
    color: var(--text-sec);
    display: flex; 
    align-items: center;
    font-size: 15px;
}
.detail-section li::before {
    content: "•"; 
    color: var(--accent); 
    margin-right: 12px; 
    font-weight: bold;
    font-size: 18px;
}

.service-examples-title { font-size: 20px; margin: 40px 0 20px; font-weight: 600; }
.service-examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 50px;
}
.service-example-item {
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
    cursor: pointer;
    transition: transform 0.2s;
}
.service-example-item:hover { transform: scale(1.03); }
.service-example-item img { width: 100%; height: 100%; object-fit: cover; }

.btn-order-service {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}
.btn-order-service.added { background: var(--struct); }

.all-services-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--struct);
    font-weight: 500;
    border-bottom: 1px dashed var(--struct);
    padding-bottom: 2px;
    transition: 0.2s;
}
.all-services-link:hover { color: var(--accent); border-color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .detail-top-grid { grid-template-columns: 1fr; }
    .detail-image-small { max-width: 300px; margin: 0 auto; }
    .service-examples-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-title { font-size: 48px; }
    .hero h1 { font-size: 32px; }
    .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .service-examples-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 28px; }
    .section-intro { font-size: 16px; }
}

@media (max-width: 480px) {
    .main-title { font-size: 36px; }
    .portfolio-subtitle { font-size: 24px; }
}