/* === Базовые стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #fff8f0;
    color: #3a2e22;
    line-height: 1.6;
}

/* === Шапка и меню === */
header {
    background: linear-gradient(135deg, #ff9a56, #ff6f3c);
    padding: 20px 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* === Hero-секция === */
.hero {
    background: linear-gradient(rgba(255,154,86,0.7), rgba(255,111,60,0.7)),
                url('https://images.unsplash.com/photo-1425082661705-1834bfd09dca?w=1600') center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background: white;
    color: #ff6f3c;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* === Контейнер === */
.container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

h2 {
    font-size: 36px;
    color: #ff6f3c;
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    color: #ff6f3c;
    margin-bottom: 10px;
}

/* === Карточки === */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card .emoji {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

/* === Предупреждение === */
.warning {
    background: #ffe5e5;
    border-left: 5px solid #e74c3c;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    color: #7a1f1f;
}

.info {
    background: #e8f5e9;
    border-left: 5px solid #4caf50;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    color: #1b5e20;
}

/* === Списки === */
ul.check-list, ul.bad-list {
    list-style: none;
    margin: 15px 0;
}

ul.check-list li::before {
    content: "✅ ";
}

ul.bad-list li::before {
    content: "❌ ";
}

/* === Футер === */
footer {
    background: #3a2e22;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

footer a {
    color: #ffb58a;
    text-decoration: none;
    margin: 0 10px;
}

/* === Форма === */
form {
    max-width: 500px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 12px;
    border: 2px solid #ffd9b8;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ff6f3c;
}

button {
    background: #ff6f3c;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #e55a2b;
}

/* === Адаптивность === */
@media (max-width: 600px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    h2 { font-size: 28px; }
    nav ul { gap: 15px; }
}