@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


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

:root {
    --dark: #1a1a1a;
    --gray: #333333;
    --accent: #ff9800;
    --light: #f5f5f5;
    --white: #ffffff;
}

body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray) 100%);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.logo {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    color: var(--white);
}

.company-name {
    font-size: 18px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #fff;
}

.btn-consult {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-consult:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: var(--accent);
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 5px;
}

/* Navigation Menu */
nav {
    background: var(--white);
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 76px;
    z-index: 99;
}

nav ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    list-style: none;
}

nav li {
    flex: 1;
}

nav a {
    display: block;
    padding: 15px 20px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    text-align: center;
}

nav a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--light);
}

/* Hero Section */
.hero {
    background: url('/img/hero.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    min-width: 100%;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 30px;
    font-weight: 700;
    max-width: 800px;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 20px !important;
    }
}

.hero .btn-consult {
    font-size: 16px;
    padding: 15px 40px;
}

/* Sections */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--dark);
    text-align: center;
    font-weight: 700;
}

/* Services Section */
#services {
    background: var(--light);
}

.services-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-btn {
    background: var(--white);
    border: 2px solid #ddd;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--gray);
}

.service-btn.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.service-btn:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.service-desc {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-desc h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 24px;
}

.service-desc p {
    color: #666;
    line-height: 1.8;
}

/* Advantages Section */
#advantages {
    background: var(--white);
}

.advantages-description {
    color: #666;
    margin: -25px auto 25px;
    text-align: justify;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: var(--light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--accent);
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advantage-card h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 20px;
}

.advantage-card p {
    color: #666;
}

/* Resources Section */
#resources {
    background: var(--light);
}

.resources-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.resources-content p {
    font-size: 18px;
    color: #999;
}

/* Contacts Section */
#contacts {
    background: var(--white);
}

.contacts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow-y: hidden;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--dark);
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--light), #e0e0e0);
    height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    text-align: center;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray) 100%);
    color: var(--white);
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 24px;
    color: var(--dark);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

.form-group button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.form-group button:hover {
    background: #e68900;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 130;
    }

    #main-nav {
        display: none;
    }

    body.nav-open #main-nav {
        display: block;
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: var(--white);
        z-index: 120;
        animation: fadeInMenu 0.3s;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100vh;
        gap: 28px;
        font-size: 1.2em;
        padding: 0;
    }

    #main-nav li {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .header-right {
        flex-direction: column;
        gap: 15px;
        align-items: flex-end;
    }

    .btn-consult {
        width: 95vw;
        max-width: 440px;
        margin: 30px auto 0 auto;
        display: block;
    }

    .nav-btn-li {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }

    #main-nav {
        display: block !important;
        position: static;
        width: auto;
        height: auto;
        background: none;
        animation: none;
    }

    #main-nav ul {
        flex-direction: row;
        height: auto;
        gap: unset;
        font-size: unset;
        align-items: unset;
        justify-content: unset;
    }

    .nav-btn-li {
        display: none;
    }

    .btn-consult {
        width: auto;
        max-width: none;
        margin: 0;
        display: inline-block;
    }
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* --- Tablet horizontal (max-width: 1024px) --- */
@media (max-width: 1024px) {

    .header-container,
    nav ul,
    .footer-container,
    section {
        max-width: 970px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero {
        width: 90%;
    }
}

/* --- Tablet vertical & small laptop (max-width: 768px) --- */
@media (max-width: 768px) {
    .header-container {
        padding-left: 7px;
        padding-right: 7px;
    }

    .logo-section {
        gap: 7px;
    }

    .logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .company-name {
        font-size: 15px;
    }

    .mobile-menu-btn {
        order: 2;
        margin-left: auto;
    }

    .header-right,
    .contact-info {
        display: none !important;
    }

    #main-nav {
        display: none;
    }

    body.nav-open #main-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        z-index: 120;
        animation: slideInRight 0.3s;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    }

    #main-nav ul {
        flex-direction: column;
        align-items: flex-end;
        height: auto;
        justify-content: flex-start;
        margin-top: 80px;
        gap: 30px;
        font-size: 1.13em;
        width: 100%;
    }

    #main-nav li {
        flex: none;
        width: 100%;
        text-align: right;
    }

    .nav-btn-li .btn-consult {
        display: block;
        width: 96vw;
        margin: 15px auto;
        font-size: 17px;
        padding: 16px 12px;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* --- Phones <480px --- */
@media (max-width: 480px) {
    .logo {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .footer-container {
        padding: 8px 0;
    }

    .services-container,
    .contacts-container,
    .advantages-grid {
        padding: 0 8px;
    }

    .hero {
        width: 99%;
    }

    .hero h1 {
        font-size: 17vw;
    }

    .service-btn,
    .btn-consult {
        font-size: 15px;
        padding: 10px 8px;
    }
}

/* --- Mobile burger close (cross) --- */
.mobile-menu-close {
    display: none;
    position: absolute;
    right: 20px;
    top: 24px;
    background: none;
    border: none;
    font-size: 40px;
    color: var(--accent);
    cursor: pointer;
    z-index: 300;
    transition: opacity 0.2s;
}

body.nav-open .mobile-menu-close {
    display: block;
}

@media (min-width: 769px) {
    .mobile-menu-close {
        display: none !important;
    }
}

.mobile-menu-close:active,
.mobile-menu-close:hover {
    color: #e68900;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .contacts-container {
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }

    .contacts-info,
    .map-placeholder {
        width: 100%;
        max-width: 100vw;
    }

    .contacts-info {
        gap: 18px;
    }

    .contact-item {
        gap: 9px;
        font-size: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {

    .contacts-container,
    .contacts-info,
    .map-placeholder {
        box-sizing: border-box;
    }

    .contacts-info {
        gap: 11px;
    }

    .contact-item h3 {
        font-size: 1em;
    }

    .contact-item p {
        font-size: 0.96em;
    }

    .map-placeholder,
    .map-placeholder iframe {
        border-radius: 6px;
    }

    .map-placeholder iframe {
        width: 100%;
        height: 100%;
    }
}
