:root {
    --accent: #0ea5a8;
    --accent-dark: #0b8588;
    --dark: #1e293b;
    --text: #64748b;
    --muted: #94a3b8;
    --line: #e2e8f0;
    --background: #f8fafc;
    --white: #ffffff;
    --shadow: 0 18px 38px -14px rgba(15, 23, 42, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--background);
    color: var(--dark);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
h2 { margin-bottom: 22px; font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.04em; }
h3 { font-size: 20px; }
.container { width: min(1152px, calc(100% - 48px)); margin-inline: auto; }
.container--narrow { max-width: 896px; }
.container--form { max-width: 672px; text-align: center; }

.site-nav {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav-scrolled { background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06); }
.nav-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-inner { min-height: 72px; }
.brand { color: var(--dark); font-weight: 700; letter-spacing: -0.04em; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 15px 30px;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    line-height: 1;
    transition: filter 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease, border 0.3s ease;
}
.button:hover { transform: scale(1.04); }
.button--small { padding: 10px 20px; }
.button--primary { background: var(--accent); color: var(--white); }
.button--primary:hover { filter: brightness(1.08); }
.button--secondary { border-color: #cbd5e1; background: rgba(255, 255, 255, 0.56); color: var(--dark); }
.button--secondary:hover, .button--outline:hover { border-color: var(--accent); background: var(--accent); color: var(--white); }
.button--outline { border-color: var(--accent); color: var(--accent); }

.hero { position: relative; display: grid; min-height: 100vh; place-items: center; overflow: hidden; padding: 110px 24px 70px; }
.hero-background { position: absolute; inset: 0; opacity: 0.24; transition: transform 0.1s linear; }
.hero-background::after { position: absolute; inset: 0; background: linear-gradient(rgba(248,250,252,.28), rgba(248,250,252,.7)); content: ""; }
.hero-background__image { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; max-width: 900px; text-align: center; }
.hero-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 18px; place-items: center; color: var(--accent); }
.hero-icon svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
h1 { margin-bottom: 20px; color: var(--dark); font-size: clamp(48px, 7vw, 76px); letter-spacing: -0.07em; }
.hero-subtitle { max-width: 680px; margin: 0 auto; color: var(--text); font-size: 21px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-top: 38px; }

.section { padding: 124px 0; }
.section--compact { padding: 90px 0; }
.section--tint { background: #f1f5f9; }
.section-heading { margin: 0 auto 58px; text-align: center; }
.section-heading p:not(.section-label) { color: var(--text); }
.section-label { margin-bottom: 12px; color: var(--accent); font-size: 14px; font-weight: 500; letter-spacing: 0.17em; text-transform: uppercase; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.two-column p { color: var(--text); }
.portrait-frame { overflow: hidden; aspect-ratio: 3 / 4; border-radius: 18px; box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card, .testimonial-card { border: 1px solid var(--line); border-radius: 16px; background: var(--white); padding: 30px; }
.service-card { transition: transform 0.4s cubic-bezier(.16,1,.3,1), border-color 0.3s ease, box-shadow 0.4s ease; }
.service-card:hover { border-color: var(--accent); box-shadow: 0 20px 40px -12px rgba(14,165,168,.15); transform: translateY(-8px); }
.icon-box { display: grid; width: 42px; height: 42px; margin-bottom: 20px; place-items: center; border-radius: 9px; background: rgba(14,165,168,.1); color: var(--accent); font-size: 21px; font-weight: 700; }
.service-card h3 { margin-bottom: 9px; }
.service-card p, .why-item p, .testimonial-card p { margin-bottom: 0; color: var(--text); font-size: 15px; }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card { position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin: 0; border-radius: 16px; box-shadow: 0 6px 18px rgba(15,23,42,.12); }
.work-card::after { position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.64)); content: ""; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.work-card:hover img { transform: scale(1.08); }
.work-card figcaption { position: absolute; z-index: 1; right: 24px; bottom: 20px; left: 24px; color: var(--white); font-size: 16px; font-weight: 500; }

.process-list { margin: 0; padding: 0; list-style: none; }
.process-step { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding: 28px 0; transition: background .3s ease, transform .3s ease; }
.process-step:hover { border-radius: 12px; background: rgba(14,165,168,.04); transform: translateX(8px); }
.process-step span { width: 48px; flex: none; color: var(--accent); font-size: 24px; font-weight: 700; }
.process-step h3 { margin: 0; font-weight: 600; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 38px 24px; }
.why-item { border-left: 2px solid var(--accent); padding-left: 20px; transition: transform .3s ease; }
.why-item:hover { transform: translateX(6px); }
.why-item h3 { margin-bottom: 8px; }

.contact-form { display: grid; gap: 7px; text-align: left; }
.contact-form label { color: var(--text); font-size: 14px; }
.contact-form input, .contact-form textarea { width: 100%; margin-bottom: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--background); padding: 13px 18px; color: var(--dark); font: inherit; resize: vertical; transition: border .3s ease, box-shadow .3s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,168,.18); }
.contact-form .button { width: 100%; margin-top: 6px; }
.form-success { margin: 22px 0 0; color: var(--accent); font-weight: 600; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { transition: box-shadow .4s ease, transform .4s cubic-bezier(.16,1,.3,1); }
.testimonial-card:hover { box-shadow: 0 12px 30px -8px rgba(0,0,0,.1); transform: translateY(-4px); }
.testimonial-card p { margin-bottom: 18px; color: #475569; font-style: italic; }
.testimonial-card strong, .testimonial-card span { display: block; font-size: 14px; }
.testimonial-card span { color: var(--muted); font-size: 13px; }
.partners { background: var(--white); }
.partner-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 62px; color: var(--muted); font-size: 22px; font-weight: 700; letter-spacing: .12em; }
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; }
.site-footer p { margin: 0; color: var(--muted); font-size: 14px; }

.anim-fade-up, .anim-slide-left, .anim-slide-right, .anim-scale, .anim-blur { opacity: 0; transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), filter 1s ease; }
.anim-fade-up { transform: translateY(50px); }
.anim-slide-left { transform: translateX(-80px); }
.anim-slide-right { transform: translateX(80px); }
.anim-scale { transform: scale(.85); transition-duration: .8s; }
.anim-blur { filter: blur(10px); }
.visible { opacity: 1; filter: blur(0); transform: translate(0) scale(1); }
.delay-1 { transition-delay: .1s; }.delay-2 { transition-delay: .2s; }.delay-3 { transition-delay: .3s; }.delay-4 { transition-delay: .4s; }.delay-5 { transition-delay: .5s; }.delay-6 { transition-delay: .6s; }.delay-7 { transition-delay: .7s; }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-20px) scale(1.02); } }
@keyframes hero-text { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.hero-float { animation: float 8s ease-in-out infinite; }
.hero-animate { opacity: 0; animation: hero-text 1.2s cubic-bezier(.16,1,.3,1) forwards; }
.hero-delay-1 { animation-delay: .2s; }.hero-delay-2 { animation-delay: .5s; }.hero-delay-3 { animation-delay: .8s; }

@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .two-column { gap: 40px; }
}
@media (max-width: 680px) {
    body { font-size: 16px; }
    .container { width: min(100% - 32px, 1152px); }
    .section { padding: 86px 0; }
    .section--compact { padding: 70px 0; }
    .two-column, .services-grid, .work-grid, .testimonial-grid, .why-grid { grid-template-columns: 1fr; }
    .portrait-frame { max-height: 580px; }
    .hero { min-height: 760px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-subtitle { font-size: 18px; }
    .process-step { align-items: flex-start; gap: 12px; }
    .process-step span { width: 38px; font-size: 20px; }
    .process-step h3 { font-size: 17px; }
    .footer-inner { align-items: flex-start; flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
