/* ===========================
   ТЕРРАСЫ - ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   =========================== */

/* Используем цвета из существующих файлов */
:root {
    --primary-color: #92C820;
    --secondary-color: #7BA016;
    --text-dark: #414141;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
}

/* Hero Section - Terrasy */
.hero-terrasy {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero-terrasy__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-terrasy__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-terrasy__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-terrasy__content {
    position: relative;
    z-index: 3;
    padding: 60px 0;
}

.hero-terrasy__title {
    font-size: 48px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.hero-terrasy__subtitle {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-terrasy__usps {
    margin-bottom: 40px;
}

.hero-terrasy__usp-alternative {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--white);
    font-size: 16px;
}

.hero-terrasy__usp-alternative::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.hero-terrasy__buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-terrasy__btn-main,
.hero-terrasy__btn-secondary {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-terrasy__btn-main {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.hero-terrasy__btn-main:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
}

.hero-terrasy__btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.hero-terrasy__btn-secondary:hover {
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
}

.hero-terrasy__contact {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

.hero-terrasy__phone {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.hero-terrasy__phone svg {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: var(--primary-color);
}

.hero-terrasy__phone-num {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
}

.hero-terrasy__phone-num:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.hero-terrasy__phone-desc {
    font-size: 14px;
    color: var(--text-light);
}

.hero-terrasy__messengers span {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

.hero-terrasy__messenger-links {
    display: flex;
    gap: 15px;
}

.hero-terrasy__messenger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--bg-light);
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    transition: all 0.3s ease;
}

.hero-terrasy__messenger:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.hero-terrasy__messenger svg {
    width: 18px;
    height: 18px;
}

/* ===========================
   СЕКЦИЯ УСЛУГ - ПОЛНЫЕ СТИЛИ
   =========================== */

/* Основные стили секции */
.terrasy-services {
    padding: 80px 0;
    background: var(--bg-light);
}

.terrasy-services__header {
    text-align: center;
    margin-bottom: 60px;
}

.terrasy-services__title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.terrasy-services__subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.terrasy-services__grid {
    margin-bottom: 40px;
}

/* Стили карточек услуг */
.terrasy-services__item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.terrasy-services__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Стили изображений */
.terrasy-services__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.terrasy-services__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.terrasy-services__item:hover .terrasy-services__image img {
    transform: scale(1.05);
}

/* Стили бейджей */
.terrasy-services__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.terrasy-services__badge--premium {
    background: #FF6B35;
}

.terrasy-services__badge--commercial {
    background: #2E86AB;
}

.terrasy-services__badge--special {
    background: #9B59B6;
}

/* Стили контента */
.terrasy-services__content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.terrasy-services__name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.terrasy-services__description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

/* Стили списка особенностей */
.terrasy-services__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.terrasy-services__features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

.terrasy-services__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

/* Стили кнопки */
.terrasy-services__btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
    text-align: center;
    margin-top: auto;
    border: none;
    cursor: pointer;
}

.terrasy-services__btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
}

.terrasy-services__btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(146, 200, 32, 0.3);
}

/* ===========================
   АДАПТИВНЫЕ СТИЛИ
   =========================== */

/* Большие планшеты и маленькие десктопы (до 1199px) */
@media (max-width: 1199px) {
    .terrasy-services {
        padding: 70px 0;
    }
    
    .terrasy-services__title {
        font-size: 32px;
    }
    
    .terrasy-services__subtitle {
        font-size: 17px;
    }
    
    .terrasy-services__header {
        margin-bottom: 50px;
    }
    
    .terrasy-services__name {
        font-size: 17px;
    }
}

/* Планшеты (до 991px) */
@media (max-width: 991px) {
    .terrasy-services {
        padding: 60px 0;
    }
    
    .terrasy-services__title {
        font-size: 28px;
    }
    
    .terrasy-services__subtitle {
        font-size: 16px;
    }
    
    .terrasy-services__header {
        margin-bottom: 40px;
    }
    
    .terrasy-services__image {
        height: 180px;
    }
    
    .terrasy-services__content {
        padding: 20px;
    }
    
    .terrasy-services__name {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .terrasy-services__description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .terrasy-services__features li {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .terrasy-services__btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Мобильные устройства (до 767px) */
@media (max-width: 767px) {
    .terrasy-services {
        padding: 50px 0;
    }
    
    .terrasy-services__title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .terrasy-services__subtitle {
        font-size: 15px;
    }
    
    .terrasy-services__header {
        margin-bottom: 35px;
    }
    
    .terrasy-services__item {
        margin-bottom: 25px;
    }
    
    .terrasy-services__image {
        height: 160px;
    }
    
    .terrasy-services__content {
        padding: 18px;
    }
    
    .terrasy-services__name {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .terrasy-services__description {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .terrasy-services__features {
        margin-bottom: 15px;
    }
    
    .terrasy-services__features li {
        font-size: 11px;
        padding-left: 18px;
        margin-bottom: 4px;
    }
    
    .terrasy-services__features li::before {
        font-size: 12px;
    }
    
    .terrasy-services__badge {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .terrasy-services__btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Маленькие мобильные устройства (до 575px) */
@media (max-width: 575px) {
    .terrasy-services {
        padding: 40px 0;
    }
    
    .terrasy-services__title {
        font-size: 22px;
    }
    
    .terrasy-services__subtitle {
        font-size: 14px;
    }
    
    .terrasy-services__header {
        margin-bottom: 30px;
    }
    
    .terrasy-services__item {
        margin-bottom: 20px;
    }
    
    .terrasy-services__image {
        height: 140px;
    }
    
    .terrasy-services__content {
        padding: 15px;
    }
    
    .terrasy-services__name {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .terrasy-services__description {
        font-size: 11px;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .terrasy-services__features {
        margin-bottom: 12px;
    }
    
    .terrasy-services__features li {
        font-size: 10px;
        padding-left: 16px;
        margin-bottom: 3px;
    }
    
    .terrasy-services__badge {
        top: 8px;
        left: 8px;
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .terrasy-services__btn {
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .terrasy-services__title {
        font-size: 20px;
    }
    
    .terrasy-services__image {
        height: 120px;
    }
    
    .terrasy-services__content {
        padding: 12px;
    }
    
    .terrasy-services__name {
        font-size: 13px;
    }
    
    .terrasy-services__description {
        font-size: 10px;
    }
    
    .terrasy-services__features li {
        font-size: 9px;
        padding-left: 14px;
    }
}

/* Ландшафтная ориентация мобильных устройств */
@media (max-width: 767px) and (orientation: landscape) {
    .terrasy-services {
        padding: 40px 0;
    }
    
    .terrasy-services__image {
        height: 120px;
    }
    
    .terrasy-services__content {
        padding: 15px;
    }
}

/* Высокие DPI экраны */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .terrasy-services__badge {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .terrasy-services__btn {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Темная тема (если поддерживается) */
@media (prefers-color-scheme: dark) {
    .terrasy-services {
        background: #1a1a1a;
    }
    
    .terrasy-services__item {
        background: #2d2d2d;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .terrasy-services__item:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }
    
    .terrasy-services__title {
        color: #ffffff;
    }
    
    .terrasy-services__subtitle {
        color: #cccccc;
    }
    
    .terrasy-services__name {
        color: #ffffff;
    }
    
    .terrasy-services__description,
    .terrasy-services__features li {
        color: #cccccc;
    }
}

/* Анимации для улучшения UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terrasy-services__item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.terrasy-services__item:nth-child(1) { animation-delay: 0.1s; }
.terrasy-services__item:nth-child(2) { animation-delay: 0.2s; }
.terrasy-services__item:nth-child(3) { animation-delay: 0.3s; }
.terrasy-services__item:nth-child(4) { animation-delay: 0.4s; }
.terrasy-services__item:nth-child(5) { animation-delay: 0.5s; }
.terrasy-services__item:nth-child(6) { animation-delay: 0.6s; }

/* Отключение анимаций для пользователей с ограниченными возможностями */
@media (prefers-reduced-motion: reduce) {
    .terrasy-services__item {
        animation: none;
    }
    
    .terrasy-services__item:hover {
        transform: none;
    }
    
    .terrasy-services__image img {
        transition: none;
    }
    
    .terrasy-services__btn {
        transition: none;
    }
}

/* Печать */
@media print {
    .terrasy-services {
        padding: 20px 0;
        break-inside: avoid;
    }
    
    .terrasy-services__item {
        break-inside: avoid;
        margin-bottom: 15px;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .terrasy-services__image {
        height: 100px;
    }
    
    .terrasy-services__badge {
        background: #000 !important;
        color: #fff !important;
    }
    
    .terrasy-services__btn {
        background: #000 !important;
        color: #fff !important;
    }
}

/* ДПК Section */
.terrasy-dpk {
    padding: 80px 0;
    background: var(--white);
}

.terrasy-dpk__header {
    text-align: center;
    margin-bottom: 60px;
}

.terrasy-dpk__title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.terrasy-dpk__subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.terrasy-dpk__technologies {
    margin-bottom: 60px;
}

.terrasy-dpk__technologies h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.terrasy-dpk__tech {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    height: 100%;
}

.terrasy-dpk__tech h4 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.terrasy-dpk__tech ul {
    list-style: none;
    padding: 0;
}

.terrasy-dpk__tech li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.terrasy-dpk__tech li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.terrasy-dpk__comparison {
    margin-bottom: 60px;
}

.terrasy-dpk__comparison h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.terrasy-dpk__table {
    overflow-x: auto;
}

.terrasy-dpk__table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.terrasy-dpk__table th,
.terrasy-dpk__table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.terrasy-dpk__table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.terrasy-dpk__table td {
    color: var(--text-light);
}

.terrasy-dpk__brands h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.terrasy-dpk__brand {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    height: 100%;
    margin-bottom: 20px;
}

.terrasy-dpk__brand h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.terrasy-dpk__brand-count {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.terrasy-dpk__brand ul {
    list-style: none;
    padding: 0;
}

.terrasy-dpk__brand li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.terrasy-dpk__brand li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Showroom Section */
.terrasy-showroom {
    padding: 80px 0;
    background: var(--bg-light);
}

.terrasy-showroom__header {
    text-align: center;
    margin-bottom: 60px;
}

.terrasy-showroom__title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.terrasy-showroom__subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.terrasy-showroom__info h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.terrasy-showroom__exhibit {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.terrasy-showroom__exhibit-icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    flex-shrink: 0;
}

.terrasy-showroom__exhibit-icon svg {
    width: 100%;
    height: 100%;
}

.terrasy-showroom__exhibit-content h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.terrasy-showroom__exhibit-content p {
    color: var(--text-light);
    margin: 0;
}

.terrasy-showroom__visit-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.terrasy-showroom__visit-card h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.terrasy-showroom__advantage {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.terrasy-showroom__advantage-number {
    background: var(--primary-color);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.terrasy-showroom__contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.terrasy-showroom__contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.terrasy-showroom__contact-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.terrasy-showroom__contact-item span {
    color: var(--text-light);
}

.terrasy-showroom__actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.terrasy-showroom__btn {
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
}

.terrasy-showroom__btn--primary {
    background: var(--primary-color);
    color: var(--white);
}

.terrasy-showroom__btn--primary:hover {
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
}

.terrasy-showroom__btn--secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.terrasy-showroom__btn--secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

/* Основные стили секции */
.terrasy-process {
    padding: 80px 0;
    background: var(--white);
    overflow-x: hidden; /* Предотвращаем горизонтальную прокрутку */
}

.terrasy-process__header {
    text-align: center;
    margin-bottom: 60px;
}

.terrasy-process__title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.terrasy-process__subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.terrasy-process__timeline {
    position: relative;
    margin-bottom: 60px;
    padding: 0 15px; /* Добавляем отступы */
}

/* Вертикальная линия только для больших экранов */
.terrasy-process__timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    display: block;
}

.terrasy-process__step {
    position: relative;
    display: flex;
    margin-bottom: 50px;
    align-items: flex-start;
}

.terrasy-process__step-number {
    position: relative;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 40px;
    flex-shrink: 0;
    z-index: 2;
}

.terrasy-process__step-number span {
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
}

.terrasy-process__step-content {
    flex: 1;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    min-width: 0; /* Важно для предотвращения переполнения */
}

.terrasy-process__step-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.terrasy-process__step-icon svg {
    width: 100%;
    height: 100%;
}

.terrasy-process__step-info {
    flex: 1;
    min-width: 0; /* Важно для предотвращения переполнения */
}

.terrasy-process__step-info h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.terrasy-process__step-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.terrasy-process__step-details {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.terrasy-process__step-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0; /* Важно для предотвращения переполнения */
}

.terrasy-process__detail-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.terrasy-process__step-detail span {
    font-size: 14px;
    color: var(--text-light);
}

.terrasy-process__cta {
    background: var(--bg-light);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    margin: 0 15px; /* Добавляем боковые отступы */
}

.terrasy-process__cta-content h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.terrasy-process__cta-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.terrasy-process__cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.terrasy-process__btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.terrasy-process__btn--primary {
    background: var(--primary-color);
    color: var(--white);
}

.terrasy-process__btn--primary:hover {
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
}

.terrasy-process__btn--secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.terrasy-process__btn--secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}


/* Portfolio Section */
.terrasy-portfolio {
    padding: 80px 0;
    background: var(--bg-light);
}

.terrasy-portfolio__header {
    text-align: center;
    margin-bottom: 60px;
}

.terrasy-portfolio__title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.terrasy-portfolio__subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.terrasy-portfolio__item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.terrasy-portfolio__image {
    height: 250px;
    overflow: hidden;
}

.terrasy-portfolio__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.terrasy-portfolio__item:hover .terrasy-portfolio__image img {
    transform: scale(1.05);
}

.terrasy-portfolio__content {
    padding: 25px;
    flex: 1;
}

.terrasy-portfolio__content h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.terrasy-portfolio__details {
    margin-bottom: 15px;
}

.terrasy-portfolio__detail {
    display: flex;
    margin-bottom: 8px;
}

.terrasy-portfolio__detail-label {
    min-width: 80px;
    color: var(--text-light);
    font-size: 14px;
}

.terrasy-portfolio__detail span:last-child {
    color: var(--text-dark);
    font-size: 14px;
}

.terrasy-portfolio__description {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Advantages Section */
.terrasy-advantages {
    padding: 80px 0;
    background: var(--white);
}

.terrasy-advantages__header {
    text-align: center;
    margin-bottom: 60px;
}

.terrasy-advantages__title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.terrasy-advantages__subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.terrasy-advantages__item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    height: 100%;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.terrasy-advantages__item:hover {
    transform: translateY(-5px);
}

.terrasy-advantages__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.terrasy-advantages__icon svg {
    width: 100%;
    height: 100%;
}

.terrasy-advantages__content h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.terrasy-advantages__content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.terrasy-advantages__benefit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terrasy-advantages__benefit-label {
    color: var(--text-light);
    font-size: 14px;
}

.terrasy-advantages__benefit-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.terrasy-advantages__stats {
    margin-top: 60px;
}

.terrasy-advantages__stats-header {
    text-align: center;
    margin-bottom: 40px;
}

.terrasy-advantages__stats-header h3 {
    font-size: 28px;
    color: var(--text-dark);
}

.terrasy-advantages__stat {
    text-align: center;
    padding: 20px;
}

.terrasy-advantages__stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.terrasy-advantages__stat-label {
    color: var(--text-light);
    font-size: 16px;
}

/* FAQ Section */
.terrasy-faq {
    padding: 80px 0;
    background: var(--bg-light);
    Copy}

.terrasy-faq__header {
    text-align: center;
    margin-bottom: 60px;
}

.terrasy-faq__title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.terrasy-faq__subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.terrasy-faq__item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.terrasy-faq__item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.terrasy-faq__item.active .terrasy-faq__answer {
    max-height: 500px;
    padding: 0 30px 30px 30px;
}

.terrasy-faq__item.active .terrasy-faq__toggle svg {
    transform: rotate(45deg);
}

.terrasy-faq__question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.terrasy-faq__question:hover {
    background: var(--bg-light);
}

.terrasy-faq__question h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
    flex: 1;
    margin-right: 20px;
}

.terrasy-faq__toggle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.terrasy-faq__toggle svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.terrasy-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 30px;
}

.terrasy-faq__answer p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.terrasy-faq__answer ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.terrasy-faq__answer li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.terrasy-faq__answer li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.terrasy-faq__sidebar {
    position: sticky;
    top: 20px;
}

.terrasy-faq__help {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.terrasy-faq__help h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.terrasy-faq__help p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.terrasy-faq__contact-method {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.terrasy-faq__contact-method:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.terrasy-faq__contact-method:hover .terrasy-faq__contact-icon svg {
    stroke: var(--white);
    fill: var(--white);
}

.terrasy-faq__contact-method:hover strong,
.terrasy-faq__contact-method:hover span {
    color: var(--white);
}

.terrasy-faq__contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.terrasy-faq__contact-method div {
    flex: 1;
}

.terrasy-faq__contact-method strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 16px;
}

.terrasy-faq__contact-method span {
    color: var(--text-light);
    font-size: 14px;
}

.terrasy-faq__popular {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.terrasy-faq__popular h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.terrasy-faq__popular ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terrasy-faq__popular li {
    margin-bottom: 10px;
}

.terrasy-faq__popular a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terrasy-faq__popular a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Дополнительные утилиты */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.btn-primary-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Печать */
@media print {
    .hero-terrasy,
    .terrasy-faq__sidebar {
        display: none;
    }
    
    .terrasy-services,
    .terrasy-dpk,
    .terrasy-showroom,
    .terrasy-process,
    .terrasy-portfolio,
    .terrasy-advantages,
    .terrasy-faq {
        padding: 20px 0;
        break-inside: avoid;
    }
    
    .terrasy-services__item,
    .terrasy-portfolio__item,
    .terrasy-advantages__item {
        break-inside: avoid;
        margin-bottom: 15px;
    }
    
    .terrasy-faq__item {
        break-inside: avoid;
    }
    
    .terrasy-faq__answer {
        max-height: none !important;
        padding: 15px 20px !important;
    }
}
/* Стили для фотогалереи шоу-рума */
.terrasy-showroom__gallery h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.terrasy-showroom__photos {
    margin-bottom: 40px;
}

.terrasy-showroom__photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terrasy-showroom__photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.terrasy-showroom__photo--main {
    margin-bottom: 20px;
}

.terrasy-showroom__photo--main img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.terrasy-showroom__photo-grid .terrasy-showroom__photo img {
    height: 140px;
    width: 100%;
    object-fit: cover;
}

.terrasy-showroom__photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
}

.terrasy-showroom__photo-caption h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.terrasy-showroom__photo-caption h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    color: white;
}

.terrasy-showroom__photo-caption p {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    color: white;
}

/* Адаптив для фотогалереи */
@media (max-width: 991px) {
    .terrasy-showroom__photo--main img {
        height: 250px;
    }
    
    .terrasy-showroom__photo-grid .terrasy-showroom__photo img {
        height: 120px;
    }
}

@media (max-width: 767px) {
    .terrasy-showroom__gallery {
        margin-bottom: 40px;
    }
    
    .terrasy-showroom__photo--main img {
        height: 200px;
    }
    
    .terrasy-showroom__photo-grid .terrasy-showroom__photo img {
        height: 100px;
    }
    
    .terrasy-showroom__photo-caption {
        padding: 15px 10px 10px;
    }
    
    .terrasy-showroom__photo-caption h4 {
        font-size: 14px;
    }
    
    .terrasy-showroom__photo-caption h5 {
        font-size: 12px;
    }
    
    .terrasy-showroom__photo-caption p {
        font-size: 10px;
    }
}

@media (max-width: 991px) {
    .terrasy-process {
        padding: 60px 0;
    }
    
    .terrasy-process__title {
        font-size: 28px;
    }
    
    .terrasy-process__timeline {
        padding: 0 10px;
    }
    
    .terrasy-process__timeline::before {
        left: 30px;
    }
    
    .terrasy-process__step-number {
        width: 60px;
        height: 60px;
        margin-right: 25px;
    }
    
    .terrasy-process__step-number span {
        font-size: 18px;
    }
    
    .terrasy-process__step-content {
        padding: 20px;
        gap: 15px;
    }
    
    .terrasy-process__step-icon {
        width: 50px;
        height: 50px;
    }
    
    .terrasy-process__step-info h3 {
        font-size: 18px;
    }
    
    .terrasy-process__step-description {
        font-size: 14px;
    }
    
    .terrasy-process__cta {
        margin: 0 10px;
        padding: 40px 20px;
    }
}

/* Мобильные устройства (до 767px) */
@media (max-width: 767px) {
    .terrasy-process {
        padding: 50px 0;
    }
    
    .terrasy-process__title {
        font-size: 24px;
    }
    
    .terrasy-process__subtitle {
        font-size: 16px;
    }
    
    .terrasy-process__header {
        margin-bottom: 40px;
    }
    
    .terrasy-process__timeline {
        padding: 0;
    }
    
    /* Убираем вертикальную линию на мобильных */
    .terrasy-process__timeline::before {
        display: none;
    }
    
    .terrasy-process__step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .terrasy-process__step-number {
        margin-right: 0;
        margin-bottom: 20px;
        width: 80px;
        height: 80px;
    }
    
    .terrasy-process__step-number span {
        font-size: 20px;
    }
    
    .terrasy-process__step-content {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    .terrasy-process__step-icon {
        margin: 0 auto 15px;
        width: 40px;
        height: 40px;
    }
    
    .terrasy-process__step-info h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .terrasy-process__step-description {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .terrasy-process__step-details {
        justify-content: center;
        gap: 15px;
    }
    
    .terrasy-process__step-detail {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .terrasy-process__step-detail span {
        font-size: 12px;
    }
    
    .terrasy-process__cta {
        margin: 0;
        padding: 30px 15px;
    }
    
    .terrasy-process__cta-content h3 {
        font-size: 20px;
    }
    
    .terrasy-process__cta-content p {
        font-size: 14px;
    }
    
    .terrasy-process__cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .terrasy-process__btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 12px 20px;
    }
}

/* Маленькие мобильные (до 575px) */
@media (max-width: 575px) {
    .terrasy-process__title {
        font-size: 22px;
    }
    
    .terrasy-process__step-number {
        width: 60px;
        height: 60px;
    }
    
    .terrasy-process__step-number span {
        font-size: 16px;
    }
    
    .terrasy-process__step-content {
        padding: 15px 10px;
    }
    
    .terrasy-process__step-info h3 {
        font-size: 16px;
    }
    
    .terrasy-process__step-description {
        font-size: 12px;
    }
    
    .terrasy-process__step-detail span {
        font-size: 11px;
    }
    
    .terrasy-process__cta {
        padding: 25px 10px;
    }
    
    .terrasy-process__cta-content h3 {
        font-size: 18px;
    }
    
    .terrasy-process__cta-content p {
        font-size: 13px;
    }
}

/* Очень маленькие экраны (до 400px) */
@media (max-width: 400px) {
    .terrasy-process__step-content {
        padding: 12px 8px;
    }
    
    .terrasy-process__step-info h3 {
        font-size: 15px;
    }
    
    .terrasy-process__step-description {
        font-size: 11px;
    }
    
    .terrasy-process__btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Дополнительная защита от переполнения */
.terrasy-process * {
    box-sizing: border-box;
}

.terrasy-process__step-content,
.terrasy-process__step-info,
.terrasy-process__step-description {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Ландшафтная ориентация мобильных */
@media (max-width: 767px) and (orientation: landscape) {
    .terrasy-process {
        padding: 30px 0;
    }
    
    .terrasy-process__step {
        margin-bottom: 25px;
    }
    
    .terrasy-process__step-number {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .terrasy-process__step-content {
        padding: 15px;
    }
}