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

:root {
    /* Material Design Color Palette - Light & Minimal */
    --md-primary: #2196F3;              /* Material Blue */
    --md-primary-dark: #1976D2;         /* Darker Blue */
    --md-primary-light: #BBDEFB;       /* Light Blue */
    --md-accent: #4CAF50;               /* Material Green */
    --md-accent-light: #C8E6C9;         /* Light Green */
    --md-surface: #FFFFFF;              /* White Surface */
    --md-surface-variant: #F5F5F5;      /* Light Gray Surface */
    --md-background: #FAFAFA;           /* Background */
    --md-on-primary: #FFFFFF;           /* Text on Primary */
    --md-on-surface: #212121;           /* Text on Surface */
    --md-on-surface-variant: #757575;   /* Secondary Text */
    --md-divider: #E0E0E0;              /* Dividers */
    --md-shadow-1: 0 2px 4px rgba(0,0,0,0.1);
    --md-shadow-2: 0 4px 8px rgba(0,0,0,0.12);
    --md-shadow-3: 0 8px 16px rgba(0,0,0,0.15);
    --md-shadow-4: 0 12px 24px rgba(0,0,0,0.18);
    --md-radius: 8px;
    --md-radius-small: 4px;
    --md-transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    
    /* ShineBorder variables */
    --shine-border-radius: 12px;
    --shine-border-width: 1.5px;
    --shine-duration: 14s;
    --shine-color-1: #e9bf65;
    --shine-color-2: #77addb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    color: var(--md-on-surface);
    background: var(--md-background);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Material Design Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: var(--md-transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--md-divider);
    box-shadow: var(--md-shadow-1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 52px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--md-on-surface);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    transition: var(--md-transition);
    animation: gentleSway 3s ease-in-out infinite;
    transform-origin: center bottom;
}

.header:not(.scrolled) .logo h1 {
    color: var(--md-on-primary);
}

.logo p {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    font-size: 16px;
    color: var(--md-on-surface-variant);
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: var(--md-transition);
}

.header:not(.scrolled) .logo p {
    color: rgba(255, 255, 255, 0.9);
}

/* Material Navigation */
.nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav a {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    position: relative;
    color: var(--md-on-surface);
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    padding: 8px 16px;
    border-radius: var(--md-radius-small);
    transition: var(--md-transition);
    letter-spacing: 0.5px;
}

.nav-phone {
    display: none;
}

.header:not(.scrolled) .nav a {
    color: var(--md-on-primary);
}

.nav a:hover {
    background: rgba(33, 150, 243, 0.08);
}

.header:not(.scrolled) .nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Material Phone Button */
.header-phone a {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--md-on-surface);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    padding: 10px 20px;
    background: var(--md-primary);
    color: var(--md-on-primary);
    border-radius: var(--md-radius);
    transition: var(--md-transition);
    letter-spacing: 0.5px;
    box-shadow: var(--md-shadow-2);
}

.header:not(.scrolled) .header-phone a {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--md-on-primary);
}

.header-phone a:hover {
    background: var(--md-primary-dark);
    box-shadow: var(--md-shadow-3);
    transform: translateY(-1px);
}

.header-phone a .material-icons {
    font-size: 18px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--md-on-surface);
    transition: var(--md-transition);
    border-radius: var(--md-radius-small);
    font-size: 24px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.header:not(.scrolled) .mobile-menu-toggle {
    color: var(--md-on-primary);
}

.mobile-menu-toggle:hover {
    background: rgba(33, 150, 243, 0.08);
}

.mobile-menu-toggle.active {
    transform: rotate(90deg);
}

/* Material Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-bg.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hero-title {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--md-on-primary);
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: 1px;
    /* Анимация отрабатывает один раз, повтор запускается через JS */
    animation: zoomInFromFar 7s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
    opacity: 0;
    transform: scale(0.3) translateZ(0);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 0, 0, 0.3);
}

.city-name {
    position: relative;
    display: inline-block;
    white-space: nowrap; /* Предотвращаем перенос длинных слов */
}

.city-name::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    animation: blinkCursor 1s infinite;
    color: var(--md-on-primary);
    font-weight: 400;
}

@keyframes blinkCursor {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    font-size: 28px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Material Buttons */
.btn {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
    border-radius: var(--md-radius);
    transition: var(--md-transition);
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--md-shadow-2);
}

.btn-primary {
    background: var(--md-surface);
    color: var(--md-primary);
    text-shadow: none;
}

.btn-primary:hover {
    background: var(--md-surface-variant);
    box-shadow: var(--md-shadow-3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--md-on-primary);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn .material-icons {
    font-size: 20px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--md-on-surface);
    letter-spacing: 1px;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    color: var(--md-on-surface-variant);
    margin-bottom: 48px;
    letter-spacing: 0.5px;
}

/* Material Services Section */
.services {
    background: var(--md-background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 24px;
    border-radius: var(--shine-border-radius);
    box-shadow: var(--md-shadow-1);
    transition: var(--md-transition);
    display: flex;
    flex-direction: column;
    border: var(--shine-border-width) solid transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--shine-border-radius);
    padding: var(--shine-border-width);
    background: conic-gradient(
        from 0deg,
        var(--shine-color-1) 0deg,
        var(--shine-color-1) 45deg,
        transparent 50deg,
        transparent 85deg,
        var(--shine-color-2) 90deg,
        var(--shine-color-2) 135deg,
        transparent 140deg,
        transparent 175deg,
        var(--shine-color-1) 180deg,
        var(--shine-color-1) 225deg,
        transparent 230deg,
        transparent 265deg,
        var(--shine-color-2) 270deg,
        var(--shine-color-2) 315deg,
        transparent 320deg,
        transparent 355deg,
        var(--shine-color-1) 360deg
    );
    background-size: 300% 300%;
    background-position: 0% 0%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    -webkit-mask-composite: exclude;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: shine-pulse var(--shine-duration) infinite linear;
    pointer-events: none;
    z-index: 0;
    will-change: background-position;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    box-shadow: var(--md-shadow-3);
    transform: translateY(-4px);
}

.service-card h3 {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--md-on-surface);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.service-card p {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    color: var(--md-on-surface-variant);
    margin-bottom: 16px;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 20px;
    font-weight: 400;
}

.service-features {
    list-style: none;
    padding-left: 0;
}

.service-features li {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    color: var(--md-on-surface-variant);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    font-size: 18px;
    font-weight: 400;
}

.service-features li::before {
    content: '✦';
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--md-primary);
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
}

/* Material Products Section */
.products {
    background: var(--md-surface);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.product-card {
    position: relative;
    background: transparent;
    border-radius: var(--shine-border-radius);
    box-shadow: var(--md-shadow-1);
    overflow: hidden;
    transition: var(--md-transition);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    border: var(--shine-border-width) solid transparent;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(0.1);
    transform: scale(1);
    transition: transform 0.6s ease, filter 0.6s ease;
    z-index: 0;
}

.product-card:hover .product-image {
    transform: scale(1.05);
    filter: grayscale(0);
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--shine-border-radius);
    padding: var(--shine-border-width);
    background: conic-gradient(
        from 0deg,
        var(--shine-color-1) 0deg,
        var(--shine-color-1) 45deg,
        transparent 50deg,
        transparent 85deg,
        var(--shine-color-2) 90deg,
        var(--shine-color-2) 135deg,
        transparent 140deg,
        transparent 175deg,
        var(--shine-color-1) 180deg,
        var(--shine-color-1) 225deg,
        transparent 230deg,
        transparent 265deg,
        var(--shine-color-2) 270deg,
        var(--shine-color-2) 315deg,
        transparent 320deg,
        transparent 355deg,
        var(--shine-color-1) 360deg
    );
    background-size: 300% 300%;
    background-position: 0% 0%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    -webkit-mask-composite: exclude;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: shine-pulse var(--shine-duration) infinite linear;
    pointer-events: none;
    z-index: 1;
    will-change: background-position;
}

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

.product-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--md-on-primary);
    margin: 0;
    padding: 20px 24px;
    padding-top: 50px;
    letter-spacing: 0.5px;
    text-align: center;
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 70%);
}

.product-price {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    position: absolute !important;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    padding: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--md-on-surface);
    background: var(--md-surface);
    border-radius: 50%;
    z-index: 3;
    box-shadow: var(--md-shadow-3);
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
}

/* Material Contacts Section */
.contacts {
    background: var(--md-background);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    margin-top: 48px;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--md-on-surface);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.contact-item h3 .material-icons {
    font-size: 20px;
    color: var(--md-primary);
}

.contact-item p {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    color: var(--md-on-surface-variant);
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 20px;
    font-weight: 400;
}

.contact-item a {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    color: var(--md-primary);
    text-decoration: none;
    transition: var(--md-transition);
    font-weight: 700;
    font-size: 20px;
}

.contact-item a:hover {
    color: var(--md-primary-dark);
}

.address-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.btn-route {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    background: #FFCC00;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--md-transition);
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.btn-route .material-icons {
    font-size: 16px;
}

.btn-route:hover {
    background: #FFD633;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.contact-note {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--md-on-surface-variant);
    font-style: italic;
    margin-top: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--md-surface-variant);
    color: var(--md-on-surface);
    text-decoration: none;
    border-radius: 50%;
    transition: var(--md-transition);
    box-shadow: var(--md-shadow-1);
}

.social-links a:hover {
    background: var(--md-primary);
    color: var(--md-on-primary);
    box-shadow: var(--md-shadow-2);
    transform: translateY(-2px);
}

.social-links a .material-icons {
    font-size: 20px;
}

.map-container {
    overflow: hidden;
    box-shadow: var(--md-shadow-2);
    border-radius: var(--md-radius);
    border: 1px solid var(--md-divider);
}

.map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.map iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* Material Footer */
.footer {
    background: var(--md-surface);
    padding: 48px 0 24px;
    border-top: 1px solid var(--md-divider);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 64px;
    width: auto;
    flex-shrink: 0;
}

.footer-brand-text h2 {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--md-on-surface);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.footer-brand-text p {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    color: var(--md-on-surface-variant);
    line-height: 1.6;
    font-size: 20px;
    font-weight: 400;
}

.footer-section h3 {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--md-on-surface);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-section h4 {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--md-on-surface);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-section p {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    color: var(--md-on-surface-variant);
    line-height: 1.6;
    font-size: 20px;
    font-weight: 400;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    color: var(--md-on-surface-variant);
    text-decoration: none;
    transition: var(--md-transition);
    font-size: 18px;
    font-weight: 400;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--md-divider);
}

.footer-bottom p {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
    color: var(--md-on-surface-variant);
    font-size: 18px;
    font-weight: 400;
}

/* Material Design Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Dark ripple for light backgrounds */
.header.scrolled .ripple-effect,
.service-card .ripple-effect,
.product-card .ripple-effect {
    background: rgba(33, 150, 243, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine-pulse {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes zoomInFromFar {
    0% {
        opacity: 0;
        transform: scale(0.3) translateZ(0);
    }
    20% {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

@keyframes gentleSway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

.service-card,
.product-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--md-surface);
        flex-direction: column;
        padding: 16px;
        gap: 8px;
        box-shadow: var(--md-shadow-3);
        border-top: 1px solid var(--md-divider);
        border-radius: 0 0 var(--md-radius) var(--md-radius);
    }

    .nav a {
        width: 100%;
        text-align: left;
    }

    .nav-phone {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
    }

    /* На мобильных ссылкам в меню всегда тёмный цвет для читаемости,
       даже пока шапка ещё прозрачная */
    .header:not(.scrolled) .nav a {
        color: var(--md-on-surface);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-phone {
        display: none;
    }

    .hero-title {
        font-size: 48px;
        white-space: normal; /* Разрешаем перенос для всего заголовка */
        word-break: normal;
        hyphens: auto;
    }
    
    .city-name {
        white-space: normal; /* Разрешаем перенос длинных слов на мобильных */
        word-break: keep-all; /* Переносим только по пробелам, не разрывая слова */
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .section-title {
        font-size: 40px;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

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

    .map {
        min-height: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .logo-image,
    .footer-logo {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
        line-height: 1.2;
        word-break: normal;
        hyphens: auto;
    }
    
    .city-name {
        white-space: normal; /* Разрешаем перенос на очень маленьких экранах */
        word-break: keep-all; /* Переносим только по пробелам */
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .section-title {
        font-size: 36px;
    }

    .service-card,
    .product-card {
        padding: 20px;
    }

    .contacts-info {
        gap: 24px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--md-background);
}

::-webkit-scrollbar-thumb {
    background: var(--md-on-surface-variant);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--md-on-surface);
}
