/* Общие стили */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Ссылки */
a {
    color: #B22222;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #FFD700;
}

/* Заголовки */
h1, h2, h3 {
    font-weight: bold;
    margin: 20px 0;
}

h1 {
    color: #FFD700;
    font-size: 48px;
    line-height: 1.2;
}

h2 {
    color: #B22222;
    text-align: center;
    font-size: 32px;
}

/* Абзацы */
p {
    margin: 15px 0;
    font-size: 16px;
}

/* Контейнер */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #B22222;
    color: #FFD700;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
}

.header nav a {
    margin-left: 20px;
    color: #FFD700;
    font-weight: bold;
}

.header nav a:hover {
    color: #fff;
}

/* Hero */
.hero {
    background: url('hero.jpg') center center / cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #FFD700;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-center-full {
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-main {
    background: #B22222;
    color: #FFD700;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.btn-main:hover {
    background: #FFD700;
    color: #B22222;
    transform: translateY(-3px);
}

/* Hero meta */
.hero-meta {
    margin-top: 20px;
    font-size: 16px;
    color: #fff;
}

.hero-meta span {
    display: block;
    margin: 5px 0;
}

/* Секции */
.section {
    padding: 80px 0;
}

.section.light {
    background: #fff0f0;
}

/* О нас */
.about-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.about-photo img {
    width: 300px;
    border-radius: 10px;
}

.about-text {
    max-width: 600px;
}
/* Схема работы — компактная версия */
.workflow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* чтобы не переносилось */
    gap: 15px;
    margin-top: 30px;
}

.step-box {
    padding: 12px 15px;       /* меньше отступов */
    border: 2px solid #FFD700; /* золотая рамка */
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 14px;          /* уменьшили текст */
    min-width: 140px;         /* компактная ширина */
    max-width: 160px;
}

.arrow {
    font-size: 20px;          /* чуть меньше стрелки */
    font-weight: bold;
    color: #FF4500;
}


/* Статьи */
.articles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.article-card {
    background: #fff8f0;
    padding: 20px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* FAQ */
.faq-item {
    max-width: 700px;
    margin: 20px auto;
    border: 2px solid #FFD700;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.faq-question {
    width: 100%;
    background: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.faq-question .arrow {
    font-size: 18px;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: #f9f9f9;
    text-align: left;
    font-size: 15px;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
    max-height: 500px;
    padding: 15px 20px;
}

/* QR */
.qr {
    width: 150px;
    height: 150px;
}

/* Центрирование блоков */
.center {
    text-align: center;
}
/* Для экранов до 768px (мобильные телефоны) */
@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column; /* кубики будут вертикально */
        gap: 15px;
    }

    .step-box {
        min-width: 100%; /* кубики растягиваются на ширину экрана */
        font-size: 14px; /* немного меньше текст */
        padding: 10px;
    }

    .arrow {
        display: none; /* стрелки можно убрать на мобильных */
    }

    header nav {
        flex-direction: column; /* меню вертикально */
        text-align: center;
    }

    .hero-center-full h1 {
        font-size: 22px; /* заголовок меньше */
    }

    .hero-center-full p.subtitle {
        font-size: 16px;
    }
}