* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #013220;
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-icon {
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #026c3d;
    display: none;
    flex-direction: column;
    z-index: 9;
    animation: fadeIn 0.3s ease-in-out;
}

nav a, .submenu {
    color: #fff;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

nav a:hover, .submenu:hover {
    background-color: #014f2c;
}

.dropdown {
    display: none;
    flex-direction: column;
    background-color: #035737;
}

.main-image {
    width: 100%;
    height: 500px; /* или 60vh, чтобы масштабировалось под экран */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.content {
    padding: 2rem 1rem;
    text-align: center;
    flex: 1;
}

.btn {
    background: linear-gradient(135deg, #027a48, #025c36);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: linear-gradient(135deg, #025c36, #013220);
}

form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

input, textarea {
    padding: 0.8rem;
    width: 90%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.subtitle {
    margin-top: 1rem;
    font-size: 15px;
    color: #666;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1.5rem;
}

.social-links a {
    font-size: 28px;
    color: #027a48;
    transition: transform 0.2s, color 0.2s;
}

.social-links a[title="Telegram"]:hover {
    color: #0088cc;
    transform: scale(1.2);
}

.social-links a[title="VK"]:hover {
    color: #4a76a8;
    transform: scale(1.2);
}

.social-links a[title="WhatsApp"]:hover {
    color: #25D366;
    transform: scale(1.2);
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: contain; /* помещает всё изображение без обрезки */
}


.footer {
    background-color: #013220;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .menu-icon {
    display: none;
    }
    nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: none;
    justify-content: center;
    gap: 1rem;
    }
    nav > div.submenu {
    position: relative;
    }
    .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 10;
    }
    nav > div.submenu:hover .dropdown {
    display: flex;
    }
    .logo {
    position: static;
    transform: none;
    }
}
body.theme-green {
  --main-bg: #f0f4f8;
  --main-color: #013220;
  --btn-bg: linear-gradient(135deg, #027a48, #025c36);
}

body.theme-blue {
  --main-bg: #e6f2ff;
  --main-color: #003366;
  --btn-bg: linear-gradient(135deg, #005f99, #003f66);
}

body.theme-red {
  --main-bg: #fff0f0;
  --main-color: #660000;
  --btn-bg: linear-gradient(135deg, #cc0000, #990000);
}

body {
  background-color: var(--main-bg);
  color: var(--main-color);
}

.btn {
    background: var(--btn-bg, linear-gradient(135deg, #027a48, #025c36));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}
