/* Design System */
:root {
    --primary: #0EA5E9;
    --primary-foreground: #FFFFFF;
    --secondary: #F1F5F9;
    --secondary-foreground: #0F172A;
    --accent: #F1F5F9;
    --accent-foreground: #0F172A;
    --background: #FFFFFF;
    --foreground: #0F172A;
    --muted: #F1F5F9;
    --muted-foreground: #64748B;
    --border: #E2E8F0;
    --card: #FFFFFF;
    --card-foreground: #0F172A;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif;
    --hero-gradient: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-sm {
    max-width: 768px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--primary);
    width: 2rem;
    height: 2rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nav {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vk-link svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #4C75A3;
}

.btn-call {
    display: none;
    background: var(--hero-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .btn-call {
        display: block;
    }
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 45;
    padding: 1rem;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    padding: 0.75rem;
    font-weight: 500;
    border-radius: 0.5rem;
}

.mobile-nav a:hover {
    background: var(--secondary);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-vk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #4C75A3;
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.btn-vk svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

/* Max Messenger */
.max-link {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: opacity 0.2s ease;
}

.max-link:hover {
    opacity: 0.85;
}

.btn-max {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #7B61FF;
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.btn-max:hover {
    opacity: 0.9;
    color: white;
}

.mini-icon-max {
    background: rgba(123, 97, 255, 0.2);
}

.mini-contact-item:hover .mini-icon-max {
    background: #7B61FF;
}

.btn-tg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #26A5E4;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.btn-tg:hover {
    opacity: 0.9;
    color: white;
}

.hero-btns-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-btns-row {
        flex-direction: row;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text-block {
    max-width: 42rem;
    animation: fadeInUp 0.8s ease-out;
}

.badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 32rem;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-btns {
        flex-direction: row;
    }
}

.btn-primary {
    background: var(--hero-gradient);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-mini-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.mini-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.mini-contact-item:hover {
    color: white;
}

.mini-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mini-contact-item:hover .mini-icon {
    transform: scale(1.1);
    border-color: transparent;
}

.mini-icon-vk svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.mini-contact-item:hover .mini-icon-vk {
    background: #4C75A3;
}

.mini-icon-phone svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mini-contact-item:hover .mini-icon-phone {
    background: var(--primary);
}

.mini-text {
    display: flex;
    flex-direction: column;
}

.mini-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.mini-val {
    font-size: 0.875rem;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* Benefits */
.benefits {
    padding: 5rem 0;
    background: #f8fafc;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1 1 200px;
    max-width: 250px;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Gallery / Before & After */
.gallery {
    padding: 5rem 0;
    overflow: hidden;
}

.gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 1.5rem;
    /* Space for scrollbar */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--primary) transparent;
}

.gallery-grid::-webkit-scrollbar {
    height: 8px;
    /* Chrome/Safari */
}

.gallery-grid::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius);
}

.gallery-item {
    flex: 0 0 auto;
    width: 85vw;
    max-width: 400px;
    scroll-snap-align: center;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--card);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: contain;
    background-color: var(--muted);
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Services */
.services {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-img {
    height: 256px;
    background: #f8fafc;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted-foreground);
}

/* About */
.about {
    padding: 5rem 0;
    background: #f8fafc;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-img {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f8fafc;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #475569;
}

.about-list {
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-list li i {
    color: #10B981;
}

/* Prices */
.prices {
    padding: 5rem 0;
}

.prices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .prices-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.price-box {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.price-header {
    padding: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: white;
}

.main-price-header {
    background: #0EA5E9;
}

.extra-price-header {
    background: #64748B;
}

.price-body {
    padding: 1rem;
    flex-grow: 1;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item span {
    color: #475569;
    font-size: 0.9375rem;
    text-align: left;
}

.price-item b {
    color: var(--foreground);
    white-space: nowrap;
    margin-left: 1rem;
}

.price-footer {
    padding: 1rem;
    background: #f8fafc;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    border-top: 1px solid var(--border);
}

.text-center {
    text-align: center;
}

/* Reviews */
.reviews {
    padding: 5rem 0;
    background: #f8fafc;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.review-meta h4 {
    font-size: 1.25rem;
    font-family: var(--font-sans);
    font-weight: 700;
}

.review-meta .date {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.stars {
    display: flex;
    gap: 2px;
}

.star-filled {
    width: 1rem;
    height: 1rem;
    fill: #F59E0B;
    color: #F59E0B;
}

.review-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.review-text {
    line-height: 1.6;
    color: #475569;
}

/* Why Us */
.why-us {
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-num span {
    font-size: 1.5rem;
}

.stat-card p {
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Contacts */
.contacts {
    padding: 5rem 0;
    background: #f8fafc;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--hero-gradient);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .contact-details {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.detail-icon {
    width: 3rem;
    height: 3rem;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
}

.detail-text a,
.detail-text p {
    font-weight: 700;
    font-size: 1.125rem;
}

.map-wrapper {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    background: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-contacts {
    display: flex;
    gap: 2rem;
    font-weight: 600;
}

.footer-vk-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: #4C75A3;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.copyright {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}