@font-face { font-family: 'Inter'; src: url('../fonts/Inter_18pt-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; }

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

html {
  scroll-behavior: smooth;
}

body { color: #212529; font-family: 'Inter', sans-serif; }
body.overlay-open { overflow: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0; }
.main-container { position: relative; }

img { max-width: 100%; height: auto; display: block; }

p { line-height: 1.5; }

h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 20px;
  color: #1a1a1a;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 3px;
  margin: 14px auto 0 auto;
}

.about-company h2::after {
  margin-left: 0;
  margin-right: auto;
}

.breadcrumbs { margin-bottom: 30px; font-size: 14px; }
.breadcrumbs__item { display: inline-block; position: relative; padding-right: 15px; }
.breadcrumbs__item:not(:last-child)::after { content: ">"; margin: 0 8px; color: #999; position: absolute; right: -5px; }
.breadcrumbs__item a { color: #007bff; text-decoration: none; transition: color 0.3s ease; }
.breadcrumbs__item a:hover { text-decoration: underline; }
.breadcrumbs__item:last-child span { color: #333; font-weight: 500; }

.swiper { opacity: 0; visibility: hidden; transition: opacity 0.5s ease-in-out; }
.swiper.swiper-initialized { opacity: 1; visibility: visible; }
.swiper-loader { display: flex; justify-content: center; align-items: center; height: 286px; background: #f8f9fa; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.swiper-loader.hidden { display: none; }
.loader-spinner { width: 150px; height: 84px; background: url(../icons/loading.gif) no-repeat; background-size: cover; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.callback-content-button {
  display: inline-block;
  padding: 18px 40px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  text-align: center;
  border: none;
  cursor: pointer;
}

/* ---- Страница услуг ---- */
.uslugi-section {
    padding: 40px 0 60px;
}

.uslugi-section h1 {
    font-size: 32px;
    margin: 0 0 24px;
    color: #1a1a1a;
}

.uslugi-subtitle {
    color: #555;
    font-size: 16px;
    margin: 0 0 32px;
    max-width: 760px;
    line-height: 1.5;
}

.uslugi-group-title {
    font-size: 22px;
    margin: 44px 0 20px;
    color: #1a1a1a;
}

.uslugi-group-title:first-of-type {
    margin-top: 24px;
}

.uslugi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.uslugi-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7e9ec;
    box-shadow: 0 5px 18px rgba(25, 36, 50, .07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.uslugi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(25, 36, 50, .13);
}

.uslugi-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #f8f9fa, #eef1f4);
    overflow: hidden;
}

.uslugi-card__img picture,
.uslugi-card__img img {
    display: block;
    width: 100%;
    height: 100%;
}

.uslugi-card__img img {
    object-fit: contain;
    transition: transform 0.3s ease;
}

.uslugi-card:hover .uslugi-card__img img {
    transform: scale(1.03);
}

.uslugi-card__title {
    display: block;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.uslugi-card__main {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.uslugi-card__children {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.uslugi-card__child-link {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.uslugi-card__child-link:hover {
    text-decoration: underline;
}

.price-list-section {
    padding: 40px 0 80px;
}

.price-list-section h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.price-list-wrap {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 40px;
}

.price-list {
    width: 100%;
    border-collapse: collapse;
}

.price-list thead {
    background: #f8f9fa;
}

.price-list th {
    text-align: left;
    padding: 18px 24px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    border-bottom: 1px solid #e9ecef;
}

.price-list td {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    font-size: 15px;
    color: #333;
}

.price-list tbody tr:hover {
    background: #fafafa;
}

.price-list__order-button {
    display: inline-block;
    padding: 8px 18px;
    background: #007bff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.price-list__order-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.price-list__section th {
    padding-top: 18px;
    padding-bottom: 18px;
    background: #f1f3f5;
    font-size: 18px;
    font-weight: 700;
}

.price-list__section a {
    color: #1a1a1a;
    text-decoration: none;
}

.price-list__section a:hover {
    color: #ad1f2d;
}

@media (max-width: 992px) {
  .manufacture h2::after,
  .manufacture-two-cols h2::after,
  .delivery h2::after {
    margin-left: 0;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
    h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .price h2::after,
    .cooperation-steps h2::after {
        margin-left: 0;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .price-list-section {
        padding: 28px 0 50px;
    }

    .price-list-section h1 {
        font-size: 28px;
    }

    .price-list {
        font-size: 14px;
    }

    .price-list th,
    .price-list td {
        padding: 12px 14px;
    }
}

/* ==========================================================
   Сводный прайс: обёртка таблицы, вступление и примечания.
   В вёрстке /ceny/ используются классы price-list__scroll,
   price-list__intro и price-list__notes — стилей для них
   не было, поэтому таблица шла без карточки и без
   горизонтальной прокрутки на узких экранах.
   ========================================================== */

.price-list__intro {
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a4a;
}

.price-list__scroll {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price-list__scroll .price-list {
    min-width: 720px;
}

/* Таблица разовых услуг узкая: горизонтальная прокрутка ей не нужна. */
.price-list__scroll--auto .price-list {
    min-width: 0;
}

.price-list--compact td {
    white-space: nowrap;
}

.price-list__subtitle {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: #1a1a1a;
}

.price-list__lead {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a4a;
}

.price-list__notes h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: #1a1a1a;
}

.price-list__notes p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a4a;
}

/* ==========================================================
   Страница 404
   ========================================================== */

.error-page {
    padding: 60px 0 100px;
    text-align: center;
}

.error-page__code {
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    color: #e9ecef;
    margin-bottom: 8px;
}

.error-page h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.error-page__text {
    max-width: 620px;
    margin: 0 auto 32px;
    font-size: 17px;
    line-height: 1.7;
    color: #4a4a4a;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.error-page__button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    background: #007bff;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.error-page__button:hover {
    background: #0069d9;
}

.error-page__button--ghost {
    background: #fff;
    color: #2c3e50;
    border: 1px solid #dfe3e8;
}

.error-page__button--ghost:hover {
    background: #f8f9fa;
    color: #1a1a1a;
}

.error-page__subtitle {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a94a0;
    margin-bottom: 16px;
}

.error-page__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-page__links a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #f8f9fa;
    border: 1px solid #eef1f4;
    color: #2c3e50;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}

.error-page__links a:hover {
    background: #eef4ff;
}

@media (max-width: 600px) {
    .error-page__code {
        font-size: 68px;
    }

    .error-page h1 {
        font-size: 26px;
    }

    .error-page__button {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* ==========================================================
   Правовые страницы (политика конфиденциальности)
   ========================================================== */

.legal-section {
    padding: 40px 0 80px;
}

.legal-section h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.legal-updated {
    font-size: 15px;
    color: #8a94a0;
    margin-bottom: 32px;
}

.legal-text h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 12px;
    color: #1a1a1a;
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text p {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.75;
    color: #3d4450;
}

.legal-text ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.legal-text li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.7;
    color: #3d4450;
}

.legal-text a {
    color: #007bff;
}

.legal-text a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .legal-section h1 {
        font-size: 26px;
    }

    .legal-text h2 {
        font-size: 19px;
    }
}
