/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #FF8A65;
    --accent-color: #FF5722;
    --dark-color: #1A1A1A;
    --light-color: #FFFFFF;
    --gray-color: #F5F5F5;
    --text-color: #1A1A1A;
    --text-light: #666666;
    --shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
    --shadow-hover: 0 20px 40px rgba(255, 107, 53, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--light-color);
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-link {
    color: var(--text-color);
    text-shadow: none;
}

.navbar.scrolled .nav-phone {
    background: var(--primary-color);
    color: var(--light-color);
}

.navbar.scrolled .nav-toggle span {
    background: var(--text-color);
    box-shadow: none;
}

body.service-page .navbar,
.service-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    transition: none;
    z-index: 50;
}

body.service-page .navbar .nav-link,
.service-navbar .nav-link {
    color: var(--text-color);
    text-shadow: none;
}

body.service-page .navbar .nav-phone,
.service-navbar .nav-phone {
    background: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 14px 28px rgba(255, 107, 53, 0.25);
}

body.service-page .navbar .nav-toggle span,
.service-navbar .nav-toggle span {
    background: var(--text-color);
    box-shadow: none;
}

body.service-page .service-hero {
    margin-top: 73px!important;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--light-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.contact-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-contact {
    display: flex;
    align-items: center;
}

.contact-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    background: rgba(255, 107, 53, 0.85);
    color: var(--light-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
    transition: var(--transition);
    backdrop-filter: blur(6px);
}

.contact-dropdown-toggle i {
    font-size: 1rem;
}

.contact-dropdown-label {
    white-space: nowrap;
}

.contact-dropdown-chevron {
    transition: transform 0.3s ease;
    margin-left: 0.2rem;
    font-size: 0.85rem;
}

.contact-dropdown:hover .contact-dropdown-toggle,
.contact-dropdown.open .contact-dropdown-toggle,
.contact-dropdown-toggle:focus-visible {
    background: rgba(255, 107, 53, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.contact-dropdown-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 3px;
}

.contact-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    padding: 0.6rem 0;
    min-width: 230px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.contact-dropdown.open .contact-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-dropdown.open .contact-dropdown-chevron {
    transform: rotate(180deg);
}

.contact-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-dropdown-item i {
    font-size: 1.1rem;
}

.contact-dropdown-item--whatsapp i {
    color: #25D366;
}

.contact-dropdown-item--telegram i {
    color: #229ED9;
}

.contact-dropdown-item--phone i {
    color: var(--primary-color);
}

.contact-dropdown-item:hover,
.contact-dropdown-item:focus-visible {
    background: rgba(255, 107, 53, 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}

.contact-dropdown-item:focus-visible {
    outline: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    transition: var(--transition);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Parallax Hero Section */
.wrapper,
.content {
    position: relative;
    width: 100%;
    z-index: 1;
}

.content {
    overflow-x: hidden;
}

.content .section {
    width: 100%;
    height: 100vh;
}

.content .section.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-background-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.image-container {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    perspective: 500px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-foreground-img {
    pointer-events: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(255, 107, 53, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 3;
}

/* Ensure wrapper takes full width */
.wrapper {
    width: 100%;
    position: relative;
}



.hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-text {
    color: var(--light-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out 0.4s forwards;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease-out forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.6s; }
.feature-item:nth-child(2) { animation-delay: 0.8s; }
.feature-item:nth-child(3) { animation-delay: 1s; }

.feature-item i {
    font-size: 20px;
    color: var(--light-color);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-secondary:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--light-color);
    animation: float 4s ease-in-out infinite;
}


.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--light-color);
    z-index: 4;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--light-color);
    margin: 0 auto 10px;
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--light-color);
    border-bottom: 2px solid var(--light-color);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Section Divider */
.section-divider {
    padding: 0;
    margin: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.divider-line {
    width: 100%;
    max-width: 800px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 107, 53, 0.2) 10%,
        var(--primary-color) 30%,
        var(--primary-color) 70%,
        rgba(255, 107, 53, 0.2) 90%,
        transparent 100%
    );
    position: relative;
    margin: 0 auto;
}

.divider-line::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.divider-line::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}

/* Gray Section Divider */
.section-divider-gray {
    padding: 0;
    margin: 0;
    background: transparent;
}

.divider-line-gray {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(102, 102, 102, 0.2) 10%,
        #666666 30%,
        #666666 70%,
        rgba(102, 102, 102, 0.2) 90%,
        transparent 100%
    );
}

.divider-line-gray::before {
    background: linear-gradient(90deg, #666666, #888888);
    box-shadow: 0 2px 8px rgba(102, 102, 102, 0.3);
}

.divider-line-gray::after {
    background: rgba(255, 255, 255, 0.6);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.02) 0%, rgba(255, 138, 101, 0.02) 100%);
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

/* About Hero */
.about-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.about-hero h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-decorative-elements {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    text-align: center;
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: -15%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.floating-card span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* About Services Preview */
.about-services-preview {
    margin-bottom: 6rem;
}

.about-services-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.about-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-service-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.about-service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
}

.service-icon-wrapper i {
    font-size: 2rem;
    color: var(--light-color);
}

.about-service-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.about-service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Stats Section */
.about-stats-section {
    margin-bottom: 6rem;
}

.stats-background {
    background: var(--gray-color);
    padding: 4rem 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stats-background h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--light-color);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--light-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* About CTA Section */
.about-cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 3rem;
    border-radius: var(--border-radius);
    color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.about-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.1); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.about-cta-section h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

.cta-buttons .btn-primary {
    background: var(--light-color);
    color: var(--primary-color);
    border-color: var(--light-color);
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: var(--light-color);
    border-color: var(--light-color);
}

.cta-buttons .btn-outline {
    background: transparent;
    color: var(--light-color);
    border-color: var(--light-color);
}

.cta-buttons .btn-outline:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.service-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.32s ease;
    will-change: transform;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translate3d(0,0,0) scale(1);
    opacity: 1;
    display: flex;
    flex-direction: column;
    height: 100%;

}

.service-card.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    box-shadow: 0 24px 45px rgba(255, 107, 53, 0.22);
}

.service-image {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    will-change: transform;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.2s ease;
    will-change: transform;
    background: var(--light-color);
}

/* Специальные стили для изображений услуг */
.service-image img[src*="naruzhreclama"] {
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
}

.service-image img[src*="interierreclama"] {
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
}

.service-image img[src*="poligraphia"] {
    object-fit: contain;
    background: #ffffff;
    padding: 15px;
}

.service-image img[src*="разработка логотипа"] {
    object-fit: contain;
    background: #ffffff;
    padding: 15px;
}

.service-image img[src*="pechatnaodezhde"] {
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    padding: 12px;
}

.service-image img[src*="suveniri"] {
    object-fit: contain;
    background: #ffffff;
    padding: 12px;
}

.service-image img[src*="pechatiishtampi"] {
    object-fit: contain;
    background: #ffffff;
    padding: 15px;
}

.service-image img[src*="shirokopechat"] {
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
}

.service-image img[src*="переплет"] {
    object-fit: contain;
    background: #ffffff;
    padding: 12px;
}

.service-image img[src*="фотоцентр"] {
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
}

.service-image img[src*="Kartini_na_holste_bageti"] {
    object-fit: contain;
    background: #ffffff;
    padding: 15px;
}

.service-image img[src*="photo_na_stekle"] {
    object-fit: contain;
    background: #ffffff;
    padding: 15px;
}

.service-card:hover .service-image img {
    transform: none;
}

.reduced-animations .service-card {
    transition: transform 0.22s ease, box-shadow 0.24s ease;
    transform: translate3d(0,0,0);
    box-shadow: var(--shadow);
}

.reduced-animations .service-card:hover {
    transform: translate3d(0,-6px,0) scale(1.02);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.reduced-animations .service-image img {
    transition: transform 0.18s ease;
}

.reduced-animations .service-card:hover .service-image img {
    transform: scale(1.03);
}

.reduced-animations .portfolio-item {
    transition: box-shadow 0.22s ease;
    transform: none !important;
}

.reduced-animations .portfolio-item:hover {
    transform: none;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.service-types .service-card {
    display: block;
    height: auto;
    cursor: default;
}

.service-types .service-card::before {
    content: none;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-features span {
    background: var(--gray-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.service-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: auto;
    align-self: flex-start;
}

.service-btn:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: var(--gray-color);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--light-color);
    color: var(--text-color);
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    transform: translateY(0) scale(1);
}

.portfolio-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 60px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Специальная обработка для световых коробов */
.portfolio-image img[src*="svetovoy_korob"] {
    object-fit: contain;
    background: #2a2a2a;
    padding: 15px;
}

.portfolio-image img[src*="pechati"] {
    object-fit: cover;
    object-position: center;
}

.portfolio-image img[src*="vypusknaya_lenta"] {
    object-fit: cover;
    object-position: center;
    background: #f8f8f8;
}

.portfolio-image img[src*="image_2025-09-15"] {
    object-fit: contain;
    object-position: center;
    background: #f5f5f5;
    padding: 20px;
}

.portfolio-image img[src*="pechetontshirt"] {
    object-fit: cover;
    object-position: center;
    background: #ffffff;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(255, 107, 53, 0.9));
    color: var(--light-color);
    padding: 2rem;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.32s ease, opacity 0.32s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.reduced-animations .portfolio-overlay {
    transform: translateY(0);
    opacity: 0;
}

.reduced-animations .portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-btn {
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-btn:hover {
    background: var(--secondary-color);
}

/* Clients Section */
.clients {
    padding: 6rem 0;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Infinite Scroll Slider */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); }
}

.slider {
    background: white;
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 960px;
    border-radius: var(--border-radius);
}

.slider::before,
.slider::after {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 0;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 12);
}

.slide-track:hover {
    animation-play-state: paused;
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: var(--transition);
}

.slide img:hover {
    transform: scale(1.05);
}

/* Responsive styles for slider */
@media (max-width: 1024px) {
    .slider {
        width: 100%;
        max-width: 800px;
        margin: 0 1rem;
    }

    .slide-track {
        animation: scroll 35s linear infinite;
    }
}

@media (max-width: 768px) {
    .slider {
        width: 100%;
        max-width: 600px;
        margin: 0 1rem;
    }

    .slide {
        width: 200px;
    }

    .slide-track {
        width: calc(200px * 12);
        animation: scroll 30s linear infinite;
    }

    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-200px * 6)); }
    }
}

@media (max-width: 480px) {
    .slider {
        width: 100%;
        max-width: 400px;
        height: 80px;
        margin: 0 0.5rem;
    }

    .slider::before,
    .slider::after {
        height: 80px;
        width: 100px;
    }

    .slide {
        width: 150px;
        height: 80px;
        padding: 5px;
    }

    .slide-track {
        width: calc(150px * 12);
        animation: scroll 25s linear infinite;
    }

    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-150px * 6)); }
    }
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--gray-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .cta-card {
        padding: 3rem 2.4rem;
    }

    .application-content {
        grid-template-columns: 1fr;
    }

    .application .section-header {
        text-align: center;
    }

    .application .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .application .section-subtitle {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .wrapper {
        min-height: 70vh;
    }

    .image-container {
        display: none;
    }

    .content .section {
        height: 70vh;
    }

    .services {
        padding: 4rem 0;
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .service-card {
        padding: 1.35rem;
        text-align: center;
    }

    .service-image {
        height: 130px;
        margin-bottom: 0.85rem;
    }

    .service-card h3 {
        font-size: 1rem;
        line-height: 1.35;
        word-break: break-word;
    }

    .portfolio {
        padding: 4rem 0;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        gap: 1.25rem;
    }

    .portfolio-overlay {
        padding: 1.25rem;
    }

    .cta-card {
        padding: 2.5rem 1.9rem;
        margin-top: 2.4rem;
    }

    .cta-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-map {
        order: 2;
    }

    .contact-info {
        order: 1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        gap: 1.25rem;
    }

    .custom-cursor {
        display: none !important;
    }

    .about-decorative-elements {
        height: 320px;
        padding: 0;
        overflow: hidden;
    }

    .floating-card {
        width: auto;
        min-width: 140px;
        padding: 1.2rem;
        animation: float 6s ease-in-out infinite;
        align-items: center;
        text-align: center;
    }

    .floating-card:nth-child(1) {
        top: 18%;
        left: 6%;
    }

    .floating-card:nth-child(2) {
        top: 25%;
        right: 6%;
    }

    .floating-card:nth-child(3) {
        bottom: 8%;
        left: 45%;
    }

    .application {
        padding: 4.5rem 0 3.5rem;
    }

    .application .section-header {
        margin-bottom: 2.25rem;
    }

    .application-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .application-form {
        order: -1;
        padding: 1.6rem;
        box-shadow: var(--shadow);
        border: 1px solid rgba(26, 26, 26, 0.04);
        gap: 1.2rem;
        width: 100%;
    }

    .application-form .btn {
        margin-top: 0.5rem;
    }

    .application-details {
        order: 1;
        display: flex;
        flex-direction: column;
        gap: 1.1rem;
        width: 100%;
    }

    .application-card,
    .application-call {
        width: 100%;
    }

    .application-card {
        padding: 1.25rem 1.3rem;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
        border: 1px solid rgba(26, 26, 26, 0.04);
        box-shadow: var(--shadow);
        background: rgba(255, 255, 255, 0.95);
    }

    .application-card i {
        font-size: 1.8rem;
        margin-top: 0.2rem;
    }

    .application-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }

    .application-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .application-call {
        padding: 1.6rem;
        align-items: center;
        text-align: center;
        gap: 0.65rem;
        box-shadow: var(--shadow);
    }

    .application-call span {
        font-size: 0.95rem;
    }

    .application-phone {
        font-size: 1.35rem;
    }

    .application-note {
        text-align: center;
        font-size: 0.85rem;
        color: var(--text-light);
    }
}

@media (max-width: 540px) {

    .application {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .service-card {
        padding: 1rem;
    }

    .service-image {
        height: 110px;
        margin-bottom: 0.75rem;
    }

    .service-card h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .portfolio-overlay {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "experience experience"
            "clients projects";
        gap: 1rem;
        justify-content: center;
        align-items: stretch;
    }

    .stat-card {
        padding: 1.75rem 1.25rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .stat-card:nth-child(1) {
        grid-area: clients;
    }

    .stat-card:nth-child(2) {
        grid-area: projects;
    }

    .stat-card:nth-child(3) {
        grid-area: experience;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 1.5rem;
        align-items: center;
    }

    .stat-card:nth-child(3) .stat-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .stat-card:nth-child(3) .stat-number {
        font-size: 2.4rem;
        margin-bottom: 0.25rem;
    }

    .stat-card:nth-child(3) .stat-label {
        margin-bottom: 0;
        font-size: 1rem;
    }

    .stat-card:nth-child(3) .stat-description {
        display: none;
    }

    .stat-card:not(:nth-child(3)) .stat-number {
        font-size: 2.1rem;
        margin-bottom: 0.25rem;
    }

    .stat-card:not(:nth-child(3)) .stat-description {
        font-size: 0.85rem;
    }

    .stats-background {
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .application-content {
        gap: 1.25rem;
    }

    .application-form {
        padding: 1.3rem 1.4rem;
        gap: 1.1rem;
    }

    .application-details {
        gap: 0.95rem;
    }

    .application-card {
        padding: 1.05rem 1.15rem;
        gap: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .application-card i {
        font-size: 1.55rem;
        margin-top: 0;
    }

    .application-card h3 {
        font-size: 0.96rem;
        margin-bottom: 0.3rem;
    }

    .application-card p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .application-call {
        padding: 1.4rem;
        gap: 0.65rem;
        width: 100%;
    }

    .application-phone {
        font-size: 1.24rem;
    }

    .form-group {
        display: flex;
        flex-direction: column-reverse;
        gap: 0.45rem;
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.85rem 1rem;
        border-width: 1.5px;
        font-size: 15px;
    }

    .form-group textarea {
        min-height: 110px;
    }

    .form-group label {
        position: static;
        font-size: 0.92rem;
        color: var(--text-color);
        background: transparent;
        padding: 0;
        transform: none;
    }

    .form-group input:focus + label,
    .form-group input:valid + label,
    .form-group textarea:focus + label,
    .form-group textarea:valid + label {
        top: auto;
        left: auto;
        font-size: 0.92rem;
        transform: none;
    }
}

@media (max-width: 480px) {
    .about-decorative-elements {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 400px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .service-card {
        padding: 0.9rem;
    }

    .service-image {
        height: 100px;
    }

    .service-card h3 {
        font-size: 0.85rem;
    }

    .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-card:nth-child(3) .stat-number {
        font-size: 2.2rem;
    }

    .stat-card:not(:nth-child(3)) .stat-number {
        font-size: 2rem;
    }

    .application-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .application-card p {
        text-align: center;
    }

    .application-call {
        padding: 1.35rem;
    }

    .application-phone {
        font-size: 1.2rem;
    }
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 24px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-details p,
.contact-details a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.6;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-map {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
   height: 100%;
   border: none;
   border-radius: var(--border-radius);
}

.application {
    padding: 6rem 0;
    background: var(--gray-color);
}

.application .section-header {
    text-align: left;
    margin-bottom: 3rem;
}

.application .section-title::after {
    left: 0;
    transform: none;
}

.application .section-subtitle {
    margin: 0;
    max-width: 540px;
}

.application-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: stretch;
    grid-template-areas: "details form";
}

.application-details {
    grid-area: details;
}

.application-form {
    grid-area: form;
}

.application-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.application-card {
    display: flex;
    gap: 1.5rem;
    background: var(--light-color);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    align-items: flex-start;
}

.application-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.application-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.application-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.application-call {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-color);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.application-call span {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.application-phone {
    font-size: 1.6rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.application-phone:hover {
    text-decoration: underline;
}

.application-form {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
}

.application-form .btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

.application-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: transparent;
    min-height: 48px; /* Минимальная высота для touch-элементов */
    -webkit-appearance: none; /* Убираем стили по умолчанию на iOS */
    appearance: none;
}

.form-group textarea {
    min-height: 120px; /* Больше места для textarea */
    resize: vertical; /* Разрешаем изменение размера только по вертикали */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
    background: var(--light-color);
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Fixed CTA */
.fixed-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
}

.cta-button {
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
     .nav-menu {
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         height: 100vh;
         background: rgba(255, 255, 255, 0.98);
         backdrop-filter: blur(20px);
         flex-direction: column;
         justify-content: center;
         align-items: center;
         padding: 2rem;
         transform: translateX(-100%);
         transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
         z-index: 5;
         gap: 3rem;
     }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        padding: 1rem 2rem;
        border-radius: var(--border-radius);
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: var(--primary-color);
        color: var(--light-color);
        transform: scale(1.05);
    }

    .nav-toggle {
        display: flex;
        z-index: 6;
        position: relative;
        padding: 8px; /* Увеличиваем область нажатия */
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
    }

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

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

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

    .navbar .nav-contact {
        display: none;
    }

    .floating-contact {
        display: flex;
        animation: slideInUp 0.5s ease-out 1s both;
    }

    .floating-contact .contact-dropdown-menu {
        border: 1px solid rgba(26, 26, 26, 0.08);
        box-shadow: none;
    }

    .hero {
        min-height: 100vh;
        padding: 8rem 0 4rem;
    }

    .hero-content {
        padding: 0 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-features {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .feature-item {
        justify-content: center;
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
        margin: 0 0.5rem;
    }

    .service-image {
        height: 180px;
        margin-bottom: 1.5rem;
    }

    /* Уменьшенные отступы для мобильных */
    .service-image img[src*="naruzhreclama"],
    .service-image img[src*="interierreclama"] {
        padding: 8px;
    }

    .service-image img[src*="poligraphia"],
    .service-image img[src*="разработка логотипа"],
    .service-image img[src*="pechatiishtampi"] {
        padding: 12px;
    }

    .service-image img[src*="suveniri"],
    .service-image img[src*="переплет"],
    .service-image img[src*="pechatnaodezhde"] {
        padding: 10px;
    }

    .service-image img[src*="shirokopechat"],
    .service-image img[src*="фотоцентр"],
    .service-image img[src*="Kartini_na_holste_bageti"],
    .service-image img[src*="photo_na_stekle"] {
        padding: 8px;
    }

    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .service-features {
        gap: 0.4rem;
        margin-bottom: 1.5rem;
    }

    .service-features span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-item {
        margin: 0 0.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .section-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 25px;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    /* Section divider mobile */
    .divider-line {
        max-width: 600px;
        height: 2px;
    }

    .divider-line::before {
        width: 80px;
        height: 4px;
    }

    .divider-line::after {
        width: 40px;
    }

    /* About section mobile */
    .about-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 4rem;
    }

    .about-hero h3 {
        font-size: 2rem;
    }

    .about-description {
        font-size: 1.1rem;
    }

    .about-decorative-elements {
        height: 300px;
    }

    .floating-card {
        min-width: 120px;
        padding: 1rem;
    }

    .floating-card:nth-child(2) {
        right: 3%;
    }

    .about-services-title {
        font-size: 1.8rem;
    }

    .about-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-background {
        padding: 3rem 2rem;
    }

    .stats-background h3 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-cta-section {
        padding: 3rem 2rem;
    }

    .about-cta-section h3 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        min-width: 250px;
    }

    /* Contact section mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-map {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .map-container {
        height: 300px;
    }

    .contact-item {
        gap: 1rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 2rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

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

    .hero-features {
        gap: 1rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .about-cta-section,
    .stats-background,
    .contact-map,
    .service-card {
        padding: 1.5rem;
        margin: 0 0.25rem;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 107, 53, 0.1);
        tap-highlight-color: rgba(255, 107, 53, 0.1);
    }

    .service-image {
        height: 160px;
    }

    /* Улучшения для touch-устройств */
    .service-card,
    .portfolio-item,
    .btn,
    .nav-link,
    .filter-btn {
        -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
        tap-highlight-color: rgba(255, 107, 53, 0.2);
    }

    /* Улучшенные размеры для мобильных */
    .service-card {
        margin-bottom: 1rem;
    }

    .portfolio-item {
        margin-bottom: 1rem;
    }

    /* Минимальные отступы для маленьких экранов */
    .service-image img[src*="naruzhreclama"],
    .service-image img[src*="interierreclama"],
    .service-image img[src*="shirokopechat"],
    .service-image img[src*="фотоцентр"],
    .service-image img[src*="Kartini_na_holste_bageti"],
    .service-image img[src*="photo_na_stekle"] {
        padding: 6px;
    }

    .service-image img[src*="poligraphia"],
    .service-image img[src*="разработка логотипа"],
    .service-image img[src*="pechatiishtampi"] {
        padding: 10px;
    }

    .service-image img[src*="suveniri"],
    .service-image img[src*="переплет"],
    .service-image img[src*="pechatnaodezhde"] {
        padding: 8px;
    }

    .map-container {
        height: 250px;
    }

    .about-hero h3 {
        font-size: 1.8rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .about-decorative-elements {
        height: 250px;
    }

    .floating-card {
        min-width: 100px;
        padding: 0.8rem;
    }

    .floating-card i {
        font-size: 1.5rem;
    }

    .floating-card span {
        font-size: 0.8rem;
    }

    .about-services-title {
        font-size: 1.5rem;
    }

    .about-service-card {
        padding: 1.5rem;
    }

    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .service-icon-wrapper i {
        font-size: 1.5rem;
    }

    .about-service-card h4 {
        font-size: 1.1rem;
    }

    .stats-background h3 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-cta-section h3 {
        font-size: 1.6rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-features span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .portfolio-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-height: 44px; /* Минимальная высота для touch-элементов */
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 1rem 1.5rem;
        min-height: 48px; /* Минимальная высота для touch-элементов */
        display: flex;
        align-items: center;
    }

    .nav-phone {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px; /* Минимальная высота для touch-элементов */
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Section divider small screens */
    .divider-line {
        max-width: 400px;
        height: 2px;
    }

    .divider-line::before {
        width: 60px;
        height: 3px;
    }

    .divider-line::after {
        width: 30px;
    }

    .cta-button span {
        display: none;
    }

    .cta-button {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .portfolio-item:hover {
        transform: none;
        box-shadow: var(--shadow);
    }

    .service-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .portfolio-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    .nav-link:hover {
        background: none;
        color: var(--primary-color);
        transform: none;
    }

    .nav-link:active {
        background: var(--primary-color);
        color: var(--light-color);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .portfolio-item,
    .btn,
    .nav-link {
        transition: none;
    }

    .service-card.fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    /* Disable parallax effect for reduced motion */
    .image-container img {
        transform: none !important;
        scale: 1 !important;
    }

    .section.hero {
        transform: none !important;
        scale: 1 !important;
    }
}

/* Mobile optimizations for parallax */
@media (max-width: 768px) {
    .image-container {
        position: fixed;
    }

    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(255, 107, 53, 0.3) 50%,
            rgba(0, 0, 0, 0.6) 100%
        );
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(255, 107, 53, 0.4) 50%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.floating-contact .contact-dropdown-toggle {
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.35);
}

.floating-contact .contact-dropdown-toggle i {
    font-size: 1.2rem;
}

.floating-contact .contact-dropdown-menu {
    top: auto;
    bottom: calc(100% + 0.75rem);
    transform: translateY(10px);
}

.floating-contact.contact-dropdown.open .contact-dropdown-menu {
    transform: translateY(0);
}

/* Animation for floating button */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .floating-contact {
        display: none;
    }
}

/* Extra small screens adjustments */
@media (max-width: 480px) {
    .floating-contact {
        bottom: 15px;
        right: 15px;
    }

    .floating-contact .contact-dropdown-toggle {
        padding: 0.75rem 1.4rem;
        font-size: 0.9rem;
    }

    .floating-contact .contact-dropdown-toggle i {
        font-size: 1rem;
    }
}

/* Price Table Styles */
.price-table {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: var(--shadow);
}

.price-table h3 {
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-color);
    transition: var(--transition);
    position: relative;
    overflow: visible;
    z-index: 0;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row:hover {
    background: transparent;
    box-shadow: none;
}

.price-row::after {
    content: '';
    position: absolute;
    inset: -1px -8px;
    border-radius: calc(var(--border-radius) + 4px);
    background: rgba(255, 107, 53, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.28);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
    z-index: -1;
}

.price-row:hover::after {
    opacity: 1;
}

.price-item {
    color: var(--text-dark);
    font-weight: 500;
    flex: 1;
}

.price-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.price-table p {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    font-style: italic;
}

/* CTA card */
.cta-section {
    padding: 0rem 0;
}

.cta-card {
    background: linear-gradient(180deg, #f8f9fb 0%, #f2f4f7 100%);
    border-radius: 32px;
    padding: 3.4rem 3.2rem;
    text-align: center;
    max-width: 880px;
    margin: 2.6rem auto 0 auto;
    box-shadow: 0 26px 60px rgba(31, 41, 55, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.cta-card h3 {
    color: var(--dark-color);
    font-size: 2.35rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.cta-card p {
    color: var(--text-light);
    font-size: 1.12rem;
    margin-bottom: 2.75rem;
}

.cta-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: 188px;
    padding-inline: 1.85rem;
    font-weight: 600;
    font-size: 1.02rem;
    box-shadow: 0 12px 26px rgba(255, 107, 53, 0.18);
    border-radius: 999px;
}

.cta-actions .btn i {
    font-size: 1.08rem;
}

@media (max-width: 768px) {
    .cta-card {
        padding: 2.8rem 1.9rem;
        margin-top: 2.2rem;
    }
}

/* Responsive price table */
@media (max-width: 768px) {
    .price-table.price-layout {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .price-table {
        margin: 2rem 0;
    }

    .price-table.price-layout .price-preview {
        display: none;
    }

    .price-table.price-layout .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
        cursor: pointer;
        border-bottom: 1px solid var(--gray-color);
    }

    .price-table.price-layout .price-row::after {
        content: '';
        position: absolute;
        right: 0;
        top: 1.4rem;
        width: 10px;
        height: 10px;
        border-top: 2px solid var(--primary-color);
        border-right: 2px solid var(--primary-color);
        transform: rotate(45deg);
        transition: transform 0.25s ease;
        background: transparent;
        box-shadow: none;
    }

    .price-table.price-layout .price-row.expanded::after {
        transform: rotate(-135deg);
    }

    .price-table.price-layout .price-value {
        margin-left: 0;
        align-self: flex-end;
    }

    .price-row-mobile-preview {
        width: 100%;
        border-radius: var(--border-radius);
        overflow: hidden;
        margin-top: 0.75rem;
        box-shadow: var(--shadow);
        display: none;
        background: var(--light-color);
    }

    .price-row-mobile-preview img {
        width: 100%;
        height: auto;
        display: block;
    }

    .price-row-mobile-preview figcaption {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        color: var(--text-light);
    }

    .price-row.expanded .price-row-mobile-preview {
        display: block;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: none;
    box-shadow: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --text-color: #000000;
        --light-color: #FFFFFF;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-scroll-indicator,
    .fixed-cta,
    .preloader {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* === Price Table + Preview (двухколоночный компонент) === */
.price-table.price-layout{
  display:grid;
  grid-template-columns:1fr minmax(320px,42%);
  gap:2rem;
  align-items:start;
  background:var(--light-color);
  border-radius:var(--border-radius);
  box-shadow:var(--shadow);
  padding:2rem;
  margin-top:3rem;
  overflow:visible;                        /* нужно для sticky */
  --sticky-offset:0px;                     /* тонкая подстройка при необходимости */
  --navbar-h:80px;                         /* перезапишется JS при наличии */
  min-height: var(--table-min, auto);      /* JS поставит минимум = высоте превью */
}

.price-table.price-layout .price-title{
  text-align:left !important;
  margin-bottom:1.5rem;
  color:var(--dark-color);
}

/* Строки — только внутри данного компонента */
.price-table.price-layout .price-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 0;
  border-bottom:1px solid var(--gray-color);
  cursor:pointer;
}
.price-table.price-layout .price-row:last-child{border-bottom:none;}
.price-table.price-layout .price-item{font-weight:500;color:var(--text-color);}
.price-table.price-layout .price-value{font-weight:700;color:var(--primary-color);}

/* (Необязательно) Отключить глобальный hover-эффект внутри компонента */
/*
.price-table.price-layout .price-row:hover{
  background:transparent;
  margin:0;
  padding:1rem 0;
}
*/

/* Sticky превью: центр относительно области экрана ниже навбара */
.price-table.price-layout .price-preview{
  position:sticky;
  top:calc((100vh - var(--navbar-h, 80px) - var(--preview-h, 600px))/2 + var(--navbar-h, 80px) + var(--sticky-offset, 0px));
  height:var(--preview-h, 600px);
  max-height:600px;         /* максимум 600px */
  align-self:start;
}
.price-table.price-layout .preview-frame{
  position:relative;height:100%;
  border-radius:var(--border-radius);overflow:hidden;
  background:linear-gradient(135deg, rgba(0,0,0,.05), rgba(0,0,0,.03));
  box-shadow:var(--shadow);
  min-height:280px; /* нижняя граница; учитывается в JS */
}

/* Кросс-фейд (двойной буфер) */
.price-table.price-layout .preview-img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transition:opacity .5s ease;will-change:opacity;
}
.price-table.price-layout .preview-img.is-visible{opacity:1;}

@media (max-width:768px){
  .price-table.price-layout{grid-template-columns:1fr;min-height:auto;}
  .price-table.price-layout .price-preview{display:none;} /* на мобиле превью скрываем */
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-btn i {
    font-size: 0.9rem;
}

.back-btn:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}
