.ctc {
  --ctc-bg: #f3f3f4;
  --ctc-from: #f3f3f4;
  --ctc-text: #5a5b5e;
  --ctc-muted: #75767a;
  --ctc-hint: #b4b5b8;
  --ctc-line: #d7d8db;
  --ctc-typed: #3c3d40;
  --ctc-filled: #7d7e82;
  --ctc-box: #ffffff;
  position: relative;
  overflow: clip;
  color: var(--ctc-text);
  background: linear-gradient(to bottom, var(--ctc-from), var(--ctc-bg) 160px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ctc {
    --ctc-bg: #131726; --ctc-from: #131726; --ctc-text: #ffffff; --ctc-muted: #b6b6b6;
    --ctc-hint: rgb(255 255 255 / .32); --ctc-line: rgb(255 255 255 / .2); --ctc-box: rgb(255 255 255 / .03); --ctc-typed: #e4e4e8; --ctc-filled: rgb(255 255 255 / .55);
  }
}
:root[data-theme="dark"] .ctc {
  --ctc-bg: #131726; --ctc-from: #131726; --ctc-text: #ffffff; --ctc-muted: #b6b6b6;
  --ctc-hint: rgb(255 255 255 / .32); --ctc-line: rgb(255 255 255 / .2); --ctc-box: rgb(255 255 255 / .03); --ctc-typed: #e4e4e8; --ctc-filled: rgb(255 255 255 / .55);
}

.ctc__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(1300px, 100% - 40px);
  margin: 0 auto;
  padding: 96px clamp(20px, 5vw, 100px);
  text-align: left;
}

.ctc__inner { --pt: 96px; --tsize: clamp(44px, 4.63vw, 80px); }
.ctc__mail {
  position: absolute;
  top: calc(var(--pt) + var(--tsize) / 2);
  right: clamp(20px, 5vw, 100px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 24px;
  margin-top: -12px;
  color: var(--ctc-text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color .2s ease;
}
.ctc__mail-ico { flex: none; color: var(--c-red); transition: transform .3s cubic-bezier(.2, .7, .3, 1); }
.ctc__mail span { background: linear-gradient(var(--c-red), var(--c-red)) no-repeat 0 100% / 0 2px; padding-bottom: 3px; margin-bottom: -3px; transition: background-size .4s cubic-bezier(.2, .7, .3, 1); }
.ctc__mail:hover, .ctc__mail:focus-visible { color: var(--c-red); }
.ctc__mail:hover span, .ctc__mail:focus-visible span { background-size: 100% 2px; }
.ctc__mail:hover .ctc__mail-ico { transform: rotate(-8deg) scale(1.08); }
.ctc__mail:focus-visible { outline: 2px solid var(--c-red); outline-offset: 4px; border-radius: 4px; }
.ctc__title {
  margin: 0;
  color: var(--c-red);
  font-size: var(--tsize);
  font-weight: 700;
  line-height: 1;
}
.ctc__lead { margin: 14px 0 0; font-size: clamp(16px, 1.16vw, 20px); line-height: 1.3; }

.ctc-form { width: 100%; margin-top: clamp(40px, 4.2vw, 72px); }
.ctc-say {
  margin: 0;
  color: var(--ctc-text);
  font-size: clamp(22px, 2.55vw, 44px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.ctc-blank { position: relative; display: inline-block; vertical-align: baseline; }
.ctc-blank__input {
  width: 6ch;
  min-width: 3ch;
  max-width: min(14em, 80vw);
  margin: 0;
  padding: 0 .04em .06em;
  border: 0;
  border-bottom: 2px solid var(--ctc-line);
  border-radius: 0;
  background: none;
  color: var(--ctc-typed);
  font: inherit;
  letter-spacing: inherit;
  line-height: 1.25;
  text-align: left;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s ease;
}
.ctc-blank.is-filled .ctc-blank__input { border-bottom-color: var(--ctc-filled); }
.ctc-blank__input:focus, .ctc-blank.is-filled .ctc-blank__input:focus { border-bottom-color: var(--c-red); }
.ctc-blank__input::placeholder { color: var(--ctc-hint); opacity: 1; }

.ctc-blank__input:-webkit-autofill,
.ctc-blank__input:-webkit-autofill:hover,
.ctc-blank__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ctc-typed);
  caret-color: var(--c-red);
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 600000s 0s, color 600000s 0s;
}
.ctc-blank__input:autofill { background: none; color: var(--ctc-typed); }
.ctc-blank__input::-webkit-calendar-picker-indicator { display: none !important; }

.ctc-blank.is-dialled .ctc-blank__input { animation: ctc-dial .6s ease; }
@keyframes ctc-dial { 0% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
select.ctc-blank__input { cursor: pointer; }
select.ctc-blank__input.is-empty { color: var(--ctc-hint); -webkit-text-fill-color: var(--ctc-hint); }
select.ctc-blank__input option { color: #232324; font-size: 16px; }
.ctc-blank.is-invalid .ctc-blank__input { border-bottom-color: var(--c-red); }
.ctc-blank.is-invalid { animation: ctc-shake .4s cubic-bezier(.36, .07, .19, .97); }
@keyframes ctc-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.ctc-msg {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  margin: clamp(30px, 2.8vw, 46px) 0 0;
  font-size: clamp(18px, 1.5vw, 26px);
  cursor: text;
}
.ctc-msg__input {
  display: block;
  width: 12em;
  min-height: 0;
  max-height: calc(1.5em * 8);
  padding: 0 0 .1em;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--ctc-typed);
  font: inherit;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  resize: none;
  overflow: hidden;
  outline: none;
  transition: border-color .3s ease;
}
.ctc-msg__input::placeholder { color: var(--ctc-hint); opacity: 1; }

.ctc-msg:focus-within .ctc-msg__arrow, .ctc-msg:not(.is-empty) .ctc-msg__arrow { order: -1; animation: ctc-to-start .35s cubic-bezier(.2, .7, .3, 1); }
.ctc-msg:focus-within, .ctc-msg:not(.is-empty) { align-items: flex-start; }
.ctc-msg:focus-within .ctc-msg__arrow, .ctc-msg:not(.is-empty) .ctc-msg__arrow { margin: .5em 0 0; }
@keyframes ctc-to-start { from { opacity: 0; transform: translateX(-8px); } }
.ctc-msg__arrow { flex: none; margin-bottom: .5em; color: var(--c-red); transition: transform .3s ease; }
.ctc-msg.is-empty:not(:focus-within):hover .ctc-msg__arrow { transform: translateX(4px); }

.ctc-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ctc-form__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  width: 100%;
  margin: 26px 0 0;
}
.ctc-check { position: relative; display: inline-flex; align-items: center; gap: 12px; flex: none; font-size: 14px; line-height: 1.45; text-align: left; cursor: pointer; }
.ctc-check__txt { flex: 1; }
.ctc-check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.ctc-check__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ctc-hint);
  border-radius: 6px;
  color: #fff;
  transition: background-color .2s ease, border-color .2s ease;
}
.ctc-check__box svg { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .3s ease .05s; }
.ctc-check input:checked + .ctc-check__box { background: var(--c-red); border-color: var(--c-red); }
.ctc-check input:checked + .ctc-check__box svg { stroke-dashoffset: 0; }
.ctc-check input:focus-visible + .ctc-check__box { outline: 2px solid var(--c-red); outline-offset: 2px; }
.ctc-check.is-invalid .ctc-check__box { border-color: var(--c-red); }
.ctc-check.is-invalid { animation: ctc-shake .4s cubic-bezier(.36, .07, .19, .97); }
.ctc-check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.ctc-check a:hover, .ctc-check a:focus-visible { color: var(--c-red); }

.ctc-send {
  position: relative;
  height: 52px;
  padding: 0 30px;
  font-size: 17px;
  font-weight: 600;
}
.ctc-send__arrow { display: flex; width: 0; opacity: 0; overflow: hidden; transform: translateX(-8px); transition: width .3s ease, opacity .3s ease, transform .3s ease; }
.ctc-send:hover .ctc-send__arrow, .ctc-send:focus-visible .ctc-send__arrow { width: 8px; opacity: 1; transform: none; }
.ctc-send:active { transform: scale(.97); }
.ctc-send:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; }
.ctc-send__spin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgb(238 28 37 / .25);
  border-top-color: var(--c-red);
  border-radius: 50%;
  opacity: 0;
}
.ctc-form.is-sending .ctc-send__txt, .ctc-form.is-sending .ctc-send__arrow { opacity: 0; }
.ctc-form.is-sending .ctc-send__spin { opacity: 1; animation: ctc-spin .8s linear infinite; }
.ctc-form.is-sending .ctc-send { pointer-events: none; background: none; color: var(--c-red); }
@keyframes ctc-spin { to { transform: rotate(360deg); } }
.ctc-form__status { margin: 18px 0 0; color: var(--c-red); font-size: 15px; }
.ctc-form__status:empty { display: none; }

.ctc-form.is-gone { opacity: 0; transform: translateY(-10px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.ctc-done {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--done-top, 50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0 clamp(20px, 5vw, 100px);
  outline: none;
}
.ctc-done[hidden] { display: none; }
.ctc-done__ico { color: var(--c-red); margin-bottom: 8px; }
.ctc-done__ico circle, .ctc-done__ico path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ctc-done.is-in .ctc-done__ico circle { stroke-dashoffset: 0; transition: stroke-dashoffset .7s ease .1s; }
.ctc-done.is-in .ctc-done__ico path { stroke-dashoffset: 0; transition: stroke-dashoffset .45s ease .7s; }
.ctc-done__title { margin: 0; color: var(--ctc-text); font-size: clamp(26px, 2.3vw, 40px); font-weight: 700; }
.ctc-done__txt { margin: 0; color: var(--ctc-muted); font-size: 17px; }

@media (min-width: 1024px) {
  .ctc__inner { padding-top: 120px; padding-bottom: 120px; }
  .ctc__inner { --pt: 120px; }
}

@media (max-width: 1023px) { .ctc__inner { width: 100%; padding-inline: var(--header-px); } .ctc__mail { right: var(--header-px); } }
@media (max-width: 767px) {
  .ctc__inner { padding-block: 72px; }
  .ctc__inner { --pt: 72px; }
  .ctc__mail { right: var(--header-px); font-size: 16px; }
  .ctc-say { line-height: 2.05; }
}

.ctc-blank__line { display: none; }

.ctc-glow {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  color: var(--c-red);
  font: inherit;
  letter-spacing: inherit;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 50%, transparent 70%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 50%, transparent 70%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}
.ctc-msg .ctc-glow { line-height: 1.5; font-weight: 600; }
.ctc.is-hint .ctc-blank:not(.is-filled):not(:focus-within) .ctc-glow,
.ctc.is-hint .ctc-msg.is-empty:not(:focus-within) .ctc-glow { animation: ctc-glint 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .25s + .2s); }
@keyframes ctc-glint {
  0% { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  24% { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; }
  25%, 100% { opacity: 0; -webkit-mask-position: 0 0; mask-position: 0 0; }
}

.ctc-msg { position: relative; }
.ctc-blank:hover .ctc-blank__input { border-bottom-color: var(--ctc-hint); }

.has-motion .ctc .ctc-reveal { opacity: 0; transform: translateY(28px); }
.ctc.is-text-in .ctc-reveal {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease var(--d), transform .9s cubic-bezier(.2, .7, .3, 1) var(--d);
}

@media (prefers-reduced-motion: reduce) {
  .ctc-blank.is-invalid, .ctc-check.is-invalid { animation: none; }
  .ctc.is-hint .ctc-glow { animation: none; }
}

@media (max-width: 599px) {
  .ctc-check { align-items: flex-start; }
  .ctc-check__box { margin-top: 1px; }
}

body.page-contact { background: #ffffff; }
.page-contact .ctc { margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); background: linear-gradient(180deg, #ffffff calc(100% - 260px), #f3f3f4 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.page-contact { background: #0e111b; } :root:not([data-theme="light"]) .page-contact .ctc { background: linear-gradient(180deg, #0e111b calc(100% - 260px), #131726 100%); } }
:root[data-theme="dark"] body.page-contact { background: #0e111b; }
:root[data-theme="dark"] .page-contact .ctc { background: linear-gradient(180deg, #0e111b calc(100% - 260px), #131726 100%); }
.page-contact .cti { --cti-bg: #f3f3f4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-contact .cti { --cti-bg: #131726; } }
:root[data-theme="dark"] .page-contact .cti { --cti-bg: #131726; }
.cti { --cti-bg: #ffffff; --cti-muted: #737478; --cti-line: #e2e2e4; color: var(--c-heading); background: var(--cti-bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cti { --cti-bg: #0e111b; --cti-muted: #9a9ba6; --cti-line: rgb(255 255 255 / .08); } }
:root[data-theme="dark"] .cti { --cti-bg: #0e111b; --cti-muted: #9a9ba6; --cti-line: rgb(255 255 255 / .08); }
.cti__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  width: min(1300px, 100% - 40px);
  margin: 0 auto;
  padding: 96px clamp(20px, 5vw, 100px);
}
@media (min-width: 768px) { .cti__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; } }
@media (min-width: 1024px) { .cti__inner { padding-block: 120px; } }
@media (max-width: 1023px) { .cti__inner { width: 100%; padding-inline: var(--header-px); } }
@media (max-width: 767px) { .cti__inner { padding-block: 72px; } }

.cti__block { display: flex; flex-direction: column; align-items: flex-start; }
.cti__label { margin: 0 0 24px; color: var(--cti-muted); font-size: clamp(12px, .93vw, 14px); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.cti__name { margin: 0; font-size: clamp(20px, 1.39vw, 24px); font-weight: 700; line-height: 1.2; }
.cti__addr { margin-top: 12px; font-size: clamp(17px, 1.16vw, 20px); font-style: normal; line-height: 1.55; }
.cti__list { display: grid; gap: 10px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--cti-line); width: 100%; max-width: 420px; }
.cti__list div { display: flex; gap: 16px; align-items: baseline; }
.cti__list dt { width: 64px; flex: none; color: var(--cti-muted); font-size: 14px; }
.cti__list dd { margin: 0; font-size: 17px; font-weight: 600; }
.cti a { color: inherit; text-decoration: none; transition: color .25s ease; }
.cti__list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .25s ease, background-size .3s ease; }
.cti__phone { font-size: clamp(20px, 1.39vw, 24px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.cti__phone + .cti__phone { margin-top: 8px; }
.cti__mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 18px; font-weight: 600; }
.cti__mail-ico { color: var(--c-red); }
.cti__skype { margin-top: 12px; }
.cti__social { display: flex; gap: 4px; margin: 28px 0 0 -12px; padding: 0; list-style: none; }
.cti__social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--cti-muted); }
.cti__social svg { width: 34px; height: 34px; }
@media (hover: hover) {
  .cti__phone:hover, .cti__mail:hover, .cti__social a:hover, .cti__list a:hover { color: var(--c-red); }
  .cti__list a:hover { background-size: 100% 1px; }
}
.cti a:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; border-radius: 2px; }

.has-motion .cti__block { opacity: 0; translate: 0 24px; transition: opacity .7s ease var(--d, 0s), translate .9s cubic-bezier(.2, .7, .3, 1) var(--d, 0s); }
.has-motion .cti.is-in .cti__block { opacity: 1; translate: none; }
