/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

a {
    color: #1a6bb5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary:hover {
    background: #14568f;
    text-decoration: none;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* === ACCESSIBILITY === */
.a11y-toggle {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 10000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #1a6bb5;
    background: #fff;
    color: #1a6bb5;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.a11y-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    background: rgba(0,0,0,0.5);
}

.a11y-hidden {
    display: none;
}

.a11y-panel-inner {
    position: absolute;
    left: 12px;
    bottom: 70px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 260px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.a11y-panel-title {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.a11y-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;
}

.a11y-btn:hover {
    background: #e8e8e8;
}

.a11y-close {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background: #1a6bb5;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 4px;
}

body.high-contrast {
    background: #000 !important;
    color: #ff0 !important;
}

body.high-contrast .header,
body.high-contrast .footer,
body.high-contrast .section-gray,
body.high-contrast .section-accent {
    background: #000 !important;
    color: #ff0 !important;
}

body.high-contrast a {
    color: #0ff !important;
}

body.grayscale {
    filter: grayscale(1);
}

body.underline-links a {
    text-decoration: underline !important;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
    position: relative;
    display: block;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
    color: #1a6bb5;
}

.logo-icon {
    font-size: 2rem;
    vertical-align: middle;
    margin-right: 8px;
}

.logo-text {
    display: inline-block;
    vertical-align: middle;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #222;
}

.nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.nav-link {
    display: inline-block;
    padding: 8px 12px;
    color: #444;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover {
    color: #1a6bb5;
    text-decoration: none;
}

.header-contacts {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
}

.header-phone {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: #222;
}

.header-address {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 6px;
}

.header-cta {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.burger {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    margin-bottom: 5px;
    border-radius: 2px;
    transition: 0.3s;
}

/* === HERO SLIDER === */
.hero {
    position: relative;
    margin-top: 90px;
    overflow: hidden;
}

.slider {
    position: relative;
    height: 600px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide-active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
}

.slide-content {
    position: relative;
    z-index: 2;
    padding-top: 160px;
    color: #fff;
}

.slide-content h1,
.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 6px;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.slider-dot-active {
    background: #fff;
}

/* === SECTIONS === */
.section {
    padding: 80px 0;
}

.section-light {
    background: #fff;
}

.section-gray {
    background: #f5f7fa;
}

.section-accent {
    background: #1a6bb5;
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
}

.section-title-white {
    color: #fff;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

/* === WELCOME === */
.welcome-grid {
    overflow: hidden;
}

.welcome-text {
    float: left;
    width: 55%;
    padding-right: 40px;
}

.welcome-image {
    float: right;
    width: 45%;
}

.welcome-image img {
    border-radius: 12px;
}

.welcome-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: #555;
}

.welcome-list {
    list-style: none;
    margin-top: 20px;
}

.welcome-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 1.05rem;
}

.welcome-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #1a6bb5;
    font-weight: 700;
}

/* === CARDS GRID (Services) === */
.cards-grid {
    overflow: hidden;
}

.card {
    float: left;
    width: 30.66%;
    margin-right: 4%;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:nth-child(3n) {
    margin-right: 0;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

/* === TEAM === */
.team-grid {
    overflow: hidden;
    text-align: center;
}

.team-card {
    display: inline-block;
    vertical-align: top;
    width: 23%;
    margin: 0 1%;
    text-align: center;
    padding: 20px;
}

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.team-role {
    color: #1a6bb5;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.team-card p:last-child {
    color: #666;
    font-size: 0.9rem;
}

/* === INFO GRID === */
.info-grid {
    overflow: hidden;
}

.info-card {
    float: left;
    width: 23%;
    margin-right: 2.66%;
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.info-card:last-child {
    margin-right: 0;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #222;
}

.info-card p {
    color: #555;
    font-size: 0.95rem;
}

/* === WHAT SETS US APART === */
.diff-grid {
    overflow: hidden;
    margin-top: 40px;
}

.diff-item {
    float: left;
    width: 23%;
    margin-right: 2.66%;
    text-align: center;
    padding: 20px;
}

.diff-item:last-child {
    margin-right: 0;
}

.diff-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    opacity: 0.3;
    margin-bottom: 12px;
}

.diff-item h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.diff-item p {
    opacity: 0.85;
    font-size: 0.95rem;
}

/* === REVIEWS === */
.reviews-grid {
    overflow: hidden;
}

.review-card {
    float: left;
    width: 30.66%;
    margin-right: 4%;
    background: #f5f7fa;
    border-radius: 12px;
    padding: 30px;
}

.review-card:last-child {
    margin-right: 0;
}

.review-stars {
    color: #f5a623;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.7;
}

.review-author {
    font-weight: 700;
    color: #222;
}

/* === CONTACT === */
.contact-grid {
    overflow: hidden;
}

.contact-form {
    float: left;
    width: 60%;
    padding-right: 40px;
}

.contact-info {
    float: right;
    width: 36%;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #222;
}

.contact-item {
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: #555;
}

.contact-item a {
    color: #1a6bb5;
}

.form-group {
    float: left;
    width: 48%;
    margin-right: 4%;
    margin-bottom: 18px;
}

.form-group:nth-child(2n) {
    margin-right: 0;
}

.form-group-full {
    float: none;
    clear: both;
    width: 100%;
    margin-right: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a6bb5;
}

.form-submit {
    clear: both;
    width: 100%;
    margin-top: 8px;
}

/* === MAP === */
.map-section {
    line-height: 0;
}

/* === FOOTER === */
.footer {
    background: #1c2536;
    color: #ccc;
    padding: 50px 0 0;
}

.footer-inner {
    overflow: hidden;
    padding-bottom: 30px;
}

.footer-col {
    float: left;
    width: 25%;
    padding-right: 30px;
}

.footer-brand {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    color: #aaa;
    padding: 4px 0;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: #fff;
}

.social-icons {
    margin-top: 8px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 8px;
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 700;
}

.social-link:hover {
    background: #1a6bb5;
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-icon {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 12px;
}

.modal-content h3 {
    margin-bottom: 10px;
}

.modal-content .btn {
    margin-top: 20px;
}

/* ===================== */
/* === TABLET (768px) === */
/* ===================== */
@media (max-width: 960px) {
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        padding: 80px 20px 20px;
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        transform: none;
        transition: left 0.3s ease;
        white-space: normal;
    }

    .nav.nav-open {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 14px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
    }

    .header-contacts {
        display: none;
    }

    .burger {
        display: block;
    }

    .slider {
        height: 450px;
    }

    .slide-content h1,
    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content {
        padding-top: 100px;
    }

    .welcome-text {
        float: none;
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .welcome-image {
        float: none;
        width: 100%;
    }

    .card {
        float: left;
        width: 48%;
        margin-right: 4%;
    }

    .card:nth-child(3n) {
        margin-right: 4%;
    }

    .card:nth-child(2n) {
        margin-right: 0;
    }

    .team-card {
        width: 48%;
        margin-bottom: 20px;
    }

    .info-card {
        float: left;
        width: 48%;
        margin-right: 4%;
        margin-bottom: 20px;
    }

    .info-card:nth-child(2n) {
        margin-right: 0;
    }

    .info-card:last-child {
        margin-right: 0;
    }

    .diff-item {
        float: left;
        width: 48%;
        margin-right: 4%;
        margin-bottom: 20px;
    }

    .diff-item:nth-child(2n) {
        margin-right: 0;
    }

    .review-card {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .contact-form {
        float: none;
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .contact-info {
        float: none;
        width: 100%;
    }

    .footer-col {
        float: left;
        width: 50%;
        margin-bottom: 24px;
    }
}

/* ===================== */
/* === MOBILE (480px) === */
/* ===================== */
@media (max-width: 600px) {
    html {
        font-size: 15px;
    }

    .hero {
        margin-top: 70px;
    }

    .slider {
        height: 400px;
    }

    .slide-content {
        padding-top: 80px;
    }

    .slide-content h1,
    .slide-content h2 {
        font-size: 1.6rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .card {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    .card:nth-child(3n) {
        margin-right: 0;
    }

    .team-card {
        width: 100%;
        margin: 0 0 20px;
    }

    .info-card {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    .diff-item {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    .form-group {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    .footer-col {
        float: none;
        width: 100%;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
}
