/* ============================================
   CSS Variables - Design System
   ============================================ */
:root {
    /* Spacing System */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;

    /* Colors */
    --color-primary: #f00;
    --color-secondary: #FFE000;
    --color-background: #ffffff;
    --color-background-secondary: #F8F8F8;
    --color-text: #333333;
    --color-text-light: #666666;

    /* Typography Scale */
    --font-heading: 'Tilt Warp', cursive;
    --font-body: 'Noto Sans', sans-serif;
    --font-size-xs: 0.875rem;

    /* 14px */
    --font-size-sm: 1rem;

    /* 16px */
    --font-size-md: 1.125rem;

    /* 18px */
    --font-size-lg: 1.5rem;

    /* 24px */
    --font-size-xl: 2rem;

    /* 32px */
    --font-size-2xl: 2.5rem;

    /* 40px */
    --font-size-3xl: 3rem;

    /* 48px */
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 100%;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Typography - Mobile First
   ============================================ */
.h1 {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.paragraph {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   Hero Section - Mobile First
   ============================================ */
.hero_section {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 300px auto;
}

.hero_img {
    background-image: url('../img/yango_driver.webp');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero_cta {
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-sm) var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero_cta .h1 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.hero_cta p:has(.brush) {
    text-align: center;
}

.hero_cta .brush {
    margin: var(--spacing-xs) 0;
}

.hero_cta .subheadline {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.hero_cta .paragraph {
    margin-top: 0;
    margin-bottom: 0;
}

.hero_cta form {
    margin: var(--spacing-sm) 0 0 0;
}

/* ============================================
   Forms & Inputs - Mobile First (Always Vertical)
   ============================================ */
form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
    width: 100%;
}

/* Honeypot - Anti-spam field (hidden from users, visible to bots) */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Checkbox Styling */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    margin: var(--spacing-xs) 0;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label {
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    line-height: 1.5;
    color: var(--color-text-light);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

button[type="submit"] {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: var(--font-size-md);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: var(--spacing-xs);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

button[type="submit"] .button-arrow {
    font-size: 24px !important;
    color: white;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Content Sections - Mobile First
   ============================================ */
.content_section {
    padding: var(--spacing-xl) var(--spacing-md);
}

/* ============================================
   Info Box with Image - Mobile First
   ============================================ */
.info-box {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    background-color: var(--color-background-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
    align-items: center;
}

.info-box_image {
    width: 80px;
    flex-shrink: 0;
}

.info-box_image img {
    width: 100%;
    height: auto;
    display: block;
}

.info-box_text {
    flex: 1;
    width: 100%;
}

.info-box_text .paragraph {
    margin-bottom: 0;
}

/* ============================================
   Conditions Block - Mobile First
   ============================================ */
.conditions_block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    align-items: start;
}

.conditions_card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    height: 100%;
}

.conditions-card_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.material-symbols-outlined {
    font-size: 48px !important;
    color: var(--color-primary);
}

.conditions-card_heading {
    margin-bottom: var(--spacing-xs);
}

.conditions-card_text {
    flex: 1;
}

/* ============================================
   Start Work Steps - Mobile First
   ============================================ */
.start-work_block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gray-fon_block {
    background-color: var(--color-background-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.gray-fon_block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step_wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    height: 100%;
}

.step_number {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: var(--radius-full);
    color: var(--color-primary);
    min-width: 60px;
    min-height: 60px;
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

/* ============================================
   Reviews Section - Mobile First
   ============================================ */
.reviews_block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.reviews_card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    text-align: center;
    height: 100%;
}

.reviews-card_img {
    margin-bottom: var(--spacing-sm);
}

.reviews-card_img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.reviews-card_heading {
    margin-bottom: var(--spacing-xs);
}

.reviews-card_content {
    width: 100%;
}

.yellow_color {
    color: var(--color-secondary);
    font-size: var(--font-size-lg);
}

/* ============================================
   CTA Block - Mobile First
   ============================================ */
.cta_block {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-background-secondary);
}

.cta-image_block {
    background-image: url('../img/yango_driver_in_car.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 300px;
}

.cta-content_wrapper {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-content_wrapper p:has(.brush) {
    text-align: center;
}

/* ============================================
   Accent Text
   ============================================ */
.subheadline {
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
    text-align: center;
}

/* ============================================
   Brush Stroke Effect - Two Ellipses
   ============================================ */
.brush {
    --brush-color: #FFE000;
    position: relative;
    display: inline-block;
    padding: 0.4em 1.5em;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    white-space: nowrap;
    isolation: isolate;
    margin: var(--spacing-md) 0;
}

/* First ellipse - tilted up-right (narrower, bigger angle) */
.brush::before {
    content: '';
    position: absolute;
    top: -0.05em;
    bottom: -0.05em;
    left: -0.4em;
    right: -0.4em;
    background: var(--brush-color);
    border-radius: 50%;
    transform: rotate(-8deg);
    z-index: -1;
}

/* Second ellipse - tilted down-right (narrower, bigger angle) */
.brush::after {
    content: '';
    position: absolute;
    top: 0em;
    bottom: 0em;
    left: -0.3em;
    right: -0.3em;
    background: var(--brush-color);
    border-radius: 50%;
    transform: rotate(6deg);
    z-index: -1;
}

/* Sizes */
.brush--lg {
    font-size: var(--font-size-xl);
}

/* ============================================
   Media Queries - Small Mobile (< 414px)
   ============================================ */
@media (max-width: 413px) {
    /* Hero Section - Smaller height for small screens */
    .hero_section {
        grid-template-rows: 250px auto;
    }

    .hero_cta {
        padding: var(--spacing-md) var(--spacing-sm) var(--spacing-xs) var(--spacing-sm);
    }

    /* Typography - Smaller fonts for small screens */
    .h1 {
        font-size: 1.5rem;
        line-height: 1.1;
    }

    .h2 {
        font-size: 1.25rem;
    }

    .brush {
        font-size: 1rem;
        padding: 0.3em 1em;
    }

    .subheadline {
        font-size: 0.875rem;
    }

    .paragraph {
        font-size: 0.875rem;
    }

    /* Forms - Smaller inputs */
    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        padding: var(--spacing-xs);
        font-size: 0.875rem;
    }

    button[type="submit"] {
        padding: var(--spacing-sm);
        font-size: 1rem;
    }

    .checkbox-label {
        font-size: 0.75rem;
    }

    /* Info Box - More compact */
    .info-box {
        padding: var(--spacing-md);
        gap: var(--spacing-xs);
    }

    .info-box_image {
        width: 60px;
    }

    /* CTA Block - Adjust for small screens */
    .cta_block {
        grid-template-rows: 200px auto;
    }

    .cta-image_block {
        min-height: 200px;
    }

    .cta-content_wrapper {
        padding: var(--spacing-md);
    }

    .cta-content_wrapper .h2 {
        font-size: 1.125rem;
    }

    /* Content Sections */
    .content_section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
}

/* ============================================
   Media Queries - Medium Mobile (414px - 767px)
   ============================================ */
@media (min-width: 414px) and (max-width: 767px) {
    /* Fix for brush element overflow on 425px screens */
    .brush {
        white-space: normal;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Ensure proper padding for hero section */
    .hero_cta {
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-sm) var(--spacing-md);
    }

    /* Reduce font size slightly for better fit */
    .brush--lg {
        font-size: 1.75rem;
    }

    /* Ensure content sections have proper padding */
    .content_section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

/* ============================================
   Media Queries - Tablet (>= 768px)
   ============================================ */
@media (min-width: 768px) {
    /* Typography Scale Up */
    .h1 {
        font-size: var(--font-size-2xl);
    }

    .h2 {
        font-size: var(--font-size-xl);
    }

    .h3 {
        font-size: var(--font-size-lg);
    }

    .subheadline {
        font-size: var(--font-size-lg);
    }

    .brush--lg {
        font-size: var(--font-size-2xl);
    }

    /* Hero Section */
    .hero_section {
        grid-template-rows: 400px auto;
    }

    .hero_cta {
        padding: var(--spacing-xl);
    }

    .hero_cta .h1 {
        margin-bottom: var(--spacing-md);
    }

    .hero_cta .brush {
        margin: var(--spacing-sm) 0;
    }

    .hero_cta .subheadline {
        margin-bottom: var(--spacing-md);
    }

    .hero_cta form {
        margin: var(--spacing-md) 0;
    }

    /* Content Sections */
    .content_section {
        padding: var(--spacing-2xl) var(--spacing-xl);
    }

    /* Info Box - Horizontal for Tablet */
    .info-box {
        flex-direction: row;
        gap: var(--spacing-md);
        padding: var(--spacing-lg);
        align-items: center;
        margin-top: var(--spacing-lg);
    }

    .info-box_image {
        width: 100px;
    }

    .info-box_text {
        width: auto;
    }

    /* Conditions Block */
    .conditions_block {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        grid-template-rows: repeat(3, 1fr);
    }

    /* Start Work Steps */
    .start-work_block {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        grid-auto-rows: 1fr;
    }

    /* Reviews */
    .reviews_block {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        grid-auto-rows: 1fr;
    }

    /* CTA Block */
    .cta_block {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .cta-image_block {
        min-height: 400px;
    }

    .cta-content_wrapper {
        padding: var(--spacing-xl);
    }
}

/* ============================================
   Media Queries - Desktop (>= 1024px)
   ============================================ */
@media (min-width: 1024px) {
    /* Typography Scale Up */
    .h1 {
        font-size: var(--font-size-3xl);
    }

    .h2 {
        font-size: var(--font-size-2xl);
    }

    .subheadline {
        font-size: var(--font-size-xl);
    }

    .brush--lg {
        font-size: var(--font-size-2xl);
    }

    /* Hero Section */
    .hero_section {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        min-height: 600px;
    }

    .hero_img {
        background-position: right top;
    }

    .hero_cta .h1 {
        margin-bottom: var(--spacing-lg);
    }

    .hero_cta .brush {
        margin: var(--spacing-md) 0;
    }

    .hero_cta .subheadline {
        margin-bottom: var(--spacing-lg);
    }

    .hero_cta form {
        margin: var(--spacing-lg) 0;
    }

    /* Content Sections */
    .content_section {
        padding: var(--spacing-3xl) var(--spacing-2xl);
    }

    /* Info Box - Larger Image for Desktop */
    .info-box {
        padding: var(--spacing-xl);
        gap: var(--spacing-lg);
    }

    .info-box_image {
        width: 120px;
    }

    /* Conditions Block */
    .conditions_block {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    /* Start Work Steps */
    .start-work_block {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 1fr;
    }

    /* Reviews */
    .reviews_block {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 1fr;
    }

    /* Material Icons */
    .material-symbols-outlined {
        font-size: 64px !important;
    }

    .conditions-card_icon {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   Media Queries - Large Desktop (>= 1440px)
   ============================================ */
@media (min-width: 1440px) {
    .content_section {
        max-width: 1400px;
        margin: 0 auto;
        padding: var(--spacing-3xl) var(--spacing-xl);
    }
}

/* ============================================
   Animations Support Styles
   ============================================ */
/* Button Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    animation: ripple 0.6s ease-out;
}

/* Enhanced Input Focus - анимированное подчеркивание */
input[type="text"],
input[type="tel"],
input[type="email"] {
    background: linear-gradient(to right, var(--color-primary), var(--color-primary)) no-repeat;
    background-size: 0% 2px;
    background-position: bottom;
    transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    background-size: 100% 2px;
}

/* Enhanced Hover States */
.step_number {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gray-fon_block:hover .step_number {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.conditions-card_icon {
    transition: transform 0.3s ease;
}

.conditions_card:hover .conditions-card_icon {
    transform: scale(1.05) rotate(5deg);
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Form Success & Error Messages
   ============================================ */
.success-message,
.error-message {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    box-shadow: var(--shadow-lg);
}

/* Success Message - Green theme */
.success-message {
    background-color: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
}

/* Error Message - Red theme */
.error-message {
    background-color: var(--color-primary);
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
}

/* Message Icons */
.message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
    position: relative;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.success-icon .material-symbols-outlined {
    font-size: 56px !important;
    color: white;
    font-weight: 600;
}

.error-icon .material-symbols-outlined {
    font-size: 56px !important;
    color: white;
    font-weight: 600;
}

/* Message Title */
.message-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: white;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Message Text */
.message-text {
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 413px) {
    .success-message,
    .error-message {
        padding: var(--spacing-lg);
    }

    .message-icon {
        width: 60px;
        height: 60px;
    }

    .success-icon .material-symbols-outlined,
    .error-icon .material-symbols-outlined {
        font-size: 42px !important;
    }

    .message-title {
        font-size: var(--font-size-lg);
    }

    .message-text {
        font-size: var(--font-size-sm);
    }
}

