:root {
    --primary: #c62828;
    --primary-dark: #8e0000;
    --secondary: #ffb300;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --text: #212529;
    --muted: #6c757d;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    padding-top: 72px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--dark);
}

/* Navbar */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
}
.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary) !important;
}
.navbar .nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
}
.btn-call {
    background: var(--primary);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.5rem 1.25rem !important;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-call:hover {
    background: var(--primary-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1010 100%);
    color: #fff;
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    right: -150px;
    top: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(198,40,40,0.25) 0%, transparent 70%);
    border-radius: 50%;
}
.hero h1 {
    font-size: 2.75rem;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}
.hero .lead {
    font-size: 1.15rem;
    color: #d4d4d4;
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198,40,40,0.4);
}
.btn-outline-custom {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-outline-custom:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
}
.hero-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #d4d4d4;
    font-size: 0.95rem;
}
.hero-badges span i {
    color: var(--secondary);
    margin-right: 0.4rem;
}
.hero-icon {
    font-size: 12rem;
    color: var(--secondary);
    opacity: 0.85;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Sections */
.section {
    padding: 80px 0;
}
.section-alt {
    background: var(--light);
}
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
}
.section-header.text-start {
    margin-left: 0;
    text-align: left;
}
.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    position: relative;
}
.section-header.text-start h2::after { left: 0; transform: none; }
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.section-header p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-top: 1.5rem;
}

/* Service cards */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}
.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Benefits */
.benefit-item {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}
.benefit-item:hover {
    transform: translateY(-4px);
}
.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(198,40,40,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.benefit-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.benefit-item p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* About */
.about-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}
.about-list li {
    padding: 0.5rem 0;
    color: var(--text);
}
.about-list i {
    color: var(--primary);
    margin-right: 0.75rem;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.stat-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-top: 4px solid var(--primary);
}
.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--muted);
    font-weight: 500;
}

/* FAQ */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: 10px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
    color: var(--dark);
    background: #fff;
    padding: 1.15rem 1.25rem;
}
.accordion-button:not(.collapsed) {
    background: rgba(198,40,40,0.08);
    color: var(--primary);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}
.accordion-body {
    color: var(--text);
    padding: 1rem 1.25rem 1.25rem;
    background: #fff;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 60px 0;
}
.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}
.cta-section .btn-light {
    color: var(--primary);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 50px;
}

/* Footer */
.footer {
    background: #0f0f0f;
    color: #bdbdbd;
    padding: 60px 0 20px;
}
.footer-brand {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.footer h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li,
.footer-contact li {
    padding: 0.35rem 0;
    font-size: 0.95rem;
}
.footer-links a,
.footer-contact a {
    color: #bdbdbd;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover,
.footer-contact a:hover {
    color: var(--secondary);
}
.footer-contact i {
    color: var(--primary);
    width: 20px;
    margin-right: 0.5rem;
}
.footer-bottom {
    border-top: 1px solid #2a2a2a;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom p {
    margin: 0;
}

/* Floating buttons */
.float-btn {
    position: fixed;
    right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 999;
    transition: transform 0.2s;
}
.float-btn:hover {
    transform: scale(1.08);
    color: #fff;
}
.float-call {
    bottom: 90px;
    background: var(--primary);
    animation: pulse 2s infinite;
}
.float-wa {
    bottom: 25px;
    background: #25d366;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(198,40,40,0.5); }
    50% { box-shadow: 0 4px 25px rgba(198,40,40,0.9); }
}

/* Page header (sub-pages) */
.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1010 100%);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(198,40,40,0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}
.page-header p {
    color: #d4d4d4;
    font-size: 1.1rem;
    margin: 0;
    position: relative;
}

/* Service card large (xidmetler page) */
.service-card-lg {
    text-align: left;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}
.service-card-lg .service-icon {
    margin: 0 0 1.25rem 0;
}
.service-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.service-list li {
    padding: 0.35rem 0;
    color: var(--text);
    font-size: 0.95rem;
}
.service-list i {
    color: var(--primary);
    margin-right: 0.6rem;
}

/* Step items (how we work) */
.step-item {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
}
.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.step-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.step-item p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Check list (about page) */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.check-list li {
    padding: 0.7rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
}
.check-list li:last-child {
    border-bottom: none;
}
.check-list i {
    color: var(--primary);
    margin-right: 0.75rem;
    font-size: 1.15rem;
}

/* Blog cards */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.blog-img {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3.5rem;
}
.blog-thumb {
    height: 200px;
    overflow: hidden;
}
.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-thumb img {
    transform: scale(1.06);
}
.blog-body h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-body h3 a:hover {
    color: var(--primary);
}
.blog-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.blog-meta i {
    margin-right: 0.25rem;
    color: var(--primary);
}
.blog-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}
.blog-body p {
    color: var(--muted);
    font-size: 0.95rem;
    flex-grow: 1;
}
.blog-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.75rem;
}
.blog-link i {
    transition: transform 0.2s;
}
.blog-link:hover {
    color: var(--primary-dark);
}
.blog-link:hover i {
    transform: translateX(4px);
}

/* Article read page (open.php) */
.article-content {
    font-size: 1.075rem;
    line-height: 1.85;
    color: var(--text);
}
.article-content > *:first-child {
    margin-top: 0;
}
.article-content p {
    margin: 0 0 1.35rem;
}
.article-content h2 {
    font-size: 1.7rem;
    margin: 2rem 0 1rem;
}
.article-content h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.85rem;
    color: var(--primary-dark);
}
.article-content h4 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem;
}
.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content a:hover {
    color: var(--primary-dark);
}
.article-content ul,
.article-content ol {
    margin: 0 0 1.35rem;
    padding-left: 1.4rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}
.article-content blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary);
    background: var(--light);
    border-radius: 0 8px 8px 0;
    color: var(--muted);
    font-style: italic;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.article-content th,
.article-content td {
    border: 1px solid var(--border);
    padding: 0.65rem 0.85rem;
    text-align: left;
}
.article-content th {
    background: var(--light);
    font-weight: 600;
}

/* Article share buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.article-share-label {
    font-weight: 600;
    color: var(--dark);
    margin-right: 0.25rem;
}
.article-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}
.article-share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    color: #fff;
}
.article-share-btn.fb { background: #1877f2; }
.article-share-btn.wa { background: #25d366; }
.article-share-btn.tg { background: #0088cc; }

/* Contact page */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-child {
    border-bottom: none;
}
.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(198,40,40,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-item h3 {
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
}
.contact-item p {
    margin: 0 0 0.15rem;
    font-size: 1rem;
}
.contact-item a {
    color: var(--text);
    text-decoration: none;
}
.contact-item a:hover {
    color: var(--primary);
}
.contact-item small {
    color: var(--muted);
    font-size: 0.85rem;
}

.contact-form-box {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}
.contact-form-box h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.contact-form-box .form-label {
    font-weight: 500;
    margin-bottom: 0.35rem;
}
.contact-form-box .form-control,
.contact-form-box .form-select {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
}
.contact-form-box .form-control:focus,
.contact-form-box .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(198,40,40,0.15);
}

.region-tag {
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    font-weight: 500;
    transition: all 0.2s;
}
.region-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}
.region-tag i {
    color: var(--primary);
    margin-right: 0.35rem;
}
.region-tag:hover i {
    color: #fff;
}

/* Social */
.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
}
.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}
.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Error page */
.error-page {
    padding: 100px 0 80px;
    background: var(--light);
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.error-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.error-page h1 {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.error-page h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.error-page p {
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* Scroll-to-top */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 155px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--dark);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    cursor: pointer;
    transition: all 0.2s;
}
.scroll-top.show {
    display: flex;
}
.scroll-top:hover {
    background: var(--primary);
}

/* Language / RU link in nav */
.lang-link {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.35rem 0.7rem !important;
    font-weight: 600;
    font-size: 0.9rem;
}
.lang-link:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

/* Navbar phone button (telpop5 call button in nav) */
.btn-call.telpop5_call {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2.1rem; }
    .hero-icon { font-size: 7rem; }
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 1.85rem; }
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }
}
@media (max-width: 576px) {
    body { padding-top: 64px; }
    .hero h1 { font-size: 1.75rem; }
    .hero .lead { font-size: 1rem; }
    .hero-badges { gap: 1rem; font-size: 0.85rem; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .stat-num { font-size: 2rem; }
    .cta-section h2 { font-size: 1.5rem; }
    .btn-primary-custom, .btn-outline-custom { width: 100%; text-align: center; }
    .hero-buttons { flex-direction: column; }
}
