:root {
    --black: #000000;
    --gold: #D4AF37;
    --dark-brown: #3C2B1E;
    --light-gold: #F0E68C;
    --dark-gold: #B8860B;
    --light-brown: #5a4b3c;
}

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка сайта */
header {
    background-color: var(--black);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 140px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
}

.region-info {
    font-size: 18px;
    color: var(--light-gold);
    margin-top: 5px;
}


/* Основное навигационное меню (для десктопной версии) */
.main-nav {
    display: flex;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav>ul>li {
    margin-left: 20px;
    position: relative;
}

.main-nav>ul>li>a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

.main-nav>ul>li>a:hover {
    background-color: var(--gold);
    color: var(--black);
}

/* Выпадающее меню для основного навигационного меню */
.main-nav ul li ul {
    position: absolute;
    width: 180px;
    background-color: #000000;
    display: none;
    top: 100%;
    left: 0;
    z-index: 1001;
    margin: 0;
    padding: 0;
    border-top: 2px solid var(--gold);
}

.main-nav ul li ul li {
    width: 100%;
    border-bottom: 1px solid rgba(207, 171, 10, 0.3);
    margin: 0;
}

.main-nav ul li ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
}

.main-nav ul li ul li a:hover {
    background-color: var(--gold);
    color: var(--black);
}

/* Показываем выпадающее меню при наведении */
.main-nav ul li:hover>ul {
    display: block;
}

.burger-menu {
    width: 60px;
    height: 50px;
    position: fixed;
    z-index: 1000;
    top: 1%;
    right: 1%;
    background-color: #000000;
    border-radius: 8px;
    /* Скрыто по умолчанию для десктопа */
}

.burger-menu span {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
}

.burger-menu span,
.burger-menu span::before,
.burger-menu span::after {
    display: block;
    width: 25px;
    right: 0;
    height: 3px;
    background-color: #ecf0f1;
    transition-duration: .3s;
}

.burger-menu span::before,
.burger-menu span::after {
    content: '';
    position: absolute;
}

.burger-menu span::before {
    top: -9px;
    width: 20px;
}

.burger-menu span::after {
    top: 9px;
    width: 33px;
}

.burger-menu:hover {
    cursor: pointer;
}

.burger-menu.clicked span {
    background-color: transparent;
}

.burger-menu.clicked span::before {
    transform: translateY(9px) rotate(45deg);
    width: 33px;
}

.burger-menu.clicked span::after {
    transform: translateY(-9px) rotate(-45deg);
}

/* Боковое меню для мобильной версии */
#mobile-nav {
    position: fixed;
    z-index: 10;
    background-color: #000000;
    top: 0;
    right: 0;
    height: 100%;
    max-width: 250px;
    width: 100%;
    padding: 100px 40px 60px;
    transition: transform .5s ease-in;
    transform: translateX(100%);
    /* Скрыто по умолчанию для десктопа */
}

#mobile-nav.show {
    transform: translateX(0px);
}

/* Стили для мобильного меню */
#mobile-nav ul {
    list-style: circle;
    color: var(--gold);
    padding: 0;
    margin: 0;
}



#mobile-nav ul li {
    margin-bottom: 15px;
}

#mobile-nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#mobile-nav ul li a:hover {
    background-color: var(--gold);
    color: var(--black);
}

/* Выпадающие меню в мобильной версии */
#mobile-nav ul li ul {
    display: none;
    margin-left: 20px;
    margin-top: 10px;
}

#mobile-nav ul li ul li {
    margin-bottom: 10px;
}

#mobile-nav ul li ul li a {
    font-weight: normal;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Герой секция */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%233C2B1E"/><path d="M0 0L100 100" stroke="%23D4AF37" stroke-width="2"/><path d="M100 0L0 100" stroke="%23D4AF37" stroke-width="2"/></svg>');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.hero p {
    font-size: 2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--gold);
    color: var(--black);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--light-gold);
    transform: translateY(-3px);
}


/* Стили для табов */
.tabs {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.tabs_navigation {
    display: flex;
    background: #584b3e;
    padding: 0 20px;
    position: relative;
}

.tabs_title {
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px 25px;
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tabs_title i {
    font-size: 1.3rem;
}

.tabs_title:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tabs_title.active {
    color: var(--gold);
    background: var(--dark-brown);
}

.tabs_title.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
}

.tabs_body {
    padding: 30px;
}

.tabs_content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tabs_content.active {
    display: block;
}

.content-title {
    color: var(--dark-brown);
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tabs_content p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.subcategory-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.subcategory-btn {
    padding: 12px 25px;
    background: var(--light);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.subcategory-btn:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
}

.subcategory-btn.active {
    background: var(--gold);
    color: var(--black);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.portfolio-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
    height: 200px;
    background: linear-gradient(45deg, var(--dark-brown), var(--black));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.portfolio-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    color: var(--dark-brown);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.portfolio-info p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1rem;
}



/* Секция обратной связи */
.contact {
    padding: 80px 0;
    background: linear-gradient(to right, var(--dark-brown), var(--black));
    color: white;
    position: relative;
}

.contact .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gold);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--gold);
    color: var(--black);
    border: none;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Футер */
footer {
    background-color: var(--black);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
    margin-top: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.work-stages {
    padding: 60px 0;
    background-color: white;
    overflow-x: auto;
}

.work-stages .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.work-stages .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-brown);
    position: relative;
}

.work-stages .section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    margin: 15px auto;
}

.stages-line {
    display: flex;
    justify-content: space-between;
    position: relative;
    min-width: 1000px;
}

/* Линия соединения */
.stages-line:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--gold);
    z-index: 1;
}

.stage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 150px;
    flex-shrink: 0;
}

.stage-icon {
    width: 80px;
    height: 80px;
    background-color: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    border: 5px solid white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.stage-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--dark-brown);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
}

.stage-description {
    text-align: center;
    font-weight: bold;
    color: var(--dark-brown);
    font-size: 14px;
    line-height: 1.3;
}

/* Варианты сотрудничества */
.cooperation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.cooperation-section h2 {
    text-align: center;
    color: #241b0d;
    font-size: 36px;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cooperation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.cooperation-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cooperation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cooperation-card.popular {
    border: 2px solid #bd9b04;
    transform: scale(1.05);
}

.cooperation-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #bd9b04;
    color: white;
    padding: 8px 40px;
    font-weight: bold;
    font-size: 14px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(189, 155, 4, 0.3);
}

.card-header {
    background: linear-gradient(135deg, #241b0d 0%, #2d2d2d 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #bd9b04, #a08503);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.card-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.card-price {
    font-size: 28px;
    font-weight: bold;
    color: #bd9b04;
    margin: 0;
}

.card-content {
    padding: 30px;
}

.card-features {
    list-style: none;
    margin-bottom: 25px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
}

.card-features i {
    color: #bd9b04;
    font-size: 16px;
}

.card-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #bd9b04;
}

.card-details h4 {
    color: #241b0d;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.card-details ul {
    list-style: none;
    color: #666;
}

.card-details li {
    margin-bottom: 8px;
    font-size: 14px;
    position: relative;
    padding-left: 15px;
}

.card-details li:before {
    content: "•";
    color: #bd9b04;
    font-weight: bold;
    position: absolute;
    left: 0;
}



.cooperation-notes {
    text-align: center;
}

.note {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.note i {
    color: #bd9b04;
    font-size: 24px;
    flex-shrink: 0;
}

.note p {
    color: #666;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Секция политики конфиденциальности - менее заметная */
.privacy-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.privacy-section:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

.privacy-header {
    margin-bottom: 15px;
}

.privacy-header h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.privacy-header p {
    font-size: 14px;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.7);
}

.privacy-content {
    text-align: center;
}

.privacy-content p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.pdf-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.pdf-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    transform: none;
    box-shadow: none;
}


.contact-method {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.contact-method i {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
}

.contact-method h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--gold);
}

.contact-method a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--gold);
}

/* Форма */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gold);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--gold);
    color: var(--black);
    border: none;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}


.quote-section {
    padding: 70px 40px;
    margin: 60px auto;
    max-width: 900px;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f8f8f8);
    border: 1px solid #D4AF37;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(60, 43, 30, 0.1);
    position: relative;
}

.quote-section::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid #D4AF37;
    border-radius: 8px;
    pointer-events: none;
}

.quote-text {
    font-size: 22px;
    line-height: 1.7;
    color: #3C2B1E;
    margin-bottom: 25px;
    font-weight: 500;
}

.quote-text p {
    margin-bottom: 20px;
}

.quote-author {
    font-size: 18px;
    color: #D4AF37;
    font-style: italic;
    font-weight: 600;
    display: inline-block;
    padding: 0 20px;
    background: linear-gradient(to right, transparent, #f0e68c20, transparent);
}


/* Заголовок секции */
.contact .section-title {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--gold) !important;
}

/* Плавное появление */
.contact-form,
.privacy-section {
    animation: fadeInUp 0.6s ease-out;
}

.contact-form {
    animation-delay: 0.1s;
}

.privacy-section {
    animation-delay: 0.2s;
}


/* Контактные методы */
.contact-methods {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-method {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.contact-method i {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}

.contact-method h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--gold);
    font-weight: 600;
}

.contact-method a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: color 0.3s ease;
    font-size: 14px;
    word-break: break-word;
}

.contact-method a:hover {
    color: var(--gold);
}


/* Выравнивание иконок Font Awesome */
.fab,
.fas {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    width: 1em;
    height: 1em;
    line-height: 1;
    text-align: center;
}

/* Для телеграма с двумя ссылками */
.contact-method:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-method:nth-child(2) a {
    margin-bottom: 4px;
}



/* Мобильная адаптация для header */
@media (max-width: 900px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 5px 0;
    }

    .header-right {
        display: none;
    }

    .logo img {
        width: 80px !important;
    }

    .company-name {
        font-size: 18px;
    }


}

/* Адаптация hero секции */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Адаптация табов */
@media (max-width: 768px) {
    .tabs_navigation {
        flex-direction: column;
        padding: 0;
    }

    .tabs_title {
        padding: 15px;
        font-size: 1rem;
        justify-content: center;
    }

    .tabs_body {
        padding: 20px 15px;
    }

    .content-title {
        font-size: 1.4rem;
        justify-content: center;
        text-align: center;
    }
}

/* Адаптация портфолио */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .portfolio-img {
        height: 160px;
    }

    .portfolio-info {
        padding: 15px;
    }

    .portfolio-info h3 {
        font-size: 1.1rem;
    }
}

/* Адаптация этапов работы */
@media (max-width: 768px) {
    .work-stages {
        padding: 40px 0;
        overflow-x: auto;
    }

    .stages-line {
        min-width: 700px;
        padding: 0 20px;
    }

    .stage-item {
        width: 110px;
    }

    .stage-icon {
        width: 50px;
        height: 50px;
    }

    .stage-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .stage-description {
        font-size: 11px;
    }
}

/* Адаптация вариантов сотрудничества */
@media (max-width: 768px) {
    .cooperation-section {
        padding: 50px 0;
    }

    .cooperation-section h2 {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .cooperation-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cooperation-card {
        margin: 0 10px;
    }

    .card-header {
        padding: 20px;
    }

    .card-content {
        padding: 20px;
    }
}

/* Адаптация цитаты */
@media (max-width: 768px) {
    .quote-section {
        padding: 40px 20px;
        margin: 40px 15px;
    }

    .quote-text {
        font-size: 18px;
    }

    .quote-author {
        font-size: 16px;
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .logo img {
        width: 60px !important;
    }

    .company-name {
        font-size: 16px;
    }


    /* Контактная секция - только минимальные изменения для мобильной адаптации */
    .contact .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
    }

    .submit-btn {
        padding: 14px 20px;
        font-size: 16px;
    }


}






@media (max-width: 600px) {
    .subcategory-buttons {
        flex-direction: column;
    }

    .tabs_title {
        padding: 15px;
        font-size: 1rem;
    }

    .tabs_body {
        padding: 20px;
    }
}

/* Улучшение читаемости текста на мобильных */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    h1,
    h2,
    h3 {
        line-height: 1.3;
    }
}

/* Оптимизация тач-интерфейса для мобильных */
@media (max-width: 768px) {

    .subcategory-btn,
    .tabs_title,
    .cta-button {
        min-height: 44px;
        /* Минимальный размер для удобного нажатия */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Увеличиваем область клика для ссылок */
    a,
    button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Специфические стили для очень маленьких экранов */
@media (max-width: 360px) {
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .company-name {
        font-size: 14px;
    }

    .logo img {
        width: 50px !important;
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .burger-menu {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
    }

    /* Адаптация хедера для мобильных */
    .header-content {
        padding: 10px 0;
    }

    .logo img {
        width: 60px;
        height: 60px;
    }

    .company-name {
        font-size: 20px;
    }
}



.mobile-submenu-toggle {
    width: 25px;
    height: 25px;
    font-size: 16px;
}






/* Для очень маленьких экранов */
@media (max-width: 360px) {
    #mobile-nav {
        max-width: 280px;
        padding: 50px 15px 25px;
    }

    .company-name {
        font-size: 18px;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 900px) {
    #mobile-nav {
        display: block;
        /* Показываем мобильное меню */
    }

    .burger-menu {
        display: block;
        /* Показываем бургер-меню на мобильных */
    }
}

/* Плавные анимации
#mobile-nav,
.mobile-nav-overlay,
.burger-menu span,
.burger-menu span::before,
.burger-menu span::after {
    transition: all 0.3s ease-in-out;
} */


/* Улучшение доступности для тач-устройств */
@media (hover: none) and (pointer: coarse) {
    .main-nav>ul>li>a:hover {
        background-color: transparent;
        color: white;
    }

    .main-nav>ul>li>a:active {
        background-color: var(--gold);
        color: var(--black);
    }
}

@media (max-width: 900px) {
    .region-info {
        font-size: 0;
        /* Скрыть текст */
    }

}

/* Адаптивность для контактных методов */
@media (max-width: 1024px) {
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .contact-method {
        padding: 15px;
        min-height: 160px;
    }

    .contact-method i {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .contact-method h4 {
        font-size: 15px;
    }

    .contact-method a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 40px;
        padding-top: 40px;
    }

    .contact-method {
        padding: 12px;
        min-height: 150px;
    }

    .contact-method i {
        font-size: 22px;
    }

    .contact-method h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .contact-method a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .contact-method {
        padding: 10px;
        min-height: 140px;
    }

    .contact-method i {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .contact-method h4 {
        font-size: 13px;
    }

    .contact-method a {
        font-size: 11px;
    }
}

.contacts-section {
    background: var(--black);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contacts-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #c2c2c2;
    font-size: 14px;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

.icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.icon-wrapper.phone {
    background: rgba(46, 170, 70, 0.2);
    color: #2eaa46;
}

.icon-wrapper.email {
    background: rgba(220, 76, 70, 0.2);
    color: #dc4c46;
}

.icon-wrapper.telegram {
    background: rgba(0, 136, 204, 0.2);
    color: #0088cc;
}

.icon-wrapper.whatsapp {
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

.contact-text {
    font-size: 14px;
}



/* Мобильная адаптация */
@media (max-width: 768px) {
    .contacts-container {
        gap: 12px;
        justify-content: space-around;
    }

    .contact-item {
        font-size: 12px;
        padding: 4px 8px;
        gap: 6px;
    }

    .contact-item .icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contacts-container {
        gap: 8px;
    }

    .contact-item {
        font-size: 11px;
        padding: 3px 6px;
    }

    .contact-item .text {
        display: none;
    }

    .contact-item .icon {
        font-size: 16px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .logo img {
        width: 45px;
    }

    .company-name {
        font-size: 16px;
    }

    .contacts-container {
        gap: 8px;
    }

    .contact-item {
        padding: 6px 8px;
        font-size: 12px;
    }

    .contact-text {
        display: none;
    }

    .icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 40px;
    }

    .company-name {
        font-size: 14px;
    }

    .contacts-container {
        justify-content: space-around;
        gap: 5px;
    }

    .contact-item {
        padding: 5px;
    }

    .icon-wrapper {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}

/* Дополнительные медиа-запросы для очень маленьких устройств */
@media (max-width: 360px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .logo img {
        width: 35px;
    }

    .company-name {
        font-size: 13px;
    }

    .burger-menu {
        width: 40px;
        height: 40px;
    }

    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 1.3rem;
    }
}

/* Улучшение для тач-интерфейса */
@media (hover: none) and (pointer: coarse) {

    a,
    button,
    .contact-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .burger-menu {
        min-width: 44px;
        min-height: 44px;
    }
}