/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: 'Poppins', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* New Elegant Blue Color Palette */
    --color-blue-100: oklch(95.51% 0.03 238.41); /* Lighter Sky */
    --color-blue-300: oklch(87.41% 0.07 244.33); /* Light Sky */
    --color-blue-400: oklch(79.71% 0.12 250.77); /* Sky */
    --color-blue-500: oklch(71.55% 0.17 257.34); /* Main Blue */
    --color-blue-600: oklch(63.26% 0.22 263.22); /* Darker Blue */
    --color-blue-700: oklch(54.45% 0.25 267.11); /* Deep Blue */
    --color-blue-900: oklch(34.29% 0.22 269.87); /* Navy */

    --color-red-100: oklch(93.6% 0.032 17.717);
    --color-red-400: oklch(70.4% 0.191 22.216);
    --color-red-500: oklch(63.7% 0.237 25.331);
    --color-red-700: oklch(50.5% 0.213 27.518);
    --color-green-500: oklch(72.3% 0.219 149.579);
    --color-green-600: oklch(62.7% 0.194 149.214);

    --color-gray-50: oklch(98.5% 0.002 247.839);
    --color-gray-100: oklch(96.7% 0.003 264.542);
    --color-gray-200: oklch(92.8% 0.006 264.531);
    --color-gray-300: oklch(87.2% 0.01 258.338);
    --color-gray-400: oklch(70.7% 0.022 261.325);
    --color-gray-500: oklch(55.1% 0.027 264.364);
    --color-gray-600: oklch(44.6% 0.03 256.802);
    --color-gray-700: oklch(37.3% 0.034 259.733);
    --color-gray-800: oklch(27.8% 0.033 256.848);
    --color-gray-900: oklch(21% 0.034 264.665);
    --color-black: #000;
    --color-white: #fff;
    --spacing: 0.25rem;
    --container-sm: 24rem;
    --container-7xl: 80rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --font-weight-light: 300;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-2xl: 1rem;
    --animate-spin: spin 1s linear infinite;
    --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    --blur-sm: 8px;
    --blur-lg: 16px;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Base styles */
body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--color-gray-700);
  background-color: var(--color-gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  z-index: 6000;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-gray-200);
  transition: all 0.3s ease;
}
.header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.header__nav-link {
  color: var(--color-blue-900);
  font-weight: 500;
}
.header__nav-link:hover, .header__nav-link.active {
  color: var(--color-blue-500);
}
.header__nav-link::after {
    background: var(--color-blue-500);
}


/* Main Tracking Panel */
#panel {
    background: rgba(163, 198, 248, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#panel .tab-button {
    transition: all 0.3s ease;
    padding: 0.8rem 0.5rem;
}

#panel .tab-button.border-blue-500 {
    border-color: var(--color-blue-500) !important;
}

#panel .tab-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-blue-400);
}

/* Redesigned Button */
.track__button {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-blue-500);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 15px;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}
.track__button:hover {
    background: var(--color-blue-600);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}


/* Cars for Sale Section */
.cars-for-sale {
    background-color: #ffffff !important;
    padding: 80px 0 !important;
}
.cars-for-sale__title {
  font-size: 2.8rem !important;
  font-weight: 700 !important;
  color: var(--color-blue-900) !important;
  margin-bottom: 20px !important;
}
.cars-for-sale__delivery-info {
    font-size: 1.1rem !important;
    color: var(--color-gray-600) !important;
}
.cars-for-sale__delivery-link {
    color: var(--color-blue-500) !important;
    font-weight: 600 !important;
}

.car-card {
    background: #fff !important;
    border-radius: var(--radius-2xl) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    display: block !important;
    border: 1px solid var(--color-gray-200) !important;
}
.car-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}
.car-card__image-container {
    height: 240px !important;
    overflow: hidden !important;
}
.car-card__image {
    transition: transform 0.4s ease !important;
}
.car-card:hover .car-card__image {
    transform: scale(1.05) !important;
}
.car-card__content {
    padding: 24px !important;
}
.car-card__title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--color-blue-900) !important;
    margin-bottom: 12px !important;
}
.car-card__details {
    margin-bottom: 16px !important;
    color: var(--color-gray-500) !important;
    font-size: 0.9rem !important;
}
.car-card__detail i {
    color: var(--color-blue-400) !important;
}
.car-card__price {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: var(--color-green-600) !important;
    margin-bottom: 16px !important;
}
.car-card__price--free {
    color: var(--color-blue-500) !important;
}

/* NEW: Background Image Wrapper */
.bg-ship-image {
    position: relative;
   /* background-image: url('/assets/images/mor_kont.jpg');    */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.bg-ship-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(248, 250, 252, 0.9); /* Light overlay for readability */
    backdrop-filter: blur(8px);
    z-index: 1;
}

/* NEW: Content Sections Wrapper */
.content-section-wrapper {
    padding: 100px 0;
    position: relative;
}
.content-section-wrapper .container {
    position: relative;
    z-index: 2;
}
.content-section-wrapper:nth-child(odd) {
    background-color: var(--color-gray-50);
}
.content-section-wrapper:nth-child(even) {
    background-color: #ffffff;
}

/* NEW: Elegant Content Card */
.content-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-2xl);
    padding: 40px;
    border: 1px solid var(--color-gray-200);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 30px;
}
.content-card--centered {
    text-align: center;
    flex-direction: column;
    align-items: center;
}
.content-card__icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--color-blue-100);
    color: var(--color-blue-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.content-card__body {
    flex-grow: 1;
}
.content-card__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-blue-900);
    margin-bottom: 25px;
    line-height: 1.3;
}
.content-card__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: 20px;
}
.content-card__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}
.content-card__list li {
    font-size: 1.05rem;
    color: var(--color-gray-600);
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    text-align: left;
}
.content-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green-500);
    background-color: var(--color-green-100);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    font-weight: bold;
}
.content-card__link {
    color: var(--color-blue-600);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}
.content-card__link:hover {
    color: var(--color-blue-700);
    border-bottom-color: var(--color-blue-300);
}
.content-card__warning {
    color: var(--color-red-700);
    font-size: 0.95rem;
    background-color: var(--color-red-100);
    padding: 15px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-red-500);
    margin-top: 25px;
    text-align: left;
}
.content-card__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.content-card__buttons .track__button {
    width: auto;
}

@media (max-width: 768px) {
    .content-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px;
    }
    .content-card__list li {
        text-align: left;
    }
}


/* Leaflet Map styles */
.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0.5rem;
    z-index: 0;
}
    .custom-port-marker, .waypoint-marker {
  background: 0 0 !important;
  border: none !important;
}
.real-route {
  stroke: var(--color-blue-500);
  stroke-width: 4;
}
.leaflet-control-attribution,.leaflet-right {
  display: none;
}
.approximate-route {
  stroke: var(--color-gray-500);
  stroke-width: 3;
  stroke-dasharray: 10,10;
}
.waypoint-marker div:hover {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(59,130,246,.3);
}
.route-info {
  display:hidden;
}
.route-info div {
  background: rgba(255,255,255,.95) !important;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  font-family: monospace;
}
.origin-marker div {
  box-shadow: 0 0 0 3px rgba(239,68,68,.3) !important;
  animation: 2s infinite pulse-red;
}
.dest-marker div {
  box-shadow: 0 0 0 3px rgba(34,197,94,.3) !important;
  animation: 2s infinite pulse-green;
}
@keyframes pulse-red {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(239,68,68,.3); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239,68,68,.2); }
}
@keyframes pulse-green {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(34,197,94,.3); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(34,197,94,.2); }
}
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.leaflet-popup-content {
  font-family: var(--font-sans);
}

/* Contacts */
.contacts {
    padding: 80px 0;
    background-color: var(--color-gray-50);
}
.contacts__map-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-blue-900);
    margin-bottom: 30px;
    text-align: center;
}
.contacts__map {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--color-gray-200);
}
/* Other inherited styles from original file */
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr { height: 0; color: inherit; border-top-width: 1px; }
  abbr:where([title]) { -webkit-text-decoration: underline dotted; text-decoration: underline dotted; }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; -webkit-text-decoration: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }
  code, kbd, samp, pre { font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace); font-feature-settings: var(--default-mono-font-feature-settings, normal); font-variation-settings: var(--default-mono-font-variation-settings, normal); font-size: 1em; }
  small { font-size: 80%; }
  sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
  sub { bottom: -0.25em; }
  sup { top: -0.5em; }
  button { cursor: pointer; }
  table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
  :-moz-focusring { outline: auto; }
  progress { vertical-align: baseline; }
  summary { display: list-item; }
  ol, ul, menu { list-style: none; }
  img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
  img, video { max-width: 100%; height: auto; }
  button, input, select, optgroup, textarea, ::file-selector-button { font: inherit; font-feature-settings: inherit; font-variation-settings: inherit; letter-spacing: inherit; color: inherit; border-radius: 0; background-color: transparent; opacity: 1; }
  ::placeholder { opacity: 1; }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder { color: currentcolor; @supports (color: color-mix(in lab, red, red)) { color: color-mix(in oklab, currentcolor 50%, transparent); } }
  }
  textarea { resize: vertical; }
  [hidden]:where(:not([hidden="until-found"])) { display: none !important; }
}

@media (max-width:767px) {
  #panel { display: none; }
  #panel.open #close-panel-button { display: block; }
  .pc-style { display: none !important; }
}
@media (min-width:768px) {
  #mobile-tracking-toggle { display: none !important; }
  #panel { display: block !important; }
}
html { scroll-behavior: smooth; }
/* Updated Header Structure */
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.header__left, .header__right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header__center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}
.header.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.header__logo-img {
    height: 75px;
    transition: height 0.3s ease;
}
.header.scrolled .header__logo-img {
    height: 35px;
}

/* New Phone Number Style */
.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray-600);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s ease;
}
.header__phone:hover {
    color: var(--color-blue-500);
}
.header__phone i {
    color: var(--color-blue-400);
}
.header__phone--mobile {
    display: none; /* Hidden on desktop */
}

/* Пробел для Login */
.header__nav-link[href*="customer.app"] {
    margin-left: 20px !important;
}
.header__nav{
    gap:40px;
}
@media (min-width: 1025px) {
    .header__nav {
        display: flex;
        align-items: center;
        gap: 32px; /* Отступ для десктопа */
    }
}

.header__burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}
.header__burger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: .3s;
  border-radius: 2px;
}

/* Mobile Header Adjustments */
@media (max-width: 1024px) {
    .header__nav {
        display: none; /* Hide main nav links container */
    }
    .header__center {
        display: none;
    }
    .header__right {
        margin-left: auto;
    }
    .header__burger {
        display: flex;
        order: 3; /* Burger after lang switcher */
        margin-left: 15px;
    }
    .header__phone {
        display: none; /* Hide desktop phone */
    }
    .header__left {
        flex-grow: 1;
    }
    .header__nav.active {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px; /* Отступ для мобильного меню */
        box-shadow: -5px 0 20px rgba(0,0,0,.1);
        padding-top: 60px;
    }
    .header__nav.active .header__nav-link {
        font-size: 20px;
    }
    .header__phone--mobile {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 18px;
        font-weight: 500;
        color: var(--color-blue-900);
        margin-top: 20px;
        padding: 10px 20px;
        border: 1px solid var(--color-gray-200);
        border-radius: var(--radius-lg);
    }
}
.pr-link:hover {
  color: #3b82f6;
}
.footer__social {
    display: flex;
    gap: 16px;
    margin: 12px 0;
}

.footer__social-link {
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer__social-link:hover {
    opacity: 1;
    color: #3B82F6;
}

.footer__social-icon {
    width: 20px;
    height: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.section_footer.white {
    background: linear-gradient(135deg, var(--color-gray-50), var(--color-white));
    padding: 60px 0;
    border-top: 1px solid var(--color-gray-200);
}

.div-block-10 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo-container {
    position: relative;
    background: var(--color-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-gray-200);
    transition: all 0.3s ease;
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(59, 130, 246, 0.15);
    border-color: var(--color-blue-300);
}

.footer-logo-image {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(30%) contrast(90%);
}

.footer-logo-container:hover .footer-logo-image {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.05);
}

.footer-logo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.9));
    padding: 10px 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.footer-logo-container:hover .footer-logo-overlay {
    opacity: 1;
    transform: translateY(0);
}

.footer-logo-text {
    color: var(--color-white);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-logo-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-logo-container.alternative .footer-logo-image {
    filter: brightness(1.1) contrast(1.1);
}

@media (max-width: 768px) {
    .div-block-10 {
        gap: 20px;
    }

    .footer-logo-container {
        width: 140px;
        height: 100px;
        padding: 15px;
    }

    .footer-logo-image {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .div-block-10 {
        gap: 15px;
    }

    .footer-logo-container {
        width: 120px;
        height: 90px;
        padding: 12px;
    }

    .footer-logo-image {
        max-height: 40px;
    }

    .footer-logo-text {
        font-size: 9px;
    }
}

.pad-left {
  padding-left: 4rem;
}

@media (max-width: 768px) {
  #email-form {
    max-height: 300px;
  }
  .pad-left {
    padding-left: 1rem !important;
  }
}

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

.footer-logo-container {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-logo-container:nth-child(1) { animation-delay: 0.1s; }
.footer-logo-container:nth-child(2) { animation-delay: 0.2s; }
.footer-logo-container:nth-child(3) { animation-delay: 0.3s; }
.footer-logo-container:nth-child(4) { animation-delay: 0.4s; }

.language-switcher {
    position: relative;
    cursor: pointer;
}

.current-lang {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid #efefef;
    transition: background-color 0.3s;
}

.current-lang:hover {
    background-color: #e5e7eb;
}

.current-lang span {
    margin-right: 8px;
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.lang-dropdown li a:hover {
    background-color: #f3f4f6;
}

.lang-dropdown li a span {
    margin-right: 10px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    padding: 8px 0;
    margin-top: 4px;
    min-width: 150px;
    z-index: 1000;
    display: none;

}

.lang-dropdown.show-dropdown {
    display: block;
}

@media (max-width: 478px) and (max-height: 1000px) {
  .mobile-m {
    margin-bottom: 300px !important;
  }
  .mobile-hgt {
    height: 60% !important;
  }
}

@media (max-width: 1295px) {
  .m-w-m {
    width: 100% !important;
  }
}

@media (max-width: 478px) and (max-height: 690px) {
  .mobile-m {
    margin-bottom: 400px !important;
  }
  .mobile-hgt {
    height: 60% !important;
  }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 6px 4px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 10px;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    color: #3b82f6;
}

.mobile-nav-item:hover {
    color: #2563eb;
}

.mobile-nav-item:active {
    background: #f3f4f6;
    transform: scale(0.95);
}

.mobile-nav-item span {
    font-weight: 500;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 70px !important;
    }

    #panel {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    
    max-width: 360px !important;
    width: calc(100% - 40px) !important;   /* 20px слева + 20px справа */
    
    margin: 0 38px 0 6px !important; 
}
    /* Если хочешь ещё сильнее сузить — можно 340px или даже 320px */
    /* max-width: 340px !important; */

    #close-panel-button {
        display: none !important;
    }
}

/* Скрываем синюю кнопку ВСЕГДА */
#mobile-tracking-toggle {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}





/* Disable forcing full-viewport height on small screens — allow content to expand and overlay to scroll */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .modal-title {
        font-size: 24px;
    }
}

.social-float {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #474747;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: all 0.3s ease;
  background-size: 200% auto;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.social-icon i {
  font-size: 24px;
  transition: transform 0.2s ease-in-out;
}

.social-icon:hover i {
  transform: scale(1.1);
}

.social-icon.facebook {
  background-image: linear-gradient(to right, #1877F2 0%, #3b5998 51%, #1877F2 100%);
}

.social-icon.instagram {
  background-image: linear-gradient(to right, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
}

.social-icon.telegram {
  background-image: linear-gradient(to right, #229ED9 0%, #1da1f2 51%, #229ED9 100%);
}

@media (max-width: 768px) {
  .social-float {
    right: 12px;
    gap: 10px;
  }
  .social-icon {
    width: 40px;
    height: 40px;
  }
  .social-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Photos Section Styles - Managed in modal-styles.css */


/* footer*/

.footer {
  background: #1e293b;
  padding: 30px 0;
  border-top: 1px solid #334155;
  margin-top: auto;
}
.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color:rgb(231, 234, 237);
  flex-wrap: wrap;
  gap: 20px;
}
.footer__copyright {
  margin: 0;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 15px;
}
.footer__link {
  transition: color .3s;
}
.footer__link:hover,.header__nav-link.active {
  color: #3b82f6;
}
.footer__separator {
  color: white;
}

@media (max-width:1320px) {
  .track {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }
}
@media (max-width:768px) {
  .header {
    padding: 10px 0;
  }
  .header.scrolled {
    padding: 8px 0;
  }
  .main {
    padding-top: 70px;
  }
  .header__container {
    padding: 0 15px;
    align-items: center;
    gap: 20px;
  }
  .header__logo-img {
    height: 42px;
  }
  .header.scrolled .header__logo-img {
    height: 28px;
  }
  .header__burger {
    display: flex;
    z-index: 1001;
  }
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right .3s;
    box-shadow: -5px 0 20px rgba(0,0,0,.1);
  }
  .header__nav.active {
    right: 0;
  }
  .header__nav-link {
    font-size: 22px;
    color: #1e3a8a;
    font-weight: 600;
  }
  .header__nav-link:hover {
    color: #3b82f6;
  }
  .header__nav-link--track {
    color: #3b82f6;
    font-weight: 700;
    font-size: 22px;
  }
  .header__burger.active span:first-child {
    transform: rotate(45deg) translate(8px,8px);
  }
  .header__burger.active span:nth-child(2) {
    opacity: 0;
  }
  .header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px,-6px);
  }
  .hero-slider {
    height: 500px;
  }
  .hero-slider__title,.services__title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  .hero-slider__subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
  }
  .hero-slider__button {
    padding: 12px 25px;
    font-size: 14px;
  }
  .hero-slider__arrow {
    font-size: 20px;
    width: 40px;
    height: 40px;
  }
  .hero-slider__arrow--prev {
    left: 15px;
  }
  .hero-slider__arrow--next {
    right: 15px;
  }
  .hero-slider__controls {
    bottom: 20px;
  }
  .about,.about-us,.cars-for-sale,.contacts,.services {
    padding: 60px 0;
  }
  .cars-for-sale__title,.image-placeholder,.news-hero__title {
    font-size: 2.5rem;
  }
  .cars-for-sale__delivery-info {
    flex-direction: column;
    gap: 5px;
    font-size: 1rem;
  }
  .cars-for-sale__grid,.news-grid,.services__grid {
    gap: 25px;
    grid-template-columns: 1fr;
  }
  .news-hero__subtitle,.services__subtitle {
    font-size: 1.1rem;
  }
  .services__header {
    margin-bottom: 40px;
  }
  .services__grid {
    margin-top: 30px;
  }
  .contacts__form,.services__card {
    padding: 30px 25px;
  }
  .services__icon--image {
    width: 70px;
    height: 70px;
  }
  .track {
    height: 300px;
    padding: 20px 20px 20px 50px;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 15px 30px rgba(0,0,0,.1),0 8px 15px rgba(0,0,0,.08);
  }
  .track__info {
    max-width: 280px;
    padding: 25px;
  }
  .track__title {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  .track__button {
    padding: 10px 20px;
    font-size: 13px;
  }
  .about-us__container,.about__container,.contacts__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__image-container {
    order: 1;
  }
  .about__image {
    max-height: 280px;
  }
  .about-us__title,.about__title,.contacts__title {
    font-size: 2.4rem;
    margin-bottom: 25px;
  }
  .about-us__text,.about__text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }
  .about-us__image-container {
    order: -1;
  }
  .about-us__phone {
    width: 286px;
    height: 572px;
    padding: 13px 8px;
    border-radius: 46px;
  }
  .about-us__phone::before {
    width: 130px;
    height: 13px;
    top: 4px;
    border-radius: 8px;
  }
  .about-us__phone::after {
    width: 52px;
    height: 3px;
    top: 7px;
  }
  .about-us__image {
    border-radius: 39px;
  }
  .about-us__phone-indicator {
    bottom: 4px;
    height: 3px;
  }
  .contacts__form-input,.contacts__form-textarea {
    padding: 10px 12px;
    font-size: 14px;
  }
  .contacts__form-button {
    padding: 12px 15px;
    font-size: 14px;
  }
  .contacts__map {
    height: 300px;
  }
  .contacts__map-title,.services__icon .image-placeholder {
    font-size: 1.8rem;
  }
  .floating-buttons {
    bottom: 20px;
    right: 20px;
    gap: 12px;
  }
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  .modal__content {
    width: 95%;
  }
  .modal__body,.modal__header {
    padding: 20px;
  }
  .modal__pagination {
    flex-direction: column;
    gap: 10px;
  }
  .modal__pagination-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
  }
  .modal__pagination-btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 12px;
  }
  .footer__container {
    padding: 0 15px;
  }
  .footer__content {
    flex-direction: column;
    text-align: center;
  }
  .footer__links {
    justify-content: center;
  }
  .single-news__title {
    font-size: 2.2rem;
  }
  .single-news__meta {
    gap: 20px;
  }
  .single-news__body {
    font-size: 1rem;
  }
  .single-news__image-container .image-placeholder {
    font-size: 3rem;
  }
  .about__image-container .image-placeholder {
    height: 280px;
  }
}