:root {
  --primary-color: #D32F2F;
  --primary-hover-color: #B71C1C;
  --text-color: #2c3e50;
  --text-light-color: #ecf0f1;
  --background-color: #ffffff;
  --section-bg-color: #f8f9fa;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  --border-radius: 12px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 50px;
  position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.nav.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  height: 62px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 16px;
  position: relative;
  transition: color 0.3s;
  padding-bottom: 5px;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease-in-out;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 60%;
}
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}
.burger span {
  height: 3px;
  width: 100%;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s;
}
.hero {
  height: 100vh;
  background: url('https://kazrestore.kz/wp-content/uploads/2024/10/9jAiVk19pHDvgc2d2JCeKyMNPXDGZjRiB6N3XClL-big.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--text-light-color);
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeUp 1.2s ease forwards;
}
.hero h1 {
  font-size: 3.2rem;
  margin: 0 0 15px;
  font-weight: 800;
  line-height: 1.2;
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 35px;
  color: #eee;
}
.btn {
  background: var(--primary-color);
  color: #fff;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.3s;
  display: inline-block;
}
.btn:hover {
  background: var(--primary-hover-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
#about {
    text-align: center;
}
#about p {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto 20px;
    color: #555;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.card {
    background: var(--background-color);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.card h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}
#standards {
    background-color: var(--section-bg-color);
}
#standards .card {
    border-top: 4px solid var(--primary-color);
}
#standards .card h3 {
    font-size: 1.3rem;
}
#standards .card p {
    font-size: 0.95rem;
}
#standards .card-grade {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}
#services {
    background-color: var(--background-color);
}
.gallery {
    margin-top: 80px;
    text-align: center;
}
.gallery h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 40px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}
.gallery-grid img:hover {
    transform: scale(1.05);
}
#advantages {
    background-color: var(--section-bg-color);
}
#advantages .card {
    text-align: center;
    background-color: #fff;
}
#contacts {
    background-color: var(--section-bg-color);
}
.contact-info {
    text-align: center;
    max-width: 600px;
    margin: auto;
    font-size: 1.15rem;
}
.contact-info p {
    margin-bottom: 15px;
}
.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.contact-info a:hover {
    color: var(--primary-color);
}
.contact-info .btn {
    margin-top: 20px;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
}
.social-links a svg {
    width: 32px;
    height: 32px;
    fill: var(--text-color);
    transition: fill 0.3s, transform 0.3s;
}
.social-links a:hover svg {
    fill: var(--primary-color);
    transform: scale(1.1);
}
.footer {
  background: var(--primary-color);
  color: var(--text-light-color);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.95rem;
}


@media (max-width: 992px) {
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .nav.container {
    padding: 0 20px;
  }
  .burger {
    display: flex;
    z-index: 1001;
  }
  .nav-links {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: auto;
    background: var(--background-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    transition: top 0.4s ease-in-out;
    gap: 0;
    padding-top: 62px;
    padding-bottom: 10px;
    z-index: 999;
  }
  .nav-links.active {
    top: 0;
  }
  .nav-link {
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 12px 25px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
  }
  .nav-link:last-child {
      border-bottom: none;
  }
  .nav-link:hover {
      background-color: var(--section-bg-color);
  }
  .nav-link.active {
      color: var(--primary-color);
      font-weight: 600;
  }
  .nav-link::after {
      display: none;
  }
  .burger.active span {
      background: var(--text-color);
  }
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .section-title {
      font-size: 2rem;
  }
  .section {
      padding: 50px 0;
  }
  .grid, .grid-4-cols {
      grid-template-columns: 1fr; /* 1 колонка по умолчанию */
      gap: 20px;
  }
}

.contact-info .btn {
  color: #f8f4f4;
}

/* СТИЛИ ДЛЯ НОВЫХ БЛОКОВ */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.application-card {
    background-color: var(--section-bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}
.application-card svg {
    width: 48px;
    height: 48px;
    fill: var(--primary-color);
    margin-bottom: 15px;
}
.application-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}
.application-card p {
    color: #555;
    font-size: 0.95rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    margin-top: 40px;
}
.process-step {
    position: relative;
    padding-top: 40px;
}
.process-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--background-color);
}
.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.process-step p {
    color: #555;
    font-size: 0.9rem;
}


/* ===== НАЧАЛО: СТИЛИ ДЛЯ НОВОГО МОБИЛЬНОГО МЕНЮ ===== */

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

@media (max-width: 768px) {

  body {
    /* Добавляем отступ внизу, чтобы меню не перекрывало контент */
    padding-bottom: 80px;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgb(250, 248, 248);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    border-top: 1px solid #60565692;
    backdrop-filter: blur(8px);
    z-index: 998;
  }

  .nav-item {
    flex: 1;
    text-align: center;
  }

  .nav-item a {
    text-decoration: none;
    color: #60565692;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .icon-box {
    width: 52px;
    height: 52px;
    border: 2px solid #f40505b6; /* Рамка иконки */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transition: all 0.2s ease;
  }

  .icon-box svg {
    width: 24px;
    height: 24px;
    fill: #f40505b6; /* Цвет иконки (SVG) */
    transition: fill 0.2s ease;
  }

  /* Эффекты при наведении (или нажатии на мобильном) */
  .nav-item:hover .icon-box,
  .nav-item:active .icon-box {
    border-color: #c12020;
    background: rgba(213, 16, 16, 0.329);
  }

  .nav-item:hover svg,
  .nav-item:active svg {
    fill: #c71212;
  }

  .nav-item:hover span,
  .nav-item:active span {
    color: #c71a1a;
  }
}
/* ===== КОНЕЦ: СТИЛИ ДЛЯ НОВОГО МОБИЛЬНОГО МЕНЮ ===== */


/* ===== НАЧАЛО: СТИЛИ ДЛЯ ВСТРОЕННОГО КАТАЛОГА ===== */
/* Стили для контейнера каталога внутри секции */
.catalog {
  padding: 0; /* Убираем внутренние отступы, т.к. секция уже имеет отступы */
  /* max-width и margin убраны, т.к. используется .container */
}
/* Стили для заголовка каталога (теперь это .section-title) */

.catalog-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Адаптивно */
}

.catalog-card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--card-shadow);
  height: 100%; /* Выравнивание высоты */
}
.catalog-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.catalog-card .icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 160px;
  padding: 15px;
  box-sizing: border-box;
}
.catalog-card svg {
  width: 70%;
  height: 70%;
  max-width: 90px;
  max-height: 90px;
}

.catalog-content {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}
.catalog-content h3 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #222;
}
.catalog-content p {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.3;
}
.catalog-btn {
  display: block;
  padding: 10px 0;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s ease;
}
.catalog-btn:hover {
  background-color: var(--primary-hover-color);
}

/* Адаптация каталога внутри основного @media */
@media (max-width: 767px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    gap: 12px;
  }
  .catalog-card .icon-container {
    height: 120px;
    padding: 10px;
  }
   .catalog-card svg {
     width: 65%;
     height: 65%;
   }
  .catalog-content {
    padding: 10px;
  }
  .catalog-content h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .catalog-content p {
    font-size: 12px;
    margin-bottom: 6px;
  }
  .catalog-btn {
    font-size: 13px;
    padding: 8px 0;
    border-radius: 20px;
  }
}
/* ===== КОНЕЦ СТИЛЕЙ ДЛЯ ВСТРОЕННОГО КАТАЛОГА ===== */