@import url('https://fonts.googleapis.com/css2?family=Poiret+One&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --ink: #19191b;
  --muted: #77747d;
  --purple: #80509d;
  --portfolio: #dbd8f0;
  --services: #79d1f7;
  --footer: #1b1b1c;
  --container: 1150px;
  --display: "Poiret One", "Century Gothic", sans-serif;
  --body: "Roboto", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--body); font-size: 16px; line-height: 1.45; }
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; }

/* Header */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; color: #fff; transition: background .25s, box-shadow .25s; }
.site-header.is-scrolled, .site-header.menu-open { background: rgba(27,27,28,.95); box-shadow: 0 6px 24px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.header-inner { min-height: 100px; display: flex; align-items: center; gap: 25px; }
.header-logo { flex: 0 0 auto; width: 177px; }
.header-logo img { width: 177px; height: auto; }
.main-navigation { display: flex; align-items: center; gap: 28px; margin-left: 24px; }
.main-navigation > a, .services-toggle { position: relative; color: #fff; text-decoration: none; font-family: var(--display); font-size: 17px; white-space: nowrap; }
.main-navigation > a::after, .services-toggle::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .2s; }
.main-navigation > a:hover::after, .main-navigation > a:focus-visible::after, .services-toggle:hover::after, .services-toggle:focus-visible::after { right: 0; }
.services-menu { position: relative; }
.services-toggle { display: flex; align-items: center; gap: 7px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.services-toggle span { margin-top: -3px; font-family: sans-serif; font-size: 16px; opacity: .8; transition: transform .25s; }
.services-menu.is-open .services-toggle span { transform: rotate(180deg); }
.services-submenu { position: absolute; top: calc(100% + 18px); left: 50%; width: 292px; margin: 0; padding: 9px; list-style: none; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(24,22,30,.96); box-shadow: 0 18px 55px rgba(0,0,0,.38); opacity: 0; visibility: hidden; transform: translate(-50%,10px); backdrop-filter: blur(16px); transition: opacity .2s, transform .2s, visibility .2s; pointer-events: none; }
.services-submenu::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; }
.services-submenu::after { content: ""; position: absolute; top: -6px; left: 50%; width: 11px; height: 11px; border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); background: rgba(24,22,30,.96); transform: translateX(-50%) rotate(45deg); }
.services-menu:hover .services-submenu, .services-menu:focus-within .services-submenu, .services-menu.is-open .services-submenu { opacity: 1; visibility: visible; transform: translate(-50%,0); pointer-events: auto; }
.services-submenu li { position: relative; z-index: 1; }
.services-submenu a { display: block; padding: 11px 13px; border-radius: 8px; color: rgba(255,255,255,.86); font-family: Roboto, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.25; text-decoration: none; white-space: normal; transition: color .18s, background .18s, padding-left .18s; }
.services-submenu a:hover, .services-submenu a:focus-visible { padding-left: 18px; background: linear-gradient(90deg,rgba(145,75,205,.34),rgba(78,96,206,.18)); color: #fff; outline: none; }
.mobile-menu-phone { display: none; }
.header-phone { margin-left: auto; color: #fff; font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.header-phone span { margin-right: 7px; text-decoration: none; }
.header-socials, .contact-socials { display: flex; align-items: center; gap: 10px; }
.social { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; transition: background .2s, transform .2s; }
.social:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social--whatsapp { color: #3ad36d; }
.social--viber { color: #7965e8; }
.social--instagram { color: #f04375; }
.social--telegram { color: #2ba8e1; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 27px; height: 2px; margin: 5px 0; background: #fff; }

/* Hero */
.hero { position: relative; min-height: 830px; display: flex; align-items: center; overflow: hidden; color: #fff; background: #273039; }
.hero-video, .hero-overlay { position: absolute; inset: 0; }
.hero-video { overflow: hidden; background: #26363e; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.hero-overlay { background: rgba(12,24,31,.52); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,700px) 400px; gap: 50px; align-items: center; padding: 130px 0 50px; }
.hero-copy { text-align: center; }
.hero h1 { margin: 0 auto 22px; max-width: 700px; font-size: 58px; line-height: 1.15; letter-spacing: -.02em; }
.hero-lead { margin-bottom: 25px; font-size: 21px; font-weight: 500; line-height: 1.42; }
.hero-benefits { width: 510px; max-width: 100%; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.hero-benefits li { display: grid; grid-template-columns: 46px 1fr; gap: 15px; align-items: center; min-height: 78px; border-bottom: 1px solid rgba(255,255,255,.22); }
.hero-benefits li:last-child { border-bottom: 0; }
.hero-benefits strong { display: block; margin-bottom: 5px; font-family: var(--display); font-size: 17px; }
.hero-benefits p { margin-bottom: 0; color: rgba(255,255,255,.82); font-family: var(--display); font-size: 15px; line-height: 1.35; }
.benefit-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 19px; }
.benefit-icon--yellow { color: #ecdc35; }
.benefit-icon--red { color: #f05a3d; }
.benefit-icon--green { color: #8bd23e; }
.hero-form { align-self: center; min-height: 625px; padding: 42px 30px 30px; background: rgba(72,102,198,.82); box-shadow: 0 22px 60px rgba(10,25,70,.2); }
.hero-form h2 { margin-bottom: 16px; font-family: var(--display); font-size: 16px; line-height: 1.5; }
.lead-form label { display: block; margin-bottom: 14px; }
.lead-form label > span { display: block; margin-bottom: 7px; font-family: var(--display); font-size: 15px; }
.lead-form input, .lead-form textarea { width: 100%; border: 0; border-radius: 4px; outline: 0; background: rgba(255,255,255,.12); color: #fff; padding: 11px 12px; }
.lead-form input { height: 46px; }
.lead-form textarea { min-height: 72px; resize: vertical; }
.lead-form input:focus, .lead-form textarea:focus { background: rgba(255,255,255,.2); box-shadow: 0 0 0 2px rgba(255,255,255,.38); }
.file-control { position: relative; }
.file-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-label { display: inline-flex !important; align-items: center; min-height: 30px; cursor: pointer; }
.lead-form button { width: 100%; min-height: 45px; border: 0; border-radius: 999px; background: #fff; color: #777; cursor: pointer; font-family: var(--display); font-weight: 600; transition: transform .2s, box-shadow .2s; }
.lead-form button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.form-status { min-height: 34px; margin: 10px 0 0; font-size: 12px; }

/* About */
.about { padding: 100px 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.about blockquote { margin: 0; border-left: 4px solid #1b1b1c; padding: 5px 0 5px 20px; font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1.36; }
.about-copy { color: #777; font-family: var(--display); font-size: 16px; line-height: 1.5; }
.about-copy p:last-child { margin-bottom: 0; }

/* Service pages */
.service-hero .hero-poster { object-position: center; }
.service-intro { padding: 26px 0 72px; background: #fff; }
.service-intro h2 { margin: 0 auto 92px; text-align: center; font-size: 49px; line-height: 1.2; }
.service-article { max-width: 855px; margin: 0 auto; border: 2px solid #d2d2d2; padding: 86px 20px 54px; color: #777; font-family: var(--display); font-size: 16px; line-height: 1.52; }
.service-article p { margin-bottom: 0; }
.service-article p + p { margin-top: 0; }
.service-article ul { margin: 0 0 8px; padding-left: 27px; }
.service-article li { padding-left: 2px; }
.service-article h3 { margin: 27px 0 24px; color: #222; font-family: var(--display); font-size: 18px; font-weight: 600; }
.service-feature { padding: 36px 0; background-position: center; background-size: cover; }
.service-feature--autosalon { background-image: linear-gradient(rgba(10,18,22,.2),rgba(10,18,22,.2)),url('/assets/content/services/autosalon-tc/intro-bg.jpg'); }
.service-feature--corporate { padding-top: 0; padding-bottom: 0; background-image: linear-gradient(rgba(18,8,36,.18),rgba(18,8,36,.18)),url('/assets/content/services/corporate/intro-bg.jpg'); }
.service-feature--birthday { padding-top: 0; padding-bottom: 0; background-image: linear-gradient(rgba(10,25,18,.15),rgba(10,25,18,.15)),url('/assets/content/services/birthday/intro-bg.jpg'); }
.service-feature--cafe { padding-top: 0; padding-bottom: 0; background-image: linear-gradient(rgba(18,20,24,.16),rgba(18,20,24,.16)),url('/assets/content/services/cafe/intro-bg.png'); }
.service-feature--stage { padding-top: 0; padding-bottom: 0; background-image: linear-gradient(rgba(19,8,38,.16),rgba(19,8,38,.16)),url('/assets/content/services/stage/intro-bg.jpg'); }
.service-feature--wedding { padding-top: 0; padding-bottom: 0; background-image: linear-gradient(rgba(12,20,28,.14),rgba(12,20,28,.14)),url('/assets/content/services/wedding/intro-bg.jpg'); }
.service-feature--anniversary { padding-top: 0; padding-bottom: 0; background-image: linear-gradient(rgba(18,9,42,.15),rgba(18,9,42,.15)),url('/assets/content/services/anniversary/intro-bg.jpg'); }
.service-feature--halls { padding-top: 0; padding-bottom: 0; background-image: linear-gradient(rgba(22,20,18,.14),rgba(22,20,18,.14)),url('/assets/content/services/halls/intro-bg.jpg'); }

/* Privacy policy */
.privacy-page { background: linear-gradient(180deg,#f3f0fa 0,#fff 420px); }
.privacy-page .site-header { background: rgba(27,27,28,.96); box-shadow: 0 6px 24px rgba(0,0,0,.16); backdrop-filter: blur(10px); }
.privacy-main { padding: 148px 0 90px; }
.privacy-heading { max-width: 900px; margin: 0 auto 36px; text-align: center; }
.privacy-heading .eyebrow { margin-bottom: 10px; color: var(--purple); font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.privacy-heading h1 { margin-bottom: 14px; font-size: clamp(34px,5vw,55px); line-height: 1.08; }
.privacy-heading p { margin: 0; color: var(--muted); }
.privacy-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 34px; align-items: start; }
.privacy-toc { position: sticky; top: 120px; max-height: calc(100vh - 145px); overflow: auto; border: 1px solid #e7e0ef; border-radius: 18px; padding: 22px; background: rgba(255,255,255,.9); box-shadow: 0 14px 40px rgba(66,43,83,.08); }
.privacy-toc h2 { margin-bottom: 14px; font-family: var(--body); font-size: 14px; font-weight: 700; }
.privacy-toc ol { margin: 0; padding: 0; list-style: none; }
.privacy-toc li + li { margin-top: 8px; }
.privacy-toc a { display: block; color: #615b66; font-size: 12px; line-height: 1.35; text-decoration: none; }
.privacy-toc a:hover { color: var(--purple); }
.privacy-document { border: 1px solid #ebe5f0; border-radius: 22px; padding: 54px 62px; background: #fff; box-shadow: 0 24px 70px rgba(60,38,74,.1); color: #4e4a52; font-size: 15px; line-height: 1.72; }
.privacy-document h2 { scroll-margin-top: 125px; margin: 50px 0 20px; padding-top: 24px; border-top: 1px solid #eee8f2; color: #18171a; font-family: var(--body); font-size: 24px; font-weight: 700; line-height: 1.3; }
.privacy-document h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.privacy-document p { margin-bottom: 15px; }
.privacy-document strong.clause-number { color: #201828; font-weight: 700; }
.privacy-document ul { margin: -4px 0 20px; padding-left: 24px; }
.privacy-document li + li { margin-top: 8px; }
.privacy-document a { color: #65417f; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .privacy-layout { grid-template-columns: 1fr; }
  .privacy-toc { position: static; max-height: none; }
  .privacy-toc ol { columns: 2; column-gap: 30px; }
  .privacy-toc li { break-inside: avoid; }
  .privacy-document { padding: 40px 34px; }
}

@media (max-width: 620px) {
  .privacy-main { padding-top: 120px; }
  .privacy-heading { text-align: left; }
  .privacy-toc ol { columns: 1; }
  .privacy-document { border-radius: 14px; padding: 30px 20px; font-size: 14px; }
  .privacy-document h2 { font-size: 20px; }
}
.service-feature__panel { max-width: 855px; margin: 0 auto; padding: 47px 40px 41px; background: #fff; color: #777; font-family: var(--display); font-size: 16px; line-height: 1.52; }
.service-feature__panel h2 { margin: 0 0 24px; color: #111; text-align: center; font-size: 35px; line-height: 1.25; }
.service-feature__panel p { margin: 0 0 24px; }
.service-feature__panel p:last-child { margin-bottom: 0; }
.service-feature__panel h3 { margin: 24px 0 4px; color: #222; font-family: var(--display); font-size: 18px; font-weight: 600; }
.service-feature__panel ul { margin: 0 0 12px; padding-left: 28px; }
.service-feature__panel li { padding-left: 2px; }

/* Shared section headings */
.portfolio-section, .services-section { padding: 80px 0 95px; }
.portfolio-section { background: var(--portfolio); }
.services-section { background: var(--services); }
.services-section h2 { color: #fff; }
.portfolio-section h2, .services-section h2, .comparison-section h2, .process-section h2, .team-section h2, .clients-section h2 { margin-bottom: 62px; text-align: center; font-size: 51px; line-height: 1.15; }

/* Sliders */
.works-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(2,260px); gap: 20px 24px; }
.slider-card { position: relative; min-width: 0; overflow: hidden; background: #222; color: #fff; }
.slider-card__image { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.slider-card__shade { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.72)); pointer-events: none; }
.slider-card__caption { position: absolute; z-index: 2; left: 18px; right: 48px; bottom: 26px; }
.slider-card__caption h3 { margin-bottom: 4px; font-family: var(--display); font-size: 18px; font-weight: 400; line-height: 1.15; }
.slider-card__subtitle { display: block; font-family: var(--display); font-size: 13px; line-height: 1.25; }
.slider-card__arrow { position: absolute; z-index: 3; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.82); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: background .2s; }
.slider-card__arrow:hover { background: #000; }
.slider-card__arrow--prev { left: 12px; opacity: .48; }
.slider-card__arrow--next { right: 12px; }
.slider-card__dots { display: none; }
.slider-card__dots i { width: 9px; height: 9px; display: block; border-radius: 50%; background: rgba(0,0,0,.45); }
.slider-card__dots i.is-active { background: #050505; }
.work-epam { grid-column: 3; grid-row: 1 / 3; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 350px; gap: 14px 48px; }
.slider-card--service .slider-card__caption h3 { font-size: 19px; }
.slider-card--service .slider-card__subtitle { font-size: 14px; }

/* Before / after */
.comparison-section { padding: 68px 0 82px; }
.comparison-section h2 { margin-bottom: 12px; }
.section-subtitle { margin: 0 auto 55px; text-align: center; font-size: 20px; line-height: 1.35; }
.comparison { --position: 50%; position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #eee; }
.comparison > img, .comparison-after, .comparison-after img { position: absolute; inset: 0; width: 100%; height: 100%; }
.comparison > img, .comparison-after img { object-fit: cover; object-position: center; }
.comparison-after { overflow: hidden; clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.comparison-after img { max-width: none; }
.comparison-divider { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--position); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.comparison-divider i { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.18); color: #fff; font-style: normal; transform: translate(-50%,-50%); }
.comparison input { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparison-label { position: absolute; z-index: 2; bottom: 24px; color: #fff; font-family: var(--display); font-size: 31px; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.comparison-label--before { left: 28px; }
.comparison-label--after { right: 28px; }

/* Process */
.process-section { padding: 55px 0 90px; }
.process-section h2 { margin-bottom: 20px; }
.process-section .section-subtitle { margin-bottom: 70px; }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 65px 100px; margin: 0; padding: 0; list-style: none; }
.process-grid li { display: flex; align-items: center; gap: 15px; font-family: var(--display); font-size: 22px; }
.process-grid svg { width: 42px; height: 42px; flex: 0 0 42px; fill: none; stroke: var(--purple); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Team */
.team-section { padding: 55px 0 90px; }
.team-section h2 { margin-bottom: 20px; }
.team-section .section-subtitle { margin-bottom: 65px; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 50px; }
.team-grid article { min-width: 0; }
.team-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team-grid h3 { margin: 14px 0 5px; font-size: 18px; }
.team-grid .role { margin-bottom: 18px; color: #aaa; font-family: var(--display); font-size: 15px; }
.team-grid article > p:last-child { color: #888; font-family: var(--display); font-size: 15px; line-height: 1.55; }

/* Callback */
.callback-section { position: relative; min-height: 380px; display: flex; align-items: center; color: #fff; background: var(--callback-bg) center 48%/cover no-repeat; }
.callback-overlay { position: absolute; inset: 0; background: rgba(18,22,25,.68); }
.callback-content { position: relative; z-index: 1; text-align: center; }
.callback-content h2 { margin-bottom: 42px; font-size: 50px; }
.callback-content p { margin-bottom: 45px; font-size: 20px; font-weight: 600; }
.callback-content > button { width: 100%; min-height: 58px; border: 0; border-radius: 999px; background: #fff; color: #777; cursor: pointer; font-family: var(--display); font-size: 17px; font-weight: 600; }

/* Clients */
.clients-section { padding: 60px 0 100px; background: var(--footer); color: #fff; }
.clients-section h2 { margin-bottom: 80px; }
.clients-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 55px; align-items: center; }
.clients-grid figure { margin: 0; display: grid; place-items: center; }
.clients-grid figure > div { width: 170px; height: 112px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.clients-grid img { width: 145px; height: 86px; object-fit: contain; }

/* Contacts */
.contacts-section { padding: 90px 0 100px; }
.contacts-grid { display: grid; grid-template-columns: 1fr 550px; gap: 70px; max-width: 1150px; }
.contact-details h2 { margin-bottom: 25px; font-size: 45px; }
.contact-details .hours { margin-bottom: 38px; font-size: 23px; }
.contact-details address { font-style: normal; }
.contact-details address p { margin: 0; border-top: 1px solid #bbb; padding: 25px 0; font-family: var(--display); font-size: 18px; }
.contact-details address p:last-child { border-bottom: 1px solid #bbb; }
.contact-details address a { text-decoration: none; }
.contact-socials { margin: 35px 0 50px; }
.contact-socials .social { width: 28px; height: 28px; border: 0; color: #fff; }
.contact-socials .social svg { width: 17px; height: 17px; }
.contact-socials .social--whatsapp { background: #47ca6c; }
.contact-socials .social--viber { background: #795be9; }
.contact-socials .social--instagram { border: 2px solid #fb5d66; color: #f44c8a; }
.contact-socials .social--telegram { background: #2aa9df; }
.contact-button { display: inline-flex; min-height: 45px; align-items: center; padding: 0 22px; border-radius: 3px; background: #1d1d1f; color: #fff; font-family: var(--display); font-weight: 600; text-decoration: none; }
.contact-map { width: 550px; height: 600px; border: 0; }

/* Footer */
.site-footer { min-height: 450px; padding: 105px 0 30px; background: var(--footer); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 260px 1fr 1fr 1fr; gap: 70px; align-items: start; }
.footer-logo img { width: 258px; height: auto; }
.footer-grid nav { display: flex; flex-direction: column; gap: 13px; }
.footer-grid nav a, .footer-phone a { font-family: var(--display); font-size: 17px; text-decoration: none; }
.footer-phone { display: flex; gap: 14px; }
.footer-phone > span { margin-top: 8px; font-size: 24px; }
.footer-phone p { margin: 0; }
.footer-phone a { text-decoration: underline; text-underline-offset: 3px; }
.footer-phone small { font-family: var(--display); font-size: 15px; }
.footer-grid address { display: flex; flex-direction: column; gap: 8px; font-family: var(--display); font-style: normal; font-size: 15px; }
.footer-grid address strong { font-size: 19px; }
.copyright { margin: 95px 0 0; text-align: center; font-family: var(--display); font-size: 14px; }
.copyright a { text-underline-offset: 3px; }

/* Modal */
.callback-dialog { width: min(440px,calc(100% - 30px)); border: 0; border-radius: 5px; padding: 36px; background: #586fc7; color: #fff; }
.callback-dialog::backdrop { background: rgba(12,14,18,.78); }
.callback-dialog h2 { margin-bottom: 25px; text-align: center; font-size: 34px; }
.dialog-close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; color: #fff; font-size: 30px; cursor: pointer; }

@media (max-width: 1180px) {
  .header-inner { gap: 16px; }
  .header-logo { width: 145px; }
  .header-logo img { width: 145px; }
  .main-navigation { gap: 17px; margin-left: 5px; }
  .main-navigation a { font-size: 15px; }
  .header-socials { gap: 6px; }
  .social { width: 30px; height: 30px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) 360px; gap: 25px; }
  .hero h1 { font-size: 51px; }
  .services-grid { gap: 14px 24px; }
  .process-grid { gap: 55px 45px; }
  .clients-grid { gap: 24px; }
  .clients-grid figure > div { width: 150px; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 74px; }
  .header-inner { min-height: 74px; }
  .menu-toggle { display: block; }
  .main-navigation { position: fixed; inset: 74px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; background: rgba(27,27,28,.98); }
  .main-navigation.menu-open { display: flex; }
  .main-navigation a { padding: 12px; text-align: center; font-size: 18px; }
  .services-menu { width: 100%; }
  .services-toggle { width: 100%; justify-content: center; padding: 12px; font-size: 18px; }
  .services-submenu { position: static; width: calc(100% - 24px); max-width: 360px; display: none; margin: 2px auto 10px; border-color: rgba(255,255,255,.08); border-radius: 12px; box-shadow: inset 0 1px rgba(255,255,255,.04); opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .services-menu:hover .services-submenu, .services-menu:focus-within .services-submenu { transform: none; }
  .services-menu.is-open .services-submenu { display: block; transform: none; }
  .services-submenu::before, .services-submenu::after { display: none; }
  .services-submenu a { padding: 10px 12px; text-align: left; font-size: 14px; }
  .header-phone { margin-left: 0; }
  .header-socials { display: none; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; padding-bottom: 65px; }
  .hero-form { width: min(100%,480px); min-height: auto; margin: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 45px; }
  .works-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3,300px); }
  .work-epam { grid-column: auto; grid-row: auto; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { gap: 20px; }
  .clients-grid { grid-template-columns: repeat(3,1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
  .contact-map { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px,var(--container)); }
  .header-logo, .header-logo img { width: 130px; }
  .header-phone { display: none; }
  .main-navigation .mobile-menu-phone { width: fit-content; display: inline-flex; align-items: center; align-self: center; gap: 8px; margin-top: 10px; padding: 11px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: linear-gradient(90deg,rgba(145,75,205,.28),rgba(78,96,206,.22)); font-family: Roboto, Arial, sans-serif; font-size: 16px; font-weight: 500; text-decoration: none; }
  .mobile-menu-phone::after { display: none; }
  .hero h1 { font-size: 38px; }
  .service-hero h1 { font-size: 36px; }
  .hero-lead { font-size: 16px; }
  .hero-benefits { width: 100%; }
  .service-intro { padding: 35px 0 55px; }
  .service-intro h2 { margin-bottom: 40px; font-size: 37px; }
  .service-article { border-width: 1px; padding: 35px 20px; font-size: 16px; }
  .service-feature { padding: 24px 0; }
  .service-feature__panel { padding: 32px 22px; font-size: 16px; }
  .service-feature__panel h2 { font-size: 31px; }
  .hero-benefits li { grid-template-columns: 40px 1fr; gap: 10px; }
  .hero-benefits p br { display: none; }
  .hero-form { padding: 28px 20px; }
  .about { padding: 70px 0; }
  .about blockquote { font-size: 25px; }
  .portfolio-section, .services-section { padding: 65px 0 70px; }
  .portfolio-section h2, .services-section h2, .comparison-section h2, .process-section h2, .team-section h2, .clients-section h2 { margin-bottom: 40px; font-size: 39px; }
  .works-grid, .services-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 360px; gap: 14px; }
  .comparison-section { padding: 60px 0; }
  .section-subtitle { margin-bottom: 38px; font-size: 16px; }
  .comparison { aspect-ratio: 4/3; }
  .comparison-label { font-size: 23px; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-grid li { font-size: 20px; }
  .team-grid { grid-template-columns: 1fr; gap: 45px; }
  .team-grid img { aspect-ratio: 1; }
  .callback-section { min-height: 330px; }
  .callback-content h2 { margin-bottom: 25px; font-size: 40px; }
  .callback-content p { margin-bottom: 30px; font-size: 16px; }
  .clients-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .clients-grid figure > div { width: 100%; max-width: 170px; }
  .contacts-section { padding: 70px 0; }
  .contact-details h2 { font-size: 40px; }
  .contact-map { height: 430px; }
  .site-footer { padding-top: 70px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-logo img { width: 220px; }
  .copyright { margin-top: 65px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video video { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
