@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

/* ===========================
   Глобальные стили
   =========================== */

:root {
    --primary-blue: #003d82;
    --light-blue: #0066cc;
    --accent-orange: #ff8c00;
    --light-gray: #f5f7fa;
    --dark-gray: #333333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* ===========================
   Контейнер
   =========================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===========================
   Списки
   =========================== */

ul,
ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ===========================
   Навігаційна панель
   =========================== */

.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.12);
    border-bottom: 3px solid #0066cc;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 2rem;
    order: 1;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0066cc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 769px) {
    .logo-text {
        display: inline;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0rem;
    flex-wrap: nowrap;
    margin: 0;
    align-items: center;
    flex: 1;
    order: 2;
}

.nav-menu a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    white-space: nowrap;
    display: block;
}

.nav-menu a:hover {
    color: var(--accent-orange);
}

.nav-menu a.active {
    color: var(--accent-orange);
    border-bottom: 3px solid var(--accent-orange);
}

/* ===========================
   Подменю (Dropdown)
   =========================== */

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.9rem;
    white-space: nowrap;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-blue);
    list-style: none;
    padding: 0.3rem 0;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: -0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--light-blue);
    color: var(--accent-orange);
    padding-left: 2rem;
}

/* ===========================
   Переключатель мов
   =========================== */

.language-switcher {
    flex-shrink: 0;
    margin-left: auto;
}

.language-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
    color: var(--white);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.language-btn:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #e67e00 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

/* ===========================
   Бургер-меню для мобільних
   =========================== */

.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
    padding: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    order: 3;
}

.burger-menu:hover {
    opacity: 0.7;
}

.burger-menu span {
    width: 28px;
    height: 3px;
    background-color: #0066cc;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: block;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
    background-color: #ff8c00;
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: #ff8c00;
}

/* ===========================
   Кнопки
   =========================== */

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #e67e00 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #0066cc 0%, #003d82 100%);
    color: white !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #003d82 0%, #002255 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.btn-outline {
    background: white;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
}

.btn-outline:hover {
    background: #fff7ec;
    color: var(--accent-orange);
}

/* ===========================
   Основний контент
   =========================== */

main {
    min-height: calc(100vh - 200px);
}

/* ===========================
   Секція Про нас (превью)
   =========================== */

.about-preview {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.section-content {
    text-align: center;
}

.section-content h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-content p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ===========================
   Секція Послуг
   =========================== */

.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.features h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 50%, #f5faff 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #0066cc, #ff8c00) 1;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, #e8f0ff 0%, #f0f4ff 50%, #fff5f0 100%);
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.25);
    border-image: linear-gradient(135deg, #ff8c00, #0066cc) 1;
}

.feature-card-premium {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8f0 50%, #fff0f5 100%);
    border-image: linear-gradient(135deg, #ff8c00, #ff6b35) 1;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.15);
}

.feature-card-premium:hover {
    background: linear-gradient(135deg, #ffe8f0 0%, #fff5f0 50%, #ffe0f0 100%);
    box-shadow: 0 20px 50px rgba(255, 140, 0, 0.3);
    border-image: linear-gradient(135deg, #ff6b35, #ff8c00) 1;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: block;
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.feature-card-premium h3 {
    color: #ff8c00;
}

.feature-card p {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===========================
   Нижній колонтитул
   =========================== */

footer {
    background: linear-gradient(135deg, #003d82 0%, #001a4d 100%);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
    box-shadow: 0 -4px 15px rgba(0, 61, 130, 0.1);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

/* ===========================
   Адаптивний дизайн
   =========================== */

/* Десктоп (более 768px) - скрыть бургер меню */
@media (min-width: 769px) {
    .burger-menu {
        display: none !important;
    }
}

/* End of main styles */
