/* Дополнительные стили для улучшения внешнего вида */

/* Стили для логотипа */
header .top-nav a.logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    gap: 12px !important;
}

header .top-nav a.logo .logo-image {
    height: 50px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    display: block !important;
}

header .top-nav a.logo .logo-text {
    display: block !important;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Улучшенные стили для кнопок */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Улучшенные карточки */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Секции с градиентами */
.gradient-section {
    background: linear-gradient(135deg, #FF6B35 0%, #ea580c 100%);
    color: white;
    padding: 80px 0;
    position: relative;
}

.gradient-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Улучшенная типографика */
.text-gradient {
    background: linear-gradient(135deg, #FF6B35 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Списки */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    position: relative;
    padding-left: 30px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2em;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Адаптивные улучшения */
@media (max-width: 768px) {
    .card {
        padding: 20px;
        margin: 15px 0;
    }
    
    .gradient-section {
        padding: 60px 0;
    }
}

/* Улучшения для мобильных устройств */
@media (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 15px;
    }
}

/* Секция процесса - увеличенный блок */
.process-section {
    padding: 80px 60px !important;
    margin: 50px 20px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%) !important;
    border: 2px solid rgba(255, 107, 53, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}

.process-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 8px !important;
    height: 100% !important;
    background: linear-gradient(180deg, #FF6B35 0%, #FF8C00 100%) !important;
}

.process-section h2 {
    font-size: 2.8rem !important;
    margin-bottom: 25px !important;
    color: #1a1a2e !important;
    font-weight: 800 !important;
}

.process-section > p {
    font-size: 1.35rem !important;
    line-height: 1.9 !important;
    color: #444 !important;
    max-width: 900px !important;
    margin-bottom: 50px !important;
}

.process-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    margin-top: 30px !important;
    padding: 20px !important;
}

.process-step {
    background: white !important;
    padding: 35px !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    border-left: 4px solid #FF6B35 !important;
    min-height: 180px !important;
}

.process-step:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.2) !important;
}

.step-number {
    font-size: 3rem !important;
    font-weight: 900 !important;
    color: #FF6B35 !important;
    margin-bottom: 15px !important;
    line-height: 1 !important;
}

.process-step h3 {
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
}

.process-step p {
    color: #555 !important;
    line-height: 1.8 !important;
    font-size: 1.1rem !important;
}

/* Изображение в секции процесса */
.process-image-container {
    margin-top: 50px;
    text-align: center;
}

.process-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Оранжевый фильтр для изображений */
.orange-image {
    /* filter: sepia(1) saturate(10) hue-rotate(335deg) brightness(0.9) !important; */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Растягивание изображения на весь блок article.image */
section.hero article.image,
section.hero .image {
    display: flex !important;
    align-items: stretch !important;
}

section.hero article.image img,
section.hero .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

section.hero article.image .orange-image,
section.hero .image .orange-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

header .top-nav {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}
header .top-nav a.logo {
    flex-shrink: 0 !important;
}
header .top-nav a.logo .logo-text,
header .top-nav > div:last-child > a {
    white-space: nowrap !important;
}
header .top-nav > div:last-child {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 20px !important;
    align-items: center !important;
}
@media (max-width: 1450px) {
    header .top-nav {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }
    header .top-nav > div:last-child {
        gap: 14px !important;
    }
    header .top-nav a.logo .logo-image {
        height: 40px !important;
        max-width: 132px !important;
    }
    header .top-nav a.logo .logo-text {
        font-size: 18px !important;
    }
    header .top-nav > div > a:not(.secondary-button) {
        font-size: 14px !important;
    }
    header .secondary-button {
        font-size: 13px !important;
        padding: 10px 16px !important;
    }
}
@media (max-width: 1100px) {
    header .top-nav {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    header .top-nav a.logo .logo-text {
        font-size: 18px !important;
    }
    header .top-nav > div > a:not(.secondary-button) {
        font-size: 14px !important;
    }
    header .secondary-button {
        font-size: 13px !important;
        padding: 10px 18px !important;
    }
}
@media (max-width: 915px) {
    header {
        min-height: 80px;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }
    header .top-nav a.logo .logo-text {
        font-size: 26px !important;
    }
    header .top-nav .nav-items .item {
        font-size: 17px !important;
    }
    header .top-nav > div > a:not(.secondary-button) {
        font-size: 17px !important;
    }
    header .secondary-button {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    header .top-nav a.logo .logo-image {
        height: 40px !important;
        max-width: 150px !important;
    }
}

@media (max-width: 480px) {
    header .top-nav a.logo .logo-image {
        height: 35px !important;
        max-width: 120px !important;
    }
}

/* Адаптивность для секции процесса */
@media (max-width: 768px) {
    .process-section {
        padding: 50px 25px !important;
        margin: 30px 10px !important;
    }
    
    .process-section h2 {
        font-size: 2rem !important;
    }
    
    .process-section > p {
        font-size: 1.15rem !important;
    }
    
    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .step-number {
        font-size: 2.5rem !important;
    }
    
    .process-step {
        min-height: auto !important;
    }
}

.site-footer {
    position: relative;
    z-index: 5;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 140, 0, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 107, 53, 0.10), transparent 24%),
        #0f0f0f !important;
    color: #fff !important;
    padding: 0 !important;
    margin-top: 0;
}
.site-footer .site-footer__inner {
    position: relative;
    z-index: 1;
}
.site-footer .site-footer__logo,
.site-footer .site-footer__tagline,
.site-footer .site-footer__col a,
.site-footer .site-footer__col-title,
.site-footer .site-footer__copyright {
    color: inherit;
}
.site-footer .site-footer__tagline {
    color: rgba(255, 255, 255, 0.85) !important;
}
.site-footer .site-footer__col a {
    color: rgba(255, 255, 255, 0.9) !important;
}
.site-footer .site-footer__col-title {
    color: rgba(255, 255, 255, 0.55) !important;
}
.site-footer .site-footer__copyright {
    color: rgba(255, 255, 255, 0.5) !important;
}
.site-footer .site-footer__col--contacts a {
    color: #fff !important;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1rem;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.85), rgba(255, 140, 0, 0.55), rgba(255, 107, 53, 0.85));
}

.site-footer__inner {
    max-width: 1280rem;
    margin: 0 auto;
    padding: 64rem 24rem 28rem;
    position: relative;
    z-index: 1;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 320rem 1fr;
    gap: 48rem 72rem;
    align-items: start;
    padding-bottom: 36rem;
    border-bottom: 1rem solid rgba(255, 255, 255, 0.10);
}

.site-footer__brand {
    max-width: 280rem;
}

.site-footer__logo {
    display: block;
    font-size: 26rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 14rem;
}

.site-footer__tagline {
    font-size: 16rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.66);
    margin: 0;
}

.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28rem 36rem;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 12rem;
}

.site-footer__col-title {
    font-size: 11rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 8rem;
}

.site-footer__col a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    font-size: 16rem;
    line-height: 1.45;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__col a:hover {
    color: #FF8C00;
    transform: translateX(2rem);
}

.site-footer__col--contacts a {
    color: #fff;
}

.site-footer__bottom {
    padding-top: 22rem;
}

.site-footer__copyright {
    margin: 0;
    font-size: 14rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.44);
}

@media (max-width: 900px) {
    .site-footer {
        margin-top: 0;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 36rem;
    }

    .site-footer__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .site-footer__inner {
        padding: 40px 16px 24px !important;
    }
    .site-footer__nav {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .site-footer__logo {
        font-size: 20px !important;
    }
    .site-footer__tagline,
    .site-footer__col a {
        font-size: 15px !important;
    }
}

@media (max-width: 768px) {
    .site-footer__inner {
        padding: 48px 20px 28px !important;
    }
    .site-footer__logo {
        font-size: 22px !important;
    }
    .site-footer__tagline,
    .site-footer__col a,
    .site-footer__copyright {
        font-size: 16px !important;
        line-height: 1.6;
    }
    .site-footer__col-title {
        font-size: 12px !important;
    }
}

/* Hero trust badges */
.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  align-items: center;
}
.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #52525b;
  background: rgba(0,0,0,0.04);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
  line-height: 1.3;
}
.hero-trust-badge::before {
  content: '✓';
  color: #ea580c;
  font-weight: 700;
  font-size: 11px;
}
.hero-calc-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #ea580c;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.hero-calc-link:hover { text-decoration: underline; }

/* Mobile touch-area and layout fixes for landing pages */
@media (max-width: 768px) {
    /* Ensure hero TG and CTA buttons meet 48px touch target */
    .offer-main-cta,
    .offer-secondary-cta,
    .tg-bot-link {
        min-height: 48px !important;
    }

    /* Pricing grid 1 column on narrow screens */
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    /* Package comparison table — prevent overflow */
    .package-comparison {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Mid-form (short duplicate form) sizing */
    .lead-form-mid .submit-btn {
        min-height: 48px !important;
    }

    /* Trust badges row wraps gracefully */
    .hero-trust-badges {
        flex-wrap: wrap;
        gap: 8px !important;
    }
}

@media (max-width: 390px) {
    /* iPhone 14 / SE edge cases */
    .pricing-card__price {
        font-size: 32px !important;
    }
    .hexbit-sticky-cta__row {
        gap: 6px !important;
    }
}

/* #results — заменяем бесконечный marquee на свайпабельный scroll-snap */
#results .ribbon {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    cursor: grab;
}
#results .ribbon:active {
    cursor: grabbing;
}
#results .ribbon::-webkit-scrollbar {
    display: none;
}
#results .ribbon .scroller {
    overflow: visible !important;
    width: max-content !important;
    margin-left: 0 !important;
    padding: 0 24px;
}
#results .ribbon .scroller .line {
    animation: none !important;
    transform: none !important;
}
#results .ribbon .scroller .line[aria-hidden="true"] {
    display: none !important;
}
#results .ribbon .scroller .line .grid > div {
    scroll-snap-align: start;
}

