/* ============================================
   CSS Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #fbfbfd;
    --black: #1d1d1f;
    --gray-50: #f5f5f7;
    --gray-100: #e8e8ed;
    --gray-200: #d2d2d7;
    --gray-400: #86868b;
    --gray-600: #6e6e73;
    --gray-800: #424245;
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --blue-light: rgba(0, 113, 227, 0.1);
    --green: #34c759;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --nav-height: 48px;
    --section-padding: 120px;
    --container-width: 1120px;
    --radius: 18px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline-offset: 3px;
}

body {
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background var(--transition);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--black);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-800);
    transition: color var(--transition);
    letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--black);
}

.nav-link.active {
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--black);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue) 0%, #5856d6 50%, #af52de 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(17px, 2.5vw, 21px);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 1;
}

.hero-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(0, 113, 227, 0.08) 0%,
        rgba(88, 86, 214, 0.05) 40%,
        transparent 70%);
    animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 980px;
    transition: all var(--transition);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue);
    color: white;
}

.btn-primary:hover {
    background: var(--blue-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--blue);
}

.btn-secondary:hover {
    text-decoration: underline;
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
}

.btn-outline:hover {
    background: var(--blue);
    color: white;
}

.btn-full {
    width: 100%;
}

/* ============================================
   Stats
   ============================================ */
.stats {
    padding: 60px 24px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.stats-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--black);
    line-height: 1.1;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 8px;
    font-weight: 400;
}

/* ============================================
   Section Shared
   ============================================ */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 21px);
    color: var(--gray-600);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
    line-height: 1.5;
}

/* ============================================
   Services
   ============================================ */
.services {
    padding: var(--section-padding) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    background: white;
    border-color: var(--gray-100);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.service-illustration {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.service-illustration img {
    width: 100%;
    max-width: 320px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.55;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
    padding: var(--section-padding) 0;
    background: var(--black);
    color: white;
}

.gallery .section-title {
    color: white;
}

.gallery .section-subtitle {
    color: var(--gray-400);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(100%);
    transition: transform var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 13px;
    color: var(--gray-200);
    line-height: 1.4;
}

/* ============================================
   Gallery Modal
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
}

.modal-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    color: white;
    padding: 8px;
    transition: opacity var(--transition);
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    padding: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-prev {
    left: -60px;
}

.modal-next {
    right: -60px;
}

.modal-image {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.modal-info {
    text-align: center;
    color: white;
}

.modal-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-info p {
    font-size: 15px;
    color: var(--gray-400);
}

/* ============================================
   Pricing
   ============================================ */
.pricing {
    padding: var(--section-padding) 0;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition);
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
}

.pricing-card:hover {
    border-color: var(--gray-100);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.pricing-card.selected {
    background: var(--black);
    color: white;
    border-color: var(--black);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.selected .pricing-name {
    color: white;
}

.pricing-card.selected .pricing-price {
    background: linear-gradient(135deg, #64d2ff, #5ac8fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card.selected .pricing-features li {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
}

.pricing-card.selected .btn-outline {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.pricing-vehicle {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.pricing-vehicle svg {
    width: 100%;
    max-width: 260px;
    height: auto;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 980px;
    letter-spacing: 0.02em;
}

.pricing-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.pricing-card.featured .pricing-price {
    background: linear-gradient(135deg, #64d2ff, #5ac8fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
}

.pricing-card.featured .pricing-features li {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.6;
}

.pricing-note p {
    margin-bottom: 4px;
}

.services-note {
    text-align: center;
    margin-top: 40px;
    color: var(--gray-600);
    font-size: 15px;
    font-style: italic;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--gray-200);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    text-align: left;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: color var(--transition);
    font-family: var(--font);
    background: none;
    border: none;
}

.faq-question:hover {
    color: var(--blue);
}

.faq-chevron {
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform var(--transition);
    color: var(--gray-400);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                padding 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background: white;
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-divider {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 32px 0 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--font);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--black);
    transition: all var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 3px var(--blue-light);
}

.form-input.error {
    border-color: #ff3b30;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-note {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 16px;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-area {
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--blue);
    background: var(--blue-light);
    color: var(--blue);
}

.file-upload-area svg {
    opacity: 0.5;
}

.file-upload-area span {
    font-size: 14px;
}

.file-hint {
    font-size: 12px !important;
    opacity: 0.7;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.file-preview-item {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--gray-100);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.contact-note {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 8px;
}

.contact-note p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.55;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--blue-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.contact-item a,
.contact-item p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.5;
}

.contact-item a:hover {
    color: var(--blue);
}

/* ============================================
   Success Modal
   ============================================ */
.success-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.success-modal.active {
    opacity: 1;
    visibility: visible;
}

.success-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.success-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.success-icon {
    color: var(--green);
    margin-bottom: 20px;
}

.success-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.success-content p {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 28px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    padding: 48px 24px 24px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-100);
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 12px;
    line-height: 1.5;
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.footer-links a,
.footer-links p {
    display: block;
    font-size: 13px;
    color: var(--gray-600);
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--gray-400);
}

/* ============================================
   Drive-In Block Animation
   ============================================ */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.drive-block {
    display: block;
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--black);
    opacity: 0;
    transform: translateX(-80px) skewX(3deg);
    animation: driveIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: var(--drive-delay, 0s);
}

.drive-block.drive-gradient {
    background: linear-gradient(135deg, var(--blue) 0%, #5856d6 50%, #af52de 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes driveIn {
    0% {
        opacity: 0;
        transform: translateX(-80px) skewX(3deg);
    }
    40% {
        opacity: 1;
        transform: translateX(6px) skewX(-1deg);
    }
    65% {
        transform: translateX(-3px) skewX(0.5deg);
    }
    85% {
        transform: translateX(1px) skewX(0deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) skewX(0deg);
    }
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive: Tablet
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }
}

/* ============================================
   Responsive: Mobile
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(251, 251, 253, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 0;
        border-bottom: 1px solid var(--gray-100);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

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

    .nav-link {
        font-size: 15px;
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-100);
        width: 100%;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-visual {
        width: 350px;
        height: 350px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 32px 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8));
    }

    .contact-form {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .modal-content {
        width: 95%;
    }

    .modal-close {
        top: -44px;
        right: -4px;
    }

    .modal-nav {
        display: none;
    }

    .success-content {
        padding: 36px 24px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Form consent, error states
   ============================================ */
.form-consent {
    margin-top: 8px;
    margin-bottom: 20px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.45;
    cursor: pointer;
    user-select: none;
}

.consent-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--blue);
    cursor: pointer;
}

.consent-label input[type="checkbox"].error {
    outline: 2px solid #ff3b30;
    outline-offset: 2px;
    border-radius: 3px;
}

.consent-label a {
    color: var(--blue);
    text-decoration: underline;
}

.consent-label a:hover {
    color: var(--blue-hover);
}

.form-error {
    display: none;
    background: #fff5f5;
    color: #c41e1a;
    border: 1px solid #ffd0cc;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.file-errors {
    display: none;
    color: #c41e1a;
    background: #fff5f5;
    border: 1px solid #ffd0cc;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 8px;
}

.file-errors > div {
    padding: 2px 0;
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 680px;
    margin: 0 auto;
    z-index: 1500;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 20px 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-content {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1 1 280px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--blue);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 16px;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-actions .btn {
        flex: 1;
    }
}
