  /* =============================================
    UNIFIED STYLES - 1TOM.RU
    Optimized version with improved responsiveness
    ============================================= */

  /* ===== CSS VARIABLES ===== */
  :root {
    --primary-color: #3AA5C7;
    --primary-hover: #2d8ba8;
    --accent-color: #4AC5F4;
    --text-color: #000;
    --bg-light: #d8d8d8;
    --bg-white: #fff;
    --bg-blue-light: #E6F9FF;
    --bg-gray: #E7E8EA;

    /* Responsive padding - плавное уменьшение от 150px до 15px */
    --container-padding: clamp(15px, 8vw, 150px);
    --container-max-width: 1620px;

    /* Transitions */
    --transition-fast: 0.3s ease;
  }

  /* ===== RESET & BASE ===== */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    overflow-x: hidden;
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  body.services-prices-page {
    background-color: #F8F8F8;
  }

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

  a {
    color: inherit;
    text-decoration: none;
  }

  /* Prevent horizontal overflow globally */
  section,
  .container,
  [class*="section"],
  [class*="wrapper"],
  main,
  article {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* Extra protection for page about */
  .about-section,
  .features-grid-section,
  .video-section,
  .contact-info-section {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* ===== COMMON TYPOGRAPHY ===== */
  .section-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    text-align: center;
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
  }

  /* ===== COMMON BUTTONS ===== */
  .btn {
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: opacity 0.3s ease;
  }

  .btn:hover {
    opacity: 0.9;
  }

  .btn-primary {
    background: #3AA5C7;
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    padding: 10px 40px;
    border-radius: 10px;
  }

  .btn-primary--bold {
    font-weight: 600;
  }

  /* ===== COMMON FORM ELEMENTS ===== */
  .form-group {
    margin-bottom: 20px;
    text-align: left;
  }

  .form-group label {
    display: block;
    font-size: 16px;
    color: #000;
    margin-bottom: 8px;
  }

  .form-group input {
    width: 100%;
    height: 29px;
    border: 1px solid #000;
    background: #fff;
    padding: 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
  }

  .form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    text-align: left;
  }

  .form-checkbox input[type="checkbox"] {
    width: 13px;
    height: 13px;
    border: 1px solid #000;
    cursor: pointer;
  }

  .form-checkbox label {
    font-size: 14px;
    color: #000;
    cursor: pointer;
  }

  /* =============================================
    INTRO SECTION (Pechat page)
    ============================================= */
  .intro {
    background: #fff;
    padding: 30px 20px 40px;
    text-align: center;
    margin-bottom: 20px;
  }

  .intro-text {
    max-width: 995px;
    margin: 0 auto 25px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
  }

  /* =============================================
    FEATURES CONTAINER (Pechat page)
    ============================================= */
  .features-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .feature-section {
    position: relative;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .feature-section.section-1 {
    background-image: url("../images/printing/v452_31.png");
  }

  .feature-section.section-2 {
    background-image: url("../images/printing/v452_32.png");
  }

  .feature-section.section-3 {
    background-image: url("../images/printing/v452_33.png");
  }

  .feature-content {
    position: absolute;
    top: 86px;
    left: 130px;
    max-width: 500px;
  }

  .feature-content.content-right {
    left: 100px;
  }

  .feature-section .feature-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: #000;
    margin-bottom: 40px;
    text-align: center;
    max-width: 344px;
  }

  .feature-list {
    list-style: none;
  }

  .feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
  }

  .feature-list li span:last-child {
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    max-width: 460px;
  }

  .arrow-icon {
    width: 60px;
    height: 60px;
    min-width: 80px;
    background-image: url("../images/printing/v452_30.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 25px;
    margin-top: -15px;
  }

  /* =============================================
    CALCULATOR SECTION (Pechat page)
    ============================================= */
  .calculator-section {
    margin: 40px clamp(15px, 5vw, 98px);
    background: #fff;
    padding: 20px;
    min-height: 480px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* =============================================
    PRICING SECTION (Sozdanie-maketa page)
    ============================================= */
  .pricing-section {
    padding: 40px 20px 60px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  .pricing-section .section-title {
    margin-bottom: 40px;
  }

  .pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
  }

  .pricing-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    flex: 0 0 auto;
  }

  .pricing-card-header {
    background: #3AA5C7;
    padding: 25px 20px;
    text-align: center;
    color: #fff;
    min-height: 215px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .pricing-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .pricing-card-price {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .price-amount {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
  }

  .pricing-card-body {
    background: #fff;
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: space-between;
  }

  .price-unit {
    font-size: 14px;
    color: #000;
    margin-bottom: 15px;
    font-weight: 400;
  }

  .pricing-card-note {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
  }

  .btn-select {
    background: #3AA5C7;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 30px;
    width: 100%;
    max-width: 200px;
    border-radius: 5px;
    margin-top: auto;
  }

  .btn-select:hover {
    background: #2d8ba8;
    opacity: 1;
  }

  .pricing-card-large {
    flex-basis: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .pricing-card-large .pricing-card-header {
    padding: 40px 20px;
    min-height: 170px;
  }

  .pricing-card-large .pricing-card-title {
    min-height: 60px;
    margin-bottom: 20px;
  }

  .pricing-card-large .price-amount {
    font-size: 28px;
  }

  .pricing-info {
    font-size: 14px;
    color: #000;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
  }

  /* =============================================
    PORTFOLIO SECTION (Pechat page)
    ============================================= */
  .portfolio-section {
    padding: 40px 0 50px;
    text-align: center;
    overflow: hidden;
  }

  .portfolio-section .section-title {
    margin-bottom: 40px;
  }

  .portfolio-slider {
    margin-bottom: 40px;
    position: relative;
    padding: 0 60px;
    overflow: hidden;
  }

  /* Базовые стили для Splide */
  .portfolio-slider.splide,
  .portfolio-showcase-slider.splide {
    position: relative;
  }

  .portfolio-slider .splide__track,
  .portfolio-showcase-slider .splide__track {
    position: relative;
    overflow: hidden;
  }

  .portfolio-slider .splide__list,
  .portfolio-showcase-slider .splide__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .portfolio-slider .slider-prev,
  .portfolio-slider .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  /* Скрываем кнопки когда они disabled */
  .portfolio-slider .slider-prev.disabled,
  .portfolio-slider .slider-next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    display: none;
  }

  .portfolio-showcase-nav .portfolio-nav-prev.disabled,
  .portfolio-showcase-nav .portfolio-nav-next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
  }

  /* Ограничиваем overflow для предотвращения пустоты */
  .portfolio-slider .splide__track {
    overflow: hidden;
    will-change: transform;
  }

  .portfolio-showcase-slider .splide__track {
    overflow: hidden;
    will-change: transform;
  }

  .portfolio-slider .splide__list {
    overflow: hidden;
  }

  .portfolio-showcase-slider .splide__list {
    overflow: hidden;
  }

  .portfolio-slider.splide {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
  }

  .portfolio-slider .splide__track {
    overflow: hidden;
  }

  .slider-prev,
  .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: none;
    /* По умолчанию скрыты */
    visibility: hidden;
  }

  /* Позиционирование кнопок для десктопа */
  @media (min-width: 1024px) {

    .portfolio-slider .slider-prev,
    .portfolio-slider .slider-next {
      display: flex !important;
      /* Показываем на ПК */
      visibility: visible !important;
    }

    .portfolio-slider .slider-prev {
      left: 20px;
    }

    .portfolio-slider .slider-next {
      right: 20px;
      left: auto;
    }
  }

  .portfolio-items.splide__list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    overflow: hidden;
  }

  .portfolio-item.splide__slide {
    width: 280px;
    height: 380px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .portfolio-item.item-1 {
    background-image: url("../images/portfolio/Rectangle 34.png");
  }

  .portfolio-item.item-2 {
    background-image: url("../images/portfolio/Rectangle 35.png");
  }

  .portfolio-item.item-3 {
    background-image: url("../images/portfolio/Rectangle 36.png");
  }

  .portfolio-item.item-4 {
    background-image: url("../images/portfolio/Rectangle 37.png");
  }

  .portfolio-item.item-5 {
    background-image: url("../images/portfolio/Rectangle 38.png");
  }

  .portfolio-item.item-6 {
    background-image: url("../images/portfolio/Rectangle 39.png");
  }

  .portfolio-item.item-7 {
    background-image: url("../images/portfolio/Rectangle 40.png");
  }

  .portfolio-item.item-8 {
    background-image: url("../images/portfolio/Rectangle 41.png");
  }

  .portfolio-item.item-9 {
    background-image: url("../images/portfolio/Rectangle 64.png");
  }

  .portfolio-item.item-10 {
    background-image: url("../images/portfolio/Rectangle 65.png");
  }

  .portfolio-item.item-11 {
    background-image: url("../images/portfolio/Rectangle 66.png");
  }

  .portfolio-item.item-12 {
    background-image: url("../images/portfolio/Rectangle 67.png");
  }

  .portfolio-item.item-13 {
    background-image: url("../images/portfolio/Rectangle 68.png");
  }

  .portfolio-item.item-14 {
    background-image: url("../images/portfolio/Rectangle 69.png");
  }

  .portfolio-item.item-15 {
    background-image: url("../images/portfolio/Rectangle 75.png");
  }

  /* Скрываем стандартные стили Splide для кнопок */
  /* Скрываем стандартные кнопки Splide */
  .portfolio-slider .splide__arrows {
    display: none;
  }

  /* Наши кастомные кнопки */
  .slider-arrow,
  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
    background: #36B0D5;
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    transition: all 0.3s ease;
    opacity: 1;
  }

  /* Скрываем стандартные иконки Splide */
  /* Скрываем стандартные кнопки Splide */
  .portfolio-slider .splide__arrow {
    display: none;
  }

  .arrow-left,
  .arrow-right {
    width: 12px;
    height: 2px;
    background: #fff;
    position: relative;
  }

  .arrow-left::before,
  .arrow-left::after,
  .arrow-right::before,
  .arrow-right::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background: #fff;
  }

  .arrow-left::before {
    transform: rotate(-45deg);
    left: -2px;
    top: -3px;
  }

  .arrow-left::after {
    transform: rotate(45deg);
    left: -2px;
    top: 3px;
  }

  .arrow-right::before {
    transform: rotate(45deg);
    right: -2px;
    top: -3px;
  }

  .arrow-right::after {
    transform: rotate(-45deg);
    right: -2px;
    top: 3px;
  }

  /* =============================================
    CONTACT FORM SECTION (Pechat page)
    ============================================= */
  .contact-form-section {
    margin: 0 clamp(15px, 5vw, 96px) 40px;
    background: var(--bg-blue-light);
    padding: 35px 20px 45px;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-form-section .section-title {
    margin-bottom: 15px;
  }

  .contact-subtitle {
    font-size: 20px;
    color: #000;
    margin-bottom: 20px;
  }

  .contact-form {
    max-width: 399px;
    margin: 0 auto;
  }

  /* Honeypot: invisible to users */
  .contact-form__hp {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
  }

  /* Form feedback messages */
  .contact-form__msg {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
  }

  .contact-form__msg--error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
  }

  .contact-form__success {
    font-size: 16px;
    color: #1a7a3c;
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
  }

  /* =============================================
    ABOUT SECTION (About page)
    ============================================= */
  .about-section {
    background-color: #fff;
    display: flex;
    padding: 0;
    margin: 0;
    min-height: 593px;
    overflow: hidden;
  }

  .about-content {
    flex: 0 0 55%;
    padding: 60px 60px 60px clamp(30px, 8vw, 140px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .about-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin-bottom: 30px;
  }

  .about-text {
    font-size: 20px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 25px;
  }

  .about-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
  }

  .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  }

  /* =============================================
    FEATURES GRID SECTION (About page)
    ============================================= */
  .features-grid-section {
    background-color: var(--bg-light);
    padding: 60px clamp(15px, 6vw, 100px);
    overflow: hidden;
  }

  .features-grid-section .section-title {
    margin-bottom: 50px;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1346px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .feature-card {
    background-color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 314 / 321;
    max-width: 100%;
    box-sizing: border-box;
  }

  .feature-header {
    display: flex;
    align-items: flex-start;
    gap: 0;
  }

  .feature-banner {
    background-color: #3AA5C7;
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    clip-path: polygon(0px 0px, 100% 0px, 100% 49.29%, 44.00% 98.57%, 0px 100%);
  }

  .feature-banner img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .feature-card .feature-title {
    font-size: 9.5px;
    font-weight: 600;
    color: #000;
    padding: 10px 10px 20px 10px;
    flex: 1;
    display: flex;
    align-items: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .feature-description {
    font-size: 12px;
    font-weight: 400;
    color: #000;
    line-height: 1.5;
    padding: 10px 12px 15px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* =============================================
    VIDEO SECTION (About page)
    ============================================= */
  .video-section {
    background-color: var(--bg-light);
    padding: 0 clamp(15px, 6vw, 100px) 80px clamp(15px, 6vw, 100px);
  }

  .video-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    text-align: center;
    margin-bottom: 40px;
  }

  .video-placeholder {
    width: 100%;
    max-width: 1000px;
    height: 593px;
    background-color: #8c8c8c;
    margin: 0 auto;
  }

  /* =============================================
    CONTACT INFO SECTION (About page)
    ============================================= */
  .contact-info-section {
    display: flex;
    min-height: 529px;
    max-width: 100%;
  }

  .contact-map {
    flex: 1;
    background-color: #8c8c8c;
    min-height: 529px;
  }

  .contact-info {
    flex: 1;
    background-color: #fff;
    padding: 80px clamp(40px, 6vw, 100px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contact-info .contact-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin-bottom: 40px;
  }

  .contact-phone,
  .contact-email,
  .contact-address,
  .contact-hours {
    font-size: 20px;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
  }

  .contact-phone {
    margin-bottom: 30px;
  }

  .contact-email {
    margin-bottom: 30px;
  }

  .contact-address {
    margin-bottom: 25px;
  }

  .contact-phone a {
    color: #000;
    text-decoration: underline;
  }

  .contact-email a {
    color: #000;
    text-decoration: none;
  }

  .contact-phone a:hover,
  .contact-email a:hover {
    text-decoration: underline;
    opacity: 0.8;
  }

  /* =============================================
    SERVICES CONTAINER (Pod-kluch page)
    ============================================= */
  .services-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .service-section {
    display: flex;
    background: #fff;
    min-height: 500px;
  }

  .service-content {
    flex: 1;
    padding: 40px 50px 40px 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .service-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
  }

  .service-text {
    font-size: 14px;
    line-height: 1.5;
    color: #000;
  }

  .service-text p {
    margin-bottom: 15px;
  }

  .service-text p:last-child {
    margin-bottom: 0;
  }

  .service-text strong {
    font-weight: 600;
  }

  .service-list {
    list-style: none;
  }

  .service-list li {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
  }

  .service-list li:last-child {
    margin-bottom: 0;
  }

  .service-list li span:last-child {
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    max-width: 460px;
  }

  .service-image {
    width: 506px;
    flex-shrink: 0;
    overflow: hidden;
  }

  .service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  /* =============================================
    BOOK MANUFACTURING PAGE - Service Blocks Fix
    ============================================= */
  .page-template-page-book-manufacturing .service-section {
    align-items: stretch;
  }

  .page-template-page-book-manufacturing .service-content {
    align-items: center;
    justify-content: center;
    padding: 50px 60px;
  }

  .page-template-page-book-manufacturing .service-title {
    text-align: center;
    font-size: 28px;
  }

  .page-template-page-book-manufacturing .service-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .page-template-page-book-manufacturing .service-list li {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
  }

  .page-template-page-book-manufacturing .service-list li:last-child {
    margin-bottom: 0;
  }

  .page-template-page-book-manufacturing .service-list li span:last-child {
    font-size: 18px;
    line-height: 1.6;
    color: #000;
    max-width: 500px;
  }

  /* =============================================
    RESPONSIVE - LARGE TABLET (max-width: 1400px)
    ============================================= */
  @media (max-width: 1400px) {
    .hero-buttons {
      flex-wrap: wrap;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
      min-width: min(320px, 100%);
      font-size: 18px;
    }

    .portfolio-book-item {
      width: 350px;
      height: 340px;
    }

    .final-cta-section {
      padding: 50px 20px;
    }
  }

  /* =============================================
    RESPONSIVE - TABLET (max-width: 1200px)
    ============================================= */
  @media (max-width: 1200px) {
    .features-grid-section {
      padding: 60px 50px;
    }

    .features-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }

    .video-section {
      padding: 0 50px 60px 50px;
    }

    .about-content {
      padding: 50px 40px 50px 80px;
    }

    .hero-container {
      padding-right: var(--container-padding);
    }

    .hero-image {
      position: relative;
      width: 100%;
      min-height: 400px;
      margin-top: 30px;
    }

    .hero-section {
      min-height: auto;
      display: flex;
      flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
      min-width: min(280px, 100%);
      font-size: 16px;
    }
  }

  /* =============================================
    RESPONSIVE - TABLET (max-width: 1024px)
    ============================================= */
  @media (max-width: 1024px) {
    .features-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 15px;
    }

    .about-section {
      flex-direction: column;
      min-height: auto;
    }

    .about-content {
      flex: 1 1 auto;
      padding: 40px 30px;
    }

    .about-image {
      flex: 1 1 auto;
      min-height: 350px;
    }

    .about-image img {
      clip-path: none;
    }

    .contact-info-section {
      flex-direction: column;
    }

    .contact-map {
      min-height: 250px;
    }

    .contact-info {
      padding: 50px 30px;
    }

    /* Services */
    .service-section {
      flex-direction: column;
      min-height: auto;
    }

    .service-content {
      padding: 40px 30px;
    }

    .service-image {
      width: 100%;
      height: 350px;
    }
  }

  /* =============================================
    RESPONSIVE - TABLET (max-width: 992px)
    ============================================= */
  @media (max-width: 992px) {
    .feature-content {
      left: 50px;
      max-width: 450px;
    }

    .feature-content.content-right {
      left: 50px;
    }

    .calculator-section {
      margin: 40px 50px;
    }

    .pricing-section {
      padding: 40px 20px 50px;
    }

    .pricing-cards {
      gap: 15px;
    }

    .contact-form-section {
      margin: 0 50px 40px;
    }

    .portfolio-item {
      width: 220px;
      height: 300px;
    }

    .portfolio-item.item-1,
    .portfolio-item.item-2,
    .portfolio-item.item-3 {
      width: 220px;
      height: 300px;
    }

    /* Скрываем кнопки на планшетах */
    .slider-prev,
    .slider-next {
      display: none;
    }
  }

  /* =============================================
    RESPONSIVE - MOBILE (max-width: 768px)
    ============================================= */
  @media (max-width: 768px) {

    /* Common */
    .btn-primary {
      font-size: 16px;
      padding: 10px 30px;
    }

    .section-title {
      font-size: 24px;
    }

    /* Hero Section */
    .hero-section {
      padding: 40px 15px 30px;
      overflow: visible;
      display: flex;
      flex-direction: column;
      min-height: auto;
    }

    .hero-container {
      padding: 0;
      padding-right: 0;
      order: 1;
      position: relative;
      z-index: 2;
    }

    .hero-content {
      max-width: 100%;
    }

    .hero-title {
      font-size: clamp(28px, 5vw, 32px);
      line-height: 1.2;
    }

    .hero-description {
      font-size: 16px;
    }

    .hero-buttons {
      flex-direction: column;
      gap: 15px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
      width: 100%;
      min-width: auto;
    }

    .stat-number {
      font-size: 18px;
    }

    .stat-label {
      font-size: 12px;
    }

    /* Calculator Section for Main Page */
    body.main-page .calculator-section {
      margin: 30px 15px;
      padding: 20px 15px;
      min-height: 350px;
      max-width: none;
    }

    body.main-page .calculator-section .section-title {
      font-size: 28px;
      margin-bottom: 20px;
    }

    body.main-page .calculator-placeholder {
      height: 300px;
    }

    /* Portfolio Showcase */
    body.main-page .portfolio-showcase-section {
      padding: 40px 15px 50px !important;
      overflow-x: hidden !important;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .portfolio-showcase-header {
      padding: 0 15px;
      max-width: 100%;
      box-sizing: border-box;
      margin-left: 0;
      margin-right: 0;
      width: 100%;
    }

    body.main-page .portfolio-showcase-titles {
      padding: 0 !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      width: 100% !important;
      margin: 0 !important;
    }

    body.main-page .portfolio-showcase-nav {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    body.main-page .portfolio-showcase-slider {
      padding: 0 15px !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      width: 100% !important;
    }

    body.main-page .portfolio-showcase-slider.splide {
      width: 100% !important;
      max-width: 100% !important;
    }

    body.main-page .portfolio-showcase-button {
      padding: 0 15px !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      width: 100% !important;
    }

    body.main-page .portfolio-showcase-title {
      font-size: 28px !important;
      max-width: 100% !important;
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
    }

    body.main-page .portfolio-showcase-subtitle {
      font-size: 16px !important;
      max-width: 100% !important;
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
    }

    body.main-page .btn-portfolio {
      width: 100% !important;
      min-width: auto !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
    }
  }

  @media (min-width: 1024px) {
    body.main-page .portfolio-showcase-nav {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
      pointer-events: auto !important;
    }

    body.main-page .portfolio-showcase-slider {
      padding: 0 150px !important;
      margin-bottom: 30px !important;
    }

    body.main-page .portfolio-book-item.splide__slide {
      width: 280px !important;
      height: 270px !important;
    }

    body.main-page .portfolio-showcase-button {
      padding: 0 150px !important;
    }

    body.main-page .btn-portfolio {
      width: auto !important;
      min-width: 374px !important;
      max-width: none !important;
    }

    /* Final CTA */
    .final-cta-section {
      padding: 40px 15px;
      margin: 0;
      max-width: none;
    }

    .final-cta-title {
      font-size: 24px;
      line-height: 1.3;
      margin-bottom: 15px;
    }

    .final-cta-description {
      font-size: 16px;
      margin-bottom: 25px;
    }

    .btn-final-cta {
      width: 100%;
      min-width: auto;
    }

    /* Intro */
    .intro {
      padding: 20px 15px 30px;
    }

    .intro-text {
      font-size: 16px;
      margin-bottom: 20px;
    }

    /* Features Container (Pechat) */
    .features-container {
      gap: 15px;
    }

    .feature-section {
      height: auto;
      padding: 30px 20px 0;
      display: flex;
      flex-direction: column;
      background-image: none !important;
      background-color: #fff;
    }

    .feature-section::after {
      content: '';
      display: block;
      width: 100%;
      height: 250px;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      margin-top: 20px;
    }

    .feature-section.section-1::after {
      background-image: url("../images/printing/v452_31.png");
    }

    .feature-section.section-2::after {
      background-image: url("../images/printing/v452_32.png");
    }

    .feature-section.section-3::after {
      background-image: url("../images/printing/v452_33.png");
    }

    .feature-content {
      position: relative;
      top: 0;
      left: 0;
      max-width: 100%;
      padding: 0;
    }

    .feature-content.content-right {
      left: 0;
    }

    .feature-section .feature-title {
      font-size: 24px;
      margin-bottom: 25px;
      max-width: 100%;
    }

    .feature-list li {
      margin-bottom: 15px;
    }

    .arrow-icon {
      width: 80px;
      height: 80px;
      min-width: 40px;
      margin-right: 15px;
      margin-top: -5px;
    }

    .feature-list li span:last-child {
      font-size: 13px;
    }

    /* Calculator */
    .calculator-section {
      margin: 30px 20px;
      min-height: 350px;
      padding: 15px;
    }

    /* Pricing */
    .pricing-section {
      padding: 30px 15px 40px;
    }

    .pricing-section .section-title {
      font-size: 24px;
      margin-bottom: 30px;
    }

    .pricing-cards {
      gap: 15px;
      margin-bottom: 25px;
      justify-content: center;
    }

    .pricing-card {
      flex: 0 0 calc(50% - 7.5px);
      max-width: calc(25% - 7.5px);
    }

    .pricing-card-large {
      flex: 0 0 100%;
      max-width: 500px;
      margin: 0 auto;
    }

    .pricing-card-header {
      padding: 20px 15px;
      min-height: 210px;
    }

    .pricing-card-title {
      font-size: 18px;
      min-height: 45px;
      margin-bottom: 12px;
    }

    .price-amount {
      font-size: 20px;
    }

    .pricing-card-body {
      padding: 20px 15px;
      justify-content: space-between;
      min-height: 200px;
    }

    .price-unit {
      font-size: 12px;
      margin-bottom: 12px;
    }

    .pricing-card-note {
      font-size: 14px;
      margin-bottom: 15px;
    }

    .btn-select {
      margin-top: auto;
    }

    .pricing-card-large .pricing-card-header {
      padding: 30px 15px;
      min-height: 110px;
    }

    .pricing-card-large .pricing-card-title {
      min-height: 50px;
      margin-bottom: 15px;
    }

    .pricing-card-large .price-amount {
      font-size: 24px;
    }

    .pricing-info {
      font-size: 12px;
    }

    /* Portfolio */
    .portfolio-section {
      padding: 30px 15px 40px;
    }

    .portfolio-section .section-title {
      margin-bottom: 25px;
    }

    .portfolio-slider {
      padding: 0 10px;
    }

    .portfolio-items {
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 0;
      width: 100%;
      max-width: 100%;
    }

    .portfolio-item {
      width: 120px;
      height: 160px;
      flex-shrink: 0;
    }

    .portfolio-item.item-1,
    .portfolio-item.item-2,
    .portfolio-item.item-3 {
      width: 120px;
      height: 160px;
      margin: 0;
    }

    .slider-arrow,
    .slider-prev,
    .slider-next {
      display: none;
      visibility: hidden;
    }

    /* Contact Form */
    .contact-form-section {
      margin: 0 15px 30px;
      padding: 25px 15px 35px;
    }

    .contact-subtitle {
      font-size: 16px;
    }

    .contact-form {
      max-width: 399px;
    }

    .form-group label {
      font-size: 14px;
    }

    .form-checkbox {
      align-items: flex-start;
    }

    .form-checkbox label {
      font-size: 12px;
    }

    /* Services (Pod-kluch) */
    .services-container {
      gap: 20px;
    }

    .service-content {
      padding: 25px 20px;
    }

    .service-title {
      font-size: 24px;
      margin-bottom: 20px;
    }

    .service-text {
      font-size: 15px;
    }


    /* Book Manufacturing Page - Mobile */
    .page-template-page-book-manufacturing .service-content {
      padding: 30px 20px;
    }

    .page-template-page-book-manufacturing .service-title {
      text-align: left;
      font-size: 22px;
    }

    /* Printing Page Services Styles */
    .page-template-page-printing .service-section {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 80px;
      gap: 40px;
    }

    .page-template-page-printing .service-content {
      flex: 1;
      max-width: 50%;
    }

    .page-template-page-printing .service-title {
      font-size: 36px;
      font-weight: 700;
      margin-bottom: 40px;
      text-align: center;
      line-height: 1.2;
    }

    .page-template-page-printing .service-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .page-template-page-printing .service-list li {
      display: flex;
      align-items: flex-start;
      margin-bottom: 25px;
      font-size: 16px;
      line-height: 1.5;
      color: #333;
    }

    .page-template-page-printing .arrow-icon {
      display: inline-block;
      width: 32px;
      height: 32px;
      min-width: 32px;
      margin-right: 20px;
      background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 12H20M20 12L14 6M20 12L14 18' stroke='%232F80ED' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      margin-top: -5px;
      /* Adjust alignment with text */
    }

    /* Thicker arrow variant to match screenshot better */
    .page-template-page-printing .arrow-icon {
      background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 16H28M28 16L18 6M28 16L18 26' stroke='%23007bff' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    .page-template-page-printing .service-image {
      flex: 1;
      max-width: 50%;
      display: flex;
      justify-content: center;
    }

    .page-template-page-printing .service-image img {
      max-width: 100%;
      height: auto;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    @media (max-width: 992px) {

      .page-template-page-printing .service-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
      }

      .page-template-page-printing .service-content,
      .page-template-page-printing .service-image {
        max-width: 100%;
      }

      .page-template-page-printing .service-list li {
        text-align: left;
        justify-content: center;
      }

      .page-template-page-printing .service-list li span:last-child {
        text-align: left;
      }
    }

    .service-list li {
      margin-bottom: 15px;
    }

    .service-list li span:last-child {
      font-size: 16px;
    }


    /* Features Grid (About) */
    .features-grid-section {
      padding: 40px 15px;
    }

    .features-grid-section .section-title {
      font-size: 24px;
      margin-bottom: 30px;
    }

    .features-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 100px;
    }

    .feature-card {
      min-height: auto;
    }

    .feature-banner {
      width: 100px;
      height: 80px;
    }

    .feature-banner img {
      width: 40px;
      height: 40px;
    }

    .feature-card .feature-title {
      font-size: 13px;
      padding: 10px 8px 10px 5px;
      line-height: 1.3;
      hyphens: none;
    }

    .feature-description {
      font-size: 14px;
      padding: 10px 12px 15px;
      line-height: 1.4;
    }

    /* Video */
    .video-section {
      padding: 0 15px 40px 15px;
    }

    .video-title {
      font-size: 24px;
      margin-bottom: 25px;
    }

    .video-placeholder {
      height: 500px;
    }

    /* About */
    .about-content {
      padding: 30px 20px;
      margin-left: 50px;
    }

    .about-title {
      font-size: 24px;
      margin-bottom: 20px;
    }

    .about-text {
      font-size: 16px;
      margin-bottom: 20px;
    }

    .about-image {
      min-height: 250px;
      display: flex;
      justify-content: center;
    }

    .about-image img {
      width: auto;
      max-width: 100%;
      height: auto;
      object-fit: contain;
    }

    /* Contact Info */
    .contact-info-section {
      flex-direction: row;
    }

    .contact-map {
      min-height: 400px;
    }

    .contact-info {
      padding: 40px 20px;
      text-align: center;
      order: 2;
    }

    .contact-info .contact-title {
      font-size: 24px;
      margin-bottom: 25px;
    }

    .contact-phone,
    .contact-email,
    .contact-address,
    .contact-hours {
      font-size: 16px;
      margin-bottom: 15px;
    }
  }

  /* =============================================
    RESPONSIVE - SMALL MOBILE (max-width: 480px)
    ============================================= */
  @media (max-width: 480px) {

    /* Common */
    .btn-primary {
      font-size: 14px;
      padding: 10px 25px;
    }

    .portfolio-showcase-header {
      padding: 0 15px;
      max-width: 100%;
      box-sizing: border-box;
      margin-left: 0;
      margin-right: 0;
      width: 100%;
    }

    .section-title {
      font-size: 20px;
    }

    /* Hero Section */
    .hero-section {
      padding: 30px 10px 25px;
      overflow: visible;
      display: flex;
      flex-direction: column;
      min-height: auto;
    }

    .hero-container {
      padding: 0;
      padding-right: 0;
      order: 1;
      position: relative;
      z-index: 2;
    }

    .hero-content {
      max-width: 100%;
    }

    .hero-title {
      font-size: clamp(22px, 5vw, 24px);
      line-height: 1.2;
    }

    .hero-description {
      font-size: 14px;
    }

    .hero-buttons {
      gap: 12px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
      font-size: 16px;
      padding: 10px 20px;
      height: auto;
      min-height: 43px;
    }

    .hero-mobile-bottom {
      gap: 10px;
      padding: 0 10px;
      margin-top: 20px;
    }

    .hero-stats-mobile {
      gap: 12px;
    }

    .stat-number {
      font-size: 16px;
    }

    .stat-label {
      font-size: 11px;
    }

    .hero-disclaimer-mobile {
      padding: 12px 10px 0;
      font-size: 11px;
    }

    /* Portfolio Showcase */
    body.main-page .portfolio-showcase-section {
      padding: 30px 10px 40px !important;
      overflow-x: hidden !important;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    body.main-page .portfolio-showcase-header {
      padding: 0 10px !important;
      margin-bottom: 25px !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      width: 100% !important;
    }

    body.main-page .portfolio-showcase-titles {
      padding: 0 !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      width: 100% !important;
      margin: 0 !important;
    }

    body.main-page .portfolio-showcase-nav {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    body.main-page .portfolio-showcase-title {
      font-size: 22px !important;
      max-width: 100% !important;
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
      line-height: 1.3 !important;
    }

    body.main-page .portfolio-showcase-subtitle {
      font-size: 14px !important;
      max-width: 100% !important;
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
    }

    body.main-page .portfolio-showcase-slider {
      padding: 0 10px !important;
      margin-bottom: 30px !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      width: 100% !important;
    }

    body.main-page .portfolio-showcase-slider.splide {
      width: 100% !important;
      max-width: 100% !important;
    }

    body.main-page .portfolio-book-item.splide__slide {
      width: 240px !important;
      height: 230px !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    body.main-page .portfolio-showcase-button {
      padding: 0 10px !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      width: 100% !important;
    }

    body.main-page .btn-portfolio {
      width: 100% !important;
      min-width: auto !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      font-size: 16px !important;
      padding: 10px 20px !important;
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
    }

    .btn-portfolio {
      font-size: 16px;
      padding: 10px 20px;
      height: auto;
      min-height: 43px;
    }

    /* Final CTA */
    .final-cta-section {
      padding: 30px 15px;
      margin: 0;
      max-width: none;
    }

    .final-cta-title {
      font-size: 20px;
      line-height: 1.3;
      margin-bottom: 15px;
    }

    .final-cta-description {
      font-size: 14px;
      margin-bottom: 25px;
    }

    .btn-final-cta {
      font-size: 16px;
      padding: 10px 20px;
      height: auto;
      min-height: 43px;
      width: 100%;
      min-width: auto;
    }

    /* Intro */
    .intro-text {
      font-size: 14px;
    }

    /* Feature Sections */
    .feature-section {
      padding: 20px 15px 0;
    }

    .feature-section::after {
      height: 200px;
      margin-top: 15px;
    }

    .feature-section .feature-title {
      font-size: 20px;
      margin-bottom: 20px;
    }

    .arrow-icon {
      width: 30px;
      height: 30px;
      min-width: 30px;
      margin-right: 10px;
      margin-top: 0;
    }

    .feature-list li span:last-child {
      font-size: 12px;
    }

    /* Calculator */
    .calculator-section {
      margin: 20px 10px;
      min-height: 300px;
    }

    /* Pricing */
    .pricing-section {
      padding: 25px 10px 35px;
    }

    .pricing-section .section-title {
      font-size: 20px;
      margin-bottom: 25px;
    }

    .pricing-cards {
      gap: 12px;
      justify-content: center;
    }

    .pricing-card {
      flex: 0 0 calc(50% - 6px);
      max-width: calc(50% - 6px);
    }

    .pricing-card-large {
      flex: 0 0 100%;
      max-width: 450px;
      margin: 0 auto;
    }

    .pricing-card-header {
      padding: 18px 12px;
      min-height: 170px;
    }

    .pricing-card-title {
      font-size: 13px;
      min-height: 40px;
      margin-bottom: 10px;
    }

    .price-amount {
      font-size: 18px;
    }

    .pricing-card-body {
      padding: 18px 12px;
      justify-content: space-between;
    }

    .price-unit {
      font-size: 11px;
      margin-bottom: 10px;
    }

    .pricing-card-note {
      font-size: 10px;
      margin-bottom: 12px;
    }

    .btn-select {
      font-size: 14px;
      padding: 8px 20px;
      margin-top: auto;
    }

    .pricing-card-large .pricing-card-header {
      padding: 25px 12px;
      min-height: 100px;
    }

    .pricing-card-large .pricing-card-title {
      min-height: 45px;
      margin-bottom: 12px;
    }

    .pricing-card-large .price-amount {
      font-size: 22px;
    }

    .pricing-info {
      font-size: 11px;
    }

    /* Portfolio */
    .portfolio-item {
      width: 100px;
      height: 140px;
    }

    .portfolio-item.item-1,
    .portfolio-item.item-2,
    .portfolio-item.item-3 {
      width: 100px;
      height: 140px;
    }

    /* Contact Form */
    .contact-form-section {
      margin: 0 10px 20px;
    }

    .contact-subtitle {
      font-size: 14px;
    }

    /* Services */
    .services-container {
      gap: 15px;
    }

    .service-content {
      padding: 20px 15px;
    }

    .service-title {
      font-size: 20px;
      margin-bottom: 15px;
    }

    .service-text {
      font-size: 12px;
    }

    .service-list li {
      margin-bottom: 12px;
    }

    .service-list li span:last-child {
      font-size: 12px;
    }

    .service-image {
      height: 220px;
    }

    /* Features Grid */
    .features-grid-section .section-title {
      font-size: 20px;
    }

    .features-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .feature-card {
      min-height: auto;
    }

    .feature-banner {
      width: 50px;
      height: 42px;
    }

    .feature-banner img {
      width: 22px;
      height: 22px;
    }

    .feature-card .feature-title {
      font-size: 10px;
      padding: 8px 5px 8px 5px;
    }

    .feature-description {
      font-size: 10px;
      padding: 10px 8px 12px;
      line-height: 1.4;
    }

    .feature-description {
      font-size: 11px;
      padding: 8px 10px 12px;
    }

    /* About */
    .about-title {
      font-size: 22px;
    }

    .about-text {
      font-size: 14px;
      line-height: 1.6;
    }

    /* Video */
    .video-title {
      font-size: 20px;
    }

    /* Contact Info */
    .contact-info .contact-title {
      font-size: 22px;
    }

    .contact-phone,
    .contact-email,
    .contact-address,
    .contact-hours {
      font-size: 14px;
    }
  }

  /* =============================================
    SERVICES & PRICES SECTION (Uslugi-i-ceni page)
    ============================================= */
  .services-prices-section {
    padding: 40px 20px 60px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .services-prices-section .section-title {
    margin-bottom: 40px;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
  }

  .service-card {
    background-color: #fff;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0;
  }

  .service-banner {
    background-color: #3AA5C7;
    width: 96px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    clip-path: polygon(0 0, 100% 0, 100% 65%, 65% 100%, 0 100%);
  }

  .service-banner img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .service-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    padding: 15px 15px 15px 10px;
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0;
  }

  .service-card-body {
    padding: 15px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
  }

  .service-card-description {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 20px 0;
    flex: 1;
    width: 100%;
  }

  .btn-service {
    background: #3AA5C7;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    width: auto;
    margin: 0 auto;
  }

  .btn-service:hover {
    background: #2d8ba8;
    opacity: 1;
  }

  .promo-block {
    background: #E0F2F7;
    border-radius: 10px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
  }

  .promo-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.3;
  }

  .promo-text {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 15px;
  }

  .promo-text:last-of-type {
    margin-bottom: 25px;
  }

  .btn-promo {
    background: #fff;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    border: 2px solid #3AA5C7;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    width: auto;
    margin: 0 auto;
  }

  .btn-promo:hover {
    background: #3AA5C7;
    color: #fff;
    opacity: 1;
  }

  /* Responsive for Services & Prices */
  @media (max-width: 1200px) {
    .services-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (max-width: 1024px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      padding: 0 15px;
    }

    .promo-block {
      padding: 30px 20px;
      margin: 0 15px;
    }

    .promo-title {
      font-size: 22px;
    }

    .promo-text {
      font-size: 14px;
    }
  }

  @media (max-width: 768px) {
    .services-prices-section {
      padding: 20px 15px 30px;
    }

    .services-prices-section .section-title {
      font-size: 24px;
      margin-bottom: 25px;
    }

    .services-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      padding: 0;
      margin: 0 auto 30px;
      width: 100%;
    }

    .service-card {
      min-height: auto;
      width: 100%;
    }

    .service-banner {
      width: 60px;
      height: 50px;
    }

    .service-banner img {
      width: 28px;
      height: 28px;
    }

    .service-card-title {
      font-size: 12px;
      padding: 10px 8px 10px 6px;
      line-height: 1.2;
    }

    .service-card-body {
      padding: 12px 10px 15px;
      align-items: flex-start;
    }

    .service-card-description {
      font-size: 11px;
      margin-bottom: 12px;
      line-height: 1.4;
      text-align: left;
      width: 100%;
    }

    .btn-service {
      font-size: 12px;
      font-weight: 600;
      padding: 8px 16px;
      width: 100%;
      max-width: none;
      align-self: center;
      border-radius: 20px;
    }

    .promo-block {
      padding: 25px 20px;
      margin: 0 15px;
      border-radius: 10px;
    }

    .promo-title {
      font-size: 20px;
      margin-bottom: 15px;
      line-height: 1.3;
    }

    .promo-text {
      font-size: 14px;
      margin-bottom: 12px;
      line-height: 1.5;
    }

    .promo-text:last-of-type {
      margin-bottom: 20px;
    }

    .btn-promo {
      font-size: 14px;
      padding: 12px 25px;
      width: auto;
      max-width: none;
    }
  }

  @media (max-width: 480px) {
    .services-prices-section {
      padding: 15px 10px 25px;
    }

    .services-prices-section .section-title {
      font-size: 20px;
      margin-bottom: 20px;
    }

    .services-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-bottom: 25px;
      width: 100%;
    }

    .service-card {
      min-height: auto;
    }

    .service-banner {
      width: 55px;
      height: 45px;
    }

    .service-banner img {
      width: 25px;
      height: 25px;
    }

    .service-card-title {
      font-size: 11px;
      padding: 8px 6px 8px 5px;
      line-height: 1.2;
    }

    .service-card-body {
      padding: 10px 8px 12px;
      align-items: flex-start;
    }

    .service-card-description {
      font-size: 10px;
      margin-bottom: 10px;
      line-height: 1.4;
      text-align: center;
      width: 100%;
    }

    .btn-service {
      font-size: 11px;
      font-weight: 600;
      padding: 7px 12px;
      width: 100%;
      max-width: none;
      align-self: center;
      border-radius: 8px;
      text-align: center;
    }

    .promo-block {
      padding: 20px 15px;
      margin: 0 10px;
      border-radius: 8px;
    }

    .promo-title {
      font-size: 18px;
      margin-bottom: 12px;
      line-height: 1.3;
    }

    .promo-text {
      font-size: 13px;
      margin-bottom: 10px;
      line-height: 1.5;
    }

    .promo-text:last-of-type {
      margin-bottom: 18px;
    }

    .btn-promo {
      font-size: 13px;
      padding: 11px 20px;
      width: auto;
      max-width: none;
    }
  }

  /* =============================================
    HOW WE WORK PAGE (Kak-my-rabotaem page)
    ============================================= */

  /* Stages Section */
  .stages-section {
    padding: 40px 20px 60px;
    background-color: #fff;
  }

  .stages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
  }

  .stage-card {
    background-color: #fff;
    border-radius: 0;
    padding: 0;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  /* Zig-zag pattern: odd stages (left column) higher, even stages (right column) lower */
  .stage-card:nth-child(1) {
    margin-top: 0;
    margin-bottom: 80px;
  }

  .stage-card:nth-child(2) {
    margin-top: 80px;
    margin-bottom: 0;
  }

  .stage-card:nth-child(3) {
    margin-top: -20px;
    margin-bottom: 80px;
  }

  .stage-card:nth-child(4) {
    margin-top: 80px;
    margin-bottom: 0;
  }

  .stage-card:nth-child(5) {
    margin-top: -20px;
    margin-bottom: 80px;
  }

  .stage-card:nth-child(6) {
    margin-top: 80px;
    margin-bottom: 0;
  }

  .stage-card:nth-child(7) {
    margin-top: -20px;
    margin-bottom: 0;
  }

  .stage-card:nth-child(8) {
    margin-top: 80px;
    margin-bottom: 0;
  }

  .stage-content {
    flex: 1;
    z-index: 2;
    padding: 25px;
    display: flex;
    align-items: center;
    align-self: stretch;
  }

  .stage-card:nth-child(odd) .stage-content {
    padding-right: 25px;
    padding-left: 25px;
  }

  .stage-card:nth-child(even) .stage-content {
    padding-right: 25px;
    padding-left: 25px;
  }

  .stage-text {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    line-height: 1.5;
    margin: 0;
    text-align: left;
  }

  .stage-number {
    position: relative;
    width: 120px;
    height: 95px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
    align-self: flex-start;
  }

  /* Left column: text aligned to the right */
  .stage-number-left {
    justify-content: flex-end;
    padding-right: 15px;
    padding-left: 0;
  }

  /* Right column: text aligned to the left */
  .stage-number-right {
    justify-content: flex-start;
    padding-left: 15px;
    padding-right: 0;
  }

  /* Left column (odd): banner on the left */
  .stage-card:nth-child(odd) .stage-number-left {
    order: 1;
  }

  /* Right column (even): banner on the left */
  .stage-card:nth-child(even) .stage-number-right {
    order: 0;
  }

  .stage-card:nth-child(even) .stage-content {
    order: 1;
  }

  .stage-card:nth-child(odd) .stage-content {
    order: 1;
  }

  .stage-banner-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
  }

  .stage-number-text {
    position: relative;
    color: #fff;
    font-family: 'Crimson Text', serif;
    font-size: 80px;
    font-weight: 600;
    z-index: 2;
    line-height: 1;
  }

  /* Contact Form Section with Blue Background */
  .contact-form-section-blue {
    background-color: #E0F2F7;
    padding: 40px 20px 60px;
    text-align: center;
  }

  .contact-form-section-blue .section-title {
    margin-bottom: 15px;
  }

  .contact-subtitle {
    font-size: 18px;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
  }

  .contact-form-section-blue .contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
  }

  /* =============================================
    MAIN PAGE (Главная)
    ============================================= */
  body.main-page {
    background: #E7E8EA;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  /* Hero Section */
  .hero-section {
    background: #FFFFFF;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
  }

  .hero-container {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    padding-right: calc(min(591px, 35vw) + var(--container-padding) + 60px);
    position: relative;
    z-index: 2;
  }

  @media (max-width: 1400px) {
    .hero-container {
      padding-right: calc(min(450px, 35vw) + var(--container-padding) + 30px);
    }
  }

  @media (max-width: 1024px) {
    .hero-section {
      display: flex;
      flex-direction: column;
      overflow: visible;
      min-height: auto;
    }

    .hero-container {
      padding: 0 15px;
      padding-right: 15px;
    }

    .hero-image {
      position: static;
      width: 100%;
      height: auto;
      min-height: auto;
      z-index: auto;
      right: auto;
      top: auto;
      order: 2;
      display: block;
    }

    .hero-books-image {
      width: 100%;
      height: auto;
      object-fit: cover;
    }
  }

  .hero-content {
    max-width: 892px;
    z-index: 3;
    position: relative;
  }

  .hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 49px;
    color: #000000;
    margin: 0 0 25px 0;
  }

  .hero-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
    margin: 0 0 30px 0;
  }

  .hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
  }

  .btn-hero-primary {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    min-width: min(374px, 100%);
    height: 43px;
    background: var(--primary-color);
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 24px;
    color: #FFFFFF;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .btn-hero-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  .btn-hero-secondary {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    min-width: min(374px, 100%);
    height: 43px;
    background: #FFFFFF;
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 24px;
    color: #000000;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .btn-hero-secondary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  .hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 88px;
  }

  .stat-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    color: #000000;
    margin: 0;
  }

  .stat-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    color: #000000;
    margin: 0;
  }

  .hero-disclaimer {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #000000;
    margin: 0;
  }

  .hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: min(591px, 40vw);
    height: 100%;
    min-height: 600px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  @media (max-width: 1400px) {
    .hero-image {
      width: min(450px, 35vw);
      min-height: auto;
    }
  }


  .hero-books-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Mobile hero bottom section - hidden on desktop */
  .hero-mobile-bottom {
    display: none;
  }

  .hero-disclaimer-mobile {
    display: none;
  }

  .hero-image-mobile {
    display: none;
  }

  /* Desktop elements - visible on desktop */
  .hero-stats-desktop {
    display: flex;
  }

  .hero-disclaimer-desktop {
    display: block;
  }

  /* Mobile styles for hero */
  @media (max-width: 1024px) {

    /* Hide desktop-only elements */
    .hero-stats-desktop {
      display: none;
    }

    .hero-disclaimer-desktop {
      display: none;
    }

    .hero-image {
      display: none;
    }

    /* Show mobile elements */
    .hero-mobile-bottom {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 15px;
      padding: 0 15px;
      margin-top: 25px;
      order: 10;
    }

    .hero-stats-mobile {
      display: flex;
      flex-direction: column;
      gap: 15px;
      flex: 0 0 auto;
    }

    .hero-stats-mobile .stat-item {
      align-items: flex-start;
      text-align: left;
    }

    .hero-image-mobile {
      display: block;
      flex: 1;
      max-width: 55%;
    }

    .hero-image-mobile img {
      width: 100%;
      height: auto;
      object-fit: contain;
    }

    .hero-disclaimer-mobile {
      display: block;
      padding: 15px 15px 0;
      font-size: 12px;
      color: #000;
      order: 11;
    }

    .hero-container {
      order: 1;
    }
  }

  /* Calculator Section for Main Page */
  body.main-page .calculator-section {
    max-width: 1620px;
    margin: 40px auto;
    padding: 20px;
    background: #FFFFFF;
    min-height: 480px;
  }

  body.main-page .calculator-section .section-title {
    margin-bottom: 20px;
  }

  body.main-page .calculator-placeholder {
    width: 100%;
    height: 380px;
    background: #FFFFFF;
  }

  /* Portfolio Showcase Section */
  .portfolio-showcase-section {
    background: #E7E8EA;
    padding: 60px 0;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .portfolio-showcase-header {
    max-width: var(--container-max-width);
    margin: 0 auto 40px;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
    width: 100%;
  }

  .portfolio-showcase-titles {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .portfolio-showcase-nav {
    position: absolute;
    top: 60px;
    right: var(--container-padding);
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 10;
  }

  @media (min-width: 1620px) {
    .portfolio-showcase-nav {
      right: calc((100% - var(--container-max-width)) / 2 + var(--container-padding));
    }
  }

  /* Скрываем кнопки на мобильных */
  @media (max-width: 1023px) {
    body.main-page .portfolio-showcase-nav {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }
  }

  .portfolio-showcase-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 39px;
    color: #000000;
    margin: 0 0 10px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .portfolio-showcase-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }


  .portfolio-nav-prev,
  .portfolio-nav-next {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    background: #36B0D5;
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
  }

  .portfolio-nav-prev:hover,
  .portfolio-nav-next:hover {
    opacity: 0.9;
    transform: scale(1.05);
  }

  .portfolio-nav-prev::before {
    content: '';
    width: 0;
    height: 0;
    border-right: 6px solid #FFFFFF;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transform: translateX(-2px);
  }

  .portfolio-nav-next::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid #FFFFFF;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transform: translateX(2px);
  }

  .portfolio-showcase-slider {
    max-width: var(--container-max-width);
    margin: 0 auto 40px;
    padding: 0 var(--container-padding);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .portfolio-showcase-slider.splide {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .portfolio-showcase-slider .splide__track {
    overflow: hidden;
  }

  .portfolio-showcase-slider .splide__list {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .portfolio-book-item {
    width: 401px;
    height: 391px;
    overflow: hidden;
    flex-shrink: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .portfolio-book-item.splide__slide {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 401px !important;
    height: 391px !important;
  }

  @media (max-width: 1024px) {
    .portfolio-book-item.splide__slide {
      width: 280px !important;
      height: 270px !important;
    }

    body.main-page .portfolio-book-item.splide__slide {
      width: 280px !important;
      height: 270px !important;
    }
  }

  @media (max-width: 768px) {
    .portfolio-book-item.splide__slide {
      width: 240px !important;
      height: 230px !important;
    }

    body.main-page .portfolio-book-item.splide__slide {
      width: 240px !important;
      height: 230px !important;
    }
  }

  @media (max-width: 480px) {
    .portfolio-book-item.splide__slide {
      width: 180px !important;
      height: 200px !important;
    }

    body.main-page .portfolio-book-item.splide__slide {
      width: 180px !important;
      height: 200px !important;
    }
  }

  .portfolio-book-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Скрываем стандартные кнопки Splide */
  .portfolio-showcase-slider .splide__arrow,
  .portfolio-slider .splide__arrow {
    display: none;
  }

  /* Специфичные стили для кнопок в portfolio-showcase-nav */
  .portfolio-showcase-nav .portfolio-nav-prev,
  .portfolio-showcase-nav .portfolio-nav-next {
    background: #36B0D5;
    border: 1px solid #FFFFFF;
  }

  .portfolio-showcase-nav .portfolio-nav-prev:hover,
  .portfolio-showcase-nav .portfolio-nav-next:hover {
    opacity: 0.9;
    transform: scale(1.05);
  }

  .portfolio-showcase-button {
    text-align: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }

  .btn-portfolio {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    min-width: min(374px, 100%);
    height: 43px;
    background: var(--primary-color);
    border-radius: 10px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 24px;
    color: #FFFFFF;
    cursor: pointer;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .btn-portfolio:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  /* Final CTA Section */
  .final-cta-section {
    background: #E6F9FF;
    padding: 60px 20px;
    text-align: center;
    max-width: 1620px;
    margin: 0 auto;
  }

  .final-cta-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 39px;
    text-align: center;
    color: #000000;
    margin: 0 auto 20px;
    max-width: 1332px;
  }

  .final-cta-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    color: #000000;
    margin: 0 auto 30px;
    max-width: 1706px;
  }

  .btn-final-cta {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    min-width: min(374px, 90%);
    width: auto;
    height: 43px;
    background: #FFFFFF;
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 24px;
    color: #000000;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .btn-final-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  /* =============================================
    PROMOTIONS SECTION (Akcii page)
    ============================================= */
  .promotions-section {
    padding: 40px 20px 60px;
    background-color: #fff;
    text-align: center;
  }

  .promotions-section .section-title {
    margin-bottom: 40px;
  }

  .promotions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .promotion-card {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
  }

  .promotion-header {
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    overflow: hidden;
    width: 100%;
  }

  .promotion-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    pointer-events: none;
  }

  .promotion-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    padding: 25px 20px;
    width: 100%;
  }

  .promotion-body {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .promotion-gift-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 12px 0;
    text-align: left;
  }

  .promotion-gifts {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    padding-left: 0;
  }

  .promotion-gifts li {
    font-size: 18px;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.5;
    padding-left: 0;
    position: relative;
    text-align: center;
  }

  .promotion-gifts li:last-child {
    margin-bottom: 0;
  }

  .btn-promotion {
    background-color: #3AA5C7;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 10px;
    cursor: pointer;
    width: calc(100% - 50px);
    margin: auto 25px 25px 25px;
    margin-top: auto;
    transition: background-color 0.3s ease;
  }

  .btn-promotion:hover {
    background-color: #2d8ba8;
  }

  /* =============================================
    PORTFOLIO MAIN SECTION
    ============================================= */
  .portfolio-main-section {
    position: relative;
    width: 100%;
    min-height: 1605px;
    background: #E7E8EA;
    padding: 91px 0 0;
  }

  .portfolio-main-title {
    position: relative;
    width: 875px;
    height: 44px;
    left: calc(50% - 875px/2);
    top: 0;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    line-height: 39px;
    text-align: center;
    color: #000000;
    margin: 0 0 93px 0;
  }

  .portfolio-content-wrapper {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    gap: clamp(20px, 3vw, 50px);
  }

  .portfolio-filters {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 320px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 120px;
  }

  .filter-btn {
    position: relative;
    width: 100%;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    cursor: pointer;
    text-align: left;
    padding: 20px 25px 20px 55px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
  }

  .filter-btn span {
    display: block;
    position: relative;
    z-index: 1;
  }

  .filter-btn:hover {
    background: #fff;
    border-color: rgba(58, 165, 199, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(58, 165, 199, 0.15);
  }

  .filter-btn.active {
    background: linear-gradient(135deg, #3AA5C7 0%, #2d8aa8 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(58, 165, 199, 0.35);
    transform: translateX(8px);
  }

  /* Remove old nth-child height overrides */
  .filter-btn:nth-child(2),
  .filter-btn:nth-child(3),
  .filter-btn:nth-child(4) {
    height: auto;
  }

  .portfolio-books-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    flex: 1;
    padding: 20px;
  }

  .portfolio-book-item {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
      0 4px 15px rgba(0, 0, 0, 0.08),
      0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
  }

  .portfolio-book-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 60%,
        rgba(58, 165, 199, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
  }

  .portfolio-book-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
      0 20px 40px rgba(58, 165, 199, 0.2),
      0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .portfolio-book-item:hover::before {
    opacity: 1;
  }

  .portfolio-book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s ease;
  }

  .portfolio-book-item:hover .portfolio-book-image {
    transform: scale(1.05);
  }

  /* Loading animation for images */
  .portfolio-book-item img {
    animation: fadeInUp 0.6s ease backwards;
  }

  .portfolio-book-item:nth-child(1) img {
    animation-delay: 0.05s;
  }

  .portfolio-book-item:nth-child(2) img {
    animation-delay: 0.1s;
  }

  .portfolio-book-item:nth-child(3) img {
    animation-delay: 0.15s;
  }

  .portfolio-book-item:nth-child(4) img {
    animation-delay: 0.2s;
  }

  .portfolio-book-item:nth-child(5) img {
    animation-delay: 0.25s;
  }

  .portfolio-book-item:nth-child(6) img {
    animation-delay: 0.3s;
  }

  .portfolio-book-item:nth-child(7) img {
    animation-delay: 0.35s;
  }

  .portfolio-book-item:nth-child(8) img {
    animation-delay: 0.4s;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* No items message */
  .no-portfolio-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
  }

  .no-portfolio-items p {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
  }

  .no-portfolio-items .hint {
    font-size: 14px;
    color: #999;
  }

  /* Portfolio Page Responsive Styles */
  @media (max-width: 1200px) {
    .portfolio-content-wrapper {
      flex-direction: column;
      gap: 40px;
    }

    .portfolio-filters {
      width: 100%;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      position: static;
      gap: 10px;
    }

    .filter-btn {
      width: auto;
      min-height: auto;
      padding: 14px 20px 14px 45px;
      font-size: 14px;
      flex: 0 1 auto;
    }


    .filter-btn:hover,
    .filter-btn.active {
      transform: translateX(0) translateY(-2px);
    }

    .portfolio-books-grid {
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 20px;
      padding: 10px;
    }
  }

  @media (max-width: 768px) {
    .portfolio-main-section {
      padding: 50px 0 40px;
      min-height: auto;
    }

    .portfolio-main-title {
      width: 100%;
      font-size: 24px;
      line-height: 1.3;
      padding: 0 20px;
      margin-bottom: 40px;
      left: 0;
    }

    .portfolio-filters {
      gap: 8px;
    }

    .filter-btn {
      padding: 12px 15px 12px 38px;
      font-size: 13px;
      border-radius: 8px;
    }

    .portfolio-books-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }

    .portfolio-book-item:hover {
      transform: translateY(-6px) scale(1.01);
    }
  }

  @media (max-width: 480px) {
    .portfolio-main-title {
      font-size: 20px;
    }

    .filter-btn {
      padding: 10px 12px 10px 32px;
      font-size: 12px;
      min-height: 44px;
    }

    .portfolio-books-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      padding: 5px;
    }
  }

  /* Responsive for How We Work Page */
  @media (max-width: 1024px) {
    .stages-grid {
      gap: 15px;
    }

    .stage-card {
      min-height: 140px;
    }

    .stage-content {
      padding: 20px;
      justify-content: center;
    }

    .stage-card:nth-child(odd) .stage-content {
      padding-right: 20px;
      padding-left: 20px;
    }

    .stage-card:nth-child(even) .stage-content {
      padding-right: 20px;
      padding-left: 20px;
    }

    .stage-text {
      font-size: 16px;
      text-align: center;
    }

    .stage-number {
      width: 100px;
      min-height: 140px;
    }

    .stage-number-left {
      padding-right: 12px;
      padding-left: 0;
    }

    .stage-number-right {
      padding-left: 12px;
      padding-right: 0;
    }

    .stage-number-text {
      font-size: 42px;
    }
  }

  @media (max-width: 768px) {
    .stages-section {
      padding: 30px 15px 40px;
    }

    .stages-section .section-title {
      font-size: 24px;
      margin-bottom: 30px;
    }

    .stages-grid {
      grid-template-columns: 1fr;
      gap: 15px;
    }

    .stage-card {
      min-height: 135px;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
    }

    /* Убираем все zig-zag отступы на мобильных */
    .stage-card:nth-child(1),
    .stage-card:nth-child(2),
    .stage-card:nth-child(3),
    .stage-card:nth-child(4),
    .stage-card:nth-child(5),
    .stage-card:nth-child(6),
    .stage-card:nth-child(7),
    .stage-card:nth-child(8) {
      margin-top: 0 !important;
      margin-bottom: 0 !important;
    }

    .stage-content {
      padding: 20px;
      justify-content: center;
    }

    .stage-card:nth-child(odd) .stage-content {
      padding-right: 20px;
      padding-left: 20px;
    }

    .stage-card:nth-child(even) .stage-content {
      padding-right: 20px;
      padding-left: 20px;
    }

    .stage-text {
      font-size: 15px;
      text-align: center;
    }

    .stage-number {
      width: 90px;
      min-height: 135px;
    }

    .stage-number-left {
      padding-right: 10px;
      padding-left: 0;
    }

    .stage-number-right {
      padding-left: 10px;
      padding-right: 0;
    }

    .stage-number-text {
      font-size: 38px;
    }

    .contact-form-section-blue {
      padding: 30px 15px 40px;
    }

    .contact-form-section-blue .section-title {
      font-size: 24px;
    }

    .contact-subtitle {
      font-size: 16px;
      margin-bottom: 25px;
    }

    /* Portfolio Section */
    .portfolio-main-section {
      min-height: auto;
      padding: 50px 15px 40px;
    }

    .portfolio-main-title {
      position: static;
      width: 100%;
      height: auto;
      left: auto;
      top: auto;
      font-size: 28px;
      line-height: 1.3;
      margin: 0 auto 35px;
      max-width: 100%;
    }

    .portfolio-content-wrapper {
      flex-direction: column;
      padding: 0 15px;
      gap: 30px;
    }

    .portfolio-filters {
      width: 100%;
      max-width: 100%;
      align-self: center;
    }

    .filter-btn {
      width: 100%;
      height: 60px;
      font-size: 18px;
      padding: 0 20px;
    }

    .filter-btn:nth-child(n) {
      height: 60px;
    }

    .portfolio-books-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      width: 100%;
    }

    .portfolio-book-item {
      width: 100%;
      height: auto;
      aspect-ratio: 251 / 179;
    }

    .portfolio-book-item:nth-child(n) {
      width: 100%;
      height: auto;
      aspect-ratio: 251 / 179;
    }

    body.main-page .calculator-section {
      margin: 30px auto;
      padding: 20px 15px;
      min-height: 350px;
    }

    body.main-page .calculator-section .section-title {
      font-size: 28px;
      margin-bottom: 20px;
    }

    body.main-page .calculator-placeholder {
      height: 300px;
    }

    /* Promotions Section */
    .promotions-section {
      padding: 30px 15px 40px;
    }

    .promotions-section .section-title {
      font-size: 24px;
      margin-bottom: 30px;
    }

    .promotions-grid {
      grid-template-columns: 2fr 2fr;
      gap: 20px;
    }

    /* Центрирование последней нечетной карточки на планшетах */
    .promotion-card:last-child:nth-child(odd) {
      grid-column: 1 / -1;
      justify-self: center;
      max-width: calc(50% - 10px);
    }

    .promotion-header {
      padding: 20px 15px;
      padding-bottom: 35px;
      min-height: 70px;
    }

    .promotion-text {
      font-size: 16px;
    }

    .promotion-body {
      padding: 25px 20px;
      align-items: flex-start;
      text-align: left;
    }

    .promotion-gift-title {
      font-size: 14px;
      margin-bottom: 12px;
      text-align: left;
    }

    .promotion-gifts {
      text-align: left;
    }

    .promotion-gifts li {
      font-size: 14px;
      margin-bottom: 8px;
    }

    .btn-promotion {
      padding: 12px 20px;
      font-size: 14px;
      width: calc(100% - 40px);
      margin: auto 20px 20px 20px;
      margin-top: auto;
    }
  }

  @media (max-width: 480px) {
    .stages-section {
      padding: 20px 10px 30px;
    }

    .stages-section .section-title {
      font-size: 20px;
      margin-bottom: 20px;
    }

    .stage-card {
      min-height: 125px;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
    }

    /* Убираем все zig-zag отступы на маленьких мобильных */
    .stage-card:nth-child(1),
    .stage-card:nth-child(2),
    .stage-card:nth-child(3),
    .stage-card:nth-child(4),
    .stage-card:nth-child(5),
    .stage-card:nth-child(6),
    .stage-card:nth-child(7),
    .stage-card:nth-child(8) {
      margin-top: 0 !important;
      margin-bottom: 0 !important;
    }

    .stage-content {
      padding: 18px;
      justify-content: center;
    }

    .stage-card:nth-child(odd) .stage-content {
      padding-right: 18px;
      padding-left: 20px;
    }

    .stage-card:nth-child(even) .stage-content {
      padding-right: 18px;
      padding-left: 18px;
    }

    .stage-text {
      font-size: 14px;
      text-align: center;
    }

    .stage-number {
      width: 80px;
      min-height: 125px;
    }

    .stage-number-left {
      padding-right: 8px;
      padding-left: 0;
    }

    .stage-number-right {
      padding-left: 8px;
      padding-right: 0;
    }

    .stage-number-text {
      font-size: 34px;
    }

    .contact-form-section-blue {
      padding: 25px 10px 35px;
    }

    .contact-form-section-blue .section-title {
      font-size: 20px;
    }

    .contact-subtitle {
      font-size: 14px;
      margin-bottom: 20px;
    }

    /* Portfolio Section */
    .portfolio-main-section {
      box-sizing: border-box;
      position: relative;
      width: 100%;
      max-width: 412px;
      min-height: 1224px;
      background: #E7E8EA;
      margin: 0 auto;
      padding: 30px 15px 40px;
    }

    .portfolio-main-title {
      position: static;
      width: 100%;
      height: auto;
      left: auto;
      top: auto;
      font-size: 20px;
      line-height: 1.3;
      margin: 0 auto 25px;
      max-width: 100%;
    }

    .portfolio-content-wrapper {
      flex-direction: column;
      padding: 0;
      gap: 25px;
      max-width: 100%;
    }

    .portfolio-filters {
      width: auto;
      max-width: 100%;
      align-self: center;
      gap: 15px;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
    }

    .filter-btn {
      width: 100%;
      height: 50px;
      font-size: 14px;
      padding: 0 15px;
    }

    .filter-btn:nth-child(n) {
      height: 50px;
      width: 170px;
    }

    .portfolio-books-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      width: 100%;
      justify-content: space-between;
    }

    .portfolio-book-item {
      width: calc(50% - 6px);
      height: auto;
      aspect-ratio: 180 / 200;
    }

    .portfolio-book-item:nth-child(n) {
      width: calc(50% - 6px);
      height: auto;
      aspect-ratio: 180 / 200;
    }

    body.main-page .calculator-section {
      margin: 20px 10px;
      padding: 20px 10px;
      min-height: 300px;
      max-width: none;
    }

    body.main-page .calculator-section .section-title {
      font-size: 22px;
      margin-bottom: 15px;
    }

    body.main-page .calculator-placeholder {
      height: 250px;
    }

    /* Promotions Section */
    .promotions-section {
      padding: 25px 10px 35px;
    }

    .promotions-section .section-title {
      font-size: 20px;
      margin-bottom: 25px;
    }

    .promotions-grid {
      gap: 15px;
    }

    /* Центрирование последней нечетной карточки на мобильных */
    .promotion-card:last-child:nth-child(odd) {
      grid-column: 1 / -1;
      justify-self: center;
      max-width: calc(50% - 7.5px);
    }

    .promotion-header {
      padding: 15px 12px;
      padding-bottom: 30px;
      min-height: 60px;
    }

    .promotion-text {
      font-size: 14px;
    }

    .promotion-body {
      padding: 20px 15px;
      align-items: flex-start;
      text-align: left;
    }

    .promotion-gift-title {
      font-size: 13px;
      margin-bottom: 10px;
      text-align: left;
    }

    .promotion-gifts {
      text-align: left;
    }

    .promotion-gifts li {
      font-size: 13px;
      margin-bottom: 6px;
    }

    .btn-promotion {
      padding: 10px 15px;
      font-size: 13px;
      width: calc(100% - 30px);
      margin: auto 15px 15px 15px;
      margin-top: auto;
    }
  }

  /* =============================================
    REVIEWS PAGE (Otzyvy page)
    ============================================= */

  /* Review Content Section */
  .review-content-section {
    background-color: #F0F0F0;
    padding: 40px 20px;
  }

  .review-content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    align-items: flex-start;
  }

  .review-image-wrapper {
    flex: 0 0 400px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
  }

  .review-image {
    width: 100%;
  }

  .review-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  .review-text {
    flex: 1;
    padding: 0;
  }

  .review-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 20px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
  }

  .review-text p:last-of-type {
    margin-bottom: 0;
  }

  .review-signature {
    margin-top: 20px;
    text-align: left;
  }

  .review-signature p {
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
  }

  .review-signature p:last-child {
    margin-bottom: 0;
    font-weight: 400;
  }

  .review-signature strong {
    font-weight: 600;
  }

  /* Calculator Section for Reviews Page */
  .review-content-section+.calculator-section {
    padding: 60px 20px;
    background-color: #fff;
    min-height: 500px;
  }

  /* Responsive for Reviews Page */
  @media (max-width: 1024px) {
    .review-content-section {
      padding: 35px 20px;
      margin: 0;
    }

    .review-content-wrapper {
      max-width: 1000px;
      gap: 35px;
    }

    .review-image-wrapper {
      flex: 0 0 350px;
      max-width: 350px;
    }

    .review-content-section+.calculator-section {
      padding: 50px 20px;
      min-height: 450px;
      margin: 0;
    }
  }

  @media (max-width: 768px) {
    .review-content-section {
      padding: 20px 15px;
      margin: 0;
      background-color: #fff;
    }

    .review-content-wrapper {
      flex-direction: row;
      gap: 15px;
      align-items: flex-start;
      max-width: 100%;
    }

    .review-image-wrapper {
      flex: 0 0 200px;
      max-width: 200px;
      width: 200px;
      align-items: stretch;
    }

    .review-image {
      width: 100%;
      max-width: 100%;
      margin: 0;
    }

    .review-image img {
      width: 100%;
      height: auto;
    }

    .review-signature {
      margin-top: 12px;
      text-align: left;
      width: 100%;
    }

    .review-signature p {
      font-size: 12px;
      margin-bottom: 2px;
    }

    .review-text {
      flex: 1;
      width: auto;
    }

    .review-text p {
      font-size: 12px;
      margin-bottom: 12px;
      text-align: left;
      line-height: 1.5;
    }

    .review-content-section+.calculator-section {
      padding: 40px 15px;
      min-height: 400px;
      margin: 0;
    }
  }

  @media (max-width: 480px) {
    .review-content-section {
      padding: 15px 10px;
      margin: 0;
      background-color: #fff;
    }

    .review-content-wrapper {
      flex-direction: row;
      gap: 12px;
      align-items: flex-start;
    }

    .review-image-wrapper {
      flex: 0 0 150px;
      max-width: 150px;
      width: 150px;
    }

    .review-image {
      width: 100%;
      max-width: 100%;
      margin: 0;
    }

    .review-image img {
      width: 100%;
      height: auto;
    }

    .review-signature {
      margin-top: 10px;
      text-align: left;
    }

    .review-signature p {
      font-size: 11px;
      margin-bottom: 2px;
    }

    .review-text {
      flex: 1;
      width: auto;
    }

    .review-text p {
      font-size: 11px;
      margin-bottom: 10px;
      text-align: left;
      line-height: 1.5;
    }

    .review-content-section+.calculator-section {
      padding: 30px 10px;
      min-height: 350px;
      margin: 0;
    }
  }

  /* =============================================
    HEADER STYLES
    ============================================= */
  .header-top {
    background: #ffffff;
    padding: 15px 0;
  }

  .header-top-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
  }

  .header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
  }

  .header-logo {
    display: flex;
    flex-direction: column;
  }

  .header-logo-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 29px;
    color: #000000;
    margin: 0;
  }

  .header-logo-title a {
    color: #000000;
    text-decoration: none;
  }

  .header-logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #000000;
    margin: 5px 0 0 0;
  }

  .header-top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
  }

  .header-nav-primary {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
  }

  .header-phone {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    text-decoration: underline;
    white-space: nowrap;
  }

  .header-btn-calculate {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    min-width: min(200px, 100%);
    height: 43px;
    background: var(--primary-color);
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
  }

  .header-btn-calculate:hover {
    opacity: 0.9;
  }

  .header-nav-primary li {
    margin: 0;
  }

  .header-nav-primary a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16.5px;
    line-height: 17px;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
  }

  .header-nav-primary a:hover {
    text-decoration: underline;
  }

  .header-bottom {
    background: #E7E8EA;
    padding: 15px 0;
  }

  .header-bottom-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
  }

  .header-nav-secondary {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .header-nav-secondary li {
    margin: 0;
  }

  .header-nav-secondary a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
  }

  .header-nav-secondary a:hover {
    text-decoration: underline;
  }

  /* Mobile Header */
  .header-mobile {
    display: none;
    background: #E7E8EA;
    padding: 15px 20px;
    border-bottom: 1px solid #D0D0D0;
    position: relative;
    z-index: 100;
  }

  .header-mobile-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }

  .header-mobile-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
    flex: 1;
  }

  .header-mobile-logo a {
    color: #000000;
    text-decoration: none;
  }

  .header-mobile-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
  }

  .header-mobile-phone-inline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #000000;
    text-decoration: underline;
    white-space: nowrap;
    display: none;
  }

  .header-mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 24px;
  }

  .header-mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s;
  }

  .header-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #D0D0D0;
    padding: 20px;
    z-index: 1000;
  }

  .header-mobile-menu.active {
    display: block;
  }

  .header-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .header-mobile-nav li {
    margin-bottom: 15px;
  }

  .header-mobile-nav li:last-child {
    margin-bottom: 0;
  }

  .header-mobile-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    text-decoration: none;
    display: block;
  }

  .header-mobile-nav a:hover {
    text-decoration: underline;
  }

  .header-mobile-phone {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    text-decoration: underline;
    margin-top: 20px;
    display: block;
  }

  .header-mobile-btn {
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    height: 43px;
    background: #3AA5C7;
    border: 1px solid #4AC5F4;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    cursor: pointer;
  }

  /* Header Responsive */
  @media (max-width: 1024px) {

    .header-top,
    .header-bottom {
      display: none !important;
      position: absolute;
      visibility: hidden;
      height: 0;
      overflow: hidden;
    }

    .header-mobile {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      width: 100%;
      background: #E7E8EA;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Добавляем отступ для body, чтобы контент не перекрывался header */
    body {
      padding-top: 55px;
    }

    /* Page-title должен быть под фиксированным header */
    .page-title-banner {
      margin-top: 0 !important;
      position: relative !important;
      z-index: 1 !important;
    }
  }

  @media (max-width: 768px) {
    .header-top-container {
      padding: 0 20px;
    }

    .header-bottom-container {
      padding: 0 20px;
    }

    .header-nav-primary,
    .header-nav-secondary {
      gap: 15px;
    }

    .header-mobile-phone-inline {
      display: block;
    }
  }

  @media (max-width: 480px) {
    .header-mobile {
      padding: 12px 15px;
    }

    .header-mobile-logo {
      font-size: 18px;
    }

    .header-mobile-phone-inline {
      display: none;
    }

    /* Меньший отступ для body на маленьких экранах */
    body {
      padding-top: 50px;
    }
  }

  /* =============================================
    FOOTER STYLES
    ============================================= */
  .footer {
    background: #000000;
    color: #FFFFFF;
    padding: 60px 0 30px;
    margin-top: 20px;
  }

  .footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
  }

  .footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 50px;
  }

  .footer-column {
    display: flex;
    flex-direction: column;
  }

  .footer-column-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    color: #3AA5C7;
    margin: 0 0 20px 0;
  }

  .footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .footer-nav li {
    margin: 0;
  }

  .footer-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-nav a:hover {
    color: #3AA5C7;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 29px;
    color: #FFFFFF;
  }

  .footer-copyright {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;
    text-align: center;
    flex: 1;
  }

  .footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
  }

  .footer-social-link:hover {
    background: #3AA5C7;
  }

  .footer-social-icon {
    width: 20px;
    height: 20px;
    fill: #000000;
    transition: fill 0.3s;
  }

  .footer-social-link:hover .footer-social-icon {
    fill: #FFFFFF;
  }

  /* Footer Responsive */
  @media (max-width: 1024px) {
    .footer {
      padding: 30px 0 20px;
    }

    .footer-container {
      padding: 0 15px;
    }

    .footer-top {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      gap: 15px;
      margin-bottom: 30px;
      overflow-x: hidden;
    }

    .footer-column {
      flex: 1 1 0;
      min-width: 0;
    }

    .footer-column-title {
      font-size: 14px;
      margin-bottom: 10px;
    }

    .footer-nav {
      gap: 8px;
    }

    .footer-nav a {
      font-size: 12px;
      line-height: 14px;
    }

    .footer-bottom {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 15px;
      align-items: center;
      justify-content: space-between;
    }

    .footer-logo {
      font-size: 18px;
      order: 1;
      flex: 0 0 auto;
    }

    .footer-copyright {
      font-size: 11px;
      order: 3;
      flex: 1 1 100%;
      text-align: center;
      margin-top: 10px;
    }

    .footer-social {
      order: 2;
      flex: 0 0 auto;
      gap: 10px;
    }

    .footer-social-link {
      width: 32px;
      height: 32px;
    }

    .footer-social-icon {
      width: 16px;
      height: 16px;
    }
  }

  @media (max-width: 768px) {
    .footer {
      padding: 25px 0 15px;
    }

    .footer-container {
      padding: 0 12px;
    }

    .footer-top {
      gap: 10px;
      margin-bottom: 25px;
    }

    .footer-column {
      flex: 1 1 0;
      min-width: 0;
    }

    .footer-column-title {
      font-size: 13px;
      margin-bottom: 8px;
    }

    .footer-nav {
      gap: 6px;
    }

    .footer-nav a {
      font-size: 11px;
      line-height: 13px;
    }

    .footer-bottom {
      gap: 12px;
      padding-top: 15px;
    }

    .footer-logo {
      font-size: 16px;
    }

    .footer-copyright {
      font-size: 10px;
    }

    .footer-social-link {
      width: 30px;
      height: 30px;
    }

    .footer-social-icon {
      width: 15px;
      height: 15px;
    }
  }

  @media (max-width: 480px) {
    .footer {
      padding: 20px 0 15px;
    }

    .footer-container {
      padding: 0 10px;
    }

    .footer-top {
      gap: 8px;
      margin-bottom: 20px;
    }

    .footer-column {
      flex: 1 1 0;
      min-width: 0;
    }

    .footer-column-title {
      font-size: 12px;
      margin-bottom: 8px;
    }

    .footer-nav {
      gap: 6px;
    }

    .footer-nav a {
      font-size: 10px;
      line-height: 12px;
    }

    .footer-bottom {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 10px;
      padding-top: 15px;
      align-items: center;
      justify-content: space-between;
    }

    .footer-logo {
      font-size: 16px;
      order: 1;
      flex: 0 0 auto;
    }

    .footer-copyright {
      font-size: 10px;
      order: 3;
      flex: 1 1 100%;
      text-align: center;
      margin-top: 8px;
    }

    .footer-social {
      order: 2;
      flex: 0 0 auto;
      gap: 8px;
    }

    .footer-social-link {
      width: 28px;
      height: 28px;
    }

    .footer-social-icon {
      width: 14px;
      height: 14px;
    }
  }

  .page-title-banner {
    background: linear-gradient(to right, #8B7355, #6B5744);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 0;
  }


  .page-title-container {
    max-width: 1400px;
    margin: 0 auto;
  }

  .page-title-text {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 48px;
    color: #FFFFFF;
  }

  /* Адаптив для мобильных */
  @media (max-width: 768px) {
    .page-title-banner {
      padding: 20px 15px;
    }

    .page-title-text {
      font-size: 24px;
    }
  }

  @media (max-width: 480px) {
    .page-title-banner {
      padding: 15px 10px;
    }

    .page-title-text {
      font-size: 20px;
    }
  }

  /* =============================================
    CALCULATOR FIXES & CTA STYLES
    ============================================= */

  /* Fix for persistent scrollbar in calculator */
  .calculator,
  #calculator,
  .calculator-page-container,
  .calculator .container {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100% !important;
  }

  .calculator-section {
    overflow: visible !important;
    height: auto !important;
  }

  /* CTA Block Styles - Theme Matched */
  .calculator-cta-block {
    text-align: center;
    background-color: var(--bg-blue-light);
    /* Authentic theme background */
    border: none;
    border-radius: 0;
    /* Full width sections usually don't have radius in this theme, but let's keep it safe or check context */
    padding: 60px 20px;
    margin: 40px 0;
    /* Full width approach */
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    /* Flat design like other sections */
  }

  /* If inside a container, give it some shape */
  .container .calculator-cta-block {
    border-radius: 20px;
    margin: 40px auto;
    max-width: 100%;
  }

  .calculator-cta-title {
    font-size: 32px;
    /* Matching .section-title */
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: normal;
  }

  .calculator-cta-text {
    font-size: 20px;
    /* Matching .contact-subtitle */
    color: #000;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .calculator-cta-block .btn-primary {
    /* Inherit default btn-primary styles which are good */
    display: inline-block;
    padding: 15px 50px;
    /* Larger click area */
    font-size: 20px;
  }

  /* =============================================
    PORTFOLIO PAGE (page-portfolio.php)
    ============================================= */
  .portfolio-main-section {
    padding: 60px clamp(15px, 5vw, 100px);
    background: #fff;
    min-height: 600px;
  }

  .portfolio-main-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    text-align: center;
    margin-bottom: 50px;
  }

  .portfolio-content-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .portfolio-filters {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .filter-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
  }

  .filter-btn:hover {
    color: #3AA5C7;
    background: rgba(58, 165, 199, 0.1);
  }

  .filter-btn.active {
    background: #3AA5C7;
    color: #fff;
  }

  .portfolio-books-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    min-height: 400px;
    transition: opacity 0.3s ease;
  }

  .portfolio-book-item {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }

  .portfolio-book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  .portfolio-book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .no-portfolio-items,
  .no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
  }

  .no-portfolio-items p,
  .no-items p {
    margin-bottom: 10px;
  }

  .no-portfolio-items .hint,
  .no-items .hint {
    font-size: 14px;
    color: #999;
  }

  .portfolio-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
  }

  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3AA5C7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  /* Portfolio page responsive */
  @media (max-width: 900px) {
    .portfolio-content-wrapper {
      flex-direction: column;
    }

    .portfolio-filters {
      flex: none;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
    }

    .filter-btn {
      font-size: 14px;
      padding: 8px 16px;
    }
  }

  @media (max-width: 600px) {
    .portfolio-books-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }

    .portfolio-main-title {
      font-size: 24px;
    }
  }

  /* =============================================
    REVIEWS PAGE (page-reviews.php)
    ============================================= */
  .reviews-page-section {
    padding: 60px clamp(15px, 5vw, 100px);
    background: #fff;
  }

  .reviews-page-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    text-align: center;
    margin-bottom: 50px;
  }

  .reviews-list {
    max-width: 1200px;
    margin: 0 auto;
  }

  .review-content-section {
    background: #F8F8F8;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
  }

  .review-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
  }

  .review-image-wrapper {
    flex: 0 0 180px;
    text-align: center;
  }

  .review-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #3AA5C7;
  }

  .review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .review-signature p {
    margin: 0;
    font-size: 14px;
    color: #000;
  }

  .review-signature strong {
    font-size: 16px;
    font-weight: 600;
  }

  .review-text {
    flex: 1;
  }

  .review-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
  }

  .review-text p:last-child {
    margin-bottom: 0;
  }

  .no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: #666;
  }

  .no-reviews p {
    margin-bottom: 10px;
  }

  .no-reviews .hint {
    font-size: 14px;
    color: #999;
  }

  /* Reviews page responsive */
  @media (max-width: 768px) {
    .review-content-wrapper {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .review-image-wrapper {
      flex: none;
    }

    .review-text {
      text-align: left;
    }

    .reviews-page-title {
      font-size: 24px;
    }
  }

  /* =============================================
    PORTFOLIO ITEMS WITH DYNAMIC IMAGES
    ============================================= */
  .portfolio-item.splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* =============================================
    Header Logo Styles
    ============================================= */
  .header-logo {
    max-width: 150px;
  }

  .header-logo a {
    display: block;
  }

  .header-logo img {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
  }

  .header-mobile-logo {
    max-width: 200px;
  }

  .header-mobile-logo img {
    max-height: 40px;
    width: auto;
    display: block;
  }

  @media (max-width: 768px) {
    .header-logo img {
      max-width: 180px;
    }
  }

  /* =============================================
    DEFAULT PAGE TEMPLATE STYLES
    ============================================= */
  .default-page-content {
    background-color: #fff;
    padding: 60px 80px;
    /* Increased side padding for readability */
    margin-top: 0;
    /* Removed top margin to decrease gap from header */
    margin-bottom: 40px;
    border-radius: 10px;
    /* Optional, but looks nicer */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow for better prominence */
  }

  /* Removed entry-handler styles since we removed the duplicate header from HTML */

  .default-page-content .entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 1000px;
    /* Limit line width for better readability */
    margin: 0 auto;
  }

  .default-page-content .entry-content h2,
  .default-page-content .entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #000;
  }

  .default-page-content .entry-content p {
    margin-bottom: 20px;
  }

  .default-page-content .entry-content ul,
  .default-page-content .entry-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
  }

  .default-page-content .entry-content li {
    margin-bottom: 10px;
  }

  /* Table Styles */
  .default-page-content .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
  }

  .default-page-content .entry-content table th,
  .default-page-content .entry-content table td {
    padding: 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
  }

  .default-page-content .entry-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #000;
  }

  /* Responsive for default page */
  @media (max-width: 768px) {
    .default-page-content {
      padding: 30px 20px;
      margin-top: 0;
      margin-bottom: 30px;
    }

    .default-page-content .entry-content {
      font-size: 16px;
    }

    /* Table Wrapper for mobile scroll */
    .table-responsive {
      display: block;
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin-bottom: 20px;
    }

    /* Reset table display to ensure proper rendering inside wrapper */
    .default-page-content .entry-content table {
      display: table;
      width: 100%;
      min-width: 600px;
      /* Force minimum width to trigger scroll if needed */
    }
  }

  /* =============================================
    HEADER CONTACT INFO
    ============================================= */
  .header-contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }

  .header-email {
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
  }

  .header-email:hover {
    opacity: 0.8;
  }

  /* Mobile header email styles */
  @media (max-width: 768px) {
    .header-contact-info {
      align-items: center;
    }
  }

  /* =============================================
    YANDEX MAP STYLING
    ============================================= */
  .contact-info-section {
    display: flex;
    min-height: 500px;
    background-color: #fff;
  }

  .contact-map {
    flex: 1;
    min-height: 500px;
  }

  #yandex-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
  }

  .contact-info {
    flex: 0 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Responsive map height */
  @media (max-width: 768px) {
    .contact-info-section {
      flex-direction: column;
      min-height: auto;
    }

    .contact-map {
      height: 350px;
      min-height: 350px;
    }

    #yandex-map {
      min-height: 350px;
    }

    .contact-info {
      padding: 30px 20px;
    }
  }