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

body {
    font-family: 'Inter', sans-serif;
    background: #f5f8fc;
    color: #1e2f3e;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: #005f73;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 6px 12px rgba(0,95,115,0.2);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0a2e38;
}

.logo span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #2c7a6e;
    display: block;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #1f3e48;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #005f73;
}

.btn-outline {
    background: transparent;
    border: 2px solid #005f73;
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 600;
    color: #005f73;
    cursor: pointer;
    transition: 0.2s;
}

.btn-outline:hover {
    background: #005f73;
    color: white;
}

/* Hero */
.hero {
    background: linear-gradient(105deg, #e2f0f5 0%, #cde3e9 100%);
    padding: 60px 0 70px;
    border-radius: 0 0 48px 48px;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    background: rgba(0,95,115,0.15);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 60px;
    color: #005f73;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0a2e38;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #2c5a64;
    margin-bottom: 32px;
}

.btn-primary {
    background: #005f73;
    border: none;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 6px 14px rgba(0,95,115,0.3);
}

.btn-primary:hover {
    background: #0a4c5c;
    transform: translateY(-2px);
}

.hero-stats {
    flex: 0.8;
    background: white;
    padding: 28px 20px;
    border-radius: 32px;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
}

.stat-item {
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0efe5;
}
.stat-item:last-child { border: none; }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #005f73;
}

.stat-label {
    font-size: 0.9rem;
    color: #4f6b62;
}

/* Секции */
section {
    margin: 70px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0a2e38;
}

.section-sub {
    text-align: center;
    color: #5a7c71;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Карточки услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 28px;
    padding: 32px 24px;
    transition: 0.25s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    text-align: center;
    border: 1px solid #eaf3ef;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0,95,115,0.15);
    border-color: #c0ded2;
}

.service-icon {
    background: #e3f2ef;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-size: 32px;
    color: #005f73;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-card p {
    color: #4b6a60;
}

/* Акция */
.promo-block {
    background: linear-gradient(120deg, #fff6e0, #ffefc0);
    border-radius: 48px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 50px 0;
}

.promo-text h3 {
    font-size: 1.8rem;
    color: #b45f06;
}

.promo-text p {
    margin: 12px 0;
}

.promo-badge {
    background: #d97706;
    color: white;
    padding: 10px 28px;
    border-radius: 60px;
    font-weight: bold;
}

/* График ремонтов */
.schedule-table {
    background: white;
    border-radius: 32px;
    overflow-x: auto;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e2edf0;
}

th {
    background: #e9f3f0;
    color: #005f73;
}


/* График ремонтов с прокруткой */
.schedule-table_1 {
    background: white;
    border-radius: 32px;
    overflow-x: auto;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e2edf0;
}

th {
    background: #e9f3f0;
    color: #005f73;
}

/* Прокрутка для таблицы подключений — вид сохраняется */
#docss .schedule-table_1 {
    max-height: 400px;        /* высота окна прокрутки, поменяйте под макет */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* плавная прокрутка на iOS */
}

/* Шапка остаётся на месте при прокрутке */
#docss .schedule-table_1 thead th {
    position: sticky;
    top: 0;
    background: #e9f3f0;      /* обязательно, иначе просвечивает контент */
    z-index: 2;
}

/* Оповещения */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 40px 0;
}

.alert-item {
    background: #fff3e0;
    border-left: 6px solid #d97706;
    padding: 18px 20px;
    border-radius: 24px;
}

/* Информационный блок */
.info-card {
    background: #eef4f2;
    border-radius: 48px;
    padding: 40px;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.info-method {
    flex: 1;
    background: white;
    border-radius: 28px;
    padding: 24px;
}

.info-method i {
    font-size: 32px;
    color: #005f73;
    margin-bottom: 16px;
}

.info-method h3 {
    margin-bottom: 12px;
}

.payment-info {
    background: rgba(255,255,255,0.8);
    border-radius: 32px;
    padding: 20px;
}

/* Форма */
.contact-form {
    background: white;
    border-radius: 48px;
    padding: 48px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.form-left {
    flex: 1;
}

.form-right {
    flex: 1;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #d4e6e0;
    border-radius: 32px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #005f73;
    box-shadow: 0 0 0 3px rgba(0,95,115,0.2);
}

button[type="submit"] {
    background: #005f73;
    border: none;
    padding: 14px 28px;
    border-radius: 60px;
    font-weight: bold;
    color: white;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
}

button[type="submit"]:hover {
    background: #0a4c5c;
}

.form-right p {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Footer */
.footer {
    background: #0a2e38;
    color: #cfe3df;
    padding: 50px 0 30px;
    border-radius: 48px 48px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-grid a {
    color: #bdd9d0;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 760px) {
    .hero-text h2 {
        font-size: 2rem;
    }
    .contact-form {
        padding: 28px;
    }
    .nav {
        flex-direction: column;
    }
    .hero-grid {
        flex-direction: column;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .promo-block {
        flex-direction: column;
        text-align: center;
    }
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}

/* Скачать по центру */
.nav-links1 {
    display: center;
    gap: 28px;
    list-style: none;
}

.nav-links1 a {
    text-decoration: none;
    font-weight: 600;
    color: #1f3e48;
    transition: 0.2s;
}

.nav-links1 a:hover {
    color: #005f73;
}

/* Кнопка вверх */
.to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #1a1a1a;
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility 0s .25s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .25s, transform .25s, visibility 0s;
}
.to-top:hover,
.to-top:focus-visible {
  background: #333;
  outline: none;
}

@media (max-width: 768px) {
  .to-top {
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
}


