/* ========== ОБЩИЕ СТИЛИ ========== */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
background: #f4f7fb;
color: #1a2b3c;
line-height: 1.6;
}

.container {
max-width: 1300px;
margin: 20px auto;
padding: 30px 25px;
background: white;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
border-radius: 24px;
width: calc(100% - 40px);
}

/* Типографика */
h1 {
font-size: clamp(2em, 5vw, 2.8em);
color: #003057;
margin-bottom: 20px;
font-weight: 700;
line-height: 1.2;
}

h2 {
font-size: clamp(1.6em, 4vw, 2.2em);
color: #003057;
margin: 40px 0 25px 0;
padding-bottom: 10px;
border-bottom: 4px solid #ff6b35;
display: inline-block;
max-width: 100%;
word-break: break-word;
}

h3 {
font-size: clamp(1.3em, 3vw, 1.6em);
color: #1e4a6d;
margin: 30px 0 15px;
line-height: 1.4;
}

p {
margin-bottom: 20px;
font-size: clamp(1em, 2vw, 1.1em);
}

ul, ol {
margin-left: 20px;
margin-bottom: 25px;
}

li {
margin-bottom: 8px;
font-size: clamp(0.95em, 2vw, 1.05em);
}

.text-center {
text-align: center;
}

/* Кнопки */
.btn {
display: inline-block;
background: #ff6b35;
color: white;
padding: 14px 28px;
border-radius: 60px;
text-decoration: none;
font-weight: 600;
font-size: clamp(0.9em, 2vw, 1.1em);
transition: all 0.3s ease;
border: none;
cursor: pointer;
box-shadow: 0 8px 16px rgba(255,107,53,0.3);
text-align: center;
white-space: normal;
word-break: break-word;
}

.btn-outline {
background: transparent;
border: 2px solid white;
box-shadow: none;
}

.btn:hover {
background: #e0542a;
transform: translateY(-3px);
}

.btn:active {
transform: translateY(0);
}

/* ========== HERO ========== */
.hero {
background: linear-gradient(135deg, #002b4a, #003f66);
color: white;
padding: clamp(40px, 8vw, 60px) 20px;
border-radius: 30px;
margin: 15px;
position: relative;
overflow: hidden;
}

.hero-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.15;
z-index: 0;
}

.hero-background img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
margin: 0 auto;
text-align: center;
padding: 0 10px;
}

.hero h1 {
color: white;
border-bottom: none;
font-size: clamp(1.8em, 5vw, 2.8em);
}

.hero p {
font-size: clamp(1.1em, 3vw, 1.3em);
margin-bottom: 30px;
}

.hero-buttons {
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
}

.hero-buttons .btn {
min-width: 200px;
flex: 0 1 auto;
}

/* ========== КАРТОЧКИ И СЕТКИ ========== */
.grid-2, .grid-3, .grid-4 {
display: grid;
gap: 25px;
margin: 30px 0;
width: 100%;
}

.grid-2 {
grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
grid-template-columns: repeat(4, 1fr);
}

/* Адаптация сеток */
@media (max-width: 1100px) {
.grid-4 {
grid-template-columns: repeat(3, 1fr);
}
}

@media (max-width: 900px) {
.grid-3, .grid-4 {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 600px) {
.grid-2, .grid-3, .grid-4 {
grid-template-columns: 1fr;
gap: 20px;
}
}

/* Карточки */
.card {
background: #f9fcff;
border-radius: 24px;
padding: 25px 20px;
box-shadow: 0 5px 20px rgba(0,48,87,0.08);
transition: 0.2s;
border: 1px solid rgba(0,107,181,0.1);
height: 100%;
display: flex;
flex-direction: column;
width: 100%;
max-width: 100%;
overflow: hidden;
}

.card:hover {
box-shadow: 0 15px 30px rgba(0,48,87,0.15);
transform: translateY(-5px);
}

.card i {
font-size: clamp(2em, 5vw, 2.5em);
color: #ff6b35;
margin-bottom: 15px;
display: inline-block;
line-height: 1;
align-self: center;
max-width: 100%;
}

.card h3 {
font-size: clamp(0.9em, 3vw, 1.3em);
margin: 10px 0;
word-break: break-word;
text-align: center;
}

.card p {
font-size: clamp(0.9em, 2vw, 1em);
flex-grow: 1;
text-align: center;
margin-bottom: 0;
}

/* Сервис-карточки (с изображениями) */
.service-card {
background: #f9fcff;
border-radius: 24px;
padding: 20px;
box-shadow: 0 5px 20px rgba(0,48,87,0.08);
transition: 0.2s;
border: 1px solid rgba(0,107,181,0.1);
height: 100%;
display: flex;
flex-direction: column;
width: 100%;
max-width: 100%;
}

.service-card:hover {
box-shadow: 0 15px 30px rgba(0,48,87,0.15);
transform: translateY(-5px);
}

.service-card img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 16px;
margin-bottom: 15px;
}

.service-card .service-icon {
text-align: center;
}

.service-card .service-icon i {
font-size: 2.5em;
color: #ff6b35;
margin-bottom: 10px;
}

.service-card h3 {
font-size: clamp(1.2em, 3vw, 1.4em);
margin: 10px 0;
word-break: break-word;
text-align: center;
}

.service-card p {
font-size: clamp(0.95em, 2vw, 1em);
flex-grow: 1;
text-align: center;
margin-bottom: 15px;
}

.price {
font-size: clamp(1.3em, 4vw, 2em);
font-weight: 700;
color: #ff6b35;
margin: 15px 0;
text-align: center;
}

/* ========== ТАБЛИЦЫ ========== */
.table-wrapper {
overflow-x: auto;
margin: 30px 0;
border-radius: 20px;
-webkit-overflow-scrolling: touch;
}

table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.05);
min-width: 900px;
}

th {
background: #003057;
color: white;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 16px;
font-size: clamp(0.8em, 2vw, 0.9em);
white-space: nowrap;
}

td {
padding: 14px 16px;
border-bottom: 1px solid #e2e9f0;
font-size: clamp(0.85em, 2vw, 0.95em);
}

tr:last-child td {
border-bottom: none;
}

tr:hover td {
background: #f4faff;
}

@media (max-width: 500px) {
.table-wrapper {
margin: 20px -10px;
width: calc(100% + 20px);
border-radius: 0;
}

table {
min-width: 500px;
}

th, td {
padding: 12px 10px;
}
}

/* ========== ДВЕ КОЛОНКИ ========== */
.two-columns {
display: flex;
gap: 40px;
flex-wrap: wrap;
margin-bottom: 40px;
}

.two-columns > *:first-child {
flex: 1;
min-width: 280px;
}

.two-columns > *:last-child {
flex: 2;
min-width: 300px;
}

@media (max-width: 700px) {
.two-columns {
gap: 25px;
}
}

/* ========== КОМПЛЕКСНЫЕ ПАКЕТЫ ========== */
.packages-grid {
display: flex;
gap: 30px;
flex-wrap: wrap;
}

.packages-grid > div {
flex: 1;
min-width: 280px;
background: #f0f7ff;
padding: 25px;
border-radius: 30px;
}

@media (max-width: 600px) {
.packages-grid {
gap: 20px;
}

.packages-grid > div {
padding: 20px;
}
}

/* ========== АККОРДЕОН ========== */
.more-text {
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease;
background: #f2f7ff;
border-radius: 24px;
margin: 20px 0;
padding: 0 25px;
}

.more-text.open {
max-height: 8000px;
padding: 25px;
}

.more-text h4 {
color: #003057;
margin: 25px 0 15px;
font-size: clamp(1.1em, 3vw, 1.3em);
}

.more-text p {
font-size: clamp(0.95em, 2vw, 1em);
}

.toggle-more {
background: #e1ecf9;
color: #003057;
box-shadow: none;
margin-right: 15px;
margin-bottom: 10px;
}

@media (max-width: 500px) {
.more-text {
padding: 0 15px;
}

.more-text.open {
padding: 20px 15px;
}
}

/* ========== ОТЗЫВЫ ========== */
.testimonial-card {
background: white;
border-radius: 24px;
padding: 25px;
border: 1px solid #dde7f0;
height: 100%;
display: flex;
flex-direction: column;
}

.testimonial-client {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
flex-wrap: wrap;
}

.testimonial-avatar {
width: clamp(50px, 8vw, 60px);
height: clamp(50px, 8vw, 60px);
background: #ff6b35;
color: white;
font-size: clamp(1.4em, 4vw, 1.8em);
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
flex-shrink: 0;
}

.testimonial-info h3 {
margin: 0;
font-size: clamp(1.1em, 3vw, 1.2em);
}

.testimonial-info p {
margin: 5px 0 0;
font-size: clamp(0.85em, 2vw, 0.9em);
color: #666;
}

.testimonial-rating i {
color: #ffb800;
margin-right: 3px;
font-size: clamp(0.9em, 2vw, 1em);
}

.testimonial-text {
font-size: clamp(0.95em, 2vw, 1em);
flex-grow: 1;
}

/* ========== КОНТАКТЫ И КАРТА ========== */
.contact-grid {
display: flex;
gap: 40px;
flex-wrap: wrap;
}

.contact-info {
flex: 1;
min-width: 280px;
}

.map-container {
flex: 2;
min-width: 300px;
background: #eef3f7;
border-radius: 30px;
padding: 30px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.contact-item {
display: flex;
align-items: flex-start;
gap: 15px;
margin-bottom: 25px;
}

.contact-icon {
font-size: 1.5em;
color: #ff6b35;
min-width: 40px;
text-align: center;
}

.contact-item h3 {
margin: 0 0 5px;
font-size: 1.2em;
}

.contact-item p {
margin: 0;
font-size: 1em;
}

.social-links {
display: flex;
gap: 15px;
margin-top: 20px;
flex-wrap: wrap;
}

.social-links a {
color: #003057;
font-size: 2rem;
transition: 0.3s;
}

.social-links a:hover {
color: #ff6b35;
}

@media (max-width: 700px) {
.map-container {
padding: 20px;
}

.contact-item {
gap: 10px;
}
}

/* ========== ПОДВАЛ ========== */
footer {
background: #00263b;
color: white;
border-radius: 30px;
margin: 20px 15px;
padding: 50px 30px 30px;
}

.footer-content {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 30px;
margin-bottom: 40px;
}

.footer-column h3 {
color: #ffb18c;
margin: 0 0 20px;
font-size: clamp(1.1em, 3vw, 1.3em);
}

.footer-links {
list-style: none;
margin: 0;
}

.footer-links li {
margin-bottom: 12px;
}

.footer-links a {
color: #ffb18c;
text-decoration: none;
transition: 0.3s;
font-size: clamp(0.9em, 2vw, 1em);
}

.footer-links a:hover {
color: white;
text-decoration: underline;
}

.footer-bottom {
text-align: center;
margin-top: 40px;
padding-top: 30px;
border-top: 1px solid rgba(255,177,140,0.3);
}

.footer-bottom p {
margin-bottom: 10px;
font-size: clamp(0.85em, 2vw, 0.95em);
}

.footer-bottom a {
color: #ffb18c;
text-decoration: none;
margin: 0 10px;
}

@media (max-width: 900px) {
.footer-content {
grid-template-columns: repeat(2, 1fr);
gap: 25px;
}
}

@media (max-width: 500px) {
.footer-content {
grid-template-columns: 1fr;
gap: 30px;
}

footer {
padding: 40px 20px 20px;
margin: 15px 10px;
}
}

/* ========== МОДАЛКА ========== */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,30,50,0.8);
backdrop-filter: blur(6px);
z-index: 1000;
align-items: center;
justify-content: center;
padding: 20px;
}

.modal-content {
background: white;
max-width: 500px;
width: 100%;
padding: 40px 30px;
border-radius: 40px;
position: relative;
max-height: 90vh;
overflow-y: auto;
}

.modal-close {
position: absolute;
top: 20px;
right: 25px;
background: none;
border: none;
font-size: 2.2em;
cursor: pointer;
color: #666;
line-height: 1;
padding: 5px;
}

.modal-close:hover {
color: #ff6b35;
}

.modal-title {
font-size: clamp(1.3em, 4vw, 1.8em);
margin-bottom: 25px;
padding-right: 30px;
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
margin-bottom: 5px;
font-weight: 600;
font-size: 0.95em;
color: #003057;
}

.form-control {
width: 100%;
padding: 14px 18px;
border: 1px solid #cbd5e1;
border-radius: 60px;
font-size: 1em;
transition: 0.3s;
}

.form-control:focus {
outline: none;
border-color: #ff6b35;
box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

textarea.form-control {
border-radius: 20px;
resize: vertical;
min-height: 100px;
}

@media (max-width: 500px) {
.modal-content {
padding: 30px 20px;
}

.modal-close {
top: 15px;
right: 20px;
}
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ АДАПТИВНЫЕ УТИЛИТЫ ========== */
@media (max-width: 700px) {
.container {
padding: 25px 20px;
width: calc(100% - 30px);
margin: 15px auto;
}

h1 {
font-size: 2em;
}

.hero {
margin: 10px;
padding: 40px 15px;
}

.hero-buttons .btn {
min-width: 160px;
padding: 12px 20px;
}

.card {
padding: 20px;
}
}

@media (max-width: 500px) {
.card i {
font-size: 2.2em;
margin-bottom: 10px;
}

.card h3 {
font-size: 1.2em;
}

.card p {
font-size: 0.95em;
}

.service-card img {
height: 160px;
}
}

@media (max-width: 400px) {
.container {
padding: 20px 15px;
width: calc(100% - 20px);
}

.hero-buttons {
flex-direction: column;
align-items: stretch;
}

.hero-buttons .btn {
width: 100%;
min-width: auto;
}

.testimonial-client {
flex-direction: column;
text-align: center;
}

.contact-item {
flex-direction: column;
align-items: center;
text-align: center;
}

.card i {
font-size: 2em;
}

.card h3 {
font-size: 1.1em;
}

.card p {
font-size: 0.9em;
}
}

@media (max-width: 360px) {
.card {
padding: 15px 10px;
}

.service-card {
padding: 15px;
}

.service-card img {
height: 140px;
}
}

/* ========== УТИЛИТЫ ========== */
img {
max-width: 100%;
height: auto;
display: block;
}

.hidden-text {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
}

/* Дополнительные классы для выравнивания */
.text-left {
text-align: left;
}

.text-right {
text-align: right;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; } /* ========== АДАПТИВНЫЕ ТАБЛИЦЫ ========== */
.responsive-table {
width: 100%;
margin: 20px 0;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.pricing-table {
width: 100%;
border-collapse: collapse;
background: white;
}

.pricing-table th {
background: #003057;
color: white;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 16px;
font-size: 0.95em;
white-space: nowrap;
}

.pricing-table td {
padding: 14px 16px;
border-bottom: 1px solid #e2e9f0;
font-size: 0.95em;
}

.pricing-table tr:last-child td {
border-bottom: none;
}

.pricing-table tr:hover td {
background: #f4faff;
}

/* Адаптация для планшетов */
@media (max-width: 768px) {
.pricing-table th {
padding: 12px;
font-size: 0.85em;
}

.pricing-table td {
padding: 12px;
font-size: 0.85em;
}
}

/* Адаптация для мобильных - превращаем в карточки */
@media (max-width: 600px) {
.responsive-table {
background: transparent;
box-shadow: none;
overflow: visible;
}

.pricing-table {
border: none;
box-shadow: none;
}

.pricing-table thead {
display: none; /* прячем шапку */
}

.pricing-table tbody tr {
display: block;
margin-bottom: 20px;
background: white;
border-radius: 16px;
box-shadow: 0 3px 15px rgba(0,48,87,0.08);
padding: 15px;
border: 1px solid rgba(0,107,181,0.1);
}

.pricing-table td {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 10px;
border: none;
border-bottom: 1px dashed #e2e9f0;
font-size: 0.95em;
}

.pricing-table td:last-child {
border-bottom: none;
}

.pricing-table td:before {
content: attr(data-label);
font-weight: 700;
color: #003057;
width: 40%;
min-width: 120px;
font-size: 0.9em;
text-transform: uppercase;
letter-spacing: 0.3px;
}

.pricing-table td strong {
font-weight: 700;
color: #1e4a6d;
}

/* Специально для колонки с ценой */
.pricing-table td[data-label="Стоимость"] {
font-weight: 700;
color: #ff6b35;
}
}

/* Для очень маленьких экранов */
@media (max-width: 400px) {
.pricing-table td {
flex-direction: column;
align-items: flex-start;
gap: 5px;
}

.pricing-table td:before {
width: 100%;
margin-bottom: 5px;
}

.pricing-table tbody tr {
padding: 12px;
}
}

/* Дополнительные стили для комплексных пакетов */
.packages-container {
display: flex;
gap: 30px;
flex-wrap: wrap;
margin: 30px 0;
}

.package-card {
flex: 1;
min-width: 280px;
background: linear-gradient(135deg, #f0f7ff, #e6f0fa);
padding: 25px;
border-radius: 30px;
box-shadow: 0 5px 20px rgba(0,48,87,0.08);
transition: transform 0.3s ease;
}

.package-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(0,48,87,0.15);
}

.package-card h3 {
color: #003057;
margin-top: 0;
margin-bottom: 20px;
font-size: 1.3em;
border-bottom: 2px solid #ff6b35;
padding-bottom: 10px;
}

.package-card ul {
margin: 0;
padding-left: 20px;
}

.package-card li {
margin-bottom: 10px;
color: #1e4a6d;
}

@media (max-width: 600px) {
.package-card {
padding: 20px;
}

.package-card h3 {
font-size: 1.2em;
}
} /* ========== ТАБЛИЦЫ БЕЗ ОБЕРТОК ========== */

/* Все таблицы на странице */
table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 20px;
box-shadow: 0 5px 20px rgba(0,0,0,0.05);
margin: 30px 0;
display: block; /* Превращаем в блок */
overflow-x: auto; /* Включаем скролл */
-webkit-overflow-scrolling: touch;
white-space: nowrap; /* Запрещаем перенос */
border: 1px solid #e2e9f0;
}

/* Стилизация скроллбара */
table::-webkit-scrollbar {
height: 8px;
}

table::-webkit-scrollbar-track {
background: #f0f0f0;
border-radius: 10px;
}

table::-webkit-scrollbar-thumb {
background: #ff6b35;
border-radius: 10px;
}

table::-webkit-scrollbar-thumb:hover {
background: #e0542a;
}

/* Заголовки таблиц */
table th {
background: #003057;
color: white;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 16px;
font-size: 0.95em;
white-space: nowrap;
text-align: left;
border-right: 1px solid rgba(255,255,255,0.1);
}

/* Ячейки таблиц */
table td {
padding: 14px 16px;
border-bottom: 1px solid #e2e9f0;
font-size: 0.95em;
white-space: nowrap;
text-align: left;
border-right: 1px solid #e2e9f0;
}

/* Убираем правую границу у последних ячеек */
table th:last-child,
table td:last-child {
border-right: none;
}

table tr:last-child td {
border-bottom: none;
}

table tr:hover td {
background: #f4faff;
}

/* Адаптация для разных экранов */
@media (max-width: 1200px) {
table th,
table td {
padding: 14px;
font-size: 0.9em;
}
}

@media (max-width: 992px) {
table th,
table td {
padding: 12px;
font-size: 0.85em;
}
}

@media (max-width: 768px) {
table {
margin: 20px 0;
border-radius: 16px;
}

table th,
table td {
padding: 10px 12px;
font-size: 0.8em;
}
}

@media (max-width: 576px) {
table {
margin: 15px -15px; /* Расширяем на весь экран */
width: calc(100% + 30px);
border-radius: 0;
font-size: 0.75em;
}

table th,
table td {
padding: 8px 10px;
min-width: 100px; /* Минимальная ширина колонок */
}

/* Первая колонка чуть шире */
table th:first-child,
table td:first-child {
min-width: 140px;
}

/* Колонка с ценой */
table th:nth-child(2),
table td:nth-child(2) {
min-width: 80px;
}
}

@media (max-width: 400px) {
table {
margin: 10px -10px;
width: calc(100% + 20px);
}

table th,
table td {
padding: 6px 8px;
font-size: 0.7em;
min-width: 80px;
}

table th:first-child,
table td:first-child {
min-width: 120px;
}
}