* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

:root {
    --wine: #8b1a2b;
    --wine-light: #a52a3f;
    --wine-dark: #6b0f1f;
    --wine-glow: rgba(139, 26, 43, 0.25);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.header.visible {
    transform: translateY(0);
    opacity: 1;
}

   .slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
}

.nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    font-size: 15px;
    font-weight: 500;
    flex-shrink: 0;
}

.nav a {
    white-space: nowrap;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.25s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wine);
    transition: width 0.3s;
}

.nav a:hover {
    color: #fff;
}

.nav a:hover::after {
    width: 100%;
}

.header-contacts {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px;
    flex-shrink: 0;
    margin-left: auto;
}

.phone-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.25s;
    white-space: nowrap;
}

.phone-link:hover {
    color: var(--wine-light);
}

.page-index .phone-link {
    display: none;
}

.btn-primary-small {
    background: var(--wine);
    color: #fff;
    border: none;
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary-small:hover {
    background: var(--wine-light);
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .header .container {
        gap: 10px;
        padding: 0 16px;
    }

    .nav {
        gap: 16px;
        font-size: 14px;
    }

    .phone-link {
        font-size: 14px;
    }

    .btn-primary-small {
        padding: 6px 16px;
        font-size: 13px;
    }
}

@media (max-width: 500px) {
    .header .container {
        gap: 8px;
        padding: 0 12px;
    }

    .nav {
        gap: 12px;
        font-size: 13px;
    }

    .nav a {
        font-size: 13px;
    }

    .phone-link {
        font-size: 13px;
    }

    .btn-primary-small {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .header .container {
        gap: 6px;
        padding: 0 10px;
    }

    .nav {
        gap: 8px;
        font-size: 12px;
    }

    .nav a {
        font-size: 12px;
    }

    .phone-link {
        font-size: 12px;
    }

    .btn-primary-small {
        padding: 5px 12px;
        font-size: 11px;
    }
}

.hero {
    padding: 100px 0 72px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: radial-gradient(ellipse at 70% 20%, rgba(139, 26, 43, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 80%, rgba(139, 26, 43, 0.06) 0%, transparent 50%);
}

.hero-content {
    max-width: 740px;
    margin: 0 auto;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.hero-logo-icon svg {
    display: block;
}

.hero-logo-slogan {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 3rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero h1 .accent {
    color: var(--wine-light);
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.65);
    margin: 16px auto 24px;
    max-width: 560px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.logo-icon {
    margin: 0;
}

.btn-primary {
    display: inline-block;
    background: var(--wine);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.3s;
    text-align: center;
}

.btn-primary:hover {
    background: var(--wine-light);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(139, 26, 43, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s;
}

.btn-outline:hover {
    border-color: var(--wine);
    color: var(--wine-light);
}

.section {
    padding: 72px 0;
}

.section-header {
    margin-bottom: 44px;
    text-align: center;
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.section-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

.scanners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.scanner-card {
    background: rgba(255, 255, 255, 0.035);
    border: 2px solid #a52a3f;
    /* border: 1px solid rgba(255, 255, 255, 0.06); */
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.scanner-card:hover {
    border-color: rgba(139, 26, 43, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.scanner-slider {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 20px;
    text-align: center;
}

.slide span {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.6;
}

.slide small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    text-transform: none;
    margin-top: 4px;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.slider-dots span.active {
    background: var(--wine-light);
    transform: scale(1.25);
}

.slider-dots span:hover {
    background: rgba(255, 255, 255, 0.4);
}

.scanner-body {
    padding: 28px 28px 32px;
}

.scanner-body h3 {
    font-size: 22px;
    font-weight: 600;
}

.scanner-price {
    font-size: 30px;
    font-weight: 700;
    color: var(--wine-light);
    margin: 6px 0 16px;
}

.scanner-price span {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
}

.scanner-specs {
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px; */
    margin-bottom: 20px;
}

.spec {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-label {
    color: rgba(255, 255, 255, 0.4);
}

.spec-value {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.scanner-complect {
    margin: 16px 0 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--wine);
}

.scanner-complect h4 {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.scanner-complect ul {
    list-style: none;
    padding: 0;
}

.scanner-complect ul li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    padding: 3px 0;
    padding-left: 20px;
    position: relative;
}

.scanner-complect ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--wine-light);
    font-weight: 700;
}

.scanner-body .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.scanner-single {
    max-width: 480px;
    margin: 0 auto;
}

.terms-list {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.term-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 16px 20px;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.04); */
    border-bottom: 1px solid #a52a3f;
    transition: background 0.2s;
}

.term-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.term-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--wine-light);
    min-width: 36px;
    opacity: 0.6;
}

.term-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.term-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    /* border: 1px solid rgba(255, 255, 255, 0.06); */
    border: 2px solid #a52a3f;
    border-radius: 20px;
    padding: 40px 44px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(139, 26, 43, 0.15);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.form-full {
    grid-column: 1 / -1;
}

.form-wrap .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    margin-top: 4px;
}

.form-wrap .btn-primary.loading {
    position: relative;
    color: transparent;
}

.form-wrap .btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.privacy-notice {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.privacy-notice p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.privacy-notice a {
    color: var(--wine-light);
    transition: color 0.2s;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-notice a:hover {
    color: #fff;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #a52a3f;
    border-radius: 20px;
    padding: 36px 40px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.contact-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    transition: color 0.25s;
}

.contact-value a {
    color: var(--wine-light);
}

.contact-value a:hover {
    color: #fff;
}

@media (max-width: 500px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 20px;
        max-width: 320px;
    }

    .contact-item {
        align-items: center;
    }
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 28px 0;
    margin-top: 16px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

.footer a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.25s;
}

.footer a:hover {
    color: var(--wine-light);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    padding: 40px 44px;
    position: relative;
    overflow-y: auto;
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
    margin-bottom: 8px;
}

.modal-close:hover {
    background: rgba(139, 26, 43, 0.3);
    color: #fff;
}

.modal-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    clear: both;
}

.modal-sub {
    font-size: 20px;
    font-weight: 600;
    color: var(--wine-light);
    margin-bottom: 28px;
}

.modal-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 24px 0 10px;
}

.modal-body h3:first-of-type {
    margin-top: 0;
}

.modal-body p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 12px;
}

.modal-body ul {
    padding-left: 24px;
    margin-bottom: 12px;
}

.modal-body ul li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 4px;
}

.modal-body ul li strong {
    color: rgba(255, 255, 255, 0.9);
}

.modal-body a {
    color: var(--wine-light);
    transition: color 0.2s;
}

.modal-body a:hover {
    color: #fff;
}

.modal-date {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
    .hero {
        padding: 80px 0 48px;
        min-height: auto;
    }

    .hero-logo-slogan {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .section-title {
        font-size: 28px;
    }

    .scanners-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-wrap {
        padding: 28px 24px;
    }

    .contacts-grid {
        max-width: 100%;
        padding: 28px 24px;
    }

    .term-item {
        padding: 14px 0;
    }

    .modal-content {
        padding: 28px 24px;
    }

    .scanner-slider {
        height: 220px;
    }
}

@media (max-width: 500px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero-logo-icon svg {
        width: 56px;
        height: 56px;
    }

    .hero-logo-slogan {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-description {
        font-size: 15px;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .scanner-body {
        padding: 20px;
    }

    .scanner-slider {
        height: 180px;
    }

    .slide {
        font-size: 17px;
    }

    .slide span {
        padding: 14px 20px;
    }

    .slide small {
        font-size: 11px;
    }

    .form-wrap {
        padding: 20px 16px;
    }

    .term-item {
        gap: 16px;
        padding: 12px 0;
    }

    .term-num {
        min-width: 28px;
        font-size: 12px;
    }

    .term-content h4 {
        font-size: 14px;
    }

    .term-content p {
        font-size: 13px;
    }

    .modal-overlay {
        padding: 20px 12px;
    }

    .modal-content {
        padding: 24px 16px;
        max-height: 90vh;
    }

    .modal-content h2 {
        font-size: 22px;
    }

    .modal-body h3 {
        font-size: 15px;
    }

    .modal-body p,
    .modal-body ul li {
        font-size: 13px;
    }

    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
}