/* Gilroy Font Faces */
@font-face {
    font-family: 'Gilroy';
    src: url('./fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('./fonts/Gilroy-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('./fonts/Gilroy-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('./fonts/Gilroy-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Bar */
.t-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #000000;
    z-index: 1000;
    height: 80px;
}

.t-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.t-navbar-logo {
    display: flex;
    align-items: center;
}

.t-logo-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    transition: opacity 0.3s ease;
}

.t-logo-link:hover {
    opacity: 0.8;
}

/* Burger Menu */
.t-burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.t-burger-menu span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.t-burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.t-burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.t-burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.t-navbar-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.t-navbar-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 15px;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.t-navbar-link:hover {
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Cover Section */
.t-cover {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('./hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 80px;
}

.t-hero-title {
    position: absolute;
    left: 5%;
    top: 6vh;
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.1;
    color: #FFFFFF;
    margin: 0;
    text-align: left;
    max-width: 90%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.t-hero-title-line {
    display: block;
    line-height: 1.1;
}

.t-hero-description {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

/* Before/After Section */
.t-hero-before-after {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.t-before-after-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.t-ba-label {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    color: #000000;
    text-align: center;
    margin-top: 10px;
}

.t-ba-image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.t-ba-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.t-ba-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.t-ba-before {
    background: #f5f5f5;
}

.t-ba-after {
    background: #f5f5f5;
}

.t-ba-placeholder {
    color: rgba(0, 0, 0, 0.6);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge для индикации качества */
.t-ba-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.t-ba-badge-bad {
    background-color: rgba(255, 68, 68, 0.95);
    color: #ffffff;
}

.t-ba-badge-good {
    background-color: rgba(76, 175, 80, 0.95);
    color: #ffffff;
}

.t-ba-badge svg {
    width: 24px;
    height: 24px;
}

/* Divider между фото */
.t-before-after-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-top: 60px;
}

.t-divider-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, transparent, #f78c47, transparent);
    min-height: 40px;
}

.t-divider-arrow {
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 700;
    color: #f78c47;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.t-before-after-arrow {
    font-size: 48px;
    font-weight: 700;
    color: #f78c47;
}

/* Container */
.t-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section */
.t-section {
    padding: clamp(60px, 8vw, 135px) 0;
}

.t-section-dark {
    background-color: #292929;
}

.t-section-white {
    background-color: #ffffff;
}

.t-section-beige {
    background-color: #eaddc6;
}

/* Section Header */
.t-section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto clamp(40px, 6vw, 90px);
}

.t-section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #000000;
}

.t-section-title-white {
    color: #ffffff;
}

.t-section-description {
    font-size: 18px;
    line-height: 1.8;
    color: #000000;
}

.t-section-description-white {
    color: #ffffff;
}

.t-section-description p {
    margin-bottom: 20px;
}

.t-section-description p:last-child {
    margin-bottom: 0;
}

.t-section-description strong {
    font-weight: 700;
}

/* What We Do Section */
.t-what-we-do {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.t-what-we-do-text {
    background-color: #ffffff;
    padding: clamp(30px, 5vw, 60px);
    border-radius: 15px;
}

.t-what-we-do-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.t-what-we-do-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.t-section-title-small {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #000000;
}

.t-divider {
    width: 60px;
    height: 4px;
    background-color: #f78c47;
    opacity: 0.6;
    margin-bottom: 30px;
}

.t-text-content {
    font-size: 18px;
    line-height: 1.8;
    color: #000000;
}

.t-text-content strong {
    font-weight: 700;
}

/* Services List */
.t-services-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.t-service-item {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #e5e5e5;
    transition: padding-left 0.3s ease;
}

.t-service-item:hover {
    padding-left: 10px;
}

.t-service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.t-service-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #000000;
}

.t-service-text {
    font-size: 18px;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 15px;
}

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

/* Portfolio Slider */
.t-portfolio-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 10px;
}

.t-portfolio-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.t-portfolio-card {
    min-width: 100%;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.t-portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.t-portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: transform 0.5s ease;
}

.t-portfolio-card:hover .t-portfolio-image {
    transform: scale(1.05);
}

.t-portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    transition: background 0.3s ease;
}

.t-portfolio-card:hover .t-portfolio-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.6));
}

.t-portfolio-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.t-portfolio-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: left;
}

.t-portfolio-text {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    text-align: left;
    margin-bottom: 20px;
}

.t-portfolio-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
}

/* Slider Controls */
.t-portfolio-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .t-portfolio-slider-controls {
        display: none;
    }
}

.t-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.t-slider-btn:hover {
    background: #ffffff;
    color: #292929;
}

.t-slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.t-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.t-slider-dot.active {
    background: #ffffff;
    width: 14px;
    height: 14px;
}

/* Benefits List */
.t-benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.t-benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.t-benefit-item:hover {
    transform: translateX(5px);
}

.t-benefit-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-benefit-content {
    flex: 1;
}

.t-benefit-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #000000;
}

.t-benefit-text {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
}

/* Calculator Section */
.t-calculator {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
}

.t-calculator-input {
    margin-bottom: 40px;
}

.t-calculator-label {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
}

.t-calculator-label span {
    color: #f78c47;
    font-weight: 700;
}

.t-calculator-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 10px;
}

.t-calculator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f78c47;
    cursor: pointer;
    transition: all 0.3s ease;
}

.t-calculator-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(247, 140, 71, 0.5);
}

.t-calculator-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f78c47;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.t-calculator-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(247, 140, 71, 0.5);
}

.t-calculator-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666666;
}

.t-calculator-results {
    display: grid;
    gap: 20px;
}

.t-calc-result-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.t-calc-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.t-calc-result-highlight {
    background: linear-gradient(135deg, #f78c47 0%, #ff9f5f 100%);
    color: #ffffff;
}

.t-calc-result-highlight .t-calc-result-label,
.t-calc-result-highlight .t-calc-result-value {
    color: #ffffff;
}

.t-calc-result-label {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.t-calc-result-value {
    font-size: 28px;
    font-weight: 700;
    color: #f78c47;
}

.t-calc-result-highlight .t-calc-result-value {
    color: #ffffff;
}

/* Contact Section */
.t-contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.t-contact-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    color: #000000;
}

.t-contact-text {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 40px;
}

.t-telegram-link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.t-telegram-btn {
    display: inline-block;
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.t-telegram-btn:hover {
    transform: scale(1.1);
}

/* Responsive Design - Mobile First */
@media (min-width: 768px) {
    .t-hero-before-after {
        grid-template-columns: 1fr auto 1fr;
    }
    
    .t-before-after-arrow {
        font-size: 64px;
    }
    
    .t-what-we-do {
        grid-template-columns: 1fr 1fr;
    }
    
    .t-benefits-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* На планшетах и десктопах - сетка вместо слайдера */
    .t-portfolio-slider-wrapper {
        overflow: visible;
    }
    
    .t-portfolio-slider {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        transform: none !important;
    }
    
    .t-portfolio-card {
        min-width: auto;
    }
    
    .t-portfolio-slider-controls {
        display: none;
    }
}

@media (min-width: 1024px) {
    .t-portfolio-slider {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .t-navbar-menu {
        gap: 0;
    }
}

@media (max-width: 767px) {
    .t-burger-menu {
        display: flex;
    }
    
    .t-navbar-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #000000;
        flex-direction: column;
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        gap: 0;
    }
    
    .t-navbar-menu.active {
        transform: translateX(0);
    }
    
    .t-navbar-link {
        display: block;
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .t-navbar-link:last-child {
        border-bottom: none;
    }
    
    .t-hero-before-after {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .t-before-after-divider {
        flex-direction: row;
        padding-top: 0;
        padding: 20px 0;
    }
    
    .t-divider-line {
        width: 100%;
        height: 2px;
        min-height: 2px;
        background: linear-gradient(to right, transparent, #f78c47, transparent);
    }
    
    .t-divider-arrow {
        transform: rotate(90deg);
        font-size: 36px;
        padding: 0 20px;
    }
    
    .t-calculator {
        padding: 30px 20px;
    }
    
    .t-calc-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .t-calc-result-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .t-navbar {
        height: 60px;
    }
    
    .t-navbar-container {
        padding: 0 20px;
    }
    
    .t-cover {
        padding-top: 60px;
    }
    
    .t-hero-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .t-ba-label {
        font-size: 20px;
    }
    
    .t-container {
        padding: 0 20px;
    }
    
    
    .t-what-we-do-text {
        padding: 30px 20px;
    }
    
    .t-calculator {
        padding: 25px 15px;
    }
    
    .t-calc-result-label {
        font-size: 16px;
    }
    
    .t-calc-result-value {
        font-size: 22px;
    }
}
