

:root {
    --black: #000;
    --white: #fff;
    --gray-100: #f5f5f5;
    --gray-200: #eaeaea;
    --gray-300: #ddd;
    --gray-400: #ccc;
    --gray-600: #666;
    --gray-800: #333;
    --gray-900: #111;
    --whatsapp: #25D366;
    --whatsapp-hover: #128C7E;
    --transition: 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    --border-light: 1px solid var(--gray-300);
    --border-dark: 1px solid var(--gray-200);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--white);
    color: var(--gray-800);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: var(--border-light);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--black);
}

.logo::before {
    content: "";
    width: 48px;
    height: 48px;
    background: url("/img/logo/logo-removebg-preview.png") center/contain no-repeat;
    margin-right: 12px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: clamp(15px, 3vw, 40px);
    font-size: clamp(13px, 2.5vw, 16px);
    font-weight: 500;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-800);
    text-transform: uppercase;
    padding-bottom: 6px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--black);
    font-weight: 600;
}

.header-phones {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.phone-item {
    display: flex;
    flex-direction: column;
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--transition);
}

.phone-item:hover {
    background: #e0e0e0;
}

.phone-number {
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 700;
    color: var(--black);
    white-space: nowrap;
    line-height: 1.3;
}

.phone-desc {
    font-size: 10px;
    color: var(--gray-600);
    text-transform: lowercase;
    white-space: nowrap;
}

section {
    padding: 50px 0;
    border-bottom: var(--border-dark);
    scroll-margin-top: 20px;
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 600;
    margin-bottom: 35px;
    color: var(--gray-900);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--black);
}

.hero {
    padding: 30px 0 50px;
}

.hero h1 {
    font-size: clamp(32px, 7vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    max-width: 900px;
    margin-bottom: 30px;
    color: var(--black);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 35px 0 20px;
}

.stat-item {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 500;
    border-left: 4px solid #aaa;
    background: var(--gray-100);
    padding: 15px 15px 15px 20px;
    border-radius: 0 8px 8px 0;
    transition: all var(--transition);
}

.stat-item:hover {
    border-left-color: var(--black);
    background: #e0e0e0;
}

.whatsapp-btn,
.contact-btn,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.whatsapp-btn {
    background: var(--whatsapp);
    color: var(--white);
    padding: clamp(12px, 3vw, 16px) clamp(25px, 5vw, 38px);
    font-size: clamp(15px, 3.5vw, 18px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    margin-right: 15px;
    margin-bottom: 10px;
}

.whatsapp-btn:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.4);
}

.btn-outline {
    color: var(--black);
    border: 3px solid var(--black);
    padding: clamp(14px, 3vw, 18px) clamp(32px, 6vw, 48px);
    font-size: clamp(16px, 3.5vw, 20px);
    background: transparent;
    margin-top: 20px;
    margin-right: 15px;
    width: fit-content;
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin: 35px 0 25px;
    justify-content: center;
}

.chip {
    font-size: clamp(15px, 3vw, 18px);
    color: var(--gray-800);
    border-bottom: 2px dashed #aaa;
    padding-bottom: 6px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-weight: 500;
}

.chip:hover,
.chip.active {
    border-bottom-color: var(--black);
    color: var(--black);
}

.chip.active {
    border-bottom-style: solid;
    font-weight: 700;
}

.slider-container {
    margin: 40px auto;
    max-width: min(700px, 95vw);
    position: relative;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border: var(--border-light);
    background: #fafafa;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.slider {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--gray-100);
    cursor: pointer;
}

.slide img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
}

.slide:hover img {
    opacity: 0.9;
    transform: scale(1.02);
}

.slide-title {
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 600;
    color: var(--gray-800);
    text-align: center;
    margin-top: 18px;
    pointer-events: none;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.slider-dot {
    width: clamp(10px, 2vw, 14px);
    height: clamp(10px, 2vw, 14px);
    border-radius: 50%;
    background: var(--gray-400);
    cursor: pointer;
    transition: all var(--transition);
}

.slider-dot.active {
    background: var(--black);
    transform: scale(1.3);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background: var(--white);
    border: var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: clamp(22px, 5vw, 28px);
    transition: all var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.slider-arrow:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: max(10px, 3%); }
.slider-arrow.next { right: max(10px, 3%); }

.slider-counter {
    text-align: center;
    margin-top: 15px;
    font-size: clamp(15px, 3vw, 18px);
    color: var(--gray-600);
    font-weight: 500;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.portfolio-placeholder {
    aspect-ratio: 4/3;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.portfolio-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-placeholder:hover img {
    transform: scale(1.08);
}

.portfolio-placeholder:hover {
    box-shadow: var(--shadow-lg);
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 3px solid var(--white);
    box-shadow: 0 0 40px rgba(0,0,0,0.7);
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: -45px;
    right: 0;
    color: var(--white);
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--gray-400);
    transform: scale(1.1) rotate(90deg);
}

.modal-caption {
    position: absolute;
    bottom: -45px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--white);
    font-size: 18px;
    padding: 12px;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

@keyframes zoom {
    from {
        transform: scale(0.7) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 700px;
    width: 100%;
}

.step {
    display: flex;
    gap: 20px;
    align-items: baseline;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    flex-wrap: wrap;
    transition: padding var(--transition);
}

.step:hover {
    border-bottom-color: var(--black);
    padding-left: 10px;
}

.step-num {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    color: var(--black);
    min-width: 50px;
    background: #f0f0f0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-text {
    font-size: clamp(16px, 3.5vw, 19px);
    flex: 1;
    font-weight: 500;
}

.step-duration {
    font-weight: 600;
    white-space: nowrap;
    font-size: clamp(15px, 3vw, 17px);
    color: var(--black);
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 30px;
}

.payment-methods {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin: 30px 0 50px;
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 500;
    align-items: center;
}

.payment-item {
    background: var(--gray-100);
    padding: 12px 25px;
    border-radius: 40px;
    flex: 1 1 auto;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid #e0e0e0;
}

.payment-item:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.about-text {
    max-width: 800px;
    font-size: clamp(16px, 3.5vw, 19px);
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--gray-100);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--black);
}

.contact-section {
    background: linear-gradient(135deg, #f7f7f7 0%, var(--white) 100%);
    padding: 60px 0;
    border-bottom: none;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-question {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 700;
    color: var(--black);
}

.contact-btn {
    padding: clamp(14px, 3vw, 18px) clamp(28px, 5vw, 42px);
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-btn-outline {
    background: transparent;
    color: var(--black);
    box-shadow: none;
}

.contact-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.contact-btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

.footer-address {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.footer-address strong {
    font-size: 18px;
    color: var(--black);
    display: block;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links-col a {
    text-decoration: none;
    color: #444;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-links-col a:hover {
    color: var(--black);
    padding-left: 8px;
}

.footer-links-col a::before {
    content: '›';
    position: absolute;
    left: -10px;
    opacity: 0;
    transition: all var(--transition);
}

.footer-links-col a:hover::before {
    opacity: 1;
    left: -5px;
}

.footer-contacts {
    text-align: right;
}

.footer-contacts div {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
}

.footer-email {
    color: var(--black);
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 5px;
}

.footer-email:hover {
    color: var(--gray-600);
}

.copyright {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

#productCard {
    max-width: 800px;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.card-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--black);
}

.card-desc {
    font-size: clamp(16px, 3.5vw, 19px);
    line-height: 1.6;
    color: #444;
    margin: 15px 0;
}

.card-meta {
    font-size: clamp(15px, 3vw, 17px);
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.price {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    margin: 25px 0 15px;
    color: var(--black);
    background: var(--gray-100);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
}

@media (min-width: 1200px) {
    body { padding-top: 120px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
    body { padding-top: 130px; }
    .portfolio-grid { gap: 20px; }
}

@media (min-width: 768px) and (max-width: 991px) {
    body { padding-top: 180px; }
    
    .hero h1 { font-size: 48px; text-align: center; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    
    .top-bar { flex-direction: row; flex-wrap: wrap; }
    .logo, .nav-links, .header-phones { width: 100%; justify-content: center; }
    .nav-links { order: 2; }
    .header-phones { order: 3; }
}

@media (max-width: 767px) {
    body { padding-top: 160px; }
    .container { padding: 0 15px; }
    
    .top-bar { flex-direction: column; align-items: stretch; }
    .logo, .nav-links, .header-phones { width: 100%; }
    .nav-links { justify-content: center; gap: 15px; }
    
    .hero h1 { font-size: 36px; text-align: center; }
    .hero-stats { grid-template-columns: 1fr; }
    
    .whatsapp-btn, .btn-outline { width: 100%; margin-right: 0; white-space: normal; }
    
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-placeholder { aspect-ratio: 16/9; }
    
    .process-steps { gap: 20px; }
    .step { flex-direction: column; gap: 10px; }
    
    .payment-methods { flex-direction: column; gap: 12px; }
    .payment-item { width: 100%; }
    
    .contact-row { flex-direction: column; align-items: stretch; gap: 20px; }
    .contact-buttons { flex-direction: column; width: 100%; }
    .contact-btn { width: 100%; white-space: normal; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; align-items: center; }
    .footer-contacts { text-align: center; }
    
    .copyright { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    body { padding-top: 200px; }
    .nav-links a { font-size: 13px; }
    .header-phones { flex-direction: column; gap: 5px; }
    .hero h1 { font-size: 32px; }
    .chip { font-size: 13px; }
    .step-num { width: 35px; height: 35px; font-size: 18px; }
    .contact-question { font-size: 28px; }
}

@media (max-width: 360px) {
    .nav-links a { font-size: 12px; }
    .hero h1 { font-size: 28px; }
}

@media (min-width: 1400px) {
    .container { max-width: 1600px; }
    body { padding-top: 120px; }
    .portfolio-grid { gap: 30px; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title,
.hero h1,
.stat-item,
.product-chips,
.slider-container {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Исправление для активных ссылок */
.nav-link[href="#catalog"]:target,
.nav-link[href="#portfolio"]:target,
.nav-link[href="#about"]:target {
    color: var(--black);
    font-weight: 600;
}

.nav-link[href="#catalog"]:target::after,
.nav-link[href="#portfolio"]:target::after,
.nav-link[href="#about"]:target::after {
    width: 100%;
}

/* Дополнительно: исправление для футера */
.footer-links-col a[href="#catalog"],
.footer-links-col a[href="#portfolio"],
.footer-links-col a[href="#about"] {
    text-decoration: none;
    color: #444;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-links-col a[href="#catalog"]:hover,
.footer-links-col a[href="#portfolio"]:hover,
.footer-links-col a[href="#about"]:hover {
    color: var(--black);
    padding-left: 8px;
}