
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    flex-shrink: 0; /* Не сжимаем шапку */
}

.main-content {
    flex: 1; /* Занимаем всё оставшееся пространство */
    padding-top: 20px; /* Дополнительный отступ */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка */
/* Базовые стили для десктопа */
.header {
    position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #006400;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav__list a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav__list a:hover {
  color: #90ee90;
}

/* Стили для гамбургер-иконки */
.hamburger {
  display: none; /* Скрываем на десктопе */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .header {
    position: relative; /* Отключаем sticky на мобильных */
    padding: 15px 15px;
  }
  .hamburger {
    display: flex; /* Показываем гамбургер */
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%; /* Изначально скрыто за экраном */
    width: 250px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
  }

  .nav.active {
    right: 0; /* Показываем меню */
  }

  .nav__list {
    flex-direction: column;
    gap: 20px;
  }

  .nav__list a {
    color: #006400; /* Зелёный цвет текста в мобильном меню */
  }

  /* Анимация гамбургера в крестик */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Главный экран */
.hero {
    background: linear-gradient(rgba(0, 100, 0, 0.8), rgba(0, 100, 0, 0.9)), url('https://via.placeholder.com/1920x1080/004d00/FFFFFF?text=Типография');
    background-size: cover;
    background-position: center;

    box-sizing: border-box;
    display: flex;
    color: white;
    text-align: center;
    padding: 40px 15px;
    margin-top: 3.5rem;
}

.hero h1 {
    font-size: clamp(24px, 8vw, 48px);
    margin-bottom: 1rem;
}

.btn {
    background: #32cd32;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #228b22;
}

/* Услуги */
.services {
    padding: 4rem 0;
    background: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #006400;
    font-size: 2.2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: #f0f8f0;
    border-left: 4px solid #006400;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 100, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #006400;
    margin-bottom: 0.8rem;
}

/* Переплёты */
.bindings {
    padding: 4rem 0;
    background: #f8fff8;
}

.bindings h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #006400;
    font-size: 2.2rem;
}

.binding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.binding-item {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.binding-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 100, 0, 0.12);
}

.binding-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.binding-item h3 {
    color: #006400;
    margin-bottom: 0.8rem;
}

/* Контакты */
.contacts {
    padding: 4rem 0;
    background: white;
}

.contacts h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #006400;
    font-size: 2.2rem;
}

.contacts p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Подвал */
.footer {
    background: #004d00;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        margin-top: 1rem;
    }

    .nav a {
        display: inline-block;
        margin: 0.5rem 1rem;
    }

    .hero {
        padding: 30px 10px;
        /*padding: 6rem 0 3rem;*/
    }

    .hero h1 {
        /*font-size: 22px;*/
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {

    .binding-grid,
    .cards {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .services h2,
    .bindings h2,
    .contacts h2 {
        font-size: 1.8rem;
    }
}



/* Кнопка «Наверх» */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #006400;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 100, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #228b22;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 100, 0, 0.4);
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.5);
}

/* Доставка */
.delivery {
    padding: 4rem 0;
    background: white;
}

.delivery h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #006400;
    font-size: 2.2rem;
}

.delivery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #555;
}

.delivery-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.delivery-card {
    background: #f0f8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.08);
    transition: transform 0.3s;
    border: 1px solid #e0f0e0;
}

.delivery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 100, 0, 0.12);
}

.delivery-card h3 {
    color: #006400;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #32cd32;
    padding-bottom: 0.5rem;
}

.delivery-info {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #006400;
}

.delivery-info h3 {
    color: #006400;
    margin-bottom: 1rem;
}

.delivery-info ul {
    margin-left: 1.5rem;
}

.delivery-info li {
    margin-bottom: 0.5rem;
    color: #444;
}

/* Адаптивность для доставки */
@media (max-width: 768px) {
    .delivery h2 {
        font-size: 1.8rem;
    }

    .delivery-options {
        grid-template-columns: 1fr;
    }
}


/* Калькулятор */

.email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(76, 175, 80, 0.2);
  transition: all 0.3s ease;
  margin-top: 25px;
}

.email-btn:hover {
  background: linear-gradient(135deg, #388E3C, #1B5E20);
  box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
  transform: translateY(-2px);
}

.email-btn--icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-btn--icon svg {
  flex-shrink: 0;
}

.calculator {
    padding: 4rem 0;
    background: #f0f8f0;
}

.calculator h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #006400;
    font-size: 2.2rem;
}

.calculator-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #555;
}

.calc-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.calc-form label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.calc-form input,
.calc-form select {
    padding: 0.8rem;
    border: 1px solid #d0e0d0;
    border-radius: 4px;
    font-size: 1rem;
}

.calc-form input:focus,
.calc-form select:focus {
    outline: none;
    border-color: #006400;
}

.btn-primary {
    background: #006400;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    margin: 2rem auto 0;
}

.btn-primary:hover {
    background: #228b22;
}

.calc-result {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #006400;
}

.calc-result h3 {
    color: #006400;
    margin-bottom: 1rem;
}

.calc-result p {
    margin-bottom: 0.5rem;
    color: #444;
}

.total-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #006400;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #a0d0a0;
}

/* Адаптивность калькулятора */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .calculator h2 {
        font-size: 1.8rem;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .calculator {
        padding: 2rem 1rem;
    }

    .calculator h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .calculator-intro {
        font-size: 0.9rem;
        margin: 0 auto 2rem;
    }

    .calc-form {
        padding: 1.5rem;
        border-radius: 6px;
    }

    /* Одноколоночная сетка на мобильных */
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        width: 100%;
    }

    .calc-form label {
        font-size: 0.95rem;
    }

    .calc-form input,
    .calc-form select {
        padding: 0.75rem;
        font-size: 1rem;
        min-height: 44px; /* Минимальный размер для удобного нажатия */
    }

    /* Увеличиваем кнопку для мобильных */
    #calculateBtn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Стили для блока результатов на мобильных */
    .calc-result {
        padding: 1.5rem;
    }

    .calc-result h3 {
        font-size: 1.3rem;
        margin-top: 0;
    }

    .total-price {
        font-size: 1.2rem;
        margin-top: 1rem;
    }
}

/* Дополнительные улучшения для очень маленьких экранов */
@media (max-width: 480px) {
    .calculator {
        padding: 1.5rem 0.5rem;
    }

    .calc-form {
        padding: 1rem;
    }

    .calc-form input,
    .calc-form select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    #calculateBtn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .calc-result p {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }
}

/* Таблица макетов */
.layout-pricing {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 20px;
}

.layout-pricing h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #006400;
  margin-bottom: 1rem;
}

.pricing-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.pricing-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 100, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 100, 0, 0.12);
}

.card-header {
  padding: 1.5rem;
  text-align: center;
  color: white;
}

.card-header h3 {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
}

/* Цвета для разных уровней сложности */


.illustration {
  margin: 0 auto 1rem;
  width: 80px;
  height: 60px;
}

.price-table {
  padding: 0 1.5rem 1.5rem;
}

.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.table-row:last-child {
  border-bottom: none;
}

.format {
  font-weight: 500;
  color: #333;
}

.price {
  font-weight: bold;
  font-size: 1.2rem;
  color: #2c3e50;
}

.description {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  border-top: 1px solid #f0f0f0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {

    .section-title {
        font-size: 1.4rem;
        margin: 2rem 0 1rem 0;
  }

  .layout-pricing {
    margin: 2rem auto;
    padding: 0 15px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-header {
    padding: 1.2rem;
  }

  .card-header h3 {
    font-size: 1.3rem;
  }

  .price-table, .description {
    padding: 0 1.2rem 1.2rem;
  }

  .table-row {
    padding: 0.6rem 0;
  }
}

@media (max-width: 480px) {
  .layout-pricing h2 {
    font-size: 1.8rem;
  }

  .pricing-intro {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .illustration {
    width: 50px;
    height: 38px;
  }

  .price {
    font-size: 1rem;
  }
}

/* Заголовки разделов */
.section-title {
  font-size: 1.6rem;
  color: #006400;
  margin: 3rem 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #006400;
  display: inline-block;
}

/* Сетка для вёрстки макетов — 4 колонки */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 3rem;
}

/* Сетка для обработки текста — 2 колонки */
.text-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 3rem;
}

/* Карточка услуги */
.pricing-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 100, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 100, 0, 0.12);
}

/* Шапка карточки с градиентом */
.card-header {
  padding: 20px;
  text-align: center;
  color: white;
}

.simple {
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.medium {
  background: linear-gradient(135deg, #28a745, #1e7e34);
}

.complex {
  background: linear-gradient(135deg, #ffc107, #e6ac00);
}

.max {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

.proofreading {
  background: linear-gradient(135deg, #5c6bc0, #3949ab);
}

.editing {
  background: linear-gradient(135deg, #43a047, #388e3c);
}

/* Таблица цен внутри карточки */
.price-table {
  padding: 15px 20px;
}

.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.table-row:last-child {
  border-bottom: none;
}

.format {
  font-weight: 500;
  color: #495057;
}

.price {
  font-weight: bold;
  font-size: 1.1rem;
  color: #343a40;
}

/* Описание услуги */
.description {
  padding: 15px 20px;
  background-color: #f8f9fa;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Иконка иллюстрации */
.illustration {
  margin: 10px auto;
  width: 60px;
  height: 45px;
}

/* Адаптация для мобильных устройств */



/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {

    .section-title {
        font-size: 1.4rem;
        margin: 2rem 0 1rem 0;
  }

  .layout-pricing {
    margin: 2rem auto;
    padding: 0 15px;
  }

  .pricing-grid,
  .text-services-grid {
    grid-template-columns: 1fr; /* На мобильных — одна колонка */
    gap: 15px;
  }

  .card-header {
    padding: 1.2rem;
  }

  .card-header h3 {
    font-size: 1.3rem;
  }

  .price-table, .description {
    padding: 0 1.2rem 1.2rem;
  }

  .table-row {
    padding: 0.6rem 0;
  }
}

@media (max-width: 480px) {
  .layout-pricing h2 {
    font-size: 1.8rem;
  }

  .pricing-intro {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .illustration {
    width: 50px;
    height: 38px;
  }

  .price {
    font-size: 1rem;
  }
}