/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1a2236; background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TOKENS ===== */
:root {
  --navy:     #0d2461;
  --navy-d:   #091a47;
  --blue:     #1a4fb5;
  --red:      #c53030;
  --amber:    #b45309;
  --slate:    #334155;
  --g50:      #f7f8fb;
  --g100:     #eef1f7;
  --g200:     #dde2ee;
  --g400:     #8491a8;
  --g600:     #475569;
  --radius:   10px;
  --shadow:   0 2px 16px rgba(13,36,97,.07);
  --shadow-m: 0 6px 28px rgba(13,36,97,.12);
  --shadow-l: 0 16px 48px rgba(13,36,97,.18);
}

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }
.section.about { background: #fff; }
.section.portfolio-section { background: var(--g50); }
.section.budget { background: var(--navy-d); }
.section.contact { background: #fff; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--g200);
  transition: box-shadow .25s;
}
.header.scrolled { box-shadow: var(--shadow-m); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo__img {
  height: 64px; width: auto; object-fit: contain;
  mix-blend-mode: multiply;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  padding: 8px 15px; border-radius: 7px;
  font-size: .88rem; font-weight: 500; color: var(--g600);
  transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--navy); background: var(--g100); }
.nav__cta {
  margin-left: 6px; background: var(--navy); color: #fff !important;
  font-weight: 600; padding: 9px 20px;
}
.nav__cta:hover { background: var(--blue) !important; }

.header__right { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 1.5px solid var(--g200); background: transparent; color: var(--navy);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  padding: 5px 13px; border-radius: 20px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lang-btn:hover { border-color: var(--navy); background: var(--g50); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__img-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__img-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(9,26,71,.88) 0%, rgba(9,26,71,.72) 55%, rgba(9,26,71,.45) 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 640px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9); padding: 7px 16px; border-radius: 30px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 24px; backdrop-filter: blur(4px);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }

.hero__content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.12;
  color: #fff; margin-bottom: 22px; letter-spacing: -.01em;
}
.hero__content > p {
  font-size: 1.05rem; color: rgba(255,255,255,.8);
  margin-bottom: 36px; max-width: 520px; line-height: 1.7;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero__stats {
  display: inline-flex; align-items: center; gap: 28px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px); padding: 18px 28px; border-radius: var(--radius);
}
.hero__stat { text-align: center; }
.hero__stat strong { display: block; font-size: 1.65rem; font-weight: 800; color: #fff; line-height: 1; }
.hero__stat span { font-size: .72rem; color: rgba(255,255,255,.65); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.hero__divider { width: 1px; height: 36px; background: rgba(255,255,255,.2); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: var(--radius); font-weight: 600;
  font-size: .92rem; cursor: pointer; border: none; transition: all .18s;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,36,97,.28); }
.btn--outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }
.btn--block { width: 100%; padding: 15px; font-size: .97rem; }

/* ===== SECTION HEAD ===== */
.section__head { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.section__tag {
  display: inline-block; background: rgba(26,79,181,.1); color: var(--blue);
  padding: 4px 14px; border-radius: 20px; font-size: .75rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px;
}
.section__tag--light {
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.85);
}
.section__head h2,
.about__content h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.35rem); font-weight: 800;
  color: var(--navy); margin-bottom: 14px; letter-spacing: -.01em; line-height: 1.2;
}
.budget h2 { color: #fff; }
.section__sub { color: var(--g600); font-size: .97rem; line-height: 1.7; }

/* ===== SERVICES ===== */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: #fff; border: 1px solid var(--g200); border-radius: var(--radius);
  padding: 32px 24px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--g100); }
.service__icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,79,181,.08); color: var(--blue);
}
.service__icon--red   { background: rgba(197,48,48,.08); color: var(--red); }
.service__icon--slate { background: rgba(51,65,85,.08); color: var(--slate); }
.service__icon--amber { background: rgba(180,83,9,.08); color: var(--amber); }
.service h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service p { font-size: .86rem; color: var(--g600); line-height: 1.65; margin-bottom: 16px; }
.service ul { display: flex; flex-direction: column; gap: 7px; }
.service li { font-size: .83rem; color: var(--g600); padding-left: 14px; position: relative; }
.service li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* ===== ABOUT ===== */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-l); aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.about__badge {
  position: absolute; bottom: -18px; right: -18px;
  background: var(--navy); color: #fff;
  padding: 18px 22px; border-radius: var(--radius); text-align: center;
  box-shadow: var(--shadow-l);
}
.about__badge strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.about__badge span { font-size: .74rem; font-weight: 500; opacity: .75; }

.about__content .section__tag { margin-bottom: 14px; }
.about__content p { font-size: .95rem; color: var(--g600); margin-bottom: 14px; line-height: 1.75; }
.about__list { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 32px; }
.about__item { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--navy); font-weight: 500; }
.about__item svg { color: var(--blue); flex-shrink: 0; }

/* ===== PORTFOLIO ===== */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
  margin-bottom: 52px;
}
.pitem {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: default;
}
.pitem--wide { grid-column: span 2; }
.pitem--tall { grid-row: span 2; }
.pitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pitem:hover img { transform: scale(1.04); }
.pitem__label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 16px 16px;
  background: linear-gradient(0deg, rgba(9,26,71,.88) 0%, transparent 100%);
  color: #fff; opacity: 0; transition: opacity .3s;
  display: flex; flex-direction: column; gap: 3px;
}
.pitem:hover .pitem__label { opacity: 1; }
.pitem__label strong { font-size: .88rem; font-weight: 700; }
.pitem__label span { font-size: .75rem; opacity: .82; }

.portfolio__refs { text-align: center; }
.refs__title {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--g400); margin-bottom: 18px;
}
.refs__grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ref {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--g200);
  padding: 10px 18px; border-radius: 6px;
  font-size: .86rem; color: var(--navy); font-weight: 500;
  box-shadow: var(--shadow);
}
.ref span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
}

/* ===== BUDGET ===== */
.budget__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.budget__info .section__tag { margin-bottom: 14px; }
.budget__info h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: -.01em; line-height: 1.2; }
.budget__info > p { font-size: .96rem; color: rgba(255,255,255,.72); line-height: 1.75; margin-bottom: 28px; }
.budget__features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.bfeat { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.85); font-weight: 500; }
.bfeat svg { color: #4ade80; flex-shrink: 0; }
.budget__contact { display: flex; flex-direction: column; gap: 10px; }
.bcontact {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 500;
  transition: color .15s;
}
.bcontact svg { flex-shrink: 0; }
.bcontact:hover { color: #fff; }

.form {
  background: #fff; border-radius: 14px; padding: 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form__group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form__row .form__group { margin-bottom: 0; }
.form__group label { font-size: .82rem; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
.form__group input,
.form__group select,
.form__group textarea {
  border: 1.5px solid var(--g200); border-radius: 8px;
  padding: 11px 14px; font-size: .92rem; font-family: inherit;
  color: var(--navy); outline: none; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,79,181,.1);
}
.form__group textarea { resize: vertical; }
.form__check {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 22px; font-size: .83rem; color: var(--g600); line-height: 1.5;
}
.form__check input[type="checkbox"] { width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; accent-color: var(--navy); cursor: pointer; }
.form__note {
  text-align: center; font-size: .78rem; color: var(--g400); margin-top: 12px;
}
.form__note::before { content: '✓ '; color: #16a34a; font-weight: 700; }
.form__ok {
  display: none; text-align: center; padding: 28px 0;
}
.form__ok svg { color: #16a34a; margin: 0 auto 14px; }
.form__ok h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; font-weight: 700; }
.form__ok p { color: var(--g600); font-size: .9rem; line-height: 1.6; }

/* ===== CONTACT ===== */
.contact__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.ccard {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--g50); border: 1px solid var(--g200); border-radius: var(--radius);
  padding: 24px 20px; transition: border-color .2s, box-shadow .2s;
}
a.ccard:hover { border-color: var(--blue); box-shadow: var(--shadow-m); }
.ccard__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(26,79,181,.08); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.ccard strong { font-size: .75rem; font-weight: 700; color: var(--g400); text-transform: uppercase; letter-spacing: .07em; }
.ccard span { font-size: .92rem; color: var(--navy); font-weight: 500; line-height: 1.5; }
.ccard small { font-size: .78rem; color: var(--g400); margin-top: 2px; }
.ccard__emerg { color: #16a34a !important; font-weight: 600 !important; }

/* ===== FOOTER ===== */
.footer { background: #080f22; color: rgba(255,255,255,.65); }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; padding: 64px 28px 52px;
}
.footer__logo {
  height: 56px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); margin-bottom: 14px; opacity: .9;
}
.footer__brand p { font-size: .86rem; line-height: 1.65; margin-bottom: 16px; }
.footer__phone { font-size: 1.05rem; font-weight: 700; color: rgba(255,255,255,.9); }
.footer__col h4 {
  color: rgba(255,255,255,.9); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px;
}
.footer__col a,
.footer__col span {
  display: block; font-size: .86rem; margin-bottom: 9px;
  color: rgba(255,255,255,.55); transition: color .15s; line-height: 1.5;
}
.footer__col a:hover { color: rgba(255,255,255,.9); }
.footer__emerg { color: #4ade80 !important; font-weight: 600 !important; font-size: .82rem !important; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 28px; }
.footer__bar-inner { font-size: .8rem; color: rgba(255,255,255,.35); }

/* ===== FAB ===== */
.fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(9,26,71,.4);
  transition: transform .2s, box-shadow .2s;
}
.fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(9,26,71,.5); }

/* ===== MOBILE NAV ===== */
@media (max-width: 960px) {
  .nav {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--g200);
    padding: 14px 20px 18px; gap: 2px;
    box-shadow: var(--shadow-m);
  }
  .nav.open { display: flex; }
  .nav__link { padding: 12px 16px; }
  .nav__cta { margin-left: 0; margin-top: 6px; text-align: center; }
  .burger { display: flex; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(3, 1fr); }
  .pitem--wide { grid-column: span 2; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .budget__inner { gap: 48px; }
}

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; gap: 56px; }
  .about__media { max-width: 480px; margin: 0 auto; }
  .about__badge { bottom: -16px; right: 8px; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .budget__inner { grid-template-columns: 1fr; gap: 40px; }
  .budget__info { text-align: center; }
  .budget__features { align-items: flex-start; display: inline-flex; flex-direction: column; text-align: left; }
  .budget__contact { align-items: center; flex-direction: row; justify-content: center; gap: 24px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero { min-height: auto; padding: 110px 0 72px; }
  .services { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .pitem--tall { grid-row: span 1; }
  .form { padding: 28px 22px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .portfolio__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .pitem--wide { grid-column: span 1; }
  .pitem__label { opacity: 1; }
  .contact__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 16px; }
  .hero__divider { width: 40px; height: 1px; }
  .hero__actions .btn { width: 100%; }
}
