:root {
    /* Палитра */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff; 
    --primary-border: #93c5fd;
    
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    
    /* Размеры и тени */
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);

    /* Глобальные настройки */
    scroll-behavior: smooth;
    accent-color: var(--primary);
}

* { 
    box-sizing: border-box; 
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}
.header.scrolled {
    box-shadow: var(--shadow);
}
.header-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--primary); }

.nav { display: flex; gap: 32px; }
.nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav a:hover { color: var(--primary); }


.lang-toggle {
    position: relative;
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 4px;
    border-radius: 50px;
    width: 90px;
}
.lang-toggle input { display: none; }
.lang-toggle label {
    flex: 1;
    text-align: center;
    padding: 5px 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    transition: color 0.4s ease;
}
.lang-toggle .slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 41px;
    height: calc(100% - 8px);
    background: var(--primary);
    border-radius: 50px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1;
    pointer-events: none;
}
#lang-ua:checked ~ .slider { transform: translateX(41px); }
#lang-cs:checked + label, #lang-ua:checked + label { color: white; }


.hero { padding: 80px 0 60px; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; line-height: 1.1; letter-spacing: -0.05em; }
.hero h1 span { color: var(--primary); }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.hero-btns { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }


.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; }
.section-header p { color: var(--muted); font-size: 1.1rem; max-width: 500px; margin: 10px auto 0; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card {
    background: var(--card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}
.feature-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-lg);
}
.feature-card .icon { width: 40px; height: 40px; color: var(--primary); margin-bottom: 15px; }
.feature-card h3 { margin: 0 0 10px 0; font-size: 1.25rem; }


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--text); background: white; }
.btn-outline:hover { background: var(--primary-soft); border-color: var(--primary-border); }


.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }


.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { 
    overflow: hidden; 
    border-radius: var(--radius); 
    height: 240px; 
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s, transform 0.3s;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease-out; 
}
.gallery-item:hover img { transform: scale(1.05); }


#order .card.order-card {
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    padding: 50px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
#order .card.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
}
.order-header h2 { font-size: 2rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.order-header p { color: var(--muted); margin-bottom: 35px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.photo-label { display: flex; justify-content: space-between; align-items: center; }
.photo-limit { font-size: 11px; color: var(--muted); font-weight: 400; }

.field input, .field select, .field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.file-input-wrapper {
    background: var(--bg);
    border: 2px dashed var(--border);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative; 
    text-align: center;
}
.file-input-wrapper:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.file-input-wrapper input[type="file"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}
.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.preview-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    animation: imgAppear 0.3s ease forwards;
}
@keyframes imgAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.consent-group {
    margin: 30px 0;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border);
}
.consent { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.consent a { color: var(--primary); text-decoration: none; }
.consent a:hover { text-decoration: underline; }

#submitBtn {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
    border-radius: 10px;
}
#submitBtn:disabled { 
    background: #e2e8f0; 
    color: var(--muted);
    box-shadow: none; 
    cursor: not-allowed; 
    transform: none;
}
#submitBtn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.35);
}
.form-msg { text-align: center; margin-top: 15px; font-weight: 600; min-height: 24px; }


.footer { 
    padding: 60px 0 40px; 
    border-top: 1px solid var(--border); 
    margin-top: 60px; 
    background: #fff; 
}
.footer-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
}
.legal-info p { margin: 4px 0; font-size: 14px; color: var(--text); }
.legal-info a { color: var(--primary); text-decoration: underline; transition: opacity 0.2s; }
.legal-info a:hover { opacity: 0.7; text-decoration: none; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }


@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .form-grid { grid-template-columns: 1fr; }
    #order .card.order-card { padding: 30px 20px; }
    .nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-top: 1px solid var(--border); height: 65px; justify-content: space-around; z-index: 101; margin: 0; padding: 0 10px; }
    .nav a { flex-direction: column; gap: 4px; font-size: 10px; }
    .nav a svg { width: 20px; height: 20px; }
    .header-actions { display: none; } 
    .footer-inner { flex-direction: column; gap: 30px; text-align: center; align-items: center; }
    .footer-links { justify-content: center; }
    main.container { padding-bottom: 80px; } 
}


.honeypot-field {
    position: absolute;
    left: -5000px; 
    top: -5000px;  
    opacity: 0;      
    pointer-events: none; 
}



.media-grid {
    display: grid;
    
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem; 
}


.media-item {
    width: 100%;
    height: 300px; 
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item:hover {
    transform: scale(1.03); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}




@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}


@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
    .media-item {
        height: 250px; 
    }
}

/* =================================
   УЛУЧШЕНИЕ: Анимации и визуал
   ================================= */

@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero {

    background: linear-gradient(-45deg, var(--bg), #e0e8f9, var(--bg));
    background-size: 400% 400%;
    animation: animated-gradient 15s ease infinite;
    border-radius: 0 0 40px 40px; 
    padding: 100px 20px 80px; 
}


.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover:not(:disabled) svg {
    transform: translateX(-3px); /
}
