@font-face {
    font-family: 'Widock';
    src: url('../static/fonts/Widock\ TRIAL\ Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

  @font-face {
    font-family: 'Gotham';
    src: url('../static/fonts/gotham_medium.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gotham', sans-serif;
}

body {
    background: white;
    color: #000;
}

.container {
    max-width: 1152px;
    width: 60%;
    margin: 0 auto;
    padding: 24px 16px 24px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-photo {
    height: 40px;
    padding-right: 10px;
}

.logo-text {
    padding-top: 5px;
    font-family: "Widock";
    font-size: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
}

.phone-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    border: none;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    background-color: #FFEB28;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 72px;
    height: 32px;
    border-radius: 8px;
    justify-content: center;
}


.lang-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #FFEB28;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: auto;
    width: 72px;
    z-index: 100;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 12px;
    font-size: 12px;
    color: #000;
    border-radius: 6px;
    margin: 2px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.lang-option:hover {
    background: #FFF9BB;
}

.lang-switcher:hover .lang-btn {
    background: #FFF9BB;
}

.lang-switcher:hover .lang-btn i {
    transform: rotate(180deg);
}

.social-icons {
    position: absolute;
    top: 180px;
    left: 395px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-icons i {
    font-size: 26px;
    color: white;
    background: #3b82f6;
    padding: 16px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icons i:hover {
    transform: translateY(-4px);
}


.main-title {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1;
}

.form-group {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 14px;
}

.example {
    color: #0073F0;
    margin-top: 1px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group input {
    border: 1px solid #000;
    border-radius: 8px;
    padding: 14px 20px;
    width: 280px;
    background-color: #D7F0FF;
    font-size: 16px;
    transition: all 0.3s ease;
}

.checkbox-item input {
    border: 1px solid #000;
    border-radius: 8px;
    padding: 7px 10px;
    width: 280px;
    background-color: #D7F0FF;
    transition: all 0.3s ease;
    font-size: 14px;
}

.input-group input:focus, .checkbox-item input:focus {
    outline: none;
    border-color: #0073F0;
    box-shadow: 0 0 0 3px rgba(0, 115, 240, 0.2);
    background-color: #D7F0FF;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 14vw;
    margin-bottom: 24px;
    width: 512px;
    max-width: 100%;
    margin-right: auto;
    font-size: 14px;
    color: #4b5563;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

.checkbox-item input[name="invalid-number"] {
    margin-left: 24px;
    margin-top: 8px;
    width: calc(100% - 24px);
}

.checkbox-item input[type="checkbox"] {
    accent-color: #D7F0FF;
    margin-top: 2px;
}

.custom-checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-checkbox + label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.custom-checkbox + label::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #000;
    border-radius: 999px;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
    background-color: #D7F0FF;
}

.custom-checkbox:checked + label::before {
    border-color: #0073F0;
    background-color: #0073F0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.custom-checkbox:not(:disabled):not(:checked) + label:hover::before {
    border-color: #0073F0;
}

.calculate-btn {
    display: block;
    margin: 0 auto 5px;
    margin-top: 50px;
    background: #FFEB28;
    padding: 30px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease;
}

.calculate-btn:hover {
    background: #FFDF28;
}

.banner {
    display: flex;
    background: #2563eb;
    text-align: center;
    justify-content: center;
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #D7F0FF;
}

.banner img {
    width: 14px;
    margin-left: 5px;
    margin-right: 5px;
}

.banner p {
    padding-top: 3px;
}

.info {
    background: #D7F0FF;
}

.info-section {
    background: #D7F0FF;
    max-width: 770px;
    width: 60%;
    margin: 0 auto;
    padding: 24px 16px 24px;
}

.info-section h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 16px;
}

.info-text {
    margin: 0 auto;
    margin-top: 48px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 40px;
    font-size: 22px;
    line-height: 100%;
}

.info-content {
    padding-top: 24px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
}

.image-wrapper {
    position: relative;
}

.decor-shape {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
}

.car-photo {
    height: 333px;
    border-radius: 3%;
}

.info-text-block {
    font-size: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    line-height: 100%;
}

.tags {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.tag-row {
    display: flex;
    gap: 12px;
}

.tag-row:nth-child(1) { order: 1; }
.tag-row:nth-child(2) { order: 2; }
.tag-row:nth-child(3) { order: 3; }

.tag {
    font-size: 20px;
    padding: 8px 18px;
    border-radius: 24px;
    display: inline-block;
    border: 2px solid transparent;
}

.blue {
    background-color: #4d90fe;
    color: white;
}

.outline {
    background-color: white;
    color: black;
    border-color: black;
}

.strong-blue {
    background-color: #0057ff;
    color: white;
}

.image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.info-text-block p {
    margin-top: 0;
}

@media (max-width: 768px) {
    .info-content {
        flex-direction: column;
    }
    
    .tags {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .tag-row {
        flex-direction: row;
    }
}

.faq-section {
    background: #D7F0FF;
    max-width: 1152px;
    width: 50%;
    margin: 0 auto;
    padding: 48px 16px 24px;
}
  
.faq-item {
    background: white;
    border-radius: 999px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
  
.faq-item:hover {
    background: #f1f1f1;
}
  
.faq-item span {
    font-size: 28px;
    font-weight: 900;
}
  
.faq-icon {
    width: 48px;
    height: 48px;
    background: #FFEB00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
  
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
  
.faq-icon i {
    font-size: 18px;
    transition: transform 0.3s ease;
}
  
.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: white;
    border-radius: 24px;
    padding: 0 24px;
    font-size: 22px;
    line-height: 1.6;
    margin-top: -8px;
    margin-bottom: 16px;
    transition: max-height 0.5s ease, padding 0.3s ease;
}
  
.faq-item.active + .faq-answer {
    max-height: 400px;
    padding: 40px 44px 44px;
}
  
.faq-item.active .faq-icon i::before {
    content: "\f068";
}

.provider-text {
    color: #2563eb;
    font-size: 14px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.contacts-mobile {
    display: none;
}

.footer {
    background-color: white;
    padding: 32px 48px;
    font-family: sans-serif;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    padding-bottom: 40px;
    justify-content: center;
  }

  .footer-links-mobile {
    display: none;
  }
  
  .footer-links a {
    text-decoration: none;
    color: #606060;
    font-size: 16px;
    line-height: 1.4;
  }
  
  .footer-bottom {
    margin-top: 48px;
    display: flex;
    justify-content: flex-end;
    color: #A6A6A6;
    font-size: 16px;
}  

@media (min-width: 768px) {
    .info-content {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .radio-group {
        margin-left: 0;
        width: 100%;
        padding: 0 16px;
    }
    
    .form-group {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .input-group input {
        width: 100%;
        padding: 12px 16px;
    }
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 32px;
    width: 400px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.modal-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #2563eb;
    margin-top: 20px;
    padding: 12px;
    border: 2px solid #2563eb;
    border-radius: 8px;
    transition: all 0.3s;
}

.modal-link:hover {
    background: #2563eb;
    color: white;
}

.modal-close {
    position: absolute;
    right: 24px;
    top: 16px;
    font-size: 28px;
    cursor: pointer;
}

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


/* Мобилка */

@media (max-width: 768px) {
    .container {
        width: 80%;
        padding: 16px;
    }

    .header {
        flex-direction: row-reverse;
        gap: 24px;
        margin-bottom: 40px;
    }

    .header-right {
        order: -1;
        width: 100%;
        justify-content: space-between;
    }

    .logo {
        justify-content: center;
        margin-right: 40px;
        margin-top: 1px;
    }

    .logo img {
        height: 6vw;
        width: auto;
    }

    .logo p {
        font-size: 18px;
    }

    .lang-btn {
        width: 12vw;
        height: 7vw;
        margin-bottom: 10px;
    }

    .lang-dropdown {
        width: 12vw;
        padding: 0;
        margin-top: 0;
    }

    .social-icons {
        display: none;
    }

    .main-title {
        font-size: 22px;
        margin-bottom: 40px;
    }

    .form-group {
        gap: 16px;
    }

    .checkbox-group {
        margin-left: 0;
        width: 100%;
    }

    .checkbox-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .checkbox-item input[name="invalid-number"] {
        width: 100%;
        margin-top: 8px;
        margin-left: 0;
    }

    .info-section {
        width: 80%;
        padding: 24px 0;
    }

    .info-text {
        font-size: 16px;
        margin: 24px 0;
    }

    .image-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .decor-shape {
        width: 25vw;
        top: -65px;
        left: -20px;
    }

    .car-photo {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: contain;
    }

    .info-text-block {
        flex-direction: column-reverse;
    }

    .info-text-block p {
        margin-top: 20px;
        font-size: 16px;
    }

    .tags {
        margin-top: -20px;
        gap: 10px;
    }

    .tag {
        font-size: 16px;
    }

    .faq-section {
        width: 100%;
    }

    .banner {
        gap: 8px;
        padding: 12px;
    }

    .banner p {
        text-align: center;
        font-size: 16px;
    }

    .banner img {
        width: auto;
    }

    .info-section h2 {
        font-size: 22px;
        margin-bottom: 40px;
    }

    .lang-switcher {
        margin-top: 12px;
    }

    .input-group input {
        width: 100%;
        max-width: 300px;
    }

    .calculate-btn {
        width: 100%;
        padding: 20px;
    }

    .faq-item {
        padding: 12px 16px;
    }

    .faq-item span {
        font-size: 22px;
        width: 80%;
    }

    .faq-answer {
        font-size: 16px;
        padding: 0 16px;
    }

    .provider-text {
        font-size: 16px;
    }

    .footer {
        padding: 32px 25px;
    }

    .footer-links-mobile {
        display: flex;
        flex-wrap: wrap;
        padding-bottom: 40px;
    }
      
      .footer-links-mobile a {
        text-decoration: none;
        color: #606060;
        font-size: 16px;
        line-height: 1.4;
    }

    .footer-links {
        display: none;
    }

    .footer-links-mobile {
        display: flex;
        gap: 15px;
        flex-direction: column;
    }

    .faq-item.active + .faq-answer {
        max-height: 1000px;
    }

    .contacts-mobile {
        display: flex;
        justify-content: center;
        margin-bottom: 48px;
    }

    .social-icons-mobile {
        display: none !important;
    }

    .social-icons-mobile i {
        font-size: 20px;
        color: white;
        background: #3b82f6;
        padding: 16px;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        cursor: pointer;
        pointer-events: auto;
    }
    
    .social-icons-mobile i:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
        gap: 16px;
    }

    .header-right {
        order: 0;
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-right: 0;
    }

    .logo-photo {
        height: 36px;
    }

    .logo-text {
        font-size: 20px;
        padding-top: 5px;
    }

    .lang-switcher {
        margin-left: auto;
        z-index: 1;
    }

    .contact-info {
        display: none !important;
    }
}