/* ============================================
   PORKASKAVRN — Main Stylesheet
   Light theme: White / Orange / Dark Grey
   ============================================ */

/* --- Variables --- */
:root {
    --color-primary: #FF6B00;
    --color-primary-dark: #E05A00;
    --color-primary-light: #FF8C3A;
    --color-bg: #FFFFFF;
    --color-bg-light: #F7F7F7;
    --color-bg-dark: #1E1E1E;
    --color-text: #2D2D2D;
    --color-text-muted: #6B6B6B;
    --color-text-light: #999999;
    --color-border: #E5E5E5;
    --color-success: #28A745;
    --color-error: #DC3545;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --transition: 0.2s ease;
    --container-width: 1200px;
    --header-height: 70px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
address { font-style: normal; }
svg { display: block; }

.icon-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,107,0,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}
.btn-white {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--color-bg-light);
}
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; display: flex; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-height);
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}
.main-nav {
    flex: 1;
    min-width: 0;
}
.main-nav ul {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
}
.main-nav a {
    padding: 8px 14px;
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition);
    font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    background: rgba(255,107,0,0.08);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}
.header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.header-phone {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    transition: color var(--transition);
}
.header-phone:hover { color: var(--color-primary); }
.vk-logo {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.vk-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}
.vk-link--header {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: #fff;
    color: #0077FF;
}
.vk-link--header:hover {
    background: rgba(0,119,255,0.08);
    border-color: rgba(0,119,255,0.22);
    transform: translateY(-1px);
}
.vk-link--footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 600;
}
.vk-link--footer:hover {
    background: rgba(0,119,255,0.18);
    border-color: rgba(0,119,255,0.34);
}
.vk-link__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    background: #0077FF;
    color: #fff;
}
.vk-link__icon--plain {
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
}
.vk-link__icon .vk-logo {
    width: 100%;
    height: 100%;
}
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 60%, #3a2200 100%);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/static/img/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.18;
}
.hero-inner { position: relative; z-index: 1; padding: 80px 0; }
.hero-content { max-width: 640px; }
.hero-title {
    color: #fff;
    margin-bottom: 20px;
}
.hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.badge {
    display: flex;
    flex-direction: column;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}
.badge span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}
.hero-price {
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; }
.section.bg-light { background: var(--color-bg-light); }
.section.bg-orange { background: var(--color-primary); }
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-top: 12px;
}
.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* Page hero (inner pages) */
.page-hero {
    background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 100%);
    padding: 60px 0 48px;
    color: #fff;
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.75); margin: 0; }

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.services-grid--full {
    grid-template-columns: repeat(3, 1fr);
}
.service-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--color-primary);
}
.service-card-img {
    height: 180px;
    overflow: hidden;
    background: var(--color-bg-light);
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F0F0;
}
.service-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-card-body h3 { font-size: 1rem; }
.service-card-body p { color: var(--color-text-muted); font-size: 0.9rem; flex: 1; }
.service-price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-top: auto;
}

/* ============================================
   WHY SECTION
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.why-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
}
.why-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}
.why-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(255,107,0,0.08);
    color: var(--color-primary);
}
.why-icon svg {
    width: 26px;
    height: 26px;
}
.why-card h3 { margin-bottom: 8px; }
.why-card p { color: var(--color-text-muted); font-size: 0.9rem; }

/* ============================================
   PORTFOLIO GRID
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.portfolio-grid--full {
    grid-template-columns: repeat(3, 1fr);
}
.portfolio-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.portfolio-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.portfolio-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.portfolio-card-body h3 { font-size: 1rem; }
.portfolio-card-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Before/After container (homepage preview) */
.before-after-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 220px;
    overflow: hidden;
}
.before-img, .after-img {
    position: relative;
    overflow: hidden;
}
.before-img img, .after-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.portfolio-card:hover .before-img img,
.portfolio-card:hover .after-img img { transform: scale(1.05); }
.img-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.img-label--top { top: 8px; bottom: auto; }
.img-label--after { background: var(--color-primary); }

/* Before/After Slider */
.before-after-slider {
    position: relative;
    height: 240px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
}
.ba-before, .ba-after {
    position: absolute;
    inset: 0;
}
.ba-before img, .ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.ba-before { z-index: 1; }
.ba-after {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.05s linear;
}
.ba-label {
    position: absolute;
    top: 8px;
    z-index: 3;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.ba-before .ba-label { left: 8px; }
.ba-after .ba-label {
    right: 8px;
    background: var(--color-primary);
}
.ba-label--after { background: var(--color-primary) !important; }
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.ba-handle-line {
    flex: 1;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}
.ba-handle-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.review-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.review-card--full { margin-bottom: 0; }
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.review-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.review-name { display: block; font-weight: 600; }
.review-date { font-size: 0.8rem; color: var(--color-text-muted); }
.review-rating { flex-shrink: 0; }
.star { color: #DDD; font-size: 1.1rem; }
.star--filled { color: #FFB800; }
.stars { color: #FFB800; letter-spacing: 1px; }
.review-text { color: var(--color-text); font-size: 0.95rem; line-height: 1.65; }

/* Reviews layout (full page) */
.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}
.rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.rating-stars { color: #FFB800; font-size: 1.5rem; }
.rating-value { font-weight: 700; font-size: 1.2rem; }
.rating-count { color: rgba(255,255,255,0.7); }

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--color-text);
}
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background: #fff;
    transition: border-color var(--transition);
    -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-file {
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
}
.form-file:hover { border-color: var(--color-primary); }
.field-error { color: var(--color-error); font-size: 0.82rem; display: block; margin-top: 4px; }
.field-hint { color: var(--color-text-muted); font-size: 0.82rem; display: block; margin-top: 4px; }
.form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 16px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.form-success svg {
    flex-shrink: 0;
    margin-top: 1px;
}
.form-error-msg {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 16px;
}
.form-privacy {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 10px;
}

.form-privacy a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}
.form-privacy a:hover {
    color: var(--color-primary-dark);
}

.legal-section {
    background: var(--color-bg-light);
}
.legal-card {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 40px;
    box-shadow: var(--shadow);
}
.legal-card h2 {
    font-size: 1.2rem;
    margin: 28px 0 12px;
}
.legal-card ul {
    list-style: disc;
    padding-left: 22px;
    margin: 0 0 14px;
}
.legal-card li {
    margin-bottom: 8px;
}
.legal-card a {
    color: var(--color-primary);
}
.legal-card a:hover {
    color: var(--color-primary-dark);
}
.footer-bottom-links {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-bottom-links a {
    color: rgba(255,255,255,0.6);
}
.footer-bottom-links a:hover {
    color: var(--color-primary);
}

/* ============================================
   SIDEBAR CARDS
   ============================================ */
.sidebar-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.sidebar-card h3 { margin-bottom: 8px; }
.sidebar-card h4 { margin-bottom: 12px; color: var(--color-text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-card p { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 16px; }
.related-list li { border-bottom: 1px solid var(--color-border); }
.related-list li:last-child { border-bottom: none; }
.related-list a { display: block; padding: 10px 0; font-size: 0.9rem; color: var(--color-text); transition: color var(--transition); }
.related-list a:hover { color: var(--color-primary); }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span:last-child { color: rgba(255,255,255,0.9); }

/* ============================================
   CATEGORY TABS
   ============================================ */
.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.tab-btn {
    padding: 8px 20px;
    border-radius: 40px;
    border: 2px solid var(--color-border);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition);
    cursor: pointer;
    background: #fff;
}
.tab-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tab-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ============================================
   CATEGORY BADGE
   ============================================ */
.category-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255,107,0,0.1);
    color: var(--color-primary);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}
.category-badge--hero {
    background: rgba(255,107,0,0.2);
    color: #FF8C3A;
}

/* ============================================
   CONTACTS PAGE
   ============================================ */
.contacts-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 48px;
    align-items: start;
}
.contact-block {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.contact-block__title {
    margin: 0;
}
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 32px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    padding: 18px 0;
}
.contact-item + .contact-item {
    border-top: 1px solid var(--color-border);
}
.contact-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,107,0,0.08);
    color: var(--color-primary);
}
.contact-icon svg {
    width: 22px;
    height: 22px;
}
.contact-icon--brand {
    background: #0077FF;
    color: #fff;
}
.contact-icon--brand .vk-logo {
    width: 20px;
    height: 20px;
}
.contact-item__content {
    min-width: 0;
    padding-top: 2px;
}
.contact-item strong {
    display: block;
    margin-bottom: 6px;
}
.contact-item p {
    color: var(--color-text-muted);
    margin: 0;
    overflow-wrap: anywhere;
}
.contact-item a {
    color: var(--color-primary);
    font-weight: 600;
}
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.contact-link:hover {
    color: var(--color-primary-dark);
}
.yandex-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); margin-top: 16px; }

/* ============================================
   CALCULATOR
   ============================================ */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
.calc-step { margin-bottom: 28px; }
.calc-label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--color-text);
}
.calc-select { max-width: 100%; }
.rules-list { display: flex; flex-direction: column; gap: 8px; }
.rule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    gap: 12px;
}
.rule-item:hover { border-color: var(--color-primary); background: rgba(255,107,0,0.03); }
.rule-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-primary); flex-shrink: 0; cursor: pointer; }
.rule-label { flex: 1; font-size: 0.95rem; }
.rule-price { font-weight: 700; color: var(--color-primary); font-size: 0.9rem; white-space: nowrap; }
.calc-loading { display: flex; align-items: center; gap: 12px; padding: 20px 0; color: var(--color-text-muted); }
.calc-error { color: var(--color-error); font-size: 0.9rem; }
.calc-result {
    background: #fff;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 12px;
}
.result-header { margin-bottom: 16px; }
.result-items { margin-bottom: 16px; }
.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    gap: 16px;
}
.result-item:last-child { border-bottom: none; }
.result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid var(--color-border);
    font-weight: 700;
    font-size: 1.05rem;
}
.result-price-value { color: var(--color-primary); font-size: 1.3rem; }
.result-note { font-size: 0.8rem; color: var(--color-text-muted); margin: 12px 0 16px; }
.info-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.info-card h3 { margin-bottom: 12px; }
.info-card ol { padding-left: 20px; color: var(--color-text-muted); }
.info-card li { margin-bottom: 8px; font-size: 0.9rem; }

/* ============================================
   SERVICE DETAIL
   ============================================ */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
.service-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    max-height: 400px;
}
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.service-description { color: var(--color-text); line-height: 1.8; margin-bottom: 32px; }
.price-table h2 { margin-bottom: 16px; }
.price-table table { width: 100%; border-collapse: collapse; }
.price-table th {
    background: var(--color-bg-light);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--color-border);
}
.price-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}
.price-cell { font-weight: 700; color: var(--color-primary); white-space: nowrap; }

/* ============================================
   WORK DETAIL
   ============================================ */
.work-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}
.work-before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.work-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.work-img-wrap img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-top: 12px;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h2 { margin-bottom: 16px; }
.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--color-text-muted); }
.about-image { border-radius: var(--radius-lg); overflow: hidden; }
.about-image img { width: 100%; height: 400px; object-fit: cover; }
.hours-table { max-width: 400px; margin-bottom: 32px; }
.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row span:last-child { font-weight: 700; color: var(--color-primary); }
.about-address { margin-top: 32px; }
.about-address h3 { margin-bottom: 8px; }
.about-address p { color: var(--color-text-muted); margin-bottom: 16px; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 100%); }
.cta-inner { text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1E1E1E;
    color: rgba(255,255,255,0.7);
    padding-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { font-size: 1.4rem; font-weight: 800; color: var(--color-primary); margin-bottom: 12px; }
.footer-desc { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-primary); }
.footer-col address p { margin-bottom: 6px; font-size: 0.9rem; }
.footer-vk {
    align-self: flex-start;
}
.footer-vk span:last-child {
    color: #fff;
}
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   FLOATING CONTACT WIDGET
   ============================================ */
.floating-contact {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.floating-contact-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.floating-contact-item {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow:
        0 14px 32px rgba(17, 24, 39, 0.18),
        0 4px 12px rgba(17, 24, 39, 0.10);
    opacity: 0;
    transform: translateY(18px) scale(0.85) rotate(-10deg);
    transition:
        opacity 0.28s ease,
        transform 0.34s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.24s ease;
    will-change: transform, opacity;
}

.floating-contact-item:hover {
    transform: translateY(0) scale(1.06);
    box-shadow:
        0 18px 38px rgba(17, 24, 39, 0.22),
        0 6px 16px rgba(17, 24, 39, 0.12);
}

.floating-contact.is-open .floating-contact-menu {
    pointer-events: auto;
}

.floating-contact.is-open .floating-contact-item {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
}

.floating-contact.is-open .floating-contact-item:nth-child(1) {
    transition-delay: 0.03s;
}
.floating-contact.is-open .floating-contact-item:nth-child(2) {
    transition-delay: 0.07s;
}
.floating-contact.is-open .floating-contact-item:nth-child(3) {
    transition-delay: 0.11s;
}

.floating-contact-item--max {
    background: linear-gradient(135deg, #3daef5 0%, #6c3df4 55%, #b54be9 100%);
}

.floating-contact-item--phone {
    background: linear-gradient(135deg, #111111 0%, #000000 100%);
}

.floating-contact-item--telegram {
    background: linear-gradient(135deg, #45b9ff 0%, #229ed9 100%);
}

.floating-contact-item img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.floating-contact-trigger {
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 18px 40px rgba(17, 24, 39, 0.16),
        0 6px 16px rgba(255, 107, 0, 0.16);
    position: relative;
    transition:
        transform 0.34s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.24s ease,
        color 0.24s ease;
    animation: floating-contact-pulse 2.8s infinite;
}

.floating-contact-trigger::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,107,0,1), rgba(255,152,64,0.85));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

.floating-contact-trigger:hover {
    transform: scale(1.06);
    box-shadow:
        0 22px 48px rgba(17, 24, 39, 0.2),
        0 8px 20px rgba(255, 107, 0, 0.22);
}

.floating-contact.is-open .floating-contact-trigger {
    transform: rotate(180deg);
    animation: none;
}

.floating-contact-trigger__icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.24s ease,
        transform 0.34s cubic-bezier(.2,.8,.2,1);
}

.floating-contact-trigger__icon--phone {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.floating-contact-trigger__icon--close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

.floating-contact.is-open .floating-contact-trigger__icon--phone {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

.floating-contact.is-open .floating-contact-trigger__icon--close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

@keyframes floating-contact-pulse {
    0%, 100% {
        box-shadow:
            0 18px 40px rgba(17, 24, 39, 0.16),
            0 6px 16px rgba(255, 107, 0, 0.16);
    }
    50% {
        box-shadow:
            0 22px 46px rgba(17, 24, 39, 0.22),
            0 8px 24px rgba(255, 107, 0, 0.24);
    }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}
.page-btn {
    padding: 10px 22px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-weight: 600;
    transition: all var(--transition);
    color: var(--color-text);
    background: #fff;
}
.page-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-current { color: var(--color-text-muted); font-size: 0.9rem; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 2000;
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    z-index: 2002;
}
.lightbox-close:hover { opacity: 1; color: var(--color-primary); }
.lightbox-prev, .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    padding: 16px 14px;
    border-radius: var(--radius);
    z-index: 2002;
    opacity: 0.8;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; background: rgba(255,107,0,0.4); }
.lightbox-content { max-width: 1000px; width: 100%; }
.lightbox-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.lightbox-img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; }
.lightbox-img-wrap img { width: 100%; max-height: 500px; object-fit: cover; }
.lightbox-info { text-align: center; color: #fff; }
.lightbox-info h3 { margin-bottom: 4px; }
.lightbox-info p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* ============================================
   SPINNER
   ============================================ */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   ERROR PAGES
   ============================================ */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-inner { text-align: center; }
.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.error-code svg {
    width: 96px;
    height: 96px;
}
.error-inner h2 { margin-bottom: 12px; }
.error-inner p { color: var(--color-text-muted); margin-bottom: 28px; }

/* ============================================
   UTILITIES
   ============================================ */
.empty-state { text-align: center; color: var(--color-text-muted); padding: 40px 0; font-size: 1rem; }

@media (max-width: 992px) {
    .header-inner {
        gap: 16px;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        padding: 16px 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
        z-index: 999;
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .header-actions {
        gap: 10px;
    }

    .header-vk {
        width: 40px;
        height: 40px;
        padding: 9px;
    }

    .burger {
        display: flex;
    }
}

/* ============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .service-detail-grid { grid-template-columns: 1fr; }
    .work-detail-grid { grid-template-columns: 1fr; }
    .contacts-layout { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { display: none; }
    .calculator-wrapper { grid-template-columns: 1fr; }
    .reviews-layout { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
    :root { --header-height: 60px; }
    .section { padding: 48px 0; }

    .header-inner {
        gap: 12px;
    }

    .main-nav {
        padding: 14px 16px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-vk {
        width: 38px;
        height: 38px;
        padding: 8px;
    }

    .vk-link--footer {
        padding: 8px 12px;
    }

    .vk-link__icon {
        width: 22px;
        height: 22px;
    }

    .hero { min-height: 420px; }
    .hero-inner { padding: 48px 0; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-badges { gap: 16px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .services-grid--full { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-grid--full { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }

    .work-before-after { grid-template-columns: 1fr; }
    .work-img-wrap img { height: 220px; }
    .about-stats { flex-direction: row; gap: 20px; }
    .footer-inner { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; align-items: center; }

    .btn,
    .vk-link,
    .floating-contact-item,
    .floating-contact-trigger {
        touch-action: manipulation;
    }

    .contact-item {
        align-items: flex-start;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
    }

    .lightbox-images { grid-template-columns: 1fr; }
    .lightbox-prev, .lightbox-next { display: none; }

    .floating-contact {
        right: 16px;
        bottom: 20px;
    }

    .floating-contact-trigger {
        width: 56px;
        height: 56px;
    }

    .floating-contact-item {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero-badges { display: none; }
    .before-after-container { height: 160px; }
}

/* ============================================
   VISUAL CAR CALCULATOR
   ============================================ */

.calc-page {
    padding-top: 64px;
}

.car-point:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(255, 107, 0, 0.38);
}

.calc-layout{
display:grid;
grid-template-columns: 1fr 360px;
gap:60px;
align-items:start;
}

.calc-visual-header {
    max-width: 760px;
    margin-bottom: 24px;
}

.calc-visual-header h2 {
    margin-bottom: 10px;
}

.calc-visual-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.car-area{
position:relative;
max-width:900px;
margin:0 auto;
display:flex;
justify-content:center;
}

.car-image{
width:100%;
max-width:900px;
display:block;
}

.car-point {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    z-index: 3;
}

.car-point span {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-1px);
}

.car-point:hover,
.car-point.is-active {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(255, 107, 0, 0.35);
}

.car-point.is-added {
    background: var(--color-primary-dark);
}

.point-card {
    position: absolute;
    min-width: 250px;
    max-width: 280px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    padding: 16px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 18px)) scale(0.96);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.point-card.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, calc(-100% - 18px)) scale(1);
}

.point-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    transform: translateX(-50%) rotate(45deg);
}

.point-card-body h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.point-card-price {
    color: var(--color-text-muted);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.point-card-price span {
    color: var(--color-primary);
    font-weight: 700;
}

.point-card-btn {
    width: 100%;
}

.calc-cart {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.calc-cart-header h3 {
    margin-bottom: 8px;
}

.calc-cart-header p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.calc-cart-box {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-light);
}

.calc-cart-empty {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.calc-cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-cart-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.calc-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.calc-cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calc-cart-item-name {
    font-weight: 600;
    line-height: 1.4;
}

.calc-cart-item-price {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.calc-cart-remove {
    flex-shrink: 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color var(--transition);
}

.calc-cart-remove:hover {
    color: var(--color-primary);
}

.calc-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid var(--color-border);
    font-size: 1rem;
}

.calc-cart-total strong {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.calc-cart-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.calc-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .calc-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .calc-cart {
        position: static;
    }

    .car-area {
        max-width: 760px;
    }
}

@media (max-width: 768px) {
    .calc-page {
        padding-top: 40px;
    }

    .car-point {
        width: 30px;
        height: 30px;
    }

    .car-point span {
        font-size: 18px;
    }

    .point-card {
        min-width: 220px;
        max-width: 240px;
        padding: 14px;
    }

    .calc-cart {
        padding: 20px;
    }
}

/* ============================================
   FLOATING CONTACT WIDGET
   ============================================ */
.floating-contact {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.floating-contact__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}
.floating-contact__item {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    transform: translateY(18px) scale(0.72) rotate(-18deg);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(.22,1,.36,1), opacity 0.28s ease, box-shadow 0.28s ease;
    will-change: transform, opacity;
}
.floating-contact__item:hover {
    transform: translateY(0) scale(1.04);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.22);
}
.floating-contact__item--max {
    background: linear-gradient(135deg, #ff7f22 0%, #ff6b00 100%);
}
.floating-contact__item--phone {
    background: linear-gradient(135deg, #171717 0%, #050505 100%);
}
.floating-contact__item--telegram {
    background: linear-gradient(135deg, #50bfff 0%, #229ed9 100%);
}
.floating-contact__badge {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.floating-contact__toggle {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.28s ease;
}
.floating-contact__toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.2);
}
.floating-contact__toggle-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}
.floating-contact__toggle::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.65) 55%, rgba(255,255,255,0.25) 100%);
    z-index: -1;
}
.floating-contact__toggle-icon {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.55s cubic-bezier(.22,1,.36,1), opacity 0.24s ease;
    transform-origin: 50% 50%;
}
.floating-contact__toggle-icon--phone {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.floating-contact__toggle-icon--close {
    opacity: 0;
    transform: rotate(-135deg) scale(0.35);
}
.floating-contact.is-open .floating-contact__menu {
    pointer-events: auto;
}
.floating-contact.is-open .floating-contact__item {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
}
.floating-contact.is-open .floating-contact__item:nth-child(1) { transition-delay: 0.03s; }
.floating-contact.is-open .floating-contact__item:nth-child(2) { transition-delay: 0.08s; }
.floating-contact.is-open .floating-contact__item:nth-child(3) { transition-delay: 0.13s; }
.floating-contact.is-open .floating-contact__toggle {
    transform: rotate(180deg);
}
.floating-contact.is-open .floating-contact__toggle-icon--phone {
    opacity: 0;
    transform: rotate(140deg) scale(0.3);
}
.floating-contact.is-open .floating-contact__toggle-icon--close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

@media (max-width: 767px) {
    .floating-contact {
        right: 16px;
        bottom: 16px;
        gap: 12px;
    }
    .floating-contact__item {
        width: 54px;
        height: 54px;
    }
    .floating-contact__toggle {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 768px) {
    .legal-card {
        padding: 24px 18px;
        border-radius: 14px;
    }
}
