/* 
   Cingol Redesign - Premium Design System
   Focus: Medical Technology, Trust, Innovation
*/

:root {
    /* Color Palette */
    --color-primary: #008080;
    /* Medical Teal */
    --color-primary-dark: #004D4D;
    --color-accent: #FF9415;
    /* Secondary brand color */
    --color-bg-light: #F8FAFB;
    --color-text-main: #1A2E44;
    /* Premium Navy */
    --color-text-muted: #5A7184;
    --color-white: #FFFFFF;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --glass-blur: blur(12px);

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-headings: 'Outfit', sans-serif;
}

/* Base Styles */
body {
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

html {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

#allrecords {
    width: 100%;
    overflow-x: hidden !important;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
.t-title,
.t-heading {
    font-family: var(--font-headings) !important;
    font-weight: 700 !important;
}

/* Glassmorphism Utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Custom Buttons Re-styling */
.custom-btn-premium {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 16px 32px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: none !important;
}

.custom-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.3) !important;
}

/* Catalog Product Cards */
.js-product {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease !important;
    border-radius: 20px;
    overflow: visible;
    /* Allow box-shadow to be visible */
    background: white;
    margin-bottom: 30px;
}

.js-product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.t754__imgwrapper {
    transition: transform 0.6s ease !important;
}

.js-product:hover .t754__imgwrapper {
    transform: scale(1.05);
}

.t754__title {
    margin-top: 15px !important;
    color: var(--color-text-main) !important;
    font-size: 1.4rem !important;
}

.t754__price {
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

.t754__buttons {
    margin-top: 20px !important;
}

/* Hero Section Improvements */
.t-cover__filter {
    background-image: linear-gradient(135deg, rgba(0, 77, 77, 0.7) 0%, rgba(0, 128, 128, 0.8) 100%) !important;
}

.t182__title {
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.t182__descr {
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Cards Enhancement */
.t490__img {
    filter: drop-shadow(0 4px 12px rgba(0, 128, 128, 0.2));
    transition: transform 0.3s ease;
}

.t-item:hover .t490__img {
    transform: scale(1.1) rotate(5deg);
}

.t-card__title {
    color: var(--color-text-main) !important;
}

/* Form Improvements */
input.t-input:not(.glass-form-container .t-input) {
    border-radius: 8px !important;
    border: 2px solid #e0e0e0 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.t-input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1) !important;
    outline: none !important;
}

/* Dealer Section Enhancement */
.t165 {
    position: relative;
}

.t165__text {
    line-height: 1.8 !important;
}

/* Capture Form Premium Styling */
.glass-form-container {
    padding: 60px 0 !important;
}

.glass-form-container .t-cover__filter {
    background-image: linear-gradient(135deg, rgba(0, 77, 77, 0.8) 0%, rgba(26, 46, 68, 0.9) 100%) !important;
    backdrop-filter: blur(8px);
}

.glass-form-container input.t-input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    border-radius: 12px !important;
    height: 60px !important;
    font-size: 18px !important;
    padding: 0 25px !important;
}

.glass-form-container .t-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.glass-form-container .t-submit {
    background: var(--color-accent) !important;
    color: white !important;
    border-radius: 12px !important;
    height: 60px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 15px 30px rgba(255, 148, 21, 0.3) !important;
    transition: all 0.3s ease !important;
}

.glass-form-container .t-submit:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 20px 40px rgba(255, 148, 21, 0.4) !important;
}

.glass-form-container .t-checkbox__indicator {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.glass-form-container .t-checkbox__labeltext {
    color: rgba(255, 255, 255, 0.8) !important;
}

.glass-form-container .t-input-group_cb {
    text-align: left !important;
    max-width: 560px !important;
    margin: 10px auto 0 !important;
    padding-left: 20px !important;
    /* Compensate for flex-row gutter or centering difference */
    box-sizing: border-box !important;
}

.glass-form-container .t-checkbox__control {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Padding reset removed to allow default alignment */

/* Hide Tilda Country Selector for cleaner look */
.glass-form-container .t-input-phonemask__select {
    display: none !important;
}

.glass-form-container .t-input-phonemask__input {
    padding-left: 20px !important;
}

/* ==================== FOOTER SECTION ==================== */
.footer,
.footer * {
    box-sizing: border-box;
}

.footer {
    background: linear-gradient(135deg, #004D4D 0%, #008080 100%);
    color: var(--color-white);
    padding: 60px 0 30px;
    margin-top: 80px;
    width: 100%;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Full Width Map Section */
.footer__map-section {
    margin-bottom: 50px;
}

.footer__map-title {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-white);
}

.footer__map-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.footer__map-link {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 10;
    transition: background 0.3s ease;
}

.footer__map-link:hover {
    background: rgba(0, 128, 128, 0.9);
}

.footer__map-iframe {
    display: block;
    width: 100%;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.footer__map-wrapper:hover .footer__map-iframe {
    filter: grayscale(0%);
}

/* Contacts and Social Grid */
.footer__columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer__column {
    display: flex;
    flex-direction: column;
}

.footer__title {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-white);
}

/* Contacts Column */
.footer__company {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-white);
}

.footer__phone {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer__phone:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

/* Map Column - Old styles removed */

/* Social Media Column */
.footer__social {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer__social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer__social-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.footer__social-link--telegram:hover {
    background: rgba(0, 136, 204, 0.3);
}

.footer__social-link--vk:hover {
    background: rgba(77, 133, 189, 0.3);
}

/* Bottom Section */
.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 980px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }

    .footer__map-section {
        margin-bottom: 40px;
    }

    .footer__map-title {
        font-size: 1.3rem;
    }

    .footer__map-iframe {
        height: 300px;
    }

    .footer__columns {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer__column {
        text-align: center;
    }

    .footer__phone {
        display: inline-block;
    }

    .footer__social {
        align-items: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer__social-link:hover {
        transform: translateY(-4px);
    }
}

@media screen and (max-width: 640px) {
    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
}

/* ==================== REVIEWS SECTION (MARQUEE) ==================== */
.reviews-section {
    padding: 80px 0;
    background-color: var(--color-bg-light);
    overflow: hidden;
    /* Hide horizontal scrollbar from marquee */
}

.reviews-marquee {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.reviews-band {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    /* Add padding to prevent hover clipping */
}

.reviews-band::before,
.reviews-band::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.reviews-band::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-light), transparent);
}

.reviews-band::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-light), transparent);
}

.reviews-track {
    display: flex;
    gap: 20px;
    width: max-content;
    /* Critical for scrolling */
    will-change: transform;
    /* Optimize animation */
}

/* Animations */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.reviews-band--top .reviews-track {
    animation: scroll-right 120s linear infinite;
    /* Top band moves RIGHT */
}

.reviews-band--bottom .reviews-track {
    animation: scroll-left 120s linear infinite;
    /* Bottom band moves LEFT */
}

/* Pause on hover */
.reviews-track:hover {
    animation-play-state: paused;
}

/* Review Card Styles */
.review-card {
    flex: 0 0 320px;
    /* Fixed width */
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 128, 128, 0.1);
    background: white;
    /* Fallback */
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 280px;
    /* Uniform height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 128, 128, 0.15);
    border-color: var(--color-primary);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-stars {
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.review-text {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    /* Limit text lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 12px;
}

.review-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.review-info {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-main);
}

.review-role {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
}

.review-city {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .reviews-section {
        padding: 40px 0;
    }

    .review-card {
        flex: 0 0 280px;
        height: 260px;
        padding: 16px;
    }

    .reviews-band--top .reviews-track,
    .reviews-band--bottom .reviews-track {
        animation-duration: 80s;
        /* Faster on mobile? Or keep smooth */
    }
}

.footer__map-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer__map-iframe {
    height: 250px;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer__phone {
    font-size: 1.1rem;
}

.footer__social {
    width: 100%;
}

.footer__copyright {
    font-size: 0.85rem;
}
}


/* ==================== FOOTER LEGAL ==================== */
.footer__legal {
    margin-top: 10px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer__legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== CONSULTATION FORM SECTION ==================== */
.consultation-section {
    padding: 80px 0;
    position: relative;
    background: transparent;
}

.consultation-wrapper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.consultation-title {
    color: var(--color-text-main);
    margin-bottom: 16px;
    font-weight: 600;
}

.consultation-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.consultation-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.form-group-row .input-wrapper {
    flex: 1;
}

.consultation-form .form-input {
    width: 100%;
    height: 60px;
    padding: 0 24px;
    border: 1px solid rgba(0, 128, 128, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    color: var(--color-text-main);
    transition: all 0.3s ease;
}

.consultation-form .form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}

.consultation-form button {
    height: 60px;
    padding: 0 40px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.form-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-consent label {
    font-size: 14px;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.form-consent input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Success Message */
.consultation-success {
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

.consultation-success .success-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 128, 128, 0.1);
    color: var(--color-primary);
    font-size: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.consultation-success h3 {
    font-size: 24px;
    color: var(--color-text-main);
    margin-bottom: 12px;
}

.consultation-success p {
    color: var(--color-text-secondary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .consultation-wrapper {
        padding: 40px 24px;
    }

    .form-group-row {
        flex-direction: column;
    }

    .consultation-form button {
        width: 100%;
    }
}