/* CSS Variables */
:root {
    --primary-color: #4A90A4;
    --primary-dark: #3a7a8f;
    --accent-color: #F5A623;
    --accent-dark: #e09000;
    --bg-color: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --max-width: 1200px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul,
ol {
    list-style-position: inside;
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.375rem;
}

h4 {
    font-size: 1.125rem;
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.logo span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
}

.header-contact {
    text-align: right;
}

.header-phone {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    display: block;
}

.header-phone:hover {
    color: var(--primary-color);
}

.header-note {
    font-size: 0.75rem;
    color: var(--text-light);
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0088cc;
    font-size: 0.875rem;
}

.telegram-link:hover {
    color: #006699;
}

.telegram-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Navigation */
.nav {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.nav-close {
    display: none;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li a {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--text-color);
    font-size: 0.9375rem;
    transition: background-color 0.3s, color 0.3s;
}

.nav-list li a:hover,
.nav-list li a.active {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 100%);
    padding: 3rem 1rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.hero-features li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.hero-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
}

.hero-features li::after {
    content: "\2713";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
    min-width: 200px;
}

.cta-button:hover {
    background: var(--accent-dark);
    color: white;
    transform: translateY(-2px);
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Sections */
.section {
    padding: 3rem 1rem;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.advantage-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.advantage-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.advantage-content h4 {
    margin-bottom: 0.25rem;
}

.advantage-content p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

/* Photos Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.gallery a {
    display: block;
}

.gallery img:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.content a>img,
.location-image a>img {
    cursor: pointer;
    transition: opacity 0.3s;
}

.content a>img:hover,
.location-image a>img:hover {
    opacity: 0.9;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 600;
}

.review-service {
    font-size: 0.875rem;
    color: var(--text-light);
}

.review-rating {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.review-text {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.review-date {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.reviews-more {
    text-align: center;
    margin-top: 2rem;
}

/* Rating Badge */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.rating-badge .stars {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.rating-badge .score {
    font-weight: 700;
    font-size: 1.25rem;
}

.rating-badge .count {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Location Section */
.location {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.location-info h3 {
    margin-bottom: 1rem;
}

.location-address {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.location-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.map-container {
    margin-top: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

/* Page Header */
.page-header {
    background: var(--bg-light);
    padding: 2rem 1rem;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Content */
.content {
    padding: 2rem 1rem;
}

.content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content ul,
.content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

/* Price Box */
.price-box {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.price-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-note {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* CTA Box */
.cta-box {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin: 2rem 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box .cta-button {
    background: var(--accent-color);
}

.cta-box .cta-note {
    color: rgba(255, 255, 255, 0.8);
}

.cta-box .telegram-link {
    color: white;
    font-size: 1rem;
}

.cta-box .telegram-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.cta-box .telegram-link svg {
    width: 20px;
    height: 20px;
}

/* About Page */
.about-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-photo img {
    width: 100%;
    max-width: 350px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.education-list,
.experience-list {
    list-style: none;
    padding: 0;
}

.education-list li,
.experience-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.education-list li::before,
.experience-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 1rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: white;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-phone {
    font-size: 1.25rem;
    font-weight: 600;
    color: white !important;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-inner {
        grid-template-columns: 300px 1fr;
    }

    .hero-image img {
        width: 300px;
        height: 300px;
    }

    .location {
        grid-template-columns: 1fr 1fr;
    }

    .about-intro {
        grid-template-columns: 350px 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .header-inner {
        padding: 1rem 2rem;
    }

    .nav-list li a {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 4rem 2rem;
    }

    .section {
        padding: 4rem 2rem;
    }

    .map-container iframe {
        height: 400px;
    }
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
        order: -1;
    }

    .header-inner {
        flex-wrap: nowrap;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-color);
        z-index: 999;
        overflow-y: auto;
        padding-top: 87px;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list li a {
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
    }

    .nav .container {
        padding: 0;
    }

    .header-phone {
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .header-contact .telegram-link {
        font-size: 0.75rem;
    }

    .header-contact .telegram-link svg {
        width: 14px;
        height: 14px;
    }

    .logo {
        font-size: 0.9rem;
    }

    .logo span {
        font-size: 0.625rem;
    }

    /* Close button for mobile nav */
    .nav-close {
        display: block;
        position: fixed;
        top: 10px;
        right: 12px;
        font-size: 2.5rem;
        color: var(--text-color);
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        line-height: 1;
        padding: 0.5rem;
    }

    .nav-close:hover {
        color: var(--primary-color);
    }
}

/* Print Styles */
@media print {

    .header,
    .nav,
    .footer,
    .cta-button,
    .cta-box {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}