/*
    styles.css
    To connect, add to <head> in your HTML: <link rel="stylesheet" href="styles.css">
*/

/* --- ROOT VARIABLES & GLOBAL STYLES --- */
:root {
    --primary-color: #0d47a1; /* Deep Blue */
    --primary-color-dark: #002171;
    --secondary-color: #ff6f00; /* Orange Accent */
    --background-color: #f4f6f8;
    --surface-color: #ffffff;
    --text-color: #212121;
    --text-color-light: #616161;
    --border-color: #e0e0e0;
    --font-primary: 'Exo 2', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color-dark);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

section {
    padding: 80px 0;
}

section:nth-of-type(even) {
    background-color: var(--surface-color);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--surface-color);
}

.btn-primary:hover {
    background-color: #e65100; /* Darker Orange */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--surface-color);
}


/* --- HEADER --- */
.main-header {
    background-color: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color-dark);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-address {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background: var(--primary-color-dark);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 60px 0;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin-bottom: 30px;
}

.hero-advantages {
    list-style: none;
    margin-bottom: 40px;
}

.hero-advantages li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-advantages li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* --- SPECIFICATIONS TABS --- */
.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    padding: 15px 30px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-family: var(--font-primary);
    color: var(--text-color-light);
    position: relative;
    transition: color 0.3s ease;
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.spec-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.spec-list.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
}

.spec-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.spec-list li .icon-placeholder {
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    margin-right: 15px;
    opacity: 0.5;
    border-radius: 3px;
}

/* --- DETAILS SECTION --- */
.details-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.details-text h2 {
    text-align: left;
}
.details-text h2::after {
    left: 0;
    transform: translateX(0);
}

.details-text p {
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.details-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- ADVANTAGES & APPLICATIONS GRID --- */
.advantages-grid, .applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.advantage-item, .application-item {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover, .application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.advantage-item h3, .application-item h3 {
    margin: 15px 0 10px;
    font-size: 1.4rem;
}

.advantage-item p, .application-item p {
    color: var(--text-color-light);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    /* Placeholder */
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: white;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 700;
}

/* --- PACKAGE SECTION --- */
.package-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 10px;
}

.package-column h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.package-column ul, .package-column ol {
    padding-left: 20px;
}
.package-column li {
    margin-bottom: 10px;
}

/* --- REQUIREMENTS SECTION --- */
.requirements-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    flex-wrap: wrap;
}

.requirements-list li {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 1.1rem;
    background: var(--surface-color);
    padding: 15px 25px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.requirements-list .icon-placeholder {
     width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    margin-right: 15px;
    opacity: 0.5;
    border-radius: 3px;
}

/* --- PRICING TABLE --- */
.pricing-table-wrapper {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: left;
    background-color: var(--surface-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.pricing-table th, .pricing-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    background-color: var(--primary-color-dark);
    color: white;
    font-family: var(--font-primary);
}

.pricing-table tr.highlighted {
    background-color: #fff3e0; /* Light Orange */
    font-weight: bold;
}

.pricing-table tr.highlighted td:first-child {
    border-left: 4px solid var(--secondary-color);
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-grid a:hover img {
    transform: scale(1.1);
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-item h3 {
    font-size: 1.2rem;
    padding: 20px;
    cursor: pointer;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-secondary);
    font-weight: 500;
}
.faq-item h3::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.faq-item.active h3::after {
    transform: rotate(45deg);
}

.faq-item div {
    max-height: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.faq-item.active div {
    max-height: 300px; /* Adjust as needed */
    transition: max-height 0.4s ease-in;
}

.faq-item div p {
    padding: 0 20px 20px;
    margin: 0;
    color: var(--text-color-light);
}

/* --- REVIEWS --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}
.review-item {
    background: var(--surface-color);
    border-left: 4px solid var(--secondary-color);
    padding: 30px;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.review-item p {
    font-style: italic;
    color: var(--text-color-light);
    margin-bottom: 15px;
}
.review-item footer {
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

/* --- CONTACT & FOOTER --- */
.contact-section, .main-footer {
    text-align: center;
}

.contact-details {
    margin: 30px 0;
    font-size: 1.2rem;
}

.contact-details p {
    margin-bottom: 10px;
}

.main-footer {
    background-color: var(--primary-color-dark);
    color: #e0e0e0;
    padding: 40px 0;
}
.main-footer p {
    margin-bottom: 10px;
}
.main-footer a {
    color: var(--surface-color);
    text-decoration: none;
}
.main-footer .disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 20px auto 0;
}


/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    h2 { font-size: 2.2rem; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-container, .details-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .details-text h2 {
        text-align: center;
    }
    .details-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .hero-image {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav, .header-contacts {
        display: none;
    }

    .main-header .main-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--surface-color);
        padding-top: 40px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .main-header.mobile-nav-active .main-nav {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    .burger-menu {
        display: flex;
    }
    
    .package-columns {
        grid-template-columns: 1fr;
    }
}

.tab-content {
  display: none; /* Скрываем все вкладки по умолчанию */
}

.tab-content.active {
  display: block; /* Показываем только активную вкладку */
}

.tab-button {
    cursor: pointer;
}