:root {
    --primary-color: #007BFF;
    --secondary-color: #4CAF50;
    --dark-color: #333333;
    --light-color: #f4f4f4;
    --white-color: #ffffff;
    --font-family: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.main-header {
    background: var(--white-color);
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    height: 50px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: bold;
    padding: 5px;
    transition: color 0.3s ease;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.header-phone-number {
    display: none;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.hero {
    background: var(--light-color);
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    color: var(--dark-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .cta-buttons a {
    margin: 0.5rem;
}

.features, .services-overview, .testimonials, .final-cta {
    padding: 4rem 0;
}

.features h2, .services-overview h2, .testimonials h2, .final-cta h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    height: 60px;
    margin: 0 auto 1rem;
}

.services-overview {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background: var(--white-color);
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-card a {
    font-weight: bold;
    margin-top: 1rem;
    display: inline-block;
}

.testimonial {
    background: var(--white-color);
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial cite {
    font-weight: bold;
    margin-top: 1rem;
    display: block;
}

.final-cta {
    background: var(--dark-color);
    color: var(--white-color);
    text-align: center;
}

.final-cta h2 {
    color: var(--white-color);
}

.final-cta .btn {
    margin-top: 1.5rem;
}

.main-footer {
    background: var(--dark-color);
    color: #ccc;
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--white-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #444;
}

@media(min-width: 768px) {
    h1 { font-size: 3rem; }

    .header-phone-number {
        display: block;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- СТИЛИ ДЛЯ СТРАНИЦЫ "О НАС" (hakkimizda.html) --- */

.page-header {
    background: var(--light-color);
    padding: 2rem 0;
    text-align: center;
}

.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.about-text ul li {
    margin-bottom: 0.5rem;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.team {
    padding: 4rem 0;
    background: var(--light-color);
}

.team h2, .team-intro {
    text-align: center;
}

.team-intro {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Адаптивность для страницы "О нас" */
@media(min-width: 768px) {
    .about-grid {
        grid-template-columns: 2fr 1fr; /* Текст занимает 2/3, картинка 1/3 */
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- СТИЛИ ДЛЯ СТРАНИЦЫ УСЛУГ (hizmetlerimiz.html) --- */

.service-section {
    padding: 4rem 0;
    border-bottom: 1px solid #e0e0e0;
}
.service-section:last-child {
    border-bottom: none;
}
.service-section.alt-layout {
    background: var(--light-color);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.service-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-details h2 {
    color: var(--primary-color);
}

.service-details h3 {
    margin-top: 1.5rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
}

.service-checklist {
    list-style: none; /* Убираем стандартные маркеры */
    margin-top: 1rem;
    padding-left: 0;
}

.service-checklist li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.75rem;
}

/* Рисуем "галочку" с помощью псевдоэлемента */
.service-checklist li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.service-details .btn {
    margin-top: 1.5rem;
}

/* Адаптивность для страницы услуг */
@media(min-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Меняем порядок колонок для секции с классом alt-layout */
    .service-section.alt-layout .service-image {
        order: 2;
    }
    .service-section.alt-layout .service-details {
        order: 1;
    }
}

/* --- СТИЛИ ДЛЯ СТРАНИЦЫ ЦЕН (fiyatlarimiz.html) --- */
.pricing-section {
    padding: 4rem 0;
}

.pricing-intro, .pricing-factors {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #555;
}
.pricing-factors {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 8px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.pricing-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Стиль для "популярного" тарифа */
.pricing-card.popular {
    border-color: var(--primary-color);
    border-width: 2px;
    position: relative;
    overflow: hidden;
}

.pricing-card.popular::before {
    content: 'POPÜLER';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 1.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.pricing-card .price span {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    color: #777;
}

.pricing-card .pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    min-height: 120px; /* Выравниваем высоту блоков */
}

.pricing-card .pricing-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}
.pricing-card .pricing-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.custom-quote-section {
    padding: 4rem 0;
    background: var(--light-color);
}
.custom-quote-section h2 {
    text-align: center;
}
.custom-quote-section ul {
    margin: 2rem 0;
    padding-left: 20px;
}
.custom-quote-section .text-center {
    text-align: center;
}


/* Адаптивность для цен */
@media(min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* --- СТИЛИ ДЛЯ КОНТАКТНОЙ СТРАНИЦЫ (iletisim.html) --- */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 20px;
}

.contact-icon {
    height: 24px;
    margin-right: 1rem;
}

.info-item h4 {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item address, .info-item p {
    margin: 0;
}

/* Стили для формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.map-section iframe {
    display: block; /* Убирает лишний отступ под картой */
}


/* Адаптивность для контактов */
@media(min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- СТИЛИ ДЛЯ ЮРИДИЧЕСКИХ СТРАНИЦ --- */
.legal-content {
    padding: 4rem 0;
}

.legal-content .container {
    max-width: 800px; /* Делаем текстовый блок уже для лучшей читаемости */
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}