:root {
    --primary-color: #f5f10c;
    --secondary-color: #FA9021;
    --accent-color: #DC7000;
    --dark-color: #02191f;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    padding-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.wrapper {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(26,14,1,0.05) 100%);
    width: 100%;
}

.container, .about-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background-color: var(--primary-color);
    padding: 3px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: var(--transition);
}

.header-spacer {
    height: 50px;
    width: 100%;
}

.desktop-header {
    display: block;
}
.mobile-header {
    display: none;
    width: 100%;
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
}

.mobile-logo-section {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.mobile-logo-section .logo-placeholder {
    width: 32px !important;
    height: 32px !important;
}
.mobile-logo-section .logo-text {
    font-size: 16px !important;
    font-weight: 700;
    white-space: nowrap;
}

.mobile-phone-section {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    padding: 0 5px;
}
.mobile-phone-section .phone {
    color: #333;
    font-weight: 700;
    font-size: 16px !important;
    transition: var(--transition);
    white-space: nowrap;
    display: block;
    width: 100%;
    text-align: center;
}

.mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    flex-shrink: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: var(--transition);
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3px;
    gap: 15px;
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.logo {
    display: flex;
    align-items: center;
}
.logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: #333;
    font-weight: 900;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.logo-text {
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 800;
    color: #333;
}

.header-contacts-section {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
    margin-left: auto;
}

.header-phones-address {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
}

.phone-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    line-height: 1.1 !important;
}
.phone-block:first-child {
     margin-left: 50px;
}
.phone-block:last-child {
    margin-left: 30px;
}

.phone-block .phone {
    color: #333;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    white-space: nowrap;
    display: block;
    text-align: center;
    margin-bottom: 0;
    line-height: 1.1;
}
.phone-block .phone:hover {
    color: var(--secondary-color);
}
.phone-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-top: 0;
    text-align: center;
    width: 100%;
    line-height: 1.1;
}

.address-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 240px;
    text-align: left;
    margin-left: 30px;
}
.address-line {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    text-align: left;
    width: 100%;
    margin-bottom: 2px;
}
.email-hours-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
}
.address-block .email {
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}
.address-block .email:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.work-hours-reception {
    font-size: 13px;
    color: #333;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    margin-top: 0;
    text-align: right !important;
    width: 100%;
    display: block;
}

.logo-link {
    cursor: pointer;
    display: flex;
    align-items: center;
}
.logo-link img {
    transition: var(--transition);
}
.logo-link:hover img {
    transform: scale(1.05);
}

/* ===== PHONE MASKING ===== */
.phone-mask {
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.phone-mask .full-number {
    display: none;
}

.phone-mask.revealed .masked-number {
    display: none;
}

.phone-mask.revealed .full-number {
    display: inline;
}

/* Маскированные номера по умолчанию на десктопе */
@media (min-width: 1025px) {
    .phone-mask .masked-number {
        display: inline;
    }
    .phone-mask .full-number {
        display: none;
    }
    
    /* Для открытых номеров показываем полностью */
    .phone-mask.revealed .masked-number {
        display: none;
    }
    .phone-mask.revealed .full-number {
        display: inline;
    }

    .address-line,
    .email-hours-container {
        display: flex !important;
    }
}

/* На мобильных показываем полностью */


/* ===== NAVIGATION ===== */
.main-nav {
    display: none;
}
.main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    padding: 12px 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 999;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 0;
    margin: 0;
}
.main-nav ul li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    background-color: #FA9021;
    color: #f8f9fa;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(250, 144, 33, 0.2);
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 112, 0, 0.3);
}
.main-nav ul li.nav-discount-item a {
    background-color: #FA9021 !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(250, 144, 33, 0.2) !important;
    animation: pulse 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    min-height: 40px;
}
.main-nav ul li.nav-discount-item a:hover {
    background-color: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 112, 0, 0.3) !important;
}
.main-nav ul li.nav-discount-item .discount-text {
    font-weight: 700;
    font-size: 14px;
}
.main-nav ul li.nav-discount-item .discount-date {
    font-weight: 600;
    font-size: 13px;
    opacity: 0.9;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.main-nav.active ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
    width: 100%;
}
.main-nav.active ul li:nth-child(1) { grid-column: 1; grid-row: 1; }
.main-nav.active ul li:nth-child(2) { grid-column: 2; grid-row: 1; }
.main-nav.active ul li:nth-child(3) { grid-column: 1; grid-row: 2; }
.main-nav.active ul li:nth-child(4) { grid-column: 2; grid-row: 2; }
.main-nav.active ul li:nth-child(5) { grid-column: 1; grid-row: 3; }
.main-nav.active ul li:nth-child(6) { grid-column: 2; grid-row: 3; }
.main-nav.active ul li.nav-discount-item {
    display: none !important;
}
.main-nav.active ul li a {
    width: 100%;
    text-align: center;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 8px;
}
.desktop-only {
    display: none !important;
}

/* ===== HERO ===== */
.hero {
    padding: 40px 0;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}
.hero-info {
    width: 100%;
}
.hero-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
}
.hero-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
    text-align: center;
}
.hero-description {
    font-size: 16px;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
    text-align: center;
}
.hero-image {
    width: 100%;
    text-align: center;
}
.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}
.primary-btn {
    background: var(--secondary-color);
    color: white;
}
.primary-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 112, 0, 0.3);
}

/* ===== SECTIONS ===== */
section {
    padding: 40px 0;
    scroll-margin-top: 100px;
}
.services h2,
.pricing h2,
.additional-services h2,
.certificates h2,
.clients-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 25px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.card-image {
    height: 150px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.service-card:hover .card-image img {
    transform: scale(1.05);
}
.service-card h3 {
    padding: 15px 10px;
    font-size: 18px;
    font-weight: 600;
}

/* ===== PRICING TABLE ===== */
.pricing-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.pricing-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}
.pricing-table th {
    padding: 15px 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    vertical-align: middle;
    background-color: #f8f9fa;
}
.pricing-table .service-name-header {
    text-align: left;
    padding-left: 15px;
}
.pricing-table .best-price-header {
    background-color: var(--primary-color);
    color: #333;
    position: relative;
}
.pricing-table .best-price-header::after {
    content: "🔥 АКЦИЯ";
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--secondary-color);
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 3px;
    font-weight: bold;
}
.pricing-table td {
    padding: 12px 10px;
    text-align: center;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.pricing-table .service-name-cell {
    text-align: left;
    font-weight: 600;
    color: #333;
    padding-left: 15px;
    font-size: 14px;
}
.pricing-table .best-price-cell {
    background-color: rgba(245, 241, 12, 0.2);
    font-weight: 700;
    color: #333;
    font-size: 15px;
}
.pricing-table .regular-price-cell {
    color: #666;
    text-decoration: line-through;
    opacity: 0.8;
    font-size: 14px;
}
.pricing-table .saving {
    display: block;
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 5px;
}
.pricing-footer {
    text-align: center;
    margin-top: 25px;
}
.pricing-note {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== CLIENTS CAROUSEL ===== */
.clients-section {
    background: linear-gradient(rgba(58, 168, 196, 0.05), rgba(58, 168, 196, 0.1));
    padding: 40px 0;
    overflow: hidden;
}
.clients-carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}
.clients-carousel-container {
    overflow: hidden;
    border-radius: var(--border-radius);
    background: white;
    padding: 20px 0;
    box-shadow: var(--box-shadow);
}
.clients-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 0;
    will-change: transform;
}
.client-carousel-item {
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: var(--transition);
    min-height: 120px;
}
.client-carousel-item:hover {
    transform: translateY(-5px);
}
.client-carousel-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: var(--transition);
    filter: grayscale(0%);
    opacity: 1;
}
.client-carousel-item:hover img {
    transform: scale(1.1);
}
.client-carousel-item .client-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    margin-top: 8px;
    transition: var(--transition);
}
.client-carousel-item:hover .client-name {
    color: var(--secondary-color);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.carousel-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}
.carousel-prev {
    left: 0;
}
.carousel-next {
    right: 0;
}
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.carousel-indicator.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}
.carousel-indicator:hover {
    background-color: #bbb;
}

/* ===== REVIEWS & CERTIFICATES ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.review-item {
    text-align: center;
    padding: 15px 10px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    cursor: pointer;
}
.review-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f7fa 0%, #e3f2f7 100%);
    transition: var(--transition);
    border: 2px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.review-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.review-item:hover .review-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.certificates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 300px;
    margin: 0 auto;
}
.certificate-item .review-icon {
    width: 120px;
    height: 120px;
}

/* ===== VIDEO SECTION ===== */
.video-section-main {
    padding: 40px 0;
    background: linear-gradient(rgba(0,0,0,0.03), rgba(0,0,0,0.08));
}
.video-section {
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}
.video-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}
.video-section > p {
    font-size: 15px;
    margin-bottom: 20px;
    color: #666;
    text-align: center;
}
.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    background: #000;
}
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    cursor: pointer;
    filter: brightness(1.1) contrast(1.1);
}
.video-caption {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    padding: 10px 0;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    position: relative;
}
.about-section::before {
    content: "";
    display: block;
    height: 70px;
    margin-top: -70px;
    visibility: hidden;
    pointer-events: none;
}
.about-content {
    padding-top: 10px;
}
.company-info {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
}
.company-info h2 {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}
.company-info p {
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
}
.phone-section {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.phone-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}
.phone-section .phone-large {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 2px;
}
.phone-section .phone-large:hover {
    color: var(--accent-color);
}
.phone-section p {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* ===== CONTACT FORM ===== */
.contact-form-section {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
}
.form-container {
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}
.form-container h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}
.form-container p {
    margin-bottom: 10px;
    font-size: 15px;
    color: #333;
}
.form-container input {
    height: 35px;
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
}
.email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    padding-bottom: 5px;
}
.email-form .btn.primary-btn {
    margin-top: 5px;
    align-self: center;
    width: auto;
    padding: 12px 40px;
    font-size: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-color);
    color: white;
    padding: 30px 0 15px;
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 20px;
    text-align: center;
}
.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 8px;
    font-size: 14px;
}
.footer-section .logo {
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.footer-section .logo-placeholder {
    width: 30px;
    height: 30px;
    font-size: 14px;
}
.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-left: 0;
    padding-left: 0;
}
.footer-phone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 5px;
    text-align: left;
}
.footer-section a.phone {
    font-size: 16px !important;
    font-weight: 600;
    transition: var(--transition);
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
    text-align: left;
}
.footer-section a.phone:hover {
    color: var(--secondary-color);
}
.footer-contacts .phone-label {
    font-size: 12px;
    color: #ccc;
    font-weight: 400;
    margin-top: 0;
    text-align: left;
}
.footer-section a {
    transition: var(--transition);
    font-size: 14px;
}
.footer-section a:hover {
    color: var(--secondary-color);
}
.footer-section p {
    font-size: 14px;
    margin-bottom: 8px;
    color: #ccc;
}
.footer-bottom {
    text-align: center;
    padding-top: 15px;
    font-size: 14px;
}
footer hr {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 20px 0;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    right: 15px;
    bottom: 60px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 98;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}
.back-to-top::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ===== FULLSCREEN VIEW ===== */
.fullscreen-review {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fullscreen-review.active {
    display: flex;
    opacity: 1;
}
.fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.fullscreen-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fullscreen-image-container {
    max-width: 95%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#fullscreenReviewImage,
#fullscreenCertificateImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.image-title {
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}
.image-description {
    color: #ddd;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
    max-width: 90%;
    line-height: 1.4;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}
.fullscreen-controls {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2001;
}
.control-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== ANIMATION ===== */
@keyframes pulse {
    0% { box-shadow: 0 2px 8px rgba(250, 144, 33, 0.3); }
    50% { box-shadow: 0 2px 20px rgba(250, 144, 33, 0.6); }
    100% { box-shadow: 0 2px 8px rgba(250, 144, 33, 0.3); }
}

/* ===== МОБИЛЬНЫЕ УЛУЧШЕНИЯ ===== */





/* ===== MEDIA QUERIES ===== */

/* MOBILE (up to 430px) */
@media (max-width: 430px) {
    .header-spacer { height: 40px; }
    .mobile-header { display: block; }
    .desktop-header { display: none; }
    .address-block { display: none !important; }
    .hero-description { display: none !important; }
    .hero-subtitle { font-size: 12px !important; margin-bottom: 12px; }
    .hero-info h1 { font-size: 18px; margin-bottom: 12px; }
    .hero, section { padding: 20px 0; }
    .clients-section h2, .services h2, .pricing h2, .additional-services h2, .certificates h2 { font-size: 18px; margin-bottom: 12px; }
    .clients-carousel-wrapper { padding: 0 20px; }
    .client-carousel-item { flex: 0 0 50%; min-height: 70px; padding: 4px; }
    .client-carousel-item img { width: 35px; height: 35px; }
    .client-carousel-item .client-name { font-size: 9px; margin-top: 3px; }
    .carousel-btn { width: 28px; height: 28px; font-size: 14px; }
    .carousel-prev { left: -8px; }
    .carousel-next { right: -8px; }
    .services-grid { grid-template-columns: 1fr; gap: 10px; }
    .reviews-grid { grid-template-columns: 1fr; gap: 8px; max-width: 220px; margin: 0 auto; }
    .review-icon { width: 90px; height: 90px; }
    .certificates-grid { max-width: 200px; }
    .pricing-table-container { overflow-x: hidden !important; margin: 0 auto; width: 100%; box-shadow: none; border-radius: 0; }
    .pricing-table { min-width: 100% !important; width: 100% !important; display: block; margin: 0; }
    .pricing-table .regular-price-header, .pricing-table .regular-price-cell { display: none !important; }
    .pricing-table th, .pricing-table td { width: 50% !important; padding: 8px 6px !important; font-size: 12px !important; text-align: center; }
    .pricing-table .service-name-header { text-align: left; padding-left: 12px !important; background-color: #f8f9fa; }
    .pricing-table .best-price-header { background-color: var(--secondary-color); color: white; position: relative; }
    .pricing-table .best-price-header::after { content: "🔥 АКЦИЯ"; position: absolute; top: 2px; right: 2px; background: var(--accent-color); color: white; font-size: 7px; padding: 2px 3px; border-radius: 2px; font-weight: bold; }
    .pricing-table .service-name-cell { text-align: left; padding-left: 12px !important; font-size: 11px !important; }
    .pricing-table .best-price-cell { font-size: 12px !important; }
    .pricing-table .saving { font-size: 9px !important; }
    .pricing { padding: 12px 0 !important; }
    .pricing-footer { margin-top: 10px !important; }
    .pricing-note { font-size: 10px !important; }
    .company-info h2 { font-size: 18px; }
    .company-info p { font-size: 12px; }
    .phone-section { padding: 10px; }
    .phone-section h3 { font-size: 16px; }
    .phone-section .phone-large { font-size: 18px; }
    .form-container h3 { font-size: 17px; }
    .footer-section h4 { font-size: 15px; }
    .footer-section ul li, .footer-section a, .footer-section p { font-size: 12px; }
    .footer-section a.phone { font-size: 14px !important; }
    .footer-contacts .phone-label { font-size: 11px; }
    .main-nav.active ul { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 8px; }
    .main-nav.active ul li a { font-size: 13px; padding: 9px 6px; }
}

/* TABLETS (431px - 768px) */
@media (min-width: 431px) and (max-width: 768px) {
    .header-spacer { height: 45px; }
    .mobile-header { display: block; }
    .desktop-header { display: none; }
    .desktop-only { display: none !important; }
    .main-nav.active ul { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 10px; width: 100%; }
    .main-nav.active ul li:nth-child(1) { grid-column: 1; grid-row: 1; }
    .main-nav.active ul li:nth-child(2) { grid-column: 2; grid-row: 1; }
    .main-nav.active ul li:nth-child(3) { grid-column: 3; grid-row: 1; }
    .main-nav.active ul li:nth-child(4) { grid-column: 1; grid-row: 2; }
    .main-nav.active ul li:nth-child(5) { grid-column: 2; grid-row: 2; }
    .main-nav.active ul li:nth-child(6) { grid-column: 3; grid-row: 2; }
    .main-nav.active ul li.nav-discount-item { display: none !important; }
    .main-nav.active ul li a { padding: 12px 10px; font-size: 15px; background-color: #FA9021 !important; box-shadow: 0 4px 8px rgba(250, 144, 33, 0.2) !important; }
    .hero-description { display: none !important; }
    .hero-subtitle { font-size: 16px !important; margin-bottom: 18px; }
    .hero-info h1 { font-size: 26px; }
    .client-carousel-item { flex: 0 0 33.333%; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .reviews-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 18px !important; }
    .review-item { min-height: 150px !important; padding: 18px 15px !important; }
    .review-icon { width: 110px !important; height: 110px !important; }
    .videos-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 22px !important; }
    .video-container:nth-child(3) { grid-column: 1 / span 2 !important; max-width: 70% !important; margin: 0 auto !important; }
    .video-caption { font-size: 15px !important; padding: 10px 0 !important; font-weight: 700 !important; }
    .certificates-grid { max-width: 400px !important; grid-template-columns: repeat(2, 1fr) !important; gap: 22px !important; }
    .certificate-item .review-icon { width: 130px !important; height: 130px !important; }
    .company-info h2 { font-size: 24px !important; margin-bottom: 15px !important; }
    .company-info p { font-size: 16px !important; line-height: 1.7 !important; }
    .phone-section { padding: 22px !important; margin: 25px 0 !important; }
    .phone-section h3 { font-size: 20px !important; }
    .phone-section .phone-large { font-size: 24px !important; }
    .mobile-phone-section .phone { font-size: 16px !important; }
    .services h2, .pricing h2, .additional-services h2, .certificates h2 { font-size: 26px !important; margin-bottom: 25px !important; }
    .container { padding: 0 22px !important; }
    section { padding: 35px 0 !important; }
    .form-container h3 { font-size: 20px !important; }
    .form-container p { font-size: 16px !important; }
    .footer-section h4 { font-size: 17px !important; }
    .footer-section ul li, .footer-section a, .footer-section p { font-size: 14px !important; }
    .footer-section a.phone { font-size: 16px !important; }

    h2, h3 {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 12px 15px !important;
        border-radius: 8px;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        position: relative;
        z-index: 100;
    }
    
    html {
        scroll-padding-top: 120px;
    }
    
    .hero h1 {
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .main-nav.active {
        position: fixed;
        top: 40px;
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .header-spacer {
        position: relative;
        z-index: 999;
    }
    
    section {
        position: relative;
        z-index: 1;
        margin-top: 10px;
    }
    
    .main-nav.active ~ .hero,
    .main-nav.active ~ section {
        padding-top: 20px !important;
    }

    .footer-contacts {
        align-items: center !important;
        text-align: center !important;
        width: 100%;
    }
    .footer-phone-block {
        align-items: center !important;
        text-align: center !important;
        width: 100%;
    }
    .footer-section a.phone {
        text-align: center !important;
        display: block;
        margin: 0 auto;
    }
}


/* MEDIUM SCREENS (820px - 1280px) */


/* DESKTOP (1281px and above) */
@media (min-width: 1025px) {
    .desktop-only { display: block !important; }
    .header-spacer { height: 55px; }
    .mobile-header { display: none; }
    .desktop-header { display: block; }
    .main-nav { display: block; margin-top: 3px; }
    .main-nav ul { flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; height: auto; display: flex; }
    .main-nav ul li:not(.nav-discount-item) a { padding: 10px 10px; font-size: 15px; white-space: nowrap; background: none !important; color: #333 !important; box-shadow: none !important; display: flex; align-items: center; height: 40px; }
    .main-nav ul li:not(.nav-discount-item) a:hover { color: var(--secondary-color) !important; transform: none !important; }
    .main-nav ul li.nav-discount-item a { background-color: #FA9021 !important; color: white !important; padding: 8px 18px; border-radius: var(--border-radius); font-weight: 700; font-size: 14px; text-align: center; box-shadow: 0 2px 8px rgba(250, 144, 33, 0.3); animation: pulse 2s infinite; display: flex; justify-content: center; align-items: center; gap: 8px; white-space: nowrap; transition: var(--transition); min-height: 40px; min-width: 170px; border: none; }
    .main-nav ul li.nav-discount-item a:hover { background-color: var(--accent-color) !important; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(220, 112, 0, 0.3); }
    .mobile-menu-toggle { display: none; }
    .header-phones-address { flex-wrap: nowrap; gap: 30px; justify-content: flex-end; }
    .phone-block { min-width: 180px;
        line-height: 1 !important; }
    .phone-block:first-child { margin-left: 50px; }
    .phone-block:last-child { margin-left: 30px; }
    .phone-block .phone { font-size: 17px;
        text-align: center;
        line-height: 1 !important; }
    .phone-label { font-size: 13px;
        text-align: center;
        margin-top: 0 !important;
        line-height: 1 !important; }
    .address-block { min-width: 240px; text-align: right; align-items: flex-end; margin-left: auto; }
    .address-line { font-size: 13px; text-align: right; }
    .hero-content { flex-direction: row; text-align: left; gap: 40px; }
    .hero-info { flex: 1; text-align: left; }
    .hero-info h1 { text-align: left; font-size: 36px; }
    .hero-subtitle { font-size: 18px !important; margin-bottom: 20px; text-align: left; }
    .hero-description { display: block !important; font-size: 18px; text-align: left; }
    .hero-image { flex: 1; text-align: center; margin-top: 20px; }
    .services-grid { grid-template-columns: repeat(4, 1fr); }
    .reviews-grid { grid-template-columns: repeat(5, 1fr); }
    .certificates-grid { grid-template-columns: repeat(2, 1fr); max-width: 500px; }
    .videos-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-content { grid-template-columns: repeat(3, 1fr); text-align: left; }
    .footer-section .logo { justify-content: flex-start; }
    .work-hours-reception {
        font-size: 13px !important;
        text-align: right !important;
    }
}

/* Center footer contacts on mobile */


@media (min-width: 769px) and (max-width: 1024px) {
    /* Скрываем адрес и информацию о круглосуточной работе */
    .address-line {
        display: none !important;
    }
    
    /* Скрываем email и время приема заявок */
    .email-hours-container {
        display: none !important;
    }
    
    /* Уменьшаем отступы для компенсации скрытых элементов */
    .header-phones-address {
        gap: 10px !important;
    }
    
    /* Уменьшаем минимальную ширину блоков с телефонами */
    .phone-block {
        min-width: 150px !important;
    }
    
    /* Уменьшаем отступ первого блока с телефоном */
    .phone-block:first-child {
        margin-left: 20px !important;
    }
    
    /* Уменьшаем отступ второго блока с телефоном */
    .phone-block:last-child {
        margin-left: 10px !important;
    }

    .header-spacer { height: 50px; }
    .desktop-header { display: block; }
    .mobile-header { display: none; }
    .desktop-only { display: block !important; }
    .main-nav { display: block; margin-top: 3px; }
    .main-nav ul { flex-direction: row !important; justify-content: space-between !important; align-items: center; gap: 4px !important; flex-wrap: nowrap !important; width: 100%; display: flex !important; }
    .main-nav ul li:not(.nav-discount-item) a { padding: 8px 6px !important; font-size: 13px !important; white-space: nowrap; background: none !important; color: #333 !important; box-shadow: none !important; display: flex; align-items: center; height: 36px; text-align: center; justify-content: center; border-radius: 4px; transition: var(--transition); font-weight: 600; }
    .main-nav ul li:not(.nav-discount-item) a:hover { color: var(--secondary-color) !important; background-color: rgba(250, 144, 33, 0.1) !important; }
    .main-nav ul li.nav-discount-item a { background-color: #FA9021 !important; color: white !important; padding: 6px 12px !important; border-radius: var(--border-radius); font-weight: 700; font-size: 12px !important; text-align: center; box-shadow: 0 2px 6px rgba(250, 144, 33, 0.3); animation: pulse 2s infinite; display: flex; justify-content: center; align-items: center; gap: 6px; white-space: nowrap; transition: var(--transition); min-height: 36px; min-width: 140px; border: none; }
    .main-nav ul li.nav-discount-item a:hover { background-color: var(--accent-color) !important; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(220, 112, 0, 0.3); }
    .mobile-menu-toggle { display: none; }
    .header-phones-address { gap: 20px !important; }
    .phone-block { font-size: 17px !important;
        line-height: 1 !important; }
    .phone-block:first-child { margin-left: 30px !important; }
    .phone-block .phone { font-size: 17px !important; }
    .phone-label { font-size: 11px !important;
        margin-top: 0 !important;
        line-height: 1 !important; }
    .address-block { min-width: 200px !important; }
    .address-line { font-size: 11px !important; }
    .work-hours-text, .work-hours-reception { font-size: 10px !important; text-align: right; font-size: 10px !important;
        text-align: right !important; }
    .hero-description { display: block !important; font-size: 16px !important; margin-bottom: 25px !important; }
    .hero-subtitle { font-size: 16px !important; margin-bottom: 20px !important; }
    .hero-info h1 { font-size: 30px !important; margin-bottom: 15px !important; }
    .hero-content { flex-direction: row; text-align: left; gap: 40px; align-items: flex-start; margin-top: 15px; }
    .hero-info { flex: 1; text-align: left; }
    .hero-image { flex: 1; text-align: center; margin-top: 0; }
    .services-grid { grid-template-columns: repeat(4, 1fr); }
    .reviews-grid { grid-template-columns: repeat(5, 1fr); }
    .certificates-grid { grid-template-columns: repeat(2, 1fr); max-width: 500px; }
    .videos-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-content { grid-template-columns: repeat(3, 1fr); text-align: left; }
    .footer-section .logo { justify-content: flex-start; }
    
    .phone-mask .masked-number {
        display: none;
    }
    .phone-mask .full-number {
        display: inline;
    }
}

