/* ================================
   Базовые стили
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #333;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section:last-child {
    margin-bottom: 0 !important;
}

/* ================================
   Шапка сайта
   ================================ */

.site-header {
    background: #1a1a2e;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden; 
}

.logo-icon img {
    width: 24px; 
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1); 
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-sans);
}

.logo-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    width: 100%;
}

/* ================================
   Футер сайта
   ================================ */

.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 80px 0 0 0; /* ← Увеличили верхний отступ (было 60px) */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* ← Добавили черту сверху */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden; 
}

.footer-logo-icon img {
    width: 24px; 
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1); 
}

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

.footer-logo-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-sans);
}

.footer-logo-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-top: 16px; /* ← Отступ сверху у описания */
}

.footer-column-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
    font-family: var(--font-sans);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.footer-contact-link,
.footer-contact-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: #fff;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav-link:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* ← Черта над копирайтом */
    padding: 24px 0;
    margin-top: 40px; /* ← Отступ сверху */
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* ================================
   Главная страница - Hero
   ================================ */

.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f6f8 0%, #e8eaf0 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 50px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: var(--font-sans);
}

.hero-description {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 32px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: #1a1a2e;
    color: #fff;
}

.btn-primary:hover {
    background: #2a2a3e;
    transform: translateY(-2px);
}

.btn-outline {
    background: #fff;
    color: #1a1a2e;
    border: 1px solid #1a1a2e;
}

.btn-outline:hover {
    background: #f5f6f8;
}

.hero-phone {
    font-size: 14px;
    color: #666;
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================
   Главная страница - Trust
   ================================ */

.trust-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-family: var(--font-sans);
}

.section-subtitle {
    font-size: 16px;
    color: #666;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.trust-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px 28px;
    transition: all 0.2s ease;
}

.trust-card:hover {
    background: #f0f1f3;
    transform: translateY(-4px);
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: #1a1a2e;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 20px;
}

.trust-icon svg {
    width: 24px;
    height: 24px;
}

.trust-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-family: var(--font-sans);
}

.trust-card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}
/* ================================
   Главная страница - Services
   ================================ */

#services.services-section .services-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 120px;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* ← Сильное смещение вправо (было 1fr 1.2fr) */
    gap: 120px; /* ← Большой отступ между текстом и картинкой (было 80px) */
    align-items: center;
}

.services-content {
    max-width: 500px;
    justify-self: start; /* ← Текст слева */
}

.section-description {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 32px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #333;
}

#services.services-section {
    background: #f8f9fa;
    padding: 100px 0 !important;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: #1a1a2e;
    flex-shrink: 0;
}

.services-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    justify-self: end; 
    width: 100%;
    max-width: 500px; 
}

.services-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================
   Главная страница - How
   ================================ */

.how-section {
    padding: 80px 0;
    background: #fff;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.how-step {
    text-align: center;
    padding: 0 20px;
}

.step-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    font-family: var(--font-sans);
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-family: var(--font-sans);
}

.step-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ================================
   Страница контактов
   ================================ */

.contacts-page {
    padding: 60px 0;
    background: #fff;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacts-form-section {
    max-width: 500px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: var(--font-sans);
}

.page-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-input {
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

.form-input.input-error {
    border-color: #dc3545;
}

.form-input::placeholder {
    color: #999;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    font-size: 13px;
    color: #dc3545;
    margin-top: 4px;
}

.submit-btn {
    padding: 16px 32px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #2a2a3e;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.contacts-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-family: var(--font-sans);
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.contact-card:hover {
    background: #f0f1f3;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    border-radius: 10px;
    color: #fff;
}

.icon-placeholder {
    width: 24px;
    height: 24px;
}

.contact-content {
    flex: 1;
}

.contact-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.contact-text {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.contact-values {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-link {
    font-size: 16px;
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #3a3a5e;
}

.service-247-card {
    padding: 30px;
    background: #1a1a2e;
    border-radius: 12px;
    color: #fff;
}

.service-247-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-sans);
}

.service-247-text {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.faq-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-question {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.5;
    margin: 0;
    font-family: var(--font-sans);
}

.faq-answer {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ================================
   Страница услуг
   ================================ */

.services-header {
    padding: 60px 0 40px 0;
    background: linear-gradient(135deg, #f5f6f8 0%, #e8eaf0 100%);
    text-align: center;
}

.services-catalog {
    padding: 60px 0;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    border-color: #1a1a2e;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: #f0f1f3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-family: var(--font-sans);
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.service-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.service-list li {
    font-size: 14px;
    color: #333;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.service-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1a1a2e;
    font-weight: bold;
}

.pricing-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.pricing-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #e0e0e0;
}

.pricing-description {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 32px;
}

.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.pricing-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.pricing-note {
    font-size: 13px;
    color: #999;
    margin-top: 24px;
    font-style: italic;
}

/* ================================
   Страница калькулятора
   ================================ */

.calculator-page {
    padding: 60px 0;
    background: #f8f9fa;
}

.calculator-header {
    max-width: 600px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.calculator-header .page-title {
    font-family: var(--font-sans);
}

.calculator-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #e0e0e0;
    border-top-color: #1a1a2e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.calculator-loading p {
    color: #666;
    font-size: 14px;
}

.success-message {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px auto;
}

.success-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-family: var(--font-sans);
}

.success-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}


.cta-section {
    position: relative;
    z-index: 1;
    overflow: hidden; 
}

.site-footer {
    position: relative;
    z-index: 2;
}


.cta-content {
    transform: translateZ(0);
}


.cta-section::before,
.cta-section::after {
    content: none !important;
    display: none !important;
}
