:root {
    --white: #ffffff;
    --blue: #0052a4;
    --red: #d32027;
    --dark: #111827;
    --gray-light: #f5f5f7;
    --text-main: #1f2933;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.12);
    --radius-lg: 18px;
    --radius-md: 12px;
    --transition-fast: 0.25s ease;
    --transition-slow: 0.6s ease;
    --container-width: 1100px;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--gray-light);
}

body {
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* HERO */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,82,164,0.85), rgba(17,24,39,0.85)),
    url("img/azov-modern.jpg") center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
    animation: heroBgFade 1.8s ease-out forwards;
}

@keyframes heroBgFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(211,32,39,0.25), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
    padding: 40px 20px;
    animation: heroFadeIn var(--transition-slow) ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.flag {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}

.flag-white { background: var(--white); }
.flag-blue  { background: var(--blue); }
.flag-red   { background: var(--red); }

.logo-text {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 22px;
    opacity: 1;
}

.hero-title {
    font-size: 32px;
    margin: 0 0 12px;
}

.hero-subtitle {
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 24px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    cursor: pointer;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.3);
    background: #b31822;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
}

.hero-bottom-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: radial-gradient(circle at 50% -40px, var(--gray-light) 0, var(--gray-light) 60px, transparent 61px);
}

/* SECTIONS */

.section {
    padding: 60px 0;
}

.section-light { background: var(--gray-light); }
.section-white { background: var(--white); }
.section-blue  { background: linear-gradient(135deg, var(--blue), #00346b); color: var(--white); }
.section-red   { background: linear-gradient(135deg, var(--red), #8b1017); color: var(--white); }
.section-dark  { background: var(--dark); color: var(--white); }

.section-title {
    font-size: 24px;
    margin: 0 0 24px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    border-radius: 999px;
}

.section-title-light::after {
    background: linear-gradient(90deg, var(--white), rgba(255,255,255,0.4));
}

/* CARDS */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 16px 16px 18px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.18);
    backdrop-filter: blur(6px);
    transform: translateY(0);
    opacity: 0;
    animation: cardFadeUp 0.7s ease forwards;
}

@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* LIST GRID */

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.list-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    border-left: 4px solid var(--blue);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* STEPS */

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.step {
    flex: 1 1 160px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.18);
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--white);
    color: var(--red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.step-text {
    font-size: 14px;
}

/* MOBILE STEPS */

@media (max-width: 768px) {
    .step {
        padding: 8px 12px;
        border-radius: 14px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .step-text {
        font-size: 18px;
        line-height: 1.3;
    }
}

/* FAQ */

.faq {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--blue);
}

.faq-item.open .faq-question::after {
    content: "−";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 14px;
    font-size: 14px;
    border-top: 1px solid #e5e7eb;
    transition: max-height var(--transition-fast);
}

/* CONTACTS */

.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.contacts-info {
    flex: 1 1 260px;
    font-size: 14px;
}

.contacts-action {
    flex: 1 1 260px;
    font-size: 14px;
}

.ci {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
    opacity: 0.85;
}

/* FOOTER */

.footer {
    background: #00346b;
    color: rgba(255,255,255,0.8);
    padding: 16px 0;
    font-size: 13px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

/* MODAL */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-overlay.active {
    display: flex;
    animation: overlayFadeIn var(--transition-fast);
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px 22px 20px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-soft);
    position: relative;
    animation: modalScaleIn var(--transition-fast);
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.modal p {
    margin: 0 0 16px;
    font-size: 14px;
}

.modal-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
}

/* FORM */

.contact-form {
    font-size: 14px;
}

.form-row {
    margin-bottom: 12px;
}

.form-row-inline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #4b5563;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px rgba(0,82,164,0.25);
}

textarea {
    resize: vertical;
}

.captcha-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-question {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-size: 13px;
}

#captcha-answer {
    max-width: 90px;
}

.form-message {
    font-size: 13px;
    min-height: 18px;
}

.form-message.success { color: #059669; }
.form-message.error   { color: #b91c1c; }

/* REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 14px; }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal {
        margin: 0 12px;
    }
}
