body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fcf8f2;
    color: #333;
    line-height: 1.6;
}

/* Навигационная панель */
.navbar {
    background-color: #3e2723;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-nav {
    background-color: #ffb300;
    color: #333;
    border: none;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-nav:hover {
    background-color: #ffa000;
}

header {
    background: linear-gradient(135deg, #ffb300, #ffa000);
    color: white;
    text-align: center;
    padding: 50px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.2rem;
    margin-top: 10px;
    font-weight: 300;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #eaeaea;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin: 0 0 10px 0;
    color: #e65100;
}

/* Блоки и секции */
.interactive-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0e4d4;
}

.interactive-section h2 {
    color: #ff8f00;
    margin-top: 0;
    border-bottom: 2px solid #fff3e0;
    padding-bottom: 10px;
}

.fact-section {
    background: #fff8e1;
    border: 2px dashed #ffb300;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.fact-box {
    font-size: 1.3rem;
    font-style: italic;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    color: #5d4037;
    transition: opacity 0.3s ease;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #5d4037;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
}

.btn {
    background-color: #ffb300;
    color: #333;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    background-color: #ffa000;
}

.calc-results {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff8e1;
    border-radius: 8px;
    display: none;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-window {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
    border: none;
    background: none;
}

.modal-close:hover {
    color: #333;
}

footer {
    text-align: center;
    padding: 30px;
    background-color: #3e2723;
    color: #fff8e1;
    font-size: 0.9rem;
}
