/* ========================================
   ARTICAL OÜ - Main Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Blue/White minimal corporate style */
    --color-primary: #0056b3;
    --color-primary-dark: #004494;
    --color-primary-light: #0070e0;
    --color-secondary: #1a2a3a;
    --color-accent: #00a8e8;

    --color-white: #ffffff;
    --color-bg: #f8fafc;
    --color-bg-alt: #eef2f6;
    --color-text: #1e293b;
    --color-text-light: #475569;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    /* Typography */
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;

    /* Layout */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

main {
    padding-top: var(--header-height);
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-secondary);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

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

/* Section */
.section {
    padding: var(--space-3xl) 0;
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-desc {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-align: center;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled .header__logo img {
    height: 120px;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* ===== LOGO IMAGE ===== */
.header__logo img {
    height: 200px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
}

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

.nav__link:hover::after {
    width: 100%;
}

.header__menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.header__menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-secondary);
    transition: all var(--transition-base);
}

.header__menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Language Switcher */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 4px;
    z-index: 1001;
    background: var(--color-white);
    padding: 4px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.lang-btn {
    padding: 6px 12px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background-color: var(--color-bg);
}

.lang-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ========================================
   Hero Section
======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

/* Фон */
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url("images/hero.jpg") center / cover no-repeat;
    z-index: 0;
}

/* Контент поверх фона */
.hero__container {
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 700px;
}

/* Заголовок */
.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: #ffffff;
    /* ← добавьте эту строку */
    text-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
    /* чтобы не сливался */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Подзаголовок */
.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* Кнопка */
.hero__btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* Скролл индикатор */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    font-size: 14px;
    animation: bounce 2s infinite;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #ffffff, transparent);
}

/* Анимации */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   About Section
   ======================================== */
.about {
    background-color: var(--color-white);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about__text p {
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
    line-height: 1.8;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.about__feature {
    text-align: center;
    padding: var(--space-lg);
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

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

.about__feature-num {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.about__feature-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background-color: var(--color-bg);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background-color: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-align: center;
}

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

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-lg);
    color: var(--color-white);
}

.service-card__icon svg {
    width: 32px;
    height: 32px;
}

.service-card__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.service-card__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ========================================
   Advantages Section
   ======================================== */
.advantages {
    background-color: var(--color-white);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.advantage {
    text-align: center;
    padding: var(--space-lg);
}

.advantage__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background-color: var(--color-bg);
    border-radius: 50%;
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.advantage__icon svg {
    width: 36px;
    height: 36px;
}

.advantage:hover .advantage__icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.advantage__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.advantage__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ========================================
   Team Section
   ======================================== */
.team__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.team__grid--single {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-card--single {
    text-align: left;
}

.team-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.team-card__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card__badge {
    display: inline-block;
    width: fit-content;
    padding: 6px 14px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.team-card__name {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--space-lg);
}

.team-card__contacts {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: auto;
}

.team-card__contact {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-light);
    font-size: var(--font-size-base);
    transition: color var(--transition-fast);
}

.team-card__contact:hover {
    color: var(--color-primary);
}

.team-card__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-primary);
}

/* Address section */
.team__address {
    margin-bottom: var(--space-xl);
}

.team__address-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 0 auto;
}

.team__address-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.team__address-item h4 {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.team__address-item p {
    color: var(--color-text);
    font-size: var(--font-size-base);
}

/* Map */
.team__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2xl);
}

.team__map iframe {
    display: block;
}

/* ========================================
   Responsive - Team Section
   ======================================== */
@media (max-width: 768px) {
    .team__grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        padding: var(--space-lg);
    }

    .team-card__name {
        font-size: var(--font-size-xl);
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__content {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer__logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    display: block;
    margin-bottom: var(--space-sm);
    text-decoration: none;
    color: inherit;
}

.footer__tagline {
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

.footer__brand-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.footer__meta {
    margin-top: var(--space-md);
    display: grid;
    gap: 8px;
}

.footer__meta-item {
    font-size: var(--font-size-sm);
    opacity: 0.85;
    line-height: 1.5;
}

.footer__meta-label {
    font-weight: 600;
    opacity: 0.9;
    margin-right: 6px;
}

.footer__meta a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__requisites h4 {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    opacity: 0.7;
}

.footer__requisites-list {
    display: grid;
    gap: 10px;
}

.footer__requisites-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    font-size: var(--font-size-sm);
    opacity: 0.85;
}

.footer__requisites-row dt {
    font-weight: 700;
}

.footer__requisites-row dd {
    margin: 0;
    opacity: 0.9;
}

.footer__nav h4,
.footer__social h4 {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    opacity: 0.7;
}

.footer__nav ul li {
    margin-bottom: var(--space-xs);
}

.footer__nav a {
    font-size: var(--font-size-sm);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer__nav a:hover {
    opacity: 1;
}

.footer__social-links {
    display: flex;
    gap: var(--space-sm);
}

.footer__social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.footer__social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer__social-links svg {
    width: 18px;
    height: 18px;
}

.footer__bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: var(--font-size-sm);
    opacity: 0.6;
}

/* ========================================
   Scroll to Top
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive - Mobile First
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --space-3xl: 4rem;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Keep footer in 2 columns on tablet */
    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --space-3xl: 3rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }

    .lang-switch {
        top: 10px;
        right: 70px;
    }

    .header__menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-white);
        padding: var(--space-lg);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        gap: var(--space-md);
    }

    .nav__link {
        font-size: var(--font-size-lg);
    }

    .hero__title {
        font-size: var(--font-size-4xl);
    }

    .hero__subtitle {
        font-size: var(--font-size-base);
    }

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

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

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

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

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__nav ul {
        align-items: center;
    }

    .footer__social-links {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .btn {
        width: 100%;
    }

    .service-card {
        padding: var(--space-md);
    }
}


/* Prevent background scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}