/* Custom Styles for Петербургский Кристалл */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}


.header {
    transition: all 0.3s ease;
    overflow-x: hidden;
}

.header nav {
    overflow-x: hidden;
}

.header nav > div {
    position: relative;
    width: 100%;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.logo:hover {
    text-decoration: none;
}

.logo span {
    white-space: nowrap;
}


.fixed-social-sidebar {
    transition: all 0.3s ease;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
}

.social-sidebar-content {
    border-left: 3px solid #2563eb;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

.social-sidebar-item {
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-sidebar-item:hover {
    text-decoration: none;
}

.social-sidebar-item::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.social-sidebar-item:hover::after {
    border-color: rgba(37, 99, 235, 0.3);
}

.social-sidebar-item:active {
    transform: scale(0.95);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

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

.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero {
    position: relative;
    min-height: 100vh;
}

.hero-title {
    font-size: clamp(1.875rem, 4vw + 1rem, 3.75rem);
}

.hero-background {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    animation: fadeInUp 1s ease;
}

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

.scroll-indicator {
    animation: bounce 2s infinite;
}

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


.services-grid {
    display: block;
}

.service-category {
    margin-bottom: 4rem;
}

.service-category-title {
    position: relative;
}

.service-category-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 2px;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 300px;
}

.services-grid-wrapper {
    display: grid;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}


.services-grid-1 {
    grid-template-columns: minmax(250px, 300px);
}


.services-grid-2 {
    grid-template-columns: repeat(2, minmax(250px, 300px));
}


.services-grid-3 {
    grid-template-columns: repeat(3, minmax(250px, 300px));
}


.services-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
}


@media (max-width: 639px) {
    .services-grid-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .service-card {
        max-width: 100%;
    }
    
    .service-card-image-wrapper {
        min-height: 120px !important;
        height: 120px !important;
    }
    
    .service-card-image {
        max-height: 120px !important;
    }
    
    .service-card-content {
        padding: 0.75rem !important;
    }
    
    .service-card-name {
        font-size: 0.875rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2;
    }
    
    .service-card-description {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        min-height: 32px !important;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .service-card-price {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .service-order-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
    
    .service-order-btn i {
        font-size: 0.75rem !important;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .services-grid-2,
    .services-grid-3 {
        grid-template-columns: repeat(2, minmax(250px, 300px));
    }
    .services-grid-4 {
        grid-template-columns: repeat(2, minmax(250px, 300px));
    }
}


@media (min-width: 1024px) {
    .services-grid-4 {
        grid-template-columns: repeat(4, minmax(250px, 300px));
    }
}

.service-card-image-wrapper {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    overflow: visible;
}

.service-card-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.service-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.25rem;
}

@media (min-width: 640px) {
    .service-card-name {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .service-card-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        min-height: 40px;
    }

    .service-card-price {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-order-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

.service-card-name {
    color: #1f2937;
}

.service-card-description {
    line-height: 1.5;
}

.service-card-price {
    color: #2563eb;
}

.service-order-btn {
    margin-top: auto;
}


.specialists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
}


.specialists-grid.specialists-1 {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.specialists-grid.specialists-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.specialists-grid.specialists-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}

.specialists-grid.specialists-4 {
    grid-template-columns: repeat(4, 1fr);
}


.specialists-grid.specialists-5 .specialist-card:nth-child(5) {
    grid-column: 2 / 3;
}

.specialists-grid.specialists-6 .specialist-card:nth-child(5),
.specialists-grid.specialists-6 .specialist-card:nth-child(6) {
    grid-column: span 1;
}

.specialists-grid.specialists-6 .specialist-card:nth-child(5) {
    grid-column: 1 / 2;
}

.specialists-grid.specialists-6 .specialist-card:nth-child(6) {
    grid-column: 2 / 3;
}


@media (max-width: 1023px) {
    .specialists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specialists-grid.specialists-1 {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 639px) {
    .specialists-grid {
        grid-template-columns: 1fr;
    }
}

.specialist-card {
    transition: transform 0.3s ease;
    padding: 1.5rem;
    max-width: 280px;
    width: 100%;
}

.specialist-card:hover {
    transform: translateY(-5px);
}

.specialist-photo-wrapper a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.specialist-photo {
    width: 10rem;
    height: 10rem;
    transition: transform 0.3s ease;
}

@media (min-width: 1024px) {
    .specialist-photo {
        width: 12rem;
        height: 12rem;
    }
}

.specialist-card:hover .specialist-photo-wrapper a {
    transform: scale(1.05);
}

.specialist-photo-wrapper a:hover {
    transform: scale(1.05);
}


.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


.parallax-section {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}

/* Фоновые текстуры для белых разделов */
.section-with-bg {
    position: relative;
    background-color: #ffffff;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.01) 2px,
            rgba(0, 0, 0, 0.01) 4px
        );
    pointer-events: none;
    z-index: 0;
}

.section-with-bg > * {
    position: relative;
    z-index: 1;
}

.parallax-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}


.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gallery-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    scroll-snap-align: start;
    min-width: 250px;
    max-width: 250px;
}

@media (min-width: 640px) {
    .gallery-item {
        min-width: 280px;
        max-width: 280px;
    }
}

@media (min-width: 1024px) {
    .gallery-item {
        min-width: 300px;
        max-width: 300px;
    }
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}


.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}


.contact-form input,
.contact-form textarea {
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.contact-icon {
    transition: transform 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}


.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.mobile-social-bar {
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
}

.mobile-social-item {
    text-decoration: none;
    min-width: 60px;
    padding: 0.25rem;
    flex: 1;
    max-width: 80px;
}

.mobile-social-item:hover {
    text-decoration: none;
}

.mobile-social-item:active {
    transform: scale(0.95);
}

.mobile-social-item span {
    transition: color 0.3s ease;
    white-space: nowrap;
}

.mobile-social-item div {
    transition: transform 0.3s ease;
}

.mobile-social-item:active div {
    transform: scale(0.9);
}


@media (max-width: 1023px) {
    .fixed-social-sidebar {
        display: none !important;
    }
}



@media (min-width: 1025px) and (max-width: 1536px) {
    .header nav {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .header nav > div {
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        flex-shrink: 0;
        flex-grow: 0;
        margin-right: 1.5rem;
        position: relative;
        z-index: 1;
    }
    
    .logo span {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.25rem !important;
    }
    
    #desktopMenu {
        flex: 1 1 auto;
        min-width: 0;
        gap: 0.25rem !important; 
        justify-content: flex-end;
        position: relative;
        z-index: 1;
        margin-left: 0;
    }
    
    
    #desktopMenu > li {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    #desktopMenu > li:not(:first-child) {
        margin-left: 0.25rem !important;
    }
    
    #desktopMenu .nav-link {
        font-size: 0.9375rem;
        padding: 0.375rem 0.5rem;
        white-space: nowrap;
    }
    
    
    #desktopMenu li a[href="#contacts"] {
        margin-right: 0.5rem !important;
    }
    
    
    #desktopMenu li:nth-last-child(2) {
        margin-left: 0.5rem;
    }
    
    #desktopMenu li:last-child {
        margin-left: 0.75rem;
        padding-left: 0.75rem;
    }
    
    #desktopMenu li:last-child a {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
    }
}


@media (min-width: 1025px) and (max-width: 1280px) {
    .header nav {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .logo {
        flex-shrink: 0;
        flex-grow: 0;
        margin-right: 1rem;
        position: relative;
        z-index: 1;
    }
    
    .logo span {
        font-size: 1.125rem;
    }
    
    .logo i {
        font-size: 1.125rem !important;
    }
    
    #desktopMenu {
        gap: 0.25rem !important;
        margin-left: 0;
    }
    
    
    #desktopMenu > li {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    #desktopMenu > li:not(:first-child) {
        margin-left: 0.25rem !important;
    }
    
    #desktopMenu .nav-link {
        font-size: 0.875rem;
        padding: 0.375rem 0.375rem;
    }
    
    #desktopMenu li a[href="#contacts"] {
        margin-right: 0.5rem !important;
    }
}


@media (max-width: 1280px) {
    .header nav {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

@media (max-width: 1024px) {
    
    .header nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .header nav > div {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    #desktopMenu {
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: flex-end;
        flex: 1;
        min-width: 0;
    }
    
    #desktopMenu li {
        margin: 0;
    }
    
    #desktopMenu .nav-link {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
    }
    
    
    #desktopMenu li a[href="#contacts"] {
        margin-right: 0 !important;
    }
    
    
    #desktopMenu li:nth-last-child(2),
    #desktopMenu li:last-child {
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    #desktopMenu li:nth-last-child(2) {
        text-align: left;
        margin-right: 0;
        margin-left: 0;
    }
    
    #desktopMenu li:last-child {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        gap: 0.5rem;
    }
    
    
    #desktopMenu li:last-child a {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    #desktopMenu li:last-child a i {
        font-size: 0.75rem;
    }
    
    
    #desktopMenu li:nth-last-child(2) .flex {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    #desktopMenu li:nth-last-child(2) a {
        font-size: 0.875rem;
    }
    
    #desktopMenu li:nth-last-child(2) .text-xs {
        font-size: 0.75rem;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .logo {
        flex-shrink: 0;
        margin-right: 1rem;
    }
    
    .logo span {
        font-size: 1.125rem;
    }
    
    #desktopMenu {
        gap: 0.375rem;
        max-width: 100%;
    }
    
    #desktopMenu .nav-link {
        font-size: 0.8125rem;
        padding: 0.25rem 0.375rem;
    }
    
    
    #desktopMenu li a[href="#contacts"] {
        margin-right: 0 !important;
    }
    
    
    #desktopMenu li:last-child {
        gap: 0.375rem;
        flex-wrap: wrap;
    }
    
    #desktopMenu li:last-child a {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        flex-shrink: 0;
    }
    
    #desktopMenu li:last-child a i {
        font-size: 0.625rem;
    }
    
    
    #desktopMenu li:nth-last-child(2) {
        margin-left: 0;
        padding-left: 0;
    }
}


@media (min-width: 769px) and (max-width: 900px) {
    #desktopMenu .nav-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.25rem;
    }
    
    .logo span {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    
    .logo {
        margin-right: 0.75rem;
    }
    
    .logo span {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.75rem;
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
    }
    
    
    section {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-category-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    
    .gallery-item {
        min-width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    
    .parallax-section {
        min-height: 400px !important;
    }
    
    .parallax-content {
        min-height: 400px !important;
        padding: 2rem 1rem !important;
    }
    
    .parallax-content h2 {
        font-size: 1.75rem !important;
    }
    
    .parallax-content p {
        font-size: 1rem !important;
    }
    
    
    .why-important .grid {
        grid-template-columns: 1fr !important;
    }
    
    
    .contact-form {
        padding: 1.5rem !important;
    }
    
    .contact-info {
        margin-top: 2rem;
        text-align: center;
    }
    
    .contact-info h3 {
        text-align: center !important;
    }
    
    .contact-info > div > div {
        justify-content: center !important;
    }
    
    .contact-info > div > div > div {
        text-align: center;
    }
    
    .contact-info .social-links {
        text-align: center;
    }
    
    .contact-info .social-links > div {
        justify-content: center !important;
    }
    
    
    .text-lg {
        font-size: 1rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
    
    
    .parallax-section {
        background-attachment: scroll;
    }
    
    .hero-background {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    
    .logo span {
        font-size: 1.125rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 0.9375rem;
    }
    
    
    section {
        padding: 2rem 0;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    
    .gallery-item {
        min-width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    
    /* Стили для мобильных карточек услуг уже определены выше в @media (max-width: 639px) */
    
    
    .specialist-photo {
        width: 6rem;
        height: 6rem;
    }
    
    
    .review-card {
        margin-bottom: 1rem;
    }
    
    
    .parallax-section {
        min-height: 300px !important;
    }
    
    .parallax-content {
        min-height: 300px !important;
        padding: 1.5rem 1rem !important;
    }
    
    .parallax-content h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .parallax-content p {
        font-size: 0.875rem !important;
    }
    
    
    .why-choose h2 {
        font-size: 1.5rem !important;
    }
    
    .why-choose h2 i {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }
    
    
    .why-important h2 {
        font-size: 1.5rem !important;
    }
    
    
    .contacts h2 {
        font-size: 1.75rem !important;
    }
    
    
    .footer {
        padding: 1.5rem 0 5rem 0; 
        text-align: center;
    }
    
    .footer .flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    
    .mobile-social-bar {
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}


@media (min-width: 481px) and (max-width: 768px) {
    .service-card {
        max-width: 100%;
    }
    
    .why-important .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .contact-form,
    .contact-info {
        margin-bottom: 2rem;
    }
}


.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}


html {
    scroll-padding-top: 80px;
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}


@media (hover: none) and (pointer: coarse) {
    
    .btn-primary,
    .btn-secondary,
    .service-order-btn,
    .nav-link {
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
    }
    
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.95);
    }
}


@media screen and (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    input,
    textarea,
    select {
        font-size: 16px !important; 
    }
}


@media print {
    .header,
    .footer,
    .contact-form,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
}

